1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00
Files
tabler/scss/ui/_buttons.scss
2020-01-16 10:57:33 +01:00

131 lines
2.2 KiB
SCSS

.btn-secondary {
@include button-variant($white, $border-color, $dark);
background-image: linear-gradient(-180deg, rgba(0, 0, 0, 0), rgba($dark, .04) 100%);
box-shadow: none !important;
.bg-dark &,
.theme-dark & {
@include button-variant($min-white, $border-color, $light, rgba(0, 0, 0, 0), $border-color, $light);
background-image: none;
}
}
.btn-outlined-secondary {
@include button-outline-variant($white, $border-color, $dark);
}
.btn {
font-weight: 600;
&:not([class^="btn-outline"]):not([class*=" btn-outline"]):not([class^="btn-ghost"]):not([class*=" btn-ghost"]) {
&:not(.btn-secondary) {
text-shadow: 1px 1px 0 rgba(0, 0, 0, .02);
}
&:not(:focus):not(.focus) {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .05), inset 0 2px 0 -1px rgba(255, 255, 255, .1);
}
svg.icon {
filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, .05));
}
}
&:disabled,
&.disabled {
cursor: not-allowed;
}
.icon {
margin: 0 .25em 0 -.25em;
font-size: 1.2em;
vertical-align: sub;
}
.avatar {
width: 1.25rem;
height: 1.25rem;
vertical-align: text-top;
margin: 0 .5em 0 -.25em;
}
.icon-right {
margin: 0 -.25em 0 .5em;
}
svg.icon {
width: 1em;
height: 1em;
stroke-width: 1.5;
}
}
.btn-lg {
svg.icon {
stroke-width: 2;
}
}
.btn-pill {
padding-right: 1.5em;
padding-left: 1.5em;
border-radius: 10rem;
}
.btn-icon {
min-width: add($btn-line-height * $btn-font-size + $btn-padding-y * 2, $btn-border-width * 2);
.icon {
margin: 0 -1em;
}
}
// stylelint-disable declaration-no-important
.btn-link {
box-shadow: none !important;
}
.btn-square {
border-radius: 0;
}
.btn-list {
display: flex;
flex-wrap: wrap;
margin-bottom: -.5rem;
margin-right: -.5rem;
> .btn,
> .dropdown {
margin-bottom: .5rem;
margin-right: .5rem;
}
}
.btn-options {
display: flex;
align-items: center;
padding: 0;
color: $text-muted;
cursor: pointer;
background: none;
border: none;
&:focus {
outline: 0;
}
.icon {
width: 1rem;
height: 1rem;
}
}
.btn-floating {
position: fixed;
z-index: $zindex-fixed;
bottom: 1.5rem;
right: 1.5rem;
border-radius: 50%;
}