diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-01-25 14:51:00 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-01-25 14:51:00 -0400 |
commit | 76833c4083648d11780b0bbc9dd4de05479db240 (patch) | |
tree | e1832638c5219f244263bc0016de8f503bf64faa /src/static | |
parent | cccebf04544d9d80e84a32a905c5c133a46badd4 (diff) |
data-ize various page content calls
* page.cover replaces calls to generateCoverLink * page.main.headingMode replaces calls to generateStickyHeadingContainer or html.tag('h1') * page.main.classes: ['long-content'] replaces hard- coded calls to html.tag('div', {class: 'long-content'})
Diffstat (limited to 'src/static')
-rw-r--r-- | src/static/site2.css | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/static/site2.css b/src/static/site2.css index 287bbd66..cc853b65 100644 --- a/src/static/site2.css +++ b/src/static/site2.css @@ -626,7 +626,8 @@ blockquote { margin-right: 0; } -.long-content { +main.long-content .main-content-container, +main.long-content > h1 { padding-left: 12%; padding-right: 12%; } @@ -1149,13 +1150,13 @@ html[data-url-key="localized.home"] .carousel-container { transform: translateY(-5px); } -.content-sticky-heading-container.long-content { +main.long-content .content-sticky-heading-container { padding-left: 0; padding-right: 0; } -.content-sticky-heading-container.long-content .content-sticky-heading-row, -.content-sticky-heading-container.long-content .content-sticky-subheading-row { +main.long-content .content-sticky-heading-container .content-sticky-heading-row, +main.long-content .content-sticky-heading-container .content-sticky-subheading-row { padding-left: calc(0.12 * (100% - 2 * var(--content-padding)) + var(--content-padding)); padding-right: calc(0.12 * (100% - 2 * var(--content-padding)) + var(--content-padding)); } |