mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
78 lines
1.7 KiB
SCSS
78 lines
1.7 KiB
SCSS
.button {
|
|
position: relative;
|
|
display: inline-block;
|
|
margin: 0;
|
|
padding: $button-padding;
|
|
border-width: $button-border-width;
|
|
border-style: solid;
|
|
border-radius: $button-border-radius;
|
|
color: $button-color;
|
|
vertical-align: middle;
|
|
text-align: center;
|
|
font-size: $button-font-size;
|
|
cursor: pointer;
|
|
|
|
&.button-icon {
|
|
border: none;
|
|
background: none;
|
|
}
|
|
|
|
&.button-block {
|
|
display: block;
|
|
margin: $button-block-margin;
|
|
}
|
|
|
|
&.button-default {
|
|
@include button-style($button-default-bg, $buttonDefaultBorder, $gray-dark);
|
|
}
|
|
&.button-secondary {
|
|
@include button-style($button-secondary-bg, $button-secondary-border, $gray-dark);
|
|
}
|
|
&.button-primary {
|
|
@include button-style($button-primary-bg, $button-primary-border, $white);
|
|
}
|
|
&.button-info {
|
|
@include button-style($button-info-bg, $button-info-border, $white);
|
|
}
|
|
&.button-success {
|
|
@include button-style($button-success-bg, $button-success-border, $white);
|
|
}
|
|
&.button-warning {
|
|
@include button-style($button-warning-bg, $button-warning-border, $white);
|
|
}
|
|
&.button-danger {
|
|
@include button-style($button-danger-bg, $buttonDangerBorder, $white);
|
|
}
|
|
&.button-dark {
|
|
@include button-style($button-dark-bg, $button-dark-border, $white);
|
|
}
|
|
|
|
&.button-clear {
|
|
border: none;
|
|
background: none;
|
|
padding: $button-clear-padding;
|
|
}
|
|
|
|
&.button-icon {
|
|
border: none;
|
|
background: none;
|
|
&:active, &.active {
|
|
text-shadow: 0px 0px 10px #fff;
|
|
box-shadow: none;
|
|
background: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
a.button {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.button-transparent {
|
|
background: transparent;
|
|
}
|
|
|
|
.button-borderless [class^="icon-"] {
|
|
font-size: 24px;
|
|
}
|