88 lines
1.5 KiB
SCSS
88 lines
1.5 KiB
SCSS
.btn {
|
|
@if $theme {
|
|
background: $button-color;
|
|
@include Elevation(1);
|
|
|
|
&:hover {
|
|
background: darken($button-color, 5%);
|
|
}
|
|
|
|
&:active {
|
|
background: lighten($button-color, 5%);
|
|
}
|
|
}
|
|
|
|
@else {
|
|
position: relative;
|
|
color: black;
|
|
border: 0;
|
|
margin: .3rem;
|
|
padding: .5rem;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
transition: .05s background-color linear;
|
|
}
|
|
}
|
|
|
|
.btn-primary {
|
|
@if $theme {
|
|
background: $primary !important;
|
|
color: $on-primary !important;
|
|
}
|
|
|
|
@else {
|
|
&:hover {
|
|
filter: brightness(.95);
|
|
}
|
|
|
|
&:active {
|
|
filter: brightness(1.05);
|
|
}
|
|
}
|
|
}
|
|
|
|
.btn-secondary {
|
|
@if $theme {
|
|
background: $secondary !important;
|
|
color: $on-primary !important;
|
|
}
|
|
|
|
@else {
|
|
|
|
&:hover {
|
|
filter: brightness(.95);
|
|
}
|
|
|
|
&:active {
|
|
filter: brightness(1.05);
|
|
}
|
|
}
|
|
}
|
|
|
|
.fab {
|
|
@if $theme {
|
|
@include Elevation(6);
|
|
background: $button-color;
|
|
}
|
|
|
|
@else {
|
|
|
|
border-radius: 50%;
|
|
width: 2.5rem;
|
|
height: 2.5rem;
|
|
margin: .5rem;
|
|
line-height: 1.5rem;
|
|
font-size: 1.5rem;
|
|
|
|
>svg {
|
|
height: 1.5rem;
|
|
width: 1.5rem;
|
|
}
|
|
|
|
position: fixed;
|
|
bottom: 1.5rem;
|
|
right: 1.5rem;
|
|
|
|
border: none;
|
|
}
|
|
} |