Adwaita: Tweak padding in checkbutton & radiobutton
authornana-4 <hnmaigo@gmail.com>
Mon, 18 May 2020 11:00:11 +0000 (20:00 +0900)
committernana-4 <hnmaigo@gmail.com>
Mon, 18 May 2020 11:29:23 +0000 (20:29 +0900)
Since we can now use border-spacing in checkbutton and radiobutton,
we don't need the margin in check and radio for spacing anymore.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/2697

gtk/theme/Adwaita/_common.scss

index ab39887d496bed45969dd467da4577c2360c2faa..66e4e22b9846b74343d6bdb35822bdbb537f7908 100644 (file)
@@ -2397,16 +2397,12 @@ radiobutton {
 
   &.text-button {
     // this is for a nice focus on check and radios text
-    padding: 4px 2px;
+    padding: 4px;
   }
 }
 
 check,
 radio {
-  margin: 0 4px;
-
-  &:only-child { margin: 0; }
-
   min-height: 14px;
   min-width: 14px;
   border: 1px solid;