phpvms/public/assets/admin/vendor/sass/paper/_buttons.scss

115 lines
3.0 KiB
SCSS
Raw Normal View History

2017-08-18 07:26:48 +08:00
.btn,
.navbar .navbar-nav > li > a.btn{
border-radius: $border-radius-btn-base;
box-sizing: border-box;
2017-08-18 03:54:14 +08:00
border-width: $border-thick;
background-color: $transparent-bg;
2017-08-18 07:26:48 +08:00
font-size: $font-size-base;
font-weight: $font-weight-semi;
2017-08-18 03:54:14 +08:00
padding: $padding-base-vertical $padding-base-horizontal;
@include btn-styles($default-color, $default-states-color);
2017-08-18 07:26:48 +08:00
@include transition($fast-transition-time, linear);
2017-08-18 03:54:14 +08:00
&:hover,
&:focus{
outline: 0 !important;
}
&:active,
&.active,
.open > &.dropdown-toggle {
@include box-shadow(none);
outline: 0 !important;
}
&.btn-icon{
padding: $padding-base-vertical;
2017-08-18 07:26:48 +08:00
}
}
.btn-group .btn + .btn,
.btn-group .btn + .btn-group,
.btn-group .btn-group + .btn,
.btn-group .btn-group + .btn-group{
margin-left: -2px;
2017-08-18 03:54:14 +08:00
}
// Apply the mixin to the buttons
//.btn-default { @include btn-styles($default-color, $default-states-color); }
2017-08-18 07:26:48 +08:00
.navbar .navbar-nav > li > a.btn-primary, .btn-primary { @include btn-styles($primary-color, $primary-states-color); }
.navbar .navbar-nav > li > a.btn-success, .btn-success { @include btn-styles($success-color, $success-states-color); }
.navbar .navbar-nav > li > a.btn-info, .btn-info { @include btn-styles($info-color, $info-states-color); }
.navbar .navbar-nav > li > a.btn-warning, .btn-warning { @include btn-styles($warning-color, $warning-states-color); }
.navbar .navbar-nav > li > a.btn-danger, .btn-danger { @include btn-styles($danger-color, $danger-states-color); }
2017-08-18 03:54:14 +08:00
.btn-neutral {
@include btn-styles($white-color, $white-color);
2017-08-18 07:26:48 +08:00
&:hover,
&:focus{
color: $default-color;
}
2017-08-18 03:54:14 +08:00
&:active,
&.active,
.open > &.dropdown-toggle{
background-color: $white-color;
color: $default-color;
}
2017-08-18 07:26:48 +08:00
&.btn-fill{
color: $default-color;
}
2017-08-18 03:54:14 +08:00
&.btn-fill:hover,
&.btn-fill:focus{
2017-08-18 07:26:48 +08:00
color: $default-states-color;
2017-08-18 03:54:14 +08:00
}
&.btn-simple:active,
&.btn-simple.active{
background-color: transparent;
}
}
.btn{
&:disabled,
&[disabled],
&.disabled{
@include opacity(.5);
}
}
.btn-simple{
border: $none;
padding: $padding-base-vertical $padding-base-horizontal;
&.btn-icon{
padding: $padding-base-vertical;
}
}
.btn-lg{
2017-08-18 07:26:48 +08:00
@include btn-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $border-radius-btn-large, $line-height-small);
2017-08-18 03:54:14 +08:00
font-weight: $font-weight-normal;
}
.btn-sm{
2017-08-18 07:26:48 +08:00
@include btn-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $border-radius-btn-small, $line-height-small);
2017-08-18 03:54:14 +08:00
}
.btn-xs {
2017-08-18 07:26:48 +08:00
@include btn-size($padding-xs-vertical, $padding-xs-horizontal, $font-size-xs, $border-radius-btn-small, $line-height-small);
2017-08-18 03:54:14 +08:00
}
.btn-wd {
min-width: 140px;
}
.btn-group.select{
width: 100%;
}
.btn-group.select .btn{
text-align: left;
}
.btn-group.select .caret{
position: absolute;
top: 50%;
margin-top: -1px;
right: 8px;
}