From 7d927f1925cd5c4301c021e85e929ef94b98450e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Thu, 12 Sep 2024 14:58:56 +0200 Subject: [PATCH] include: don't erroneously remove headings if hidefirstheading=true #914 --- static/css/theme.css | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/static/css/theme.css b/static/css/theme.css index 7bb588c1b2..94e0de8710 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -1542,21 +1542,21 @@ html[dir="rtl"] .expand > .expand-label > i.fa-chevron-right { display: none; } -.include.hide-first-heading h1 + h2:first-of-type, -.include.hide-first-heading h1 + h3:first-of-type, -.include.hide-first-heading h2 + h3:first-of-type, -.include.hide-first-heading h1 + h4:first-of-type, -.include.hide-first-heading h2 + h4:first-of-type, -.include.hide-first-heading h3 + h4:first-of-type, -.include.hide-first-heading h1 + h5:first-of-type, -.include.hide-first-heading h2 + h5:first-of-type, -.include.hide-first-heading h3 + h5:first-of-type, -.include.hide-first-heading h4 + h5:first-of-type, -.include.hide-first-heading h1 + h6:first-of-type, -.include.hide-first-heading h2 + h6:first-of-type, -.include.hide-first-heading h3 + h6:first-of-type, -.include.hide-first-heading h4 + h6:first-of-type, -.include.hide-first-heading h5 + h6:first-of-type { +.include.hide-first-heading h1 ~ h2:first-of-type, +.include.hide-first-heading h1 ~ h3:first-of-type, +.include.hide-first-heading h2 ~ h3:first-of-type, +.include.hide-first-heading h1 ~ h4:first-of-type, +.include.hide-first-heading h2 ~ h4:first-of-type, +.include.hide-first-heading h3 ~ h4:first-of-type, +.include.hide-first-heading h1 ~ h5:first-of-type, +.include.hide-first-heading h2 ~ h5:first-of-type, +.include.hide-first-heading h3 ~ h5:first-of-type, +.include.hide-first-heading h4 ~ h5:first-of-type, +.include.hide-first-heading h1 ~ h6:first-of-type, +.include.hide-first-heading h2 ~ h6:first-of-type, +.include.hide-first-heading h3 ~ h6:first-of-type, +.include.hide-first-heading h4 ~ h6:first-of-type, +.include.hide-first-heading h5 ~ h6:first-of-type { display: block; }