mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
49 lines
873 B
SCSS
49 lines
873 B
SCSS
@import "../../globals.core";
|
|
|
|
// Outline 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) {
|
|
|
|
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-outline-#{$color-name} {
|
|
|
|
$fg-color: color-shade($color-value, 5%);
|
|
@include button-outline($fg-color);
|
|
|
|
}
|
|
|
|
}
|