[gnome-themes-standard/wip/sass] linked buttons - flipped the logic, use border-style istead of border-width to remove borders



commit 4b19d2252d046654d6397609cca5b70c9292e4b2
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Tue Jun 3 19:17:45 2014 +0200

    linked buttons
      - flipped the logic, use border-style istead of border-width to
        remove borders so it works indipendently with whatever border width
        set
      - same on the combobox-entry

 themes/Adwaita/gtk-3.0/_common.scss           |   12 ++++++------
 themes/Adwaita/gtk-3.0/gtk-contained-dark.css |   20 ++++++++++----------
 themes/Adwaita/gtk-3.0/gtk-contained.css      |   20 ++++++++++----------
 3 files changed, 26 insertions(+), 26 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/_common.scss b/themes/Adwaita/gtk-3.0/_common.scss
index 8180cea..346bc8d 100644
--- a/themes/Adwaita/gtk-3.0/_common.scss
+++ b/themes/Adwaita/gtk-3.0/_common.scss
@@ -173,7 +173,7 @@
     &:last-child {
       border-top-left-radius: 0;
       border-bottom-left-radius: 0;
-      border-left-width: 0;
+      border-left-style: none;
     }
   }
 }
@@ -243,17 +243,17 @@
   // linked buttons
   .linked &, .linked &:backdrop {
     border-radius: 0;
-    border-right-width: 0;
+    border-left-style: none;
     &:first-child {
       border-radius: 3px 0 0 3px;
+      border-left-style: solid;
     }
     &:last-child {
       border-radius: 0 3px 3px 0;
-      border-right-width: 1px;
     }
     &:only-child {
       border-radius: 3px;
-      border-right-width: 1px;
+      border-left-style: solid;
     }
   }
 
@@ -426,17 +426,17 @@ GtkComboBox {
   }
   &.combobox-entry .entry:first-child {
     border-radius: 3px 0 0 3px;
-    border-right: 0;
   }
   &.combobox-entry .button:first-child {
     border-radius: 3px 0 0 3px;
   }
   &.combobox-entry .entry:last-child {
     border-radius: 0 3px 3px 0;
-    border-left: 0;
+    border-left-style: none;
   }
   &.combobox-entry .button:last-child {
     border-radius: 0 3px 3px 0;
+    border-left-style: none;
   }
 }
 
diff --git a/themes/Adwaita/gtk-3.0/gtk-contained-dark.css b/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
index 819631d..76ba64f 100644
--- a/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
@@ -154,7 +154,7 @@
   .linked .entry:last-child {
     border-top-left-radius: 0;
     border-bottom-left-radius: 0;
-    border-left-width: 0; }
+    border-left-style: none; }
 
 /***********
  * Buttons *
@@ -338,15 +338,15 @@
       box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px rgba(238, 238, 236, 0.1); }
   .linked .button, .linked .button:backdrop {
     border-radius: 0;
-    border-right-width: 0; }
+    border-left-style: none; }
     .linked .button:first-child, .linked .button:backdrop:first-child {
-      border-radius: 3px 0 0 3px; }
+      border-radius: 3px 0 0 3px;
+      border-left-style: solid; }
     .linked .button:last-child, .linked .button:backdrop:last-child {
-      border-radius: 0 3px 3px 0;
-      border-right-width: 1px; }
+      border-radius: 0 3px 3px 0; }
     .linked .button:only-child, .linked .button:backdrop:only-child {
       border-radius: 3px;
-      border-right-width: 1px; }
+      border-left-style: solid; }
   .header-bar .button.text-button {
     padding: 6px 8px 5px; }
   .header-bar .button.image-button {
@@ -516,15 +516,15 @@ GtkComboBox {
     -GtkWidget-horizontal-separator: 0;
     -GtkWidget-vertical-separator: 0; }
   GtkComboBox.combobox-entry .entry:first-child {
-    border-radius: 3px 0 0 3px;
-    border-right: 0; }
+    border-radius: 3px 0 0 3px; }
   GtkComboBox.combobox-entry .button:first-child {
     border-radius: 3px 0 0 3px; }
   GtkComboBox.combobox-entry .entry:last-child {
     border-radius: 0 3px 3px 0;
-    border-left: 0; }
+    border-left-style: none; }
   GtkComboBox.combobox-entry .button:last-child {
-    border-radius: 0 3px 3px 0; }
+    border-radius: 0 3px 3px 0;
+    border-left-style: none; }
 
 /************
  * Toolbars *
diff --git a/themes/Adwaita/gtk-3.0/gtk-contained.css b/themes/Adwaita/gtk-3.0/gtk-contained.css
index 5e64360..3ba1391 100644
--- a/themes/Adwaita/gtk-3.0/gtk-contained.css
+++ b/themes/Adwaita/gtk-3.0/gtk-contained.css
@@ -154,7 +154,7 @@
   .linked .entry:last-child {
     border-top-left-radius: 0;
     border-bottom-left-radius: 0;
-    border-left-width: 0; }
+    border-left-style: none; }
 
 /***********
  * Buttons *
@@ -338,15 +338,15 @@
       box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px white; }
   .linked .button, .linked .button:backdrop {
     border-radius: 0;
-    border-right-width: 0; }
+    border-left-style: none; }
     .linked .button:first-child, .linked .button:backdrop:first-child {
-      border-radius: 3px 0 0 3px; }
+      border-radius: 3px 0 0 3px;
+      border-left-style: solid; }
     .linked .button:last-child, .linked .button:backdrop:last-child {
-      border-radius: 0 3px 3px 0;
-      border-right-width: 1px; }
+      border-radius: 0 3px 3px 0; }
     .linked .button:only-child, .linked .button:backdrop:only-child {
       border-radius: 3px;
-      border-right-width: 1px; }
+      border-left-style: solid; }
   .header-bar .button.text-button {
     padding: 6px 8px 5px; }
   .header-bar .button.image-button {
@@ -516,15 +516,15 @@ GtkComboBox {
     -GtkWidget-horizontal-separator: 0;
     -GtkWidget-vertical-separator: 0; }
   GtkComboBox.combobox-entry .entry:first-child {
-    border-radius: 3px 0 0 3px;
-    border-right: 0; }
+    border-radius: 3px 0 0 3px; }
   GtkComboBox.combobox-entry .button:first-child {
     border-radius: 3px 0 0 3px; }
   GtkComboBox.combobox-entry .entry:last-child {
     border-radius: 0 3px 3px 0;
-    border-left: 0; }
+    border-left-style: none; }
   GtkComboBox.combobox-entry .button:last-child {
-    border-radius: 0 3px 3px 0; }
+    border-radius: 0 3px 3px 0;
+    border-left-style: none; }
 
 /************
  * Toolbars *


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