Created
November 3, 2015 14:57
-
-
Save akushnikov/8d6e4df120620052c348 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$buttons: ( | |
('edit', -93px, -184px), | |
('remove', -93px, -207px), | |
('tune', -93px, -314px) | |
); | |
@mixin generate-buttons() { | |
@each $btn in $buttons { | |
.cm-flat-icons .cm-sprite-btn-#{nth($btn, 1)} img, | |
.cm-flat-icons .cm-action-icon.cm-action-#{nth($btn, 1)} { | |
background-position: nth($btn, 2) nth($btn, 3); | |
} | |
} | |
} | |
@include generate-buttons() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.cm-flat-icons .cm-sprite-btn-edit img, | |
.cm-flat-icons .cm-action-icon.cm-action-edit { | |
background-position: -93px -184px; | |
} | |
.cm-flat-icons .cm-sprite-btn-remove img, | |
.cm-flat-icons .cm-action-icon.cm-action-remove { | |
background-position: -93px -207px; | |
} | |
.cm-flat-icons .cm-sprite-btn-tune img, | |
.cm-flat-icons .cm-action-icon.cm-action-tune { | |
background-position: -93px -314px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment