This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $ = jQuery; | |
var gapi; | |
var googlePlusAdded = false; | |
var gplusoneLoaded = false; | |
var gplusClass = ".button__googlePlus"; // Class where you want to insert G+ button | |
var gplusPage = "http://your_google_plus_page"; | |
// Add Google+ on menu hover | |
$('#menu').hover(function() { // ID or Class of your menu hover | |
if (!googlePlusAdded) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
(function () { | |
"use strict"; | |
// once cached, the css file is stored on the client forever unless | |
// the URL below is changed. Any change will invalidate the cache | |
var css_href = './index_files/web-fonts.css'; | |
// a simple event handler wrapper | |
function on(el, ev, callback) { | |
if (el.addEventListener) { | |
el.addEventListener(ev, callback, false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
// Setting object | |
$resolutions : ( | |
mobile: ( | |
name: mobile, | |
shortcut: m, | |
width: 320px |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$width: 300; // desired grid width in px (do not enter 'px') | |
$fs: 18; // base font size in px (do not enter 'px') | |
$const: 1.61803398874; // Line height constant | |
$fsconst: 1.165; // Font size growth constant | |
// DO NOT CHANGE ANYTHING BELOW |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
/* | |
EXTENDER MIXIN | |
author: Vladimir Jovanovic @vlasterx | www.webdizajn.org | |
2015. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
/* BASELINE HEIGHT EXAMPLE */ | |
// Test with these values | |
$fontSize: 25px; | |
$baseFontSize: 16px; | |
$buffer: 0.90; // Font can grow up to 90% of line height before we add new line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
/* | |
FALLBACK TAG MIXIN | |
author: Vladimir Jovanovic @vlasterx | www.webdizajn.org | |
2015. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$sizePx: 18px; | |
$basePx: 16px; | |
$unit--rem: true; | |
// CHECK BOOLEAN VALUE | |
@function bool($value: false) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
// _____ _ _ | |
// | |___ ___ ___| |_ ___ ___| |_ ___ | |
// | --| . | |_ -| _| .'| | _|_ -| | |
// |_____|___|_|_|___|_| |__,|_|_|_| |___| | |
$phi: 1.61803398874; // ~Phi ratio for Fibonacci sequence |
OlderNewer