This file contains 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
@mixin subclass ($superclass) { | |
.#{ $superclass }, | |
[class^="#{ $superclass }-"], | |
[class*=" #{ $superclass }-"] { | |
@content; | |
} | |
} |
This file contains 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
/** | |
* Show/hide icon labels using media queries. | |
* | |
* @param {Object} images NodeList of icon images | |
* @param {String} mqString Media query string | |
* @param {Boolean} [fallback] Show label text for no-media-queries browsers | |
* @example | |
* var navIcons = document.querySelectorAll('nav img'); | |
* responsiveIconLabel(navIcons, '(min-width: 801px)', true); | |
*/ |
This file contains 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
// ---- | |
// Sass (v3.4.0.rc.1) | |
// Compass (v1.0.0.alpha.20) | |
// ---- | |
.outer { | |
color: red; | |
.inner { | |
color: green; |
This file contains 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
// http://nicolasgallagher.com/micro-clearfix-hack/ | |
$support-ie: 8 !default; | |
@mixin clearfix { | |
@if $support-ie and $support-ie != 0 and $support-ie < 8 { | |
*zoom: 1; | |
} | |
&:before, | |
&:after { | |
content: " "; | |
display: table; |
This file contains 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
// _grids.scss | |
$gridWidth: 100%; | |
$colGap: 0; | |
@mixin grid () { | |
display: table; | |
width: $gridWidth + $colGap; | |
@if $colGap > 0 { | |
margin-right: - $colGap; |
This file contains 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
* { | |
padding: 0; | |
margin: 0; | |
} | |
html { | |
overflow-y: scroll; | |
font: small; /* for IE6 in quirks mode */ | |
} | |
body { | |
font-size: 100%; |
This file contains 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
// jQuery Dropdown plugin | |
(function ($) { | |
$.fn.dropdown = function (options) { | |
var opts = $.extend({ | |
child: 'ul:first', | |
hoverClass: 'hover', | |
showTimeout: 100, | |
showSpeed: 200, | |
hideTimeout: 200, | |
hideSpeed: 100 |
This file contains 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
// See https://github.com/terkel/jquery-ua |
This file contains 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
// jQuery Toggle Hover Class Plugin | |
(function ($) { | |
$.fn.toggleHoverClass = function () { | |
return this.each(function () { | |
var $this = $(this), | |
c = this.className, | |
originalClasses = c? c.split(' '): [], | |
hoverClasses = [], | |
hoverClass = 'hover', | |
len = originalClasses.length, |
OlderNewer