mirror of
https://github.com/bitwarden/desktop.git
synced 2024-09-27 03:53:00 +02:00
9e0cc45704
* username generator implemented * disable type when coming from add/edit * restyle buttons to new icon-btn * update generated-wrapper styles * only show policy messages for passwords * make generated-wrapper a standalone style * Update src/app/vault/password-generator.component.html Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com> * aria-expanded on show options Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
172 lines
2.9 KiB
SCSS
172 lines
2.9 KiB
SCSS
@import "variables.scss";
|
|
|
|
.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]) {
|
|
cursor: pointer;
|
|
|
|
@include themify($themes) {
|
|
background-color: darken(themed("buttonBackgroundColor"), 1.5%);
|
|
border-color: darken(themed("buttonBorderColor"), 17%);
|
|
color: darken(themed("buttonColor"), 10%);
|
|
}
|
|
|
|
&.primary {
|
|
@include themify($themes) {
|
|
color: darken(themed("buttonPrimaryColor"), 6%);
|
|
}
|
|
}
|
|
|
|
&.danger {
|
|
@include themify($themes) {
|
|
color: darken(themed("buttonDangerColor"), 6%);
|
|
}
|
|
}
|
|
}
|
|
|
|
&:focus:not([disabled]) {
|
|
cursor: pointer;
|
|
outline: 0;
|
|
|
|
@include themify($themes) {
|
|
background-color: darken(themed("buttonBackgroundColor"), 6%);
|
|
border-color: darken(themed("buttonBorderColor"), 25%);
|
|
}
|
|
}
|
|
|
|
&[disabled] {
|
|
opacity: 0.65;
|
|
cursor: default !important;
|
|
}
|
|
|
|
&.block {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
&.link {
|
|
border: none !important;
|
|
background: none !important;
|
|
|
|
&:focus {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
|
|
.action-buttons {
|
|
.btn {
|
|
&:focus {
|
|
outline: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
.btn-submit {
|
|
position: relative;
|
|
overflow: hidden;
|
|
|
|
.bwi-spinner {
|
|
position: absolute;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
bottom: 0;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
|
|
&:disabled:not(.manual),
|
|
&.loading {
|
|
.bwi-spinner {
|
|
display: flex;
|
|
}
|
|
|
|
span {
|
|
visibility: hidden;
|
|
}
|
|
}
|
|
}
|
|
|
|
.icon-btn {
|
|
cursor: pointer;
|
|
padding: 10px 8px;
|
|
background: none;
|
|
border: none;
|
|
|
|
@include themify($themes) {
|
|
color: themed("boxRowButtonColor");
|
|
}
|
|
|
|
&.primary {
|
|
@include themify($themes) {
|
|
color: themed("buttonPrimaryColor");
|
|
}
|
|
}
|
|
|
|
&.danger {
|
|
@include themify($themes) {
|
|
color: themed("buttonDangerColor");
|
|
}
|
|
}
|
|
|
|
&:hover,
|
|
&:focus {
|
|
@include themify($themes) {
|
|
color: themed("boxRowButtonHoverColor");
|
|
}
|
|
|
|
&.primary {
|
|
@include themify($themes) {
|
|
color: darken(themed("buttonPrimaryColor"), 6%);
|
|
}
|
|
}
|
|
|
|
&.danger {
|
|
@include themify($themes) {
|
|
color: darken(themed("buttonDangerColor"), 6%);
|
|
}
|
|
}
|
|
}
|
|
|
|
&.disabled {
|
|
@include themify($themes) {
|
|
color: themed("disabledIconColor");
|
|
}
|
|
|
|
&:hover {
|
|
@include themify($themes) {
|
|
color: themed("disabledIconColor");
|
|
}
|
|
}
|
|
}
|
|
}
|