Skip to content

Commit

Permalink
Fixed stylesheet expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
twolfson committed Mar 19, 2016
1 parent cb32e88 commit 68b104c
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
},
"dependencies": {
"async": "~1.5.0",
"spritesheet-templates": "~10.1.0",
"spritesheet-templates": "~10.1.1",
"spritesmith": "~3.1.0",
"underscore": "~1.4.2",
"url2": "1.0.0"
Expand Down
13 changes: 10 additions & 3 deletions src-test/expected_files/sprite_positions.basic.styl
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,20 @@ The provided mixins are intended to be used with the array-like variables
sprite($icon_email)
}
Here are example usages in HTML:
Example usage in HTML:
`display: block` sprite:
<div class="icon-home"></div>
`display: inline-block` sprite:
<img class="icon-home" />
To change `display` (e.g. `display: inline-block;`), we suggest using a common CSS class:
// CSS
.icon {
display: inline-block;
}
// HTML
<i class="icon icon-home"></i>
*/
spriteWidth($sprite) {
width: $sprite[4];
Expand Down
17 changes: 12 additions & 5 deletions src-test/expected_files/sprite_positions.cssOpts.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
/*
Icon classes can be used entirely standalone. They are named after their original file names.
```html
<!-- `display: block` sprite -->
Example usage in HTML:
`display: block` sprite:
<div class="icon-home"></div>
<!-- `display: inline-block` sprite -->
<img class="icon-home" />
```
To change `display` (e.g. `display: inline-block;`), we suggest using a common CSS class:
// CSS
.icon {
display: inline-block;
}
// HTML
<i class="icon icon-home"></i>
*/
#container .sprite1 {
background-image: url(sprite.cssOpts.png);
Expand Down
13 changes: 10 additions & 3 deletions src-test/expected_files/sprite_positions.cssVarMap.styl
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,20 @@ The provided mixins are intended to be used with the array-like variables
sprite($icon_email)
}
Here are example usages in HTML:
Example usage in HTML:
`display: block` sprite:
<div class="icon-home"></div>
`display: inline-block` sprite:
<img class="icon-home" />
To change `display` (e.g. `display: inline-block;`), we suggest using a common CSS class:
// CSS
.icon {
display: inline-block;
}
// HTML
<i class="icon icon-home"></i>
*/
spriteWidth($sprite) {
width: $sprite[4];
Expand Down
13 changes: 10 additions & 3 deletions src-test/expected_files/sprite_positions.retina.styl
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,20 @@ The provided mixins are intended to be used with the array-like variables
sprite($icon_email)
}
Here are example usages in HTML:
Example usage in HTML:
`display: block` sprite:
<div class="icon-home"></div>
`display: inline-block` sprite:
<img class="icon-home" />
To change `display` (e.g. `display: inline-block;`), we suggest using a common CSS class:
// CSS
.icon {
display: inline-block;
}
// HTML
<i class="icon icon-home"></i>
*/
spriteWidth($sprite) {
width: $sprite[4];
Expand Down
13 changes: 10 additions & 3 deletions src-test/expected_files/sprite_positions.retinaMapped.styl
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,20 @@ The provided mixins are intended to be used with the array-like variables
sprite($icon_email)
}
Here are example usages in HTML:
Example usage in HTML:
`display: block` sprite:
<div class="icon-home"></div>
`display: inline-block` sprite:
<img class="icon-home" />
To change `display` (e.g. `display: inline-block;`), we suggest using a common CSS class:
// CSS
.icon {
display: inline-block;
}
// HTML
<i class="icon icon-home"></i>
*/
spriteWidth($sprite) {
width: $sprite[4];
Expand Down

0 comments on commit 68b104c

Please sign in to comment.