請配合 SassMeister 使用。
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 "compass"; | |
$experimental-support-for-webkit: false; | |
$experimental-support-for-mozilla: false; | |
.box { | |
@include border-radius(8px); | |
@include box-shadow( | |
rgba(#ccc, 0.5) 3px 3px 5px | |
); |
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 "compass"; | |
.box { | |
@include border-radius(8px); | |
@include box-shadow( | |
rgba(#ccc, 0.5) 3px 3px 5px | |
); | |
} |
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 "compass"; | |
.linear { | |
@include background(linear-gradient(top left, #333, #0c0)); | |
} |
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 "compass"; | |
section { | |
@include clearfix; | |
} | |
.evil { | |
@include pie-clearfix; | |
} |
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
%error { | |
border: 1px #f00; | |
background-color: #fdd; | |
} | |
.seriousError { | |
@extend %error; | |
border-width: 3px; | |
} | |
.inputError { | |
@extend %error; |
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
#admin .tabbar a { | |
font-weight: bold; | |
} | |
#demo .overview .fakelink { | |
@extend a; | |
} |
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
.error { | |
border: 1px #f00; | |
background-color: #fdd; | |
} | |
.error.intrusion { | |
background-image: url("/image/hacked.png"); | |
} | |
.seriousError { | |
@extend .error; | |
border-width: 3px; |
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
.error { | |
border: 1px #f00; | |
background-color: #fdd; | |
} | |
.seriousError { | |
@extend .error; | |
border-width: 3px; | |
} |
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
@mixin respond-to($media) { | |
@if $media == handhelds { | |
@media only screen and (max-width: 479px) { @content; } | |
} | |
@else if $media == wide-handhelds { | |
@media only screen and (min-width: 480px) and (max-width: 767px) { @content; } | |
} | |
@else if $media == tablets { | |
@media only screen and (min-width: 768px) and (max-width: 959px) { @content; } | |
} |