No margin-top after float object (#5736)
authorOlaf Braun <olaf_schmitz_1@t-online.de>
Fri, 22 Dec 2023 13:01:07 +0000 (14:01 +0100)
committerGitHub <noreply@github.com>
Fri, 22 Dec 2023 13:01:07 +0000 (14:01 +0100)
* No margin-top for elements directly after float object

* Add ol and headers

* Use is and only to first-child

* Insert some spaces

wcfsetup/install/files/style/layout/global.scss

index c3ef95ee8e79902573f25a2e81e8ba3344baa676..41e69f9a00a8a9250fa78518ee12439817392cba 100644 (file)
@@ -123,6 +123,12 @@ ol.nativeList {
 
        > :first-child {
                margin-top: 0 !important;
+
+               &:is(.messageFloatObjectLeft, .image-style-side-left, .messageFloatObjectRight, .image-style-side) {
+                       + :is(p, ul ,ol, h1, h2, h3, h4, h4, h6) {
+                               margin-top: 0 !important;
+                       }
+               }
        }
 
        > :last-child {