Adwaita: add more space between check/radio and label in popovers
authorLapo Calamandrei <calamandrei@gmail.com>
Wed, 3 May 2017 15:39:21 +0000 (17:39 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Wed, 3 May 2017 15:45:44 +0000 (17:45 +0200)
See https://bugzilla.gnome.org/show_bug.cgi?id=779570 for details.

gtk/theme/Adwaita/_common.scss

index b435660d785b1485db4b6cfab84927d8be289356..afae24a8bf40421a9a5cc248ec537d9798063b79 100644 (file)
@@ -2640,6 +2640,19 @@ radio {
 
   &:only-child { margin: 0; }
 
+  popover & { // when in a popover add more space between the label and the check, reset the other side margin.
+              // See https://bugzilla.gnome.org/show_bug.cgi?id=779570 for details.
+    &.left:dir(rtl) {
+      margin-left: 0;
+      margin-right: 12px;
+    }
+
+    &.right:dir(ltr) {
+      margin-left: 12px;
+      margin-right: 0;
+    }
+  }
+
   min-height: 14px;
   min-width: 14px;
   border: 1px solid;