2019-09-12 23:48:41 +08:00
|
|
|
.btn,
|
|
|
|
.navbar .navbar-nav > a.btn{
|
2017-07-28 20:13:52 +08:00
|
|
|
border-width: $border-thick;
|
|
|
|
font-weight: $font-weight-normal;
|
|
|
|
font-size: $font-size-small;
|
|
|
|
line-height: $line-height;
|
2019-09-12 23:48:41 +08:00
|
|
|
margin: 10px 1px;
|
2017-07-28 20:13:52 +08:00
|
|
|
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
|
2019-09-12 23:48:41 +08:00
|
|
|
height: $btn-icon-size-regular;
|
|
|
|
min-width: $btn-icon-size-regular;
|
|
|
|
width: $btn-icon-size-regular;
|
2017-07-28 20:13:52 +08:00
|
|
|
padding: 0;
|
2019-09-12 23:48:41 +08:00
|
|
|
font-size: $btn-icon-font-size-regular;
|
2017-07-28 20:13:52 +08:00
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
line-height: normal;
|
|
|
|
|
2019-09-12 23:48:41 +08:00
|
|
|
&[class*="btn-outline-"]{
|
2017-07-28 20:13:52 +08:00
|
|
|
padding: 0;
|
2019-09-12 23:48:41 +08:00
|
|
|
}
|
2017-07-28 20:13:52 +08:00
|
|
|
|
2019-09-12 23:48:41 +08:00
|
|
|
&.btn-sm{
|
|
|
|
height: $btn-icon-size-small;
|
|
|
|
min-width: $btn-icon-size-small;
|
|
|
|
width: $btn-icon-size-small;
|
2017-07-28 20:13:52 +08:00
|
|
|
|
2019-09-12 23:48:41 +08:00
|
|
|
i.fab,
|
|
|
|
i.now-ui-icons{
|
|
|
|
font-size: $btn-icon-font-size-small;
|
2017-07-28 20:13:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-12 23:48:41 +08:00
|
|
|
&.btn-lg{
|
|
|
|
height: $btn-icon-size-lg;
|
|
|
|
min-width: $btn-icon-size-lg;
|
|
|
|
width: $btn-icon-size-lg;
|
2017-07-28 20:13:52 +08:00
|
|
|
|
2019-09-12 23:48:41 +08:00
|
|
|
i.now-ui-icons,
|
|
|
|
i.fab{
|
|
|
|
font-size: $btn-icon-font-size-lg;
|
2017-07-28 20:13:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-12 23:48:41 +08:00
|
|
|
&:not(.btn-footer) i.now-ui-icons,
|
|
|
|
&:not(.btn-footer) i.fab{
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
transform: translate(-12px, -12px);
|
|
|
|
line-height: 1.5626rem;
|
|
|
|
width: 23px;
|
2017-07-28 20:13:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.btn-icon) .now-ui-icons{
|
|
|
|
position: relative;
|
|
|
|
top: 1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Apply the mixin to the buttons
|
2019-09-12 23:48:41 +08:00
|
|
|
// .btn-default { @include btn-styles($default-color, $default-states-color); }
|
2017-07-28 20:13:52 +08:00
|
|
|
.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); }
|
|
|
|
|
2019-09-12 23:48:41 +08:00
|
|
|
.btn-outline-primary { @include outline-buttons($primary-color, $primary-states-color); }
|
|
|
|
.btn-outline-success { @include outline-buttons($success-color, $success-states-color); }
|
|
|
|
.btn-outline-info { @include outline-buttons($info-color, $info-states-color); }
|
|
|
|
.btn-outline-warning { @include outline-buttons($warning-color, $warning-states-color); }
|
|
|
|
.btn-outline-danger { @include outline-buttons($danger-color, $danger-states-color); }
|
|
|
|
.btn-outline-default { @include outline-buttons($default-color, $default-states-color); }
|
|
|
|
|
2017-07-28 20:13:52 +08:00
|
|
|
.btn-round{
|
|
|
|
border-width: $border-thin;
|
|
|
|
border-radius: $btn-round-radius !important;
|
|
|
|
padding: $padding-btn-vertical $padding-round-horizontal;
|
|
|
|
|
2019-09-12 23:48:41 +08:00
|
|
|
&[class*="btn-outline-"]{
|
2017-07-28 20:13:52 +08:00
|
|
|
padding: $padding-btn-vertical - 1 $padding-round-horizontal - 1;
|
|
|
|
}
|
|
|
|
}
|
2019-09-12 23:48:41 +08:00
|
|
|
[class*="btn-outline-"]{
|
2017-07-28 20:13:52 +08:00
|
|
|
border: $border;
|
|
|
|
padding: $padding-btn-vertical - 1 $padding-round-horizontal - 1;
|
|
|
|
background-color: $transparent-bg;
|
|
|
|
}
|
|
|
|
|
2019-09-12 23:48:41 +08:00
|
|
|
[class*="btn-outline-"],
|
2017-07-28 20:13:52 +08:00
|
|
|
.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;
|
|
|
|
}
|
2019-09-12 23:48:41 +08:00
|
|
|
|
|
|
|
.btn-facebook {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&focus,
|
|
|
|
&:active,
|
|
|
|
&:active:focus {
|
|
|
|
color: $social-facebook !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-twitter {
|
|
|
|
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&focus,
|
|
|
|
&:active,
|
|
|
|
&:active:focus {
|
|
|
|
color: $social-twitter !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-google {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&focus,
|
|
|
|
&:active,
|
|
|
|
&:active:focus {
|
|
|
|
color: $social-google !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-github {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&focus,
|
|
|
|
&:active,
|
|
|
|
&:active:focus {
|
|
|
|
color: $social-github !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-linkedin {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&focus,
|
|
|
|
&:active,
|
|
|
|
&:active:focus {
|
|
|
|
color: $social-linkedin !important;
|
|
|
|
}
|
|
|
|
}
|