Files
Adam Bradley 4d84cdae83 refactor(hover): use :hover:not(.disable-hover)
Less CSS specificity issues. Disabling hover on mobile prevents button
flickers.
2015-09-24 13:31:35 -05:00

42 lines
781 B
SCSS

// Clear Button
// --------------------------------------------------
button[clear],
[button][clear] {
border-color: transparent;
background: transparent;
color: darken-or-lighten($button-color);
&.activated {
opacity: 0.4;
}
&:hover:not(.disable-hover) {
opacity: 0.6;
color: darken-or-lighten($button-color);
}
}
// Generate Clear Button Colors
// --------------------------------------------------
@each $color-name, $color-value in auxiliary-colors() {
$fg-color: darken-or-lighten($color-value);
button[clear][#{$color-name}],
[button][clear][#{$color-name}] {
border-color: transparent;
background: transparent;
color: $fg-color;
&:hover:not(.disable-hover) {
color: darken-or-lighten($fg-color);
}
}
}