changeset 26:156b2c122b1f

Remove border from flat/title buttons when in ":backdrop"
author IBBoard <dev@ibboard.co.uk>
date Tue, 29 Nov 2016 20:45:52 +0000
parents cf107670260d
children 63d2eeffe771
files gtk-3.20/gtk.css gtk-3.20/gtk.scss
diffstat 2 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/gtk-3.20/gtk.css	Tue Nov 29 20:36:18 2016 +0000
+++ b/gtk-3.20/gtk.css	Tue Nov 29 20:45:52 2016 +0000
@@ -4649,6 +4649,10 @@
     headerbar button.titlebutton:active,
     headerbar button.titlebutton:backdrop {
       color: #fff; }
+    .titlebar:not(headerbar) button.flat:backdrop, .titlebar:not(headerbar) button.titlebutton:backdrop,
+    headerbar button.flat:backdrop,
+    headerbar button.titlebutton:backdrop {
+      border-color: transparent; }
   .titlebar:not(headerbar) button:hover, .titlebar:not(headerbar) button.titlebutton:hover,
   headerbar button:hover,
   headerbar button.titlebutton:hover {
@@ -4671,8 +4675,7 @@
     text-shadow: 0 1px rgba(87, 87, 87, 0.5);
     icon-shadow: 0 1px rgba(87, 87, 87, 0.5);
     box-shadow: inset 0 1px rgba(87, 87, 87, 0.3), 0 1px #575757; }
-  .titlebar:not(headerbar) button:backdrop.flat, .titlebar:not(headerbar) button:backdrop,
-  headerbar button:backdrop.flat,
+  .titlebar:not(headerbar) button:backdrop,
   headerbar button:backdrop {
     color: #dddddd;
     background-image: none;
@@ -4683,17 +4686,13 @@
     icon-shadow: none;
     transition: 200ms ease-out;
     -gtk-icon-effect: none; }
-    .titlebar:not(headerbar) button:backdrop.flat:active, .titlebar:not(headerbar) button:backdrop.flat:checked, .titlebar:not(headerbar) button:backdrop:active, .titlebar:not(headerbar) button:backdrop:checked,
-    headerbar button:backdrop.flat:active,
-    headerbar button:backdrop.flat:checked,
+    .titlebar:not(headerbar) button:backdrop:active, .titlebar:not(headerbar) button:backdrop:checked,
     headerbar button:backdrop:active,
     headerbar button:backdrop:checked {
       background-image: none;
       background-color: #303030;
       border-color: #303030; }
-    .titlebar:not(headerbar) button:backdrop.flat:disabled, .titlebar:not(headerbar) button:backdrop.flat.suggested-action:disabled, .titlebar:not(headerbar) button:backdrop:disabled, .titlebar:not(headerbar) button:backdrop.suggested-action:disabled,
-    headerbar button:backdrop.flat:disabled,
-    headerbar button:backdrop.flat.suggested-action:disabled,
+    .titlebar:not(headerbar) button:backdrop:disabled, .titlebar:not(headerbar) button:backdrop.suggested-action:disabled,
     headerbar button:backdrop:disabled,
     headerbar button:backdrop.suggested-action:disabled {
       color: #8d8d8d;
--- a/gtk-3.20/gtk.scss	Tue Nov 29 20:36:18 2016 +0000
+++ b/gtk-3.20/gtk.scss	Tue Nov 29 20:45:52 2016 +0000
@@ -220,6 +220,9 @@
       &:hover, &:active, &:backdrop {
         color: $title_fg;
       }
+      &:backdrop {
+        border-color: transparent;
+      }
     }
 
     &:hover, &.titlebutton:hover {
@@ -244,7 +247,6 @@
     }
 
     &:backdrop {
-      &.flat, & {
         color: $fg_dark_color;
         background-image: none;
         background-color: $bg_dark_color;
@@ -273,7 +275,6 @@
           &:active,
           &:checked { }
         }
-      }
     }
 
     &.flat { &:backdrop, &:disabled, &:backdrop:disabled { }}