1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-27 08:35:22 +00:00
webvirtcloud/dev/scss/bootstrap/_buttons.scss

112 lines
2.2 KiB
SCSS
Raw Normal View History

2020-05-19 16:53:54 +00:00
//
// Base styles
//
.btn {
display: inline-block;
font-family: $btn-font-family;
font-weight: $btn-font-weight;
line-height: $btn-line-height;
2020-05-19 16:53:54 +00:00
color: $body-color;
text-align: center;
text-decoration: if($link-decoration == none, null, none);
white-space: $btn-white-space;
vertical-align: middle;
cursor: if($enable-button-pointers, pointer, null);
2020-05-19 16:53:54 +00:00
user-select: none;
background-color: transparent;
border: $btn-border-width solid transparent;
@include button-size($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-border-radius);
2020-05-19 16:53:54 +00:00
@include transition($btn-transition);
&:hover {
2020-05-19 16:53:54 +00:00
color: $body-color;
text-decoration: if($link-hover-decoration == underline, none, null);
2020-05-19 16:53:54 +00:00
}
.btn-check:focus + &,
&:focus {
2020-05-19 16:53:54 +00:00
outline: 0;
box-shadow: $btn-focus-box-shadow;
}
.btn-check:checked + &,
.btn-check:active + &,
&:active,
&.active {
@include box-shadow($btn-active-box-shadow);
2020-05-19 16:53:54 +00:00
&:focus {
@include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
2020-05-19 16:53:54 +00:00
}
}
&:disabled,
&.disabled,
fieldset:disabled & {
pointer-events: none;
opacity: $btn-disabled-opacity;
@include box-shadow(none);
}
2020-05-19 16:53:54 +00:00
}
//
// Alternate buttons
//
// scss-docs-start btn-variant-loops
2020-05-19 16:53:54 +00:00
@each $color, $value in $theme-colors {
.btn-#{$color} {
@include button-variant($value, $value);
}
}
@each $color, $value in $theme-colors {
.btn-outline-#{$color} {
@include button-outline-variant($value);
}
}
// scss-docs-end btn-variant-loops
2020-05-19 16:53:54 +00:00
//
// Link buttons
//
// Make a button look and behave like a link
.btn-link {
font-weight: $font-weight-normal;
color: $btn-link-color;
2020-05-19 16:53:54 +00:00
text-decoration: $link-decoration;
&:hover {
color: $btn-link-hover-color;
2020-05-19 16:53:54 +00:00
text-decoration: $link-hover-decoration;
}
&:focus {
2020-05-19 16:53:54 +00:00
text-decoration: $link-hover-decoration;
}
&:disabled,
&.disabled {
color: $btn-link-disabled-color;
}
// No need for an active state here
}
//
// Button Sizes
//
.btn-lg {
@include button-size($btn-padding-y-lg, $btn-padding-x-lg, $btn-font-size-lg, $btn-border-radius-lg);
2020-05-19 16:53:54 +00:00
}
.btn-sm {
@include button-size($btn-padding-y-sm, $btn-padding-x-sm, $btn-font-size-sm, $btn-border-radius-sm);
2020-05-19 16:53:54 +00:00
}