1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-09-27 03:53:00 +02:00
bitwarden-desktop/src/scss/buttons.scss

118 lines
2.0 KiB
SCSS
Raw Normal View History

2018-04-11 19:58:58 +02:00
@import "variables.scss";
2018-01-29 18:14:19 +01:00
2021-12-20 15:47:17 +01:00
.btn,
.vault .footer button,
.modal-footer button {
border-radius: $border-radius;
padding: 7px 15px;
border: 1px solid #000000;
font-size: $font-size-base;
white-space: nowrap;
text-align: center;
cursor: pointer;
@include themify($themes) {
background-color: themed("buttonBackgroundColor");
border-color: themed("buttonBorderColor");
color: themed("buttonColor");
}
&.primary {
@include themify($themes) {
color: themed("buttonPrimaryColor");
}
}
&.danger {
@include themify($themes) {
color: themed("buttonDangerColor");
}
}
&:hover:not([disabled]) {
2018-02-01 03:13:42 +01:00
cursor: pointer;
2018-01-29 18:14:19 +01:00
2018-05-30 21:21:41 +02:00
@include themify($themes) {
2021-12-20 15:47:17 +01:00
background-color: darken(themed("buttonBackgroundColor"), 1.5%);
border-color: darken(themed("buttonBorderColor"), 17%);
color: darken(themed("buttonColor"), 10%);
2018-05-30 21:21:41 +02:00
}
2018-02-01 04:30:49 +01:00
&.primary {
2021-12-20 15:47:17 +01:00
@include themify($themes) {
color: darken(themed("buttonPrimaryColor"), 6%);
}
2018-02-01 04:30:49 +01:00
}
&.danger {
2021-12-20 15:47:17 +01:00
@include themify($themes) {
color: darken(themed("buttonDangerColor"), 6%);
}
2018-01-29 18:14:19 +01:00
}
2021-12-20 15:47:17 +01:00
}
2018-01-29 18:14:19 +01:00
2021-12-20 15:47:17 +01:00
&:focus:not([disabled]) {
cursor: pointer;
outline: 0;
2018-05-30 21:21:41 +02:00
2021-12-20 15:47:17 +01:00
@include themify($themes) {
background-color: darken(themed("buttonBackgroundColor"), 6%);
border-color: darken(themed("buttonBorderColor"), 25%);
2018-01-29 18:14:19 +01:00
}
2021-12-20 15:47:17 +01:00
}
2018-01-29 18:14:19 +01:00
2021-12-20 15:47:17 +01:00
&[disabled] {
opacity: 0.65;
cursor: default !important;
}
2018-01-31 05:34:45 +01:00
2021-12-20 15:47:17 +01:00
&.block {
display: block;
width: 100%;
}
2018-01-31 23:58:06 +01:00
2021-12-20 15:47:17 +01:00
&.link {
border: none !important;
background: none !important;
2018-04-10 06:05:20 +02:00
2021-12-20 15:47:17 +01:00
&:focus {
text-decoration: underline;
2018-01-31 23:58:06 +01:00
}
2021-12-20 15:47:17 +01:00
}
2018-01-29 18:14:19 +01:00
}
.action-buttons {
2021-12-20 15:47:17 +01:00
.btn {
&:focus {
outline: auto;
}
2021-12-20 15:47:17 +01:00
}
}
.btn-submit {
2021-12-20 15:47:17 +01:00
position: relative;
overflow: hidden;
.fa-spinner {
position: absolute;
display: none;
align-items: center;
justify-content: center;
bottom: 0;
top: 0;
left: 0;
right: 0;
}
&:disabled:not(.manual),
&.loading {
.fa-spinner {
2021-12-20 15:47:17 +01:00
display: flex;
}
2021-12-20 15:47:17 +01:00
span {
visibility: hidden;
}
2021-12-20 15:47:17 +01:00
}
}