mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
49 lines
752 B
SCSS
49 lines
752 B
SCSS
|
|
// Clear Button
|
|
// --------------------------------------------------
|
|
|
|
button,
|
|
[button] {
|
|
|
|
&[clear] {
|
|
border-color: transparent;
|
|
background: transparent;
|
|
color: darken-or-lighten($button-color);
|
|
|
|
&.activated {
|
|
opacity: 0.4;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
// Clear Button Color Mixin
|
|
// --------------------------------------------------
|
|
|
|
@mixin button-clear($fg-color) {
|
|
|
|
&[clear] {
|
|
border-color: transparent;
|
|
background: transparent;
|
|
color: $fg-color;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
// Generate Clear Button Colors
|
|
// --------------------------------------------------
|
|
|
|
@each $color, $value in auxiliary-colors() {
|
|
|
|
button[#{$color}],
|
|
[button][#{$color}] {
|
|
|
|
$fg-color: darken-or-lighten($value);
|
|
@include button-clear($fg-color);
|
|
|
|
}
|
|
|
|
}
|