[libadwaita/wip/exalm/stylesheet2: 48/97] stylesheet: Group treeview and columnview styles
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/stylesheet2: 48/97] stylesheet: Group treeview and columnview styles
- Date: Fri, 9 Apr 2021 12:30:24 +0000 (UTC)
commit 77e4c41b3d9c907f1300dcedefe833fd8e03304a
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Thu Apr 8 22:25:41 2021 +0500
stylesheet: Group treeview and columnview styles
src/stylesheet/_common.scss | 100 ++++++++++++++++++++++----------------------
1 file changed, 50 insertions(+), 50 deletions(-)
---
diff --git a/src/stylesheet/_common.scss b/src/stylesheet/_common.scss
index 662daaf..60bd12b 100644
--- a/src/stylesheet/_common.scss
+++ b/src/stylesheet/_common.scss
@@ -1678,6 +1678,56 @@ treeview.view {
&:last-child { &:backdrop, & { border-right-style: none; }}
}
+/********************************************************
+ * Data Tables *
+ * treeview like tables with individual focusable cells *
+ * https://gitlab.gnome.org/GNOME/gtk/-/issues/2929 *
+ ********************************************************/
+
+columnview {
+ // move padding to child cells
+ > listview > row {
+ padding: 0;
+
+ // align horizontal sizing with header buttons
+ > cell {
+ padding: 8px 6px;
+
+ &:not(:first-child) {
+ border-left: 1px solid transparent;
+ }
+ }
+ }
+
+ // make column separators visible when :show-column-separators is true
+ &.column-separators > listview > row > cell {
+ border-left-color: $_treeview_borders_color;
+ }
+
+ // shrink vertically for .data-table
+ &.data-table > listview > row > cell {
+ padding-top: 2px;
+ padding-bottom: 2px;
+ }
+}
+
+columnview row:not(:selected) cell editablelabel:not(.editing):focus-within {
+ outline: 2px solid $focus_border_color;
+}
+
+columnview row:not(:selected) cell editablelabel.editing:focus-within {
+ outline: 2px solid $selected_bg_color;
+}
+
+columnview row:not(:selected) cell editablelabel.editing text selection {
+ color: $selected_fg_color;
+ background-color: $selected_bg_color;
+}
+
+treeexpander {
+ border-spacing: 4px;
+}
+
/***************
* Popovers *
***************/
@@ -3176,56 +3226,6 @@ row {
}
}
-columnview {
- // move padding to child cells
- > listview > row {
- padding: 0;
-
- // align horizontal sizing with header buttons
- > cell {
- padding: 8px 6px;
-
- &:not(:first-child) {
- border-left: 1px solid transparent;
- }
- }
- }
-
- // make column separators visible when :show-column-separators is true
- &.column-separators > listview > row > cell {
- border-left-color: $_treeview_borders_color;
- }
-
- // shrink vertically for .data-table
- &.data-table > listview > row > cell {
- padding-top: 2px;
- padding-bottom: 2px;
- }
-}
-
-treeexpander {
- border-spacing: 4px;
-}
-
-/********************************************************
- * Data Tables *
- * treeview like tables with individual focusable cells *
- * https://gitlab.gnome.org/GNOME/gtk/-/issues/2929 *
- ********************************************************/
-
-columnview row:not(:selected) cell editablelabel:not(.editing):focus-within {
- outline: 2px solid $focus_border_color;
-}
-
-columnview row:not(:selected) cell editablelabel.editing:focus-within {
- outline: 2px solid $selected_bg_color;
-}
-
-columnview row:not(:selected) cell editablelabel.editing text selection {
- color: $selected_fg_color;
- background-color: $selected_bg_color;
-}
-
/*******************************************************
* Rich Lists *
* Large list usually containing lots of widgets *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]