phpvms/resources/sass/now-ui/now-ui-kit/_buttons.scss
2018-03-27 16:34:37 -05:00

159 lines
3.7 KiB
SCSS
Executable File

.btn{
border-width: $border-thick;
font-weight: $font-weight-normal;
font-size: $font-size-small;
line-height: $line-height;
border: none;
border-radius: $border-radius-small;
padding: $padding-btn-vertical $padding-btn-horizontal;
cursor: pointer;
@include btn-styles($default-color, $default-states-color);
&:hover,
&:focus{
@include opacity(1);
outline: 0 !important;
}
&:active,
&.active,
.open > &.dropdown-toggle {
@include box-shadow(none);
outline: 0 !important;
}
&.btn-icon {
// see above for color variations
border-radius: 50%;
font-size: $btn-icon-font-size;
height: $btn-icon-size;
margin: auto;
min-width: $btn-icon-size;
width: $btn-icon-size;
padding: 0;
overflow: hidden;
position: relative;
line-height: normal;
&.btn-simple{
padding: 0;
i.fa,
i.now-ui-icons{
line-height: $btn-icon-line-height + 0.2;
}
&.btn-icon-mini{
i.fa,
i.now-ui-icons{
line-height: $btn-icon-line-height - 0.2;
}
}
}
&.btn-icon-mini{
height: $btn-icon-size-mini;
min-width: $btn-icon-size-mini;
width: $btn-icon-size-mini;
.fa,
.now-ui-icons{
font-size: $btn-icon-font-size-mini;
line-height: $btn-icon-line-height - 0.2;
}
}
i.fa,
i.now-ui-icons{
line-height: $btn-icon-line-height;
}
i.now-ui-icons{
font-size: 22px;
}
}
&:not(.btn-icon) .now-ui-icons{
position: relative;
top: 1px;
}
}
// Apply the mixin to the buttons
//.btn-default { @include btn-styles($default-color, $default-states-color); }
.btn-primary { @include btn-styles($primary-color, $primary-states-color); }
.btn-success { @include btn-styles($success-color, $success-states-color); }
.btn-info { @include btn-styles($info-color, $info-states-color); }
.btn-warning { @include btn-styles($warning-color, $warning-states-color); }
.btn-danger { @include btn-styles($danger-color, $danger-states-color); }
.btn-neutral { @include btn-styles($white-color, $white-color); }
.btn{
&:disabled,
&[disabled],
&.disabled{
@include opacity(.5);
}
}
.btn-round{
border-width: $border-thin;
border-radius: $btn-round-radius !important;
padding: $padding-btn-vertical $padding-round-horizontal;
&.btn-simple{
padding: $padding-btn-vertical - 1 $padding-round-horizontal - 1;
}
}
.btn-simple{
border: $border;
border-color: $default-color;
padding: $padding-btn-vertical - 1 $padding-round-horizontal - 1;
background-color: $transparent-bg;
}
.btn-simple,
.btn-link{
&.disabled,
&:disabled,
&[disabled],
fieldset[disabled] & {
&,
&:hover,
&:focus,
&.focus,
&:active,
&.active {
background-color: $transparent-bg;
}
}
}
.btn-lg{
@include btn-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $border-radius-large);
}
.btn-sm{
@include btn-size($padding-small-vertical, $padding-small-horizontal, $font-size-base, $border-radius-small);
}
.btn-link{
border: $none;
padding: $padding-base-vertical $padding-base-horizontal;
background-color: $transparent-bg;
}
.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;
}