Skip to content

Instantly share code, notes, and snippets.

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