Changed the background property into
background-image property in order to allow one to set a background-color; previously, background-color was overriden by the background style. Also added background-repeat property.
This commit is contained in:
parent
234304d713
commit
205f059adb
@ -42,7 +42,8 @@ $<%= name %>-inline: false !default;
|
||||
}
|
||||
} @else {
|
||||
#{$<%= name %>-sprite-base-class} {
|
||||
background: $<%= name %>-sprites no-repeat;
|
||||
background-image: $<%= name %>-sprites;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
}
|
||||
//sass functions to return the dimensions of a sprite image as units
|
||||
@ -78,4 +79,4 @@ $<%= name %>-inline: false !default;
|
||||
// Generates a class for each sprited image.
|
||||
@mixin all-<%= name %>-sprites($dimensions: $<%= name %>-sprite-dimensions, $prefix: sprite-map-name($<%= name %>-sprites), $offset-x: 0, $offset-y: 0) {
|
||||
@include <%= name %>-sprites(<%= sprite_names.join(" ") %>, $dimensions, $prefix, $offset-x, $offset-y);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user