bitwarden-estensione-browser/src/popup/scss/buttons.scss

102 lines
1.8 KiB
SCSS
Raw Normal View History

2021-10-01 15:55:53 +02:00
@import "variables.scss";
.btn {
2021-12-21 15:43:35 +01:00
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]) {
2021-10-01 15:55:53 +02:00
cursor: pointer;
@include themify($themes) {
2021-12-21 15:43:35 +01:00
background-color: darken(themed("buttonBackgroundColor"), 1.5%);
border-color: darken(themed("buttonBorderColor"), 17%);
color: darken(themed("buttonColor"), 10%);
2021-10-01 15:55:53 +02:00
}
&.primary {
2021-12-21 15:43:35 +01:00
@include themify($themes) {
color: darken(themed("buttonPrimaryColor"), 6%);
}
2021-10-01 15:55:53 +02:00
}
&.danger {
2021-12-21 15:43:35 +01:00
@include themify($themes) {
color: darken(themed("buttonDangerColor"), 6%);
}
2021-10-01 15:55:53 +02:00
}
2021-12-21 15:43:35 +01:00
}
2021-10-01 15:55:53 +02:00
2021-12-21 15:43:35 +01:00
&:focus:not([disabled]) {
cursor: pointer;
outline: 0;
2021-10-01 15:55:53 +02:00
2021-12-21 15:43:35 +01:00
@include themify($themes) {
background-color: darken(themed("buttonBackgroundColor"), 6%);
border-color: darken(themed("buttonBorderColor"), 25%);
2021-10-01 15:55:53 +02:00
}
2021-12-21 15:43:35 +01:00
}
2021-10-01 15:55:53 +02:00
2021-12-21 15:43:35 +01:00
&[disabled] {
opacity: 0.65;
cursor: default !important;
}
2021-10-01 15:55:53 +02:00
2021-12-21 15:43:35 +01:00
&.block {
display: block;
width: 100%;
}
2021-10-01 15:55:53 +02:00
2021-12-21 15:43:35 +01:00
&.link,
&.neutral {
border: none !important;
background: none !important;
2021-10-01 15:55:53 +02:00
2021-12-21 15:43:35 +01:00
&:focus {
text-decoration: underline;
2021-10-01 15:55:53 +02:00
}
2021-12-21 15:43:35 +01:00
}
2021-10-01 15:55:53 +02:00
}
.action-buttons {
2021-12-21 15:43:35 +01:00
.btn {
&:focus {
outline: auto;
2021-10-01 15:55:53 +02:00
}
2021-12-21 15:43:35 +01:00
}
2021-10-01 15:55:53 +02:00
}
button.box-content-row {
2021-12-21 15:43:35 +01:00
display: block;
width: 100%;
text-align: left;
2021-10-01 15:55:53 +02:00
}
button {
2021-12-21 15:43:35 +01:00
border: none;
background: transparent;
color: inherit;
}