2018-01-27 19:12:06 +01:00
|
|
|
|
@import "variables.scss";
|
|
|
|
|
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* 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.
2022-04-30 16:09:41 +02:00
|
|
|
|
.list > button {
|
2018-01-27 19:12:06 +01:00
|
|
|
|
padding: 3px 10px;
|
|
|
|
|
text-decoration: none;
|
2019-10-01 21:55:03 +02:00
|
|
|
|
user-select: none;
|
2018-01-27 19:12:06 +01:00
|
|
|
|
z-index: 1;
|
2021-12-20 15:47:17 +01:00
|
|
|
|
|
2018-05-30 21:21:41 +02:00
|
|
|
|
@include themify($themes) {
|
|
|
|
|
color: themed("textColor");
|
|
|
|
|
background-color: themed("listItemBackgroundColor");
|
2021-12-20 15:47:17 +01:00
|
|
|
|
}
|
|
|
|
|
|
2018-01-27 19:12:06 +01:00
|
|
|
|
&:after {
|
|
|
|
|
content: "";
|
|
|
|
|
display: table;
|
|
|
|
|
clear: both;
|
2021-12-20 15:47:17 +01:00
|
|
|
|
}
|
|
|
|
|
|
2018-01-27 19:12:06 +01:00
|
|
|
|
&:before {
|
|
|
|
|
content: "";
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
height: 1px;
|
|
|
|
|
width: calc(100% - 10px);
|
2018-05-30 21:21:41 +02:00
|
|
|
|
border-bottom: 1px solid #000000;
|
2018-01-27 19:12:06 +01:00
|
|
|
|
|
2018-05-30 21:21:41 +02:00
|
|
|
|
@include themify($themes) {
|
|
|
|
|
border-bottom-color: themed("listItemBorderColor");
|
2018-01-27 19:12:06 +01:00
|
|
|
|
}
|
2021-12-20 15:47:17 +01:00
|
|
|
|
}
|
2018-01-27 19:12:06 +01:00
|
|
|
|
|
|
|
|
|
&:last-child:before {
|
2018-05-30 21:21:41 +02:00
|
|
|
|
border: none;
|
|
|
|
|
height: 0;
|
2021-12-20 15:47:17 +01:00
|
|
|
|
}
|
2018-05-30 21:21:41 +02:00
|
|
|
|
|
2021-12-20 15:47:17 +01:00
|
|
|
|
&:hover,
|
|
|
|
|
&:focus,
|
2018-01-27 19:12:06 +01:00
|
|
|
|
&.active {
|
2018-05-30 21:21:41 +02:00
|
|
|
|
@include themify($themes) {
|
2018-06-01 22:58:24 +02:00
|
|
|
|
background-color: themed("listItemBackgroundHoverColor");
|
2018-01-27 19:12:06 +01:00
|
|
|
|
}
|
2021-12-20 15:47:17 +01:00
|
|
|
|
}
|
2018-01-27 19:12:06 +01:00
|
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
|
border-left: 5px solid #000000;
|
|
|
|
|
padding-left: 5px;
|
|
|
|
|
|
2018-05-30 21:21:41 +02:00
|
|
|
|
@include themify($themes) {
|
|
|
|
|
border-left-color: themed("primaryColor");
|
2018-01-27 19:12:06 +01:00
|
|
|
|
}
|
2021-12-20 15:47:17 +01:00
|
|
|
|
}
|
2018-01-27 19:12:06 +01:00
|
|
|
|
|
2018-01-29 23:57:58 +01:00
|
|
|
|
&:focus:not(.active) {
|
2018-05-30 21:21:41 +02:00
|
|
|
|
border-left: 5px solid #000000;
|
2018-01-27 19:12:06 +01:00
|
|
|
|
padding-left: 5px;
|
2018-05-30 21:21:41 +02:00
|
|
|
|
|
|
|
|
|
@include themify($themes) {
|
|
|
|
|
border-left-color: themed("mutedColor");
|
2018-01-27 19:12:06 +01:00
|
|
|
|
}
|
2021-12-20 15:47:17 +01:00
|
|
|
|
}
|
2018-01-27 19:12:06 +01:00
|
|
|
|
|
2021-12-20 15:47:17 +01:00
|
|
|
|
.text,
|
2018-01-29 23:57:58 +01:00
|
|
|
|
.detail {
|
|
|
|
|
white-space: nowrap;
|
2018-05-30 21:21:41 +02:00
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
2018-01-29 23:57:58 +01:00
|
|
|
|
display: block;
|
2018-05-30 21:21:41 +02:00
|
|
|
|
|
|
|
|
|
@include themify($themes) {
|
|
|
|
|
color: themed("textColor");
|
2018-01-29 23:57:58 +01:00
|
|
|
|
}
|
2021-12-20 15:47:17 +01:00
|
|
|
|
}
|
2018-01-29 23:57:58 +01:00
|
|
|
|
|
2018-01-27 19:12:06 +01:00
|
|
|
|
.detail {
|
|
|
|
|
font-size: $font-size-small;
|
2018-05-30 21:21:41 +02:00
|
|
|
|
|
|
|
|
|
@include themify($themes) {
|
|
|
|
|
color: themed("mutedColor");
|
2018-01-27 19:12:06 +01:00
|
|
|
|
}
|
2021-12-20 15:47:17 +01:00
|
|
|
|
}
|
2018-01-27 19:12:06 +01:00
|
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
float: left;
|
|
|
|
|
height: 36px;
|
|
|
|
|
width: 34px;
|
|
|
|
|
margin-left: -5px;
|
2018-05-30 21:21:41 +02:00
|
|
|
|
|
|
|
|
|
@include themify($themes) {
|
|
|
|
|
color: themed("mutedColor");
|
2018-01-27 19:12:06 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
img {
|
|
|
|
|
border-radius: $border-radius;
|
|
|
|
|
max-height: 20px;
|
|
|
|
|
max-width: 20px;
|
|
|
|
|
}
|
2021-12-20 15:47:17 +01:00
|
|
|
|
}
|
2018-01-27 19:12:06 +01:00
|
|
|
|
}
|
2021-02-25 19:12:47 +01:00
|
|
|
|
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* 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.
2022-04-30 16:09:41 +02:00
|
|
|
|
.list > button.flex-list-item {
|
2021-02-25 19:12:47 +01:00
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* 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.
2022-04-30 16:09:41 +02:00
|
|
|
|
width: 100%;
|
|
|
|
|
text-align: left;
|
2021-02-25 19:12:47 +01:00
|
|
|
|
|
|
|
|
|
.item-icon {
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* 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.
2022-04-30 16:09:41 +02:00
|
|
|
|
display: block;
|
2021-02-25 19:12:47 +01:00
|
|
|
|
margin-left: -5px;
|
|
|
|
|
margin-right: 4px;
|
|
|
|
|
@include themify($themes) {
|
|
|
|
|
color: themed("mutedColor");
|
|
|
|
|
}
|
2021-12-20 15:47:17 +01:00
|
|
|
|
}
|
2021-02-25 19:12:47 +01:00
|
|
|
|
|
|
|
|
|
.item-content {
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* 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.
2022-04-30 16:09:41 +02:00
|
|
|
|
display: block;
|
2021-02-25 19:12:47 +01:00
|
|
|
|
.item-title {
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* 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.
2022-04-30 16:09:41 +02:00
|
|
|
|
display: block;
|
2021-02-25 19:12:47 +01:00
|
|
|
|
.title-badges {
|
|
|
|
|
@include themify($themes) {
|
|
|
|
|
color: themed("mutedColor");
|
|
|
|
|
}
|
2021-12-20 15:47:17 +01:00
|
|
|
|
}
|
2021-02-25 19:12:47 +01:00
|
|
|
|
}
|
2021-05-01 17:55:49 +02:00
|
|
|
|
|
|
|
|
|
.item-details {
|
|
|
|
|
font-size: $font-size-small;
|
|
|
|
|
@include themify($themes) {
|
|
|
|
|
color: themed("mutedColor");
|
2021-12-20 15:47:17 +01:00
|
|
|
|
}
|
2021-05-01 17:55:49 +02:00
|
|
|
|
}
|
2021-12-20 15:47:17 +01:00
|
|
|
|
}
|
|
|
|
|
|
2021-05-01 17:55:49 +02:00
|
|
|
|
.flex-cipher-list-item {
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* 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.
2022-04-30 16:09:41 +02:00
|
|
|
|
|
|
|
|
|
> * {
|
|
|
|
|
text-align: left;
|
|
|
|
|
}
|
2021-12-20 15:47:17 +01:00
|
|
|
|
}
|
2021-02-25 19:12:47 +01:00
|
|
|
|
}
|