Skip to content

Commit fb27c3f

Browse files
committed
Merge pull request #6 from bivihoba/hotfix-css-properties-order
Fix CSS properties order
2 parents c5427c6 + 8c3e0b7 commit fb27c3f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/regular.lodash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<%= selectors.join(',\n') %> { background-image: <%= getBackgroundImageUrl(images[0]) %>; background: no-repeat; }
1+
<%= selectors.join(',\n') %> { background: no-repeat; background-image: <%= getBackgroundImageUrl(images[0]) %>; }
22
<% _.forEach(images, function(image) { %>
33
.<%= image.selector %> { background-position: <%= getBackgroundPosition(image) %>; width: <%= image.coordinates.width %>px; height: <%= image.coordinates.height %>px; }<% }); %>

templates/retina.lodash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
2-
<%= selectors.join(',\n') %> { background-image: <%= getBackgroundImageUrl(images[0]) %>; background: no-repeat; background-size: <%= getBackgroundSize(images[0]) %>; }
2+
<%= selectors.join(',\n') %> { background: no-repeat; background-image: <%= getBackgroundImageUrl(images[0]) %>; background-size: <%= getBackgroundSize(images[0]) %>; }
33
<% _.forEach(images, function(image) { %>
44
.<%= image.selector %> { background-position: <%= getBackgroundPosition(image) %>; width: <%= image.coordinates.width / image.ratio %>px; height: <%= image.coordinates.height / image.ratio %>px; }<% }); %>
55
}

0 commit comments

Comments
 (0)