diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-06-13 17:14:52 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-06-13 17:19:45 -0300 |
commit | 578c3b6a22d74eb1c503e23099b5f383ef0c676a (patch) | |
tree | 0c9f8e1d50a2d80b2ad2c57f2ca8e4420d568fd7 /src/static/css | |
parent | 48925c3a48325aad3e8abce1775b7a3914b0d686 (diff) |
css: separate responsive padding value from actual page padding
Diffstat (limited to 'src/static/css')
-rw-r--r-- | src/static/css/site.css | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/static/css/site.css b/src/static/css/site.css index 9e9fbfa4..ac5b5afe 100644 --- a/src/static/css/site.css +++ b/src/static/css/site.css @@ -1385,8 +1385,12 @@ p code { font-style: oblique; } +main { + --responsive-padding-ratio: 0.10; +} + main.long-content { - --long-content-padding-ratio: 0.10; + --long-content-padding-ratio: var(--responsive-padding-ratio); } main.long-content .main-content-container, @@ -2668,9 +2672,9 @@ html[data-language-code="preview-en"][data-url-key="localized.home"] #content * don't apply the similar layout change of widening the long-content area * if this page doesn't have a sidebar to hide in the first place. */ - #page-container.showing-sidebar-left main.long-content, - #page-container.showing-sidebar-right main.long-content { - --long-content-padding-ratio: 0.06; + #page-container.showing-sidebar-left main, + #page-container.showing-sidebar-right main { + --responsive-padding-ratio: 0.06; } } @@ -2757,8 +2761,8 @@ html[data-language-code="preview-en"][data-url-key="localized.home"] #content columns: 1; } - main.long-content { - --long-content-padding-ratio: 0.02; + main { + --responsive-padding-ratio: 0.02; } #cover-art-container { |