web-apps/apps/presentationeditor/mobile/resources/sass/_application-mixins.scss

19 lines
580 B
SCSS
Raw Normal View History

2016-03-11 00:48:53 +00:00
@mixin application-icon-normal($name, $index) {
.x-button-icon.#{$name},
.list-icon.#{$name} {
background-image: url($icons-default-path);
background-color: transparent;
background-position: 0 -1 * $index * $icons-default-size;
background-size: $icons-default-image-width $icons-default-image-height;
}
.x-button-pressing,
.x-button-pressed,
.x-button-active,
.x-item-pressed {
.x-button-icon.#{$name},
.list-icon.#{$name} {
background-position: -1 * $icons-default-size -1 * $index * $icons-default-size;
}
}
}