[libadwaita/wip/cdavis/remove-adaptive-css-margins] _preferences.scss: Remove adaptive margins




commit a2659c1d392000114b51d5dc9cd32b6ace304ac4
Author: Christopher Davis <christopherdavis gnome org>
Date:   Sun Nov 7 14:48:25 2021 -0800

    _preferences.scss: Remove adaptive margins
    
    These adaptive margins interfere with measuring the
    default sizes, as the margins change the size. This
    causes weird things like content being inaccessible
    or content animating as soon as you open a PreferencesPage.
    
    For now, we should drop the adaptive margins. In the future
    we can implement this in the layout code.

 src/stylesheet/widgets/_preferences.scss | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/src/stylesheet/widgets/_preferences.scss b/src/stylesheet/widgets/_preferences.scss
index 6af76a53..2bea2a7b 100644
--- a/src/stylesheet/widgets/_preferences.scss
+++ b/src/stylesheet/widgets/_preferences.scss
@@ -1,20 +1,7 @@
 window.preferences > contents > leaflet > box > stack > stack > scrolledwindow > viewport > clamp > list,
 preferencespage > scrolledwindow > viewport > clamp > box {
-  margin: 0 12px;
-
-  transition: margin-bottom 200ms ease,
-              margin-top 200ms ease,
-              border-spacing 200ms ease;
-
-  $sizes: ("small": 18px, "medium": 24px, "large": 30px);
-
-  @each $name, $size in $sizes {
-    &.#{$name} {
-      margin-top: $size;
-      margin-bottom: $size;
-      border-spacing: $size;
-    }
-  }
+  margin: 24px 12px;
+  border-spacing: 24px;
 }
 
 preferencesgroup > box {


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