bitwarden-estensione-browser/apps/desktop/src/scss/buttons.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

181 lines
3.1 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-02-03 22:24:49 +01:00
.btn,
.vault .footer button,
.modal-footer button {
2018-01-29 18:14:19 +01:00
border-radius: $border-radius;
padding: 7px 15px;
2018-05-30 21:21:41 +02:00
border: 1px solid #000000;
2018-01-29 18:14:19 +01:00
font-size: $font-size-base;
2018-01-31 20:19:21 +01:00
text-align: center;
2018-02-01 03:13:42 +01:00
cursor: pointer;
2021-12-20 15:47:17 +01:00
2018-05-30 21:21:41 +02:00
@include themify($themes) {
background-color: themed("buttonBackgroundColor");
border-color: themed("buttonBorderColor");
color: themed("buttonColor");
2021-12-20 15:47:17 +01:00
}
2018-02-01 04:30:49 +01:00
&.primary {
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed("buttonPrimaryColor");
2021-12-20 15:47:17 +01:00
}
}
2018-02-01 04:30:49 +01:00
&.danger {
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed("buttonDangerColor");
2021-12-20 15:47:17 +01:00
}
}
2018-02-01 04:30:49 +01:00
&: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) {
background-color: darken(themed("buttonBackgroundColor"), 1.5%);
border-color: darken(themed("buttonBorderColor"), 17%);
color: darken(themed("buttonColor"), 10%);
}
2018-02-01 04:30:49 +01:00
&.primary {
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: darken(themed("buttonPrimaryColor"), 6%);
}
2018-02-01 04:30:49 +01:00
}
&.danger {
2018-05-30 21:21:41 +02: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
2018-01-31 05:34:45 +01:00
&:focus:not([disabled]) {
2018-02-01 04:30:49 +01:00
cursor: pointer;
2018-05-30 21:21:41 +02: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
2018-01-31 05:34:45 +01:00
&[disabled] {
2018-01-31 18:52:12 +01:00
opacity: 0.65;
2018-04-11 19:58:58 +02:00
cursor: default !important;
2018-01-31 05:34:45 +01:00
}
2018-01-29 18:14:19 +01:00
&.block {
display: block;
width: 100%;
}
2018-01-31 23:58:06 +01:00
&.link {
border: none !important;
background: none !important;
2018-04-10 06:05:20 +02: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 {
.btn {
&:focus {
outline: auto;
}
2021-12-20 15:47:17 +01:00
}
}
.btn-submit {
position: relative;
overflow: hidden;
2021-12-20 15:47:17 +01:00
.bwi-spinner {
position: absolute;
display: none;
align-items: center;
justify-content: center;
bottom: 0;
2021-12-20 15:47:17 +01:00
top: 0;
left: 0;
right: 0;
2021-12-20 15:47:17 +01:00
}
&:disabled:not(.manual),
&.loading {
.bwi-spinner {
display: flex;
}
span {
visibility: hidden;
}
2021-12-20 15:47:17 +01:00
}
}
.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");
}
}
}
}
[Feature] End User Vault Refresh (#2545) * Initial org filter work * update jslib * Move filter to below cipher length check * don't show vault filter in personal or org folder * Use family icon for families org * jslib and auth guard updates * lint fixes * rename GroupingsComponent to VaultFilterComponent * fix no folder showing all items * Add checks for PersonalOwnership policy * update css class names * lint fixes * cleanup * Some final cleanup * import order lint fix * remove unused import * Use smaller icon for chevron * Update src/popup/vault/organization-filter.component.ts Co-authored-by: Addison Beck <addisonbeck1@gmail.com> * Update src/popup/vault/organization-filter.component.ts Co-authored-by: Addison Beck <addisonbeck1@gmail.com> * fix lint error * remove extra localizations * rename orgFilter -> vaultSelect * Rename orgFilterService to VaultSelectService * lint fixes * combine vault select service with vault filter service * Use base vault filter service methods * Use VaultFilter model and other small fixes * lint fixes * Final restructuring pass * Update jslib and remove extra function * Remove extra imports * remove space * Remove vaultFilterService from background services * Update jslib to latest on feature branch * merge fix * update jslib * [feat] Implement EUVR for desktop Should contain only https://github.com/bitwarden/desktop/pull/1487, with merge resolutions and style fixes * [fix] Delete unused GroupingsComponentTemplate * [dep] Update jslib Co-authored-by: Addison Beck <addisonbeck1@gmail.com>
2022-05-09 14:19:18 +02:00
button.no-btn {
@extend a;
background: transparent;
border: none;
@include themify($themes) {
color: themed("textColor");
}
overflow: hidden;
text-overflow: ellipsis;
[Feature] End User Vault Refresh (#2545) * Initial org filter work * update jslib * Move filter to below cipher length check * don't show vault filter in personal or org folder * Use family icon for families org * jslib and auth guard updates * lint fixes * rename GroupingsComponent to VaultFilterComponent * fix no folder showing all items * Add checks for PersonalOwnership policy * update css class names * lint fixes * cleanup * Some final cleanup * import order lint fix * remove unused import * Use smaller icon for chevron * Update src/popup/vault/organization-filter.component.ts Co-authored-by: Addison Beck <addisonbeck1@gmail.com> * Update src/popup/vault/organization-filter.component.ts Co-authored-by: Addison Beck <addisonbeck1@gmail.com> * fix lint error * remove extra localizations * rename orgFilter -> vaultSelect * Rename orgFilterService to VaultSelectService * lint fixes * combine vault select service with vault filter service * Use base vault filter service methods * Use VaultFilter model and other small fixes * lint fixes * Final restructuring pass * Update jslib and remove extra function * Remove extra imports * remove space * Remove vaultFilterService from background services * Update jslib to latest on feature branch * merge fix * update jslib * [feat] Implement EUVR for desktop Should contain only https://github.com/bitwarden/desktop/pull/1487, with merge resolutions and style fixes * [fix] Delete unused GroupingsComponentTemplate * [dep] Update jslib Co-authored-by: Addison Beck <addisonbeck1@gmail.com>
2022-05-09 14:19:18 +02:00
}