mirror of
https://github.com/bitwarden/desktop.git
synced 2024-06-26 10:36:19 +02:00
0396d682b1
* Change links to buttons, expose `aria-pressed` for toggles - also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"` * Correctly set aria-pressed now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge * Change more links to buttons, initial style changes * Fix layout of <button> elements with .box-content-row * Update jslib submodule * Add `aria-expanded` to the send view's "Show options" expand/collapse control * Fix position of "Edit" pencil when hovering over folders * Update jslib * Change sends list links to buttons * Add `aria-pressed` to vault and send list buttons Programmatically denote which of the buttons is currently active/shown in the right-most panel * Fix incorrect "Options" expand/collapse button in add-edit view Currently, that buttons lacks an accName because the "Options" text is outside of it. * Add `aria-pressed` to the send left-hand column filters * Simplify base, list, and vault styles Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts. * Remove unnecessary `position:relative` Fixes issue with cut-off focus outlines, has no other adverse effect * Fix styling for last child of action buttons Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
150 lines
2.5 KiB
SCSS
150 lines
2.5 KiB
SCSS
@import "variables.scss";
|
|
|
|
.list > button {
|
|
padding: 3px 10px;
|
|
text-decoration: none;
|
|
user-select: none;
|
|
z-index: 1;
|
|
|
|
@include themify($themes) {
|
|
color: themed("textColor");
|
|
background-color: themed("listItemBackgroundColor");
|
|
}
|
|
|
|
&:after {
|
|
content: "";
|
|
display: table;
|
|
clear: both;
|
|
}
|
|
|
|
&:before {
|
|
content: "";
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 0;
|
|
height: 1px;
|
|
width: calc(100% - 10px);
|
|
border-bottom: 1px solid #000000;
|
|
|
|
@include themify($themes) {
|
|
border-bottom-color: themed("listItemBorderColor");
|
|
}
|
|
}
|
|
|
|
&:last-child:before {
|
|
border: none;
|
|
height: 0;
|
|
}
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&.active {
|
|
@include themify($themes) {
|
|
background-color: themed("listItemBackgroundHoverColor");
|
|
}
|
|
}
|
|
|
|
&.active {
|
|
border-left: 5px solid #000000;
|
|
padding-left: 5px;
|
|
|
|
@include themify($themes) {
|
|
border-left-color: themed("primaryColor");
|
|
}
|
|
}
|
|
|
|
&:focus:not(.active) {
|
|
border-left: 5px solid #000000;
|
|
padding-left: 5px;
|
|
|
|
@include themify($themes) {
|
|
border-left-color: themed("mutedColor");
|
|
}
|
|
}
|
|
|
|
.text,
|
|
.detail {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: block;
|
|
|
|
@include themify($themes) {
|
|
color: themed("textColor");
|
|
}
|
|
}
|
|
|
|
.detail {
|
|
font-size: $font-size-small;
|
|
|
|
@include themify($themes) {
|
|
color: themed("mutedColor");
|
|
}
|
|
}
|
|
|
|
.icon {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
float: left;
|
|
height: 36px;
|
|
width: 34px;
|
|
margin-left: -5px;
|
|
|
|
@include themify($themes) {
|
|
color: themed("mutedColor");
|
|
}
|
|
|
|
img {
|
|
border-radius: $border-radius;
|
|
max-height: 20px;
|
|
max-width: 20px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.list > button.flex-list-item {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
text-align: left;
|
|
|
|
.item-icon {
|
|
display: block;
|
|
margin-left: -5px;
|
|
margin-right: 4px;
|
|
@include themify($themes) {
|
|
color: themed("mutedColor");
|
|
}
|
|
}
|
|
|
|
.item-content {
|
|
display: block;
|
|
.item-title {
|
|
display: block;
|
|
.title-badges {
|
|
@include themify($themes) {
|
|
color: themed("mutedColor");
|
|
}
|
|
}
|
|
}
|
|
|
|
.item-details {
|
|
font-size: $font-size-small;
|
|
@include themify($themes) {
|
|
color: themed("mutedColor");
|
|
}
|
|
}
|
|
}
|
|
|
|
.flex-cipher-list-item {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
|
|
> * {
|
|
text-align: left;
|
|
}
|
|
}
|
|
}
|