[libadwaita/wip/exalm/stylesheet2: 58/103] stylesheet: Simplify sidebar styles
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/stylesheet2: 58/103] stylesheet: Simplify sidebar styles
- Date: Fri, 16 Apr 2021 22:38:45 +0000 (UTC)
commit 867a46cae7cec80fe71bb7c3c03156ce504efbb9
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Thu Apr 8 23:37:45 2021 +0500
stylesheet: Simplify sidebar styles
src/stylesheet/_common.scss | 52 +++++++++++++++++++++------------------------
1 file changed, 24 insertions(+), 28 deletions(-)
---
diff --git a/src/stylesheet/_common.scss b/src/stylesheet/_common.scss
index bc2ee6d..b200819 100644
--- a/src/stylesheet/_common.scss
+++ b/src/stylesheet/_common.scss
@@ -3435,7 +3435,6 @@ filechooser {
background-color: mix($bg_color, $base_color, 50%);
&:not(separator) {
- @at-root %sidebar_left,
&:dir(ltr),
&.left,
&.left:dir(rtl) {
@@ -3443,7 +3442,6 @@ filechooser {
border-left-style: none;
}
- @at-root %sidebar_right,
&:dir(rtl),
&.right {
border-left: 1px solid $borders_color;
@@ -3457,36 +3455,34 @@ filechooser {
paned & { &.left, &.right, &.left:dir(rtl), &:dir(rtl), &:dir(ltr), & { border-style: none; }}
}
-stacksidebar {
- //not a regular list
- list.separators:not(.horizontal) > row:not(.separator) {
- border-bottom: none;
+stacksidebar row {
+ padding: 10px 4px;
+ @include focus-ring();
+
+ > label {
+ padding-left: 6px;
+ padding-right: 6px;
}
- row {
- padding: 10px 4px;
- @include focus-ring();
- > label {
- padding-left: 6px;
- padding-right: 6px;
- }
+ &.needs-attention > label {
+ @extend %needs_attention;
+ background-size: 6px 6px, 0 0;
+ }
- &.needs-attention > label {
- @extend %needs_attention;
- background-size: 6px 6px, 0 0;
- }
- &:selected {
- background-color: $menu_selected_color;
- border-radius: $menu_radius;
- color: $fg_color;
- }
- &:selected:hover:dir(ltr), &:selected:hover:dir(rtl) {
- background-color: darken($menu_selected_color,5%);
- }
- &.activatable:active, &.activatable:selected:active {
- box-shadow: none; // #3413
+ &:selected {
+ background-color: $menu_selected_color;
+ border-radius: $menu_radius;
+ color: $fg_color;
+
+ &:hover {
+ background-color: darken($menu_selected_color, 5%);
}
}
+
+ &.activatable:active,
+ &.activatable:selected:active {
+ box-shadow: none; // #3413
+ }
}
separator.sidebar {
@@ -3511,6 +3507,7 @@ separator.sidebar {
border-radius: $menu-margin;
margin: 0 $menu-margin 2px;
@include focus-ring($focus-state: 'focus-visible:focus-within');
+
&:hover {
background-color: darken($menu_selected_color, 5%);
}
@@ -3522,7 +3519,6 @@ separator.sidebar {
&:hover {
background-color: darken($menu_selected_color,5%);
}
-
}
&:disabled { color: $insensitive_fg_color; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]