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