Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix CSS properties order
Shorthand property for background on the first place.
  • Loading branch information
bivihoba committed May 29, 2015
commit 8c3e0b72f2b7efa0f7d682d4d90b92e60f39f050
2 changes: 1 addition & 1 deletion templates/regular.lodash
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<%= selectors.join(',\n') %> { background-image: <%= getBackgroundImageUrl(images[0]) %>; background: no-repeat; }
<%= selectors.join(',\n') %> { background: no-repeat; background-image: <%= getBackgroundImageUrl(images[0]) %>; }
<% _.forEach(images, function(image) { %>
.<%= image.selector %> { background-position: <%= getBackgroundPosition(image) %>; width: <%= image.coordinates.width %>px; height: <%= image.coordinates.height %>px; }<% }); %>
2 changes: 1 addition & 1 deletion templates/retina.lodash
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
<%= selectors.join(',\n') %> { background-image: <%= getBackgroundImageUrl(images[0]) %>; background: no-repeat; background-size: <%= getBackgroundSize(images[0]) %>; }
<%= selectors.join(',\n') %> { background: no-repeat; background-image: <%= getBackgroundImageUrl(images[0]) %>; background-size: <%= getBackgroundSize(images[0]) %>; }
<% _.forEach(images, function(image) { %>
.<%= image.selector %> { background-position: <%= getBackgroundPosition(image) %>; width: <%= image.coordinates.width / image.ratio %>px; height: <%= image.coordinates.height / image.ratio %>px; }<% }); %>
}