From cd7b389bce826584ee654ad6ddb63790325b3c13 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Fri, 6 Dec 2024 13:39:51 +0000 Subject: [PATCH] Fix border on first section in Parsoid output Change-Id: Ibff7eb4919d9f8c937f9d635d60731db5a39c1aa --- modules/dt.init.less | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/dt.init.less b/modules/dt.init.less index 9159f9ab8..212f2a466 100644 --- a/modules/dt.init.less +++ b/modules/dt.init.less @@ -528,10 +528,6 @@ h1, h2, h3, h4, h5, h6 { margin-top: 4px; } - &:first-child { - border-top: 0; - } - &-bar { width: 100%; flex-wrap: wrap; @@ -601,7 +597,10 @@ h1, h2, h3, h4, h5, h6 { font-size: 0.875em; } - &.mw-mf .mf-section-0 + .ext-discussiontools-init-section { + /* Legacy parser */ + &.mw-mf .mf-section-0 + .ext-discussiontools-init-section, + /* Parsoid */ + &.mw-mf [ data-mw-section-id='1' ] .ext-discussiontools-init-section { border-top: 0; margin-top: 0; }