- GitHub Staff
- https://danielguillan.com
- @danielguillan
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
module Sass::Script::Functions | |
def getRandomColor() | |
Sass::Script::String.new("#%06x" % (rand * 0xffffff)) | |
end | |
end |
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
$element-separator: '__'; | |
$modifier-separator: '--'; | |
$class-type: '%'; | |
@include block('flag') { | |
display: table; | |
width: 100%; | |
@include element('image') { | |
padding-right: 10px; |
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
.translate3d.opacity .my-selector { | |
opacity: 0; | |
transform: translateY(100%); | |
} | |
.no-js .my-selector, .no-translate3d .my-selector, .no-opacity .my-selector { | |
position: relative; | |
top: 100%; | |
display: none; | |
} |
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.3.2) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
// ============================================================================= | |
// Modernizr mixin (async) | |
// | |
// Table of contents: | |
// 1. Modernizr mixin |
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.3.3) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
// Map storing sizes when the mixin is being called | |
$sizes: ( | |
width : (), | |
height : (), | |
); |
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.3.4) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
// ============================================================================= | |
// Modernizr mixin | |
// | |
// Table of contents: | |
// 1. Modernizr mixin |
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.3.8) | |
// Compass (v1.0.0.alpha.19) | |
// SassyLists (v1.0.0) | |
// ---- | |
// ============================================================================= | |
// Z-index Manager | |
// Early exploration for a z-index manager | |
// |
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.3.7) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
$use-fractions: false !default; | |
$numbers: (1 one whole, 2 two half, 3 three third, 4 four quater, 5 five fifth, 6 six sixth, 7 seven seventh, 8 eight eighth, 9 nine ninth, 10 ten tenth, 11 eleven eleventh, 12 twleve twelfth, 13 thirteen thirteenth, 14 fourteen fourteenth, 15 fifteen fifteenth, 16 sixteen sixteenth); | |
@mixin widths($prefix: '', $widths...) { |
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.3.7) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
// ============================================================================= | |
// Mixin-driven BEM definitions | |
// | |
// I still don't know whether i like this idea or not. | |
// |
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.3.8) | |
// Compass (v1.0.0.alpha.19) | |
// ---- | |
// ============================================================================= | |
// Experimenting with BEM maps | |
// | |
// Table of contents: | |
// 1. Demo BEM map |
OlderNewer