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
// Opacity | |
// usage @include opacity(50); | |
@mixin opacity($opacity) { | |
opacity: $opacity / 100; | |
filter: alpha(opacity=$opacity); | |
} |
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
// CSS3 PROPERTIES | |
// -------------------------------------------------- | |
// Border Radius | |
@mixin border-radius($radius) { | |
-webkit-border-radius: $radius; | |
-moz-border-radius: $radius; | |
border-radius: $radius; | |
} |
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
// you can pass it only the following direction keywords: | |
// up, down, left, right | |
// | |
// HOW TO USE | |
// | |
// $direction: up; | |
// $color: #c00; | |
// $size: 20px; | |
// .class { | |
// $include arrow($direction, $color, $size); |
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
// Reset filters for IE | |
// especially useful when you're using something like CSS3 Pie | |
@mixin gradient-reset-filter() { | |
filter: progid:DXImageTransform.Microsoft.gradient(enabled=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
// Opacity | |
@mixin opacity($opacity) { | |
opacity: $opacity / 100; | |
filter: alpha(opacity=$opacity); | |
} |
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
// fixes inline-block bug in ie7 | |
// example usage | |
// .element { | |
// display: inline-block; | |
// .lt-ie8 & { | |
// @include ie7-inline-block(); | |
// } | |
// } | |
@mixin ie7-inline-block() { |
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
// variables and mixins | |
@import "variables"; | |
@import "mixins"; | |
// Reset | |
@import "reset"; | |
// Page structure, etc | |
@import "scaffolding"; | |
@import "grid"; |
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
gem install sass | |
mv style.css style.scss | |
sass --watch style.scss:style.css |
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 gistPrefix = 'http://gist.github.com/', | |
// Cache document.write so that it can be restored once all Gists have been | |
// embedded. | |
cachedWrite = document.write, | |
body = jQuery('body'), | |
// Map each p.gist to an object that contains the paragraph to be replaced | |
// and the Gist's identifier. | |
gists = jQuery('p.gist').map(function(n, p) { | |
p = jQuery(p); |
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
<link rel="stylesheet/less" href="/path/to/style.less"> | |
<script src="/path/to/less.js"></script> |