[libadwaita/wip/cdavis/remove-adaptive-css-margins: 31/31] _preferences.scss: Remove adaptive margins
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/cdavis/remove-adaptive-css-margins: 31/31] _preferences.scss: Remove adaptive margins
- Date: Sun, 7 Nov 2021 22:51:13 +0000 (UTC)
commit e71b01548f379dad970d7ff1c78520296ac8490f
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]