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 background-opacity($color, $opacity: .3) { | |
background: $color; | |
background: rgba($color, $opacity); | |
} | |
// Use case | |
@include background-opacity($color-white, .7); |
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 | |
@mixin font-smoothing($value: on) { | |
@if $value == on { | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} | |
@else { | |
-webkit-font-smoothing: subpixel-antialiased; | |
-moz-osx-font-smoothing: auto; |
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
/* Require Framer.js import = http://www.framerjs.com/static/js/framer.js */ | |
/* Also, add a little css, so you can see the view's contents properly: | |
.framer{ | |
background: black; | |
} | |
*/ | |
view = new ImageView({ | |
x:20, | |
y:20, |
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 Shape Mixin | |
// http://css-tricks.com/examples/ShapesOfCSS/ | |
@mixin shape($shape, $size, $color){ | |
@if $shape == square { | |
width: $size; | |
height: $size; | |
background-color: $color; | |
} |
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
// From @chriscoyier | |
// http://css-tricks.com/snippets/css/a-guide-to-flexbox/ | |
@mixin flexbox() { | |
display: -webkit-box; | |
display: -moz-box; | |
display: -ms-flexbox; | |
display: -webkit-flex; | |
display: flex; | |
} |
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
// Bourbon's clear-anything mixin | |
@mixin clearfix { | |
&:after { | |
content:""; | |
display:table; | |
clear:both; | |
} | |
} |
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
// blog link: http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/ | |
@mixin vertical-align { | |
position: relative; | |
top: 50%; | |
-webkit-transform: translateY(-50%); | |
-ms-transform: translateY(-50%); | |
transform: translateY(-50%); | |
} |
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
$(".kanye").on("click", function() { | |
$(this).toggleClass("west"); | |
}); |
NewerOlder