[fractal/fractal-next] style: Rename .sidebar class to .sidebar-list



commit afc4998327ea7bd2e7182572d3b5477cb94ce929
Author: Marco Melorio <marco melorio protonmail com>
Date:   Sun Oct 24 18:04:15 2021 +0200

    style: Rename .sidebar class to .sidebar-list
    
    Needed to avoid using the deprecated .sidebar class.

 data/resources/style.css     | 22 +++++++++++-----------
 data/resources/ui/sidebar.ui |  1 +
 2 files changed, 12 insertions(+), 11 deletions(-)
---
diff --git a/data/resources/style.css b/data/resources/style.css
index d7f4e5a5..c2642de1 100644
--- a/data/resources/style.css
+++ b/data/resources/style.css
@@ -111,45 +111,45 @@ headerbar.flat {
   border-radius: 9999px;
 }
 
-/* Sidebar */
-.sidebar row {
+/* Sidebar List */
+.sidebar-list row {
   padding-left: 10px;
   padding-right: 10px;
 }
 
-.sidebar .category {
+.sidebar-list .category {
   margin-top: 4px;
   font-size: 0.8em;
   font-weight: bold;
 }
 
-.sidebar .entry {
+.sidebar-list .entry {
   margin-top: 4px;
   font-weight: bold;
 }
 
-.sidebar .category image.arrow {
+.sidebar-list .category image.arrow {
   transition: 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
 }
 
-.sidebar .category .category-row:not(:checked) image.arrow:dir(ltr) {
+.sidebar-list .category .category-row:not(:checked) image.arrow:dir(ltr) {
   transform: rotate(-0.25turn);
 }
 
-.sidebar .category .category-row:not(:checked) image.arrow:dir(rtl) {
+.sidebar-list .category .category-row:not(:checked) image.arrow:dir(rtl) {
   transform: rotate(0.25turn);
 }
 
-.sidebar .room {
+.sidebar-list .room {
   padding-top: 4px;
   padding-bottom: 4px;
 }
 
-.sidebar .room .bold {
+.sidebar-list .room .bold {
   font-weight: bold;
 }
 
-.sidebar .room .notification_count {
+.sidebar-list .room .notification_count {
   /* TODO: use correct color variable */
   background-color: #555;
   color: white;
@@ -160,7 +160,7 @@ headerbar.flat {
   padding: 2px 5px;
 }
 
-.sidebar .room .highlight {
+.sidebar-list .room .highlight {
   background-color: @accent_bg_color;
 }
 
diff --git a/data/resources/ui/sidebar.ui b/data/resources/ui/sidebar.ui
index 668ef7ba..aa541476 100644
--- a/data/resources/ui/sidebar.ui
+++ b/data/resources/ui/sidebar.ui
@@ -85,6 +85,7 @@
               <object class="GtkListView" id="listview">
                 <style>
                   <class name="navigation-sidebar"/>
+                  <class name="sidebar-list"/>
                 </style>
                 <property name="single-click-activate">true</property>
                 <property name="factory">


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]