From b75112f5e2e6fb575f6cd32f9f5cf5fcb8107fbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Wed, 1 Feb 2023 16:17:08 +0100 Subject: [PATCH] Tiny CSS simplification Change-Id: I2b554ae524f36da5c495eb853af027b8ab21ece7 --- modules/dt.init.less | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/modules/dt.init.less b/modules/dt.init.less index 72230286d..a05edea82 100644 --- a/modules/dt.init.less +++ b/modules/dt.init.less @@ -808,6 +808,7 @@ h1, h2, h3, h4, h5, h6 { background: @colorGray15; border-top: 1px solid @colorGray14; text-align: center; + // Match Minerva styles max-width: 993.3px; // stylelint-disable-next-line declaration-no-important @@ -815,6 +816,12 @@ h1, h2, h3, h4, h5, h6 { // stylelint-disable-next-line declaration-no-important margin-right: -16px !important; + // Avoid smooshing with content / empty state (T320755) + margin-top: 32px; + // (it's not redundant longhand, some margins are !important and some aren't) + // stylelint-disable-next-line declaration-block-no-redundant-longhand-properties + margin-bottom: -32px; + @media print { // stylelint-disable-next-line declaration-no-important display: none !important; @@ -824,9 +831,6 @@ h1, h2, h3, h4, h5, h6 { .ext-discussiontools-init-readAsWikiPage { /* Not sticky per T309889 */ .minerva-footer-button(); - // Avoid smooshing with content / empty state (T320755) - margin-top: 32px; - margin-bottom: -32px; } .ext-discussiontools-init-new-topic { @@ -838,12 +842,6 @@ h1, h2, h3, h4, h5, h6 { transition: transform 250ms, opacity 250ms; transform: translateY( 100% ); opacity: 0; - // Avoid smooshing with content / empty state (T320755) - margin-top: 32px; - - & + .ext-discussiontools-init-readAsWikiPage { - margin-top: 0; - } .ext-discussiontools-init-new-topic-open &, .ext-discussiontools-init-new-topic-opened &,