[dconf-editor] Correct RTL pathbar CSS bug.



commit 3d90e16c69647776cd6d19f5a037357490f6524b
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Apr 29 01:40:26 2016 +0200

    Correct RTL pathbar CSS bug.

 editor/dconf-editor.css |   20 ++++++++++++++------
 editor/pathbar-item.ui  |    3 +++
 2 files changed, 17 insertions(+), 6 deletions(-)
---
diff --git a/editor/dconf-editor.css b/editor/dconf-editor.css
index a827235..70bf706 100644
--- a/editor/dconf-editor.css
+++ b/editor/dconf-editor.css
@@ -19,6 +19,10 @@ scrolledwindow.sidebar {
   min-width:15em;
 }
 
+/*\
+* * pathbar
+\*/
+
 .pathbar {
   margin-left:8px;
   margin-right:8px;
@@ -37,19 +41,23 @@ scrolledwindow.sidebar {
   background-color:transparent;
 }
 
-.pathbar > button > label {
+.pathbar > button > .item {
   border-width:2px 0px;
   border-style:solid;
   border-color:transparent;
 }
 
-.pathbar > button:hover > label {
+.pathbar > button:hover > .item {
   border-bottom-color:grey;
 }
 
-.pathbar > button:last-child > label,
-.pathbar > button:last-child:hover > label,
-.pathbar > button:nth-last-child(2) > label,
-.pathbar > button:nth-last-child(2):hover > label {
+.pathbar:dir(ltr) > button:last-child > .item,
+.pathbar:dir(ltr) > button:last-child:hover > .item,
+.pathbar:dir(ltr) > button:nth-last-child(2) > .item,
+.pathbar:dir(ltr) > button:nth-last-child(2):hover > .item,
+.pathbar:dir(rtl) > button:first-child > .item,
+.pathbar:dir(rtl) > button:first-child:hover > .item,
+.pathbar:dir(rtl) > button:nth-child(2) > .item,
+.pathbar:dir(rtl) > button:nth-child(2):hover > .item {
   border-bottom-color:blue;
 }
diff --git a/editor/pathbar-item.ui b/editor/pathbar-item.ui
index 86a6188..a5e5066 100644
--- a/editor/pathbar-item.ui
+++ b/editor/pathbar-item.ui
@@ -7,6 +7,9 @@
       <object class="GtkLabel" id="text">
         <property name="visible">True</property>
         <property name="ellipsize">middle</property>
+        <style>
+          <class name="item"/>
+        </style>
       </object>
     </child>
   </template>


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