[gtk/wip/exalm/windowcontrols-fix] Adwaita: remove margin from GtkWindowControls when empty



commit 7874b29ec2845c11cc2c3c5b7fbe59571f994063
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sun Apr 26 20:24:20 2020 +0500

    Adwaita: remove margin from GtkWindowControls when empty

 gtk/theme/Adwaita/_common.scss | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 61b213a044..50b8f8a713 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -1425,14 +1425,16 @@ searchbar {
 windowcontrols {
   border-spacing: 6px;
 
-  &.start:dir(ltr),
-  &.end:dir(rtl) {
-    margin-right: 7px;
-  }
+  &:not(.empty) {
+    &.start:dir(ltr),
+    &.end:dir(rtl) {
+      margin-right: 7px;
+    }
 
-  &.start:dir(rtl),
-  &.end:dir(ltr) {
-    margin-left: 7px;
+    &.start:dir(rtl),
+    &.end:dir(ltr) {
+      margin-left: 7px;
+    }
   }
 
   button {


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