@@ -58,7 +58,7 @@ For example, given you have the following setup:
58
58
public/
59
59
images/
60
60
sprites/
61
- black_icons /
61
+ black-icons /
62
62
stop.png
63
63
go.png
64
64
back.png
@@ -76,7 +76,7 @@ Running `sprite` with no configuration file will generate the following new file
76
76
sprites.css
77
77
images/
78
78
sprites/
79
- black_icons .png
79
+ black-icons .png
80
80
weather.png
81
81
82
82
Any folders within ` public/images/sprites/ ` will get compressed into a merged image file at the same
@@ -128,41 +128,41 @@ you can define any number of destination image files.
128
128
align: horizontal
129
129
spaced_by: 50
130
130
sources:
131
- - icons/blue_stars /small.png
132
- - icons/blue_stars /medium.png
133
- - icons/blue_stars /large.png
134
- - icons/blue_stars /xlarge.png
131
+ - icons/blue-stars /small.png
132
+ - icons/blue-stars /medium.png
133
+ - icons/blue-stars /large.png
134
+ - icons/blue-stars /xlarge.png
135
135
136
- # creates a public/images/sprites/green_stars .jpg image with
137
- # all the jpg files contained within /images/icons/green_stars /
136
+ # creates a public/images/sprites/green-stars .jpg image with
137
+ # all the gif files contained within /images/icons/green-stars /
138
138
- name: green_stars
139
- format: jpg
139
+ format: png
140
140
align: vertical
141
141
spaced_by: 50
142
142
sources:
143
- - icons/green_stars /*.jpg
143
+ - icons/green-stars /*.gif
144
144
145
145
### Style Settings ###
146
146
147
147
By default, it will use with ` style: css ` and generate the file at ` public/stylesheets/sprites.css `
148
148
149
- .sprites.blue_stars_small {
150
- background: url('http://github.com/images/icons/%3Cspan%20class=%22x%20x-first%20x-last%22%3Eblue_stars%3C/span%3E/small.png') no-repeat 0px 0px;
149
+ .sprites.blue-stars-small {
150
+ background: url('http://github.com/images/icons/%3Cspan%20class=%22x%20x-first%20x-last%22%3Eblue-stars%3C/span%3E/small.png') no-repeat 0px 0px;
151
151
width: 12px;
152
152
height: 6px;
153
153
}
154
- .sprites.blue_stars_medium {
155
- background: url('http://github.com/images/icons/%3Cspan%20class=%22x%20x-first%20x-last%22%3Eblue_stars%3C/span%3E/medium.png') no-repeat 0px 6px;
154
+ .sprites.blue-stars-medium {
155
+ background: url('http://github.com/images/icons/%3Cspan%20class=%22x%20x-first%20x-last%22%3Eblue-stars%3C/span%3E/medium.png') no-repeat 0px 6px;
156
156
width: 30px;
157
157
height: 15px;
158
158
}
159
- .sprites.blue_stars_large {
160
- background: url('http://github.com/images/icons/%3Cspan%20class=%22x%20x-first%20x-last%22%3Eblue_stars%3C/span%3E/large.png') no-repeat 0px 21px;
159
+ .sprites.blue-stars-large {
160
+ background: url('http://github.com/images/icons/%3Cspan%20class=%22x%20x-first%20x-last%22%3Eblue-stars%3C/span%3E/large.png') no-repeat 0px 21px;
161
161
width: 60px;
162
162
height: 30px;
163
163
}
164
- .sprites.blue_stars_xlarge {
165
- background: url('http://github.com/images/icons/%3Cspan%20class=%22x%20x-first%20x-last%22%3Eblue_stars%3C/span%3E/xlarge.png') no-repeat 0px 96px;
164
+ .sprites.blue-stars-xlarge {
165
+ background: url('http://github.com/images/icons/%3Cspan%20class=%22x%20x-first%20x-last%22%3Eblue-stars%3C/span%3E/xlarge.png') no-repeat 0px 96px;
166
166
width: 100px;
167
167
height: 75px;
168
168
}
@@ -171,10 +171,10 @@ We also support mixin syntax via `style: sass_mixin`. If set, sprite will only g
171
171
172
172
// you can then use your sprite like this
173
173
.largebluestar
174
- +sprite("blue_stars ", "large")
174
+ +sprite("blue-stars ", "large")
175
175
176
176
.mysmallbluestar
177
- +sprite("blue_stars ", "small")
177
+ +sprite("blue-stars ", "small")
178
178
179
179
## ABOUT ` sprite ` ##
180
180
0 commit comments