Skip to content

Instantly share code, notes, and snippets.

@akushnikov
Created November 3, 2015 14:57
Show Gist options
  • Save akushnikov/8d6e4df120620052c348 to your computer and use it in GitHub Desktop.
Save akushnikov/8d6e4df120620052c348 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// 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()
.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