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
// 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
// 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
// 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
// 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
// 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
// Gradients | |
@mixin gradient-horizontal($startColor: #555, $endColor: #333) { | |
background-color: $endColor; | |
background-image: -moz-linear-gradient(left, $startColor, $endColor); // FF 3.6+ | |
background-image: -ms-linear-gradient(left, $startColor, $endColor); // IE10 | |
background-image: -webkit-gradient(linear, 0 0, 100% 0, from($startColor), to($endColor)); // Safari 4+, Chrome 2+ | |
background-image: -webkit-linear-gradient(left, $startColor, $endColor); // Safari 5.1+, Chrome 10+ | |
background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10 | |
background-image: linear-gradient(left, $startColor, $endColor); // Le standard | |
background-repeat: repeat-x; |
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
// include the compass spite utility if not already included | |
@import "compass/utilities/sprites"; | |
// import your images | |
// note: compass already knows my images live in the /images/ folder | |
@import "icons/*png"; | |
// automagically generate class names | |
@include all-icons-sprites; |
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
.icons-actions-add-mini, | |
.icons-actions-delete-mini, | |
[...] | |
.icons-multimedia-camera { | |
background: url('/images/icons-s34fe0604ab.png') no-repeat; | |
} | |
.icons-actions-add-mini {background-position: 0 0;} | |
.icons-actions-delete-mini {background-position: 0 -16px;} | |
[...] |
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
@import "icons/*.png"; | |
.actions { | |
.add { @include icons-sprite(actions-add-mini); } | |
.delete { @include icons-sprite(actions-delete-mini); } | |
} | |
.contact { | |
.mail { @include icons-sprite(contact-mail); } | |
.phone { @include icons-sprite(contact-phone); } |