Created
March 14, 2012 16:55
-
-
Save KitaitiMakoto/2037845 to your computer and use it in GitHub Desktop.
SCSS拡張のCompassで、background: url(...);の後ろにパラメーターを付ける ref: http://qiita.com/items/3180
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
compass watch --sass-dir=sass --css-dir=css --images-dir=images |
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
p { | |
background: image_url('cats.png') no-repeat; | |
} |
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
p { | |
background: url('/images/cats.png?1331742581') no-repeat; | |
} |
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
@import "compass"; /* @include border-radius(2em) のために必要 */ | |
p { | |
height: 50em; | |
@include border-radius(2em); | |
background: image_url('cats.png') no-repeat; | |
} |
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
p { | |
height: 50em; | |
-webkit-border-radius: 2em; | |
-moz-border-radius: 2em; | |
-ms-border-radius: 2em; | |
-o-border-radius: 2em; | |
border-radius: 2em; | |
background: url('/images/cats.png?1331742581') no-repeat; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment