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
<h1>test</h1> |
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
// clearfix | |
@mixin clearfix { | |
zoom: 1; | |
&:after { | |
content: ""; | |
display: block; | |
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
// Example ul>li*3 | |
// Bad | |
ul { | |
li{ | |
margin-top: 10px; | |
border-top: 1px solid #ccc; | |
&:first-child { | |
margin-top: 0; | |
border-top: 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
// Example .ball>.ie | |
@-webkit-keyframes pop { | |
0% { | |
top: 0; | |
} | |
10% { | |
top: -30px; | |
} | |
30% { |
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
// Example | |
@mixin hoge { | |
p { | |
color: red; | |
@content; | |
} | |
} | |
.alert { |
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 'webrick' | |
include WEBrick | |
s = HTTPServer.new( | |
:Port => 8000, | |
:DocumentRoot => '.' | |
) | |
trap("INT"){ s.shutdown } | |
s.start |
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
// Example | |
.hoge:active{ | |
color: red; | |
} | |
.fuga { | |
@extend .hoge:active; | |
} |
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 inline-block() { | |
display: inline-block; | |
*zoom: 1; // hasLayout true for ie7 | |
*display: inline; // for ie7 | |
} |
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
// Example | |
$colors: red, blue, green; | |
@each $color in $colors { | |
.#{$color} { | |
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
// Example | |
@mixin hoge($num, $str){ | |
// if $num | |
@if $num < 10 { | |
margin-top: $num; | |
}@else{ | |
margin-top: 15px; | |
} |
OlderNewer