From d0f1138305d4c846b8b4a877e5cca9577fe53ec2 Mon Sep 17 00:00:00 2001 From: Philipp Kewisch Date: Fri, 25 Aug 2023 16:59:34 +0200 Subject: [PATCH] Offer floatc to clear floats --- desktop/desktop.scss | 6 +++++- mobile/mobile.scss | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/desktop/desktop.scss b/desktop/desktop.scss index b41e0b3..162e1bd 100644 --- a/desktop/desktop.scss +++ b/desktop/desktop.scss @@ -6,7 +6,7 @@ margin-right: 5px; } -[data-wrap="columns"] > p, [data-wrap="floatl"] > p, [data-wrap="floatr"] > p { +[data-wrap="columns"] > p, [data-wrap="floatl"] > p, [data-wrap="floatr"] > p, [data-wrap="floatc"] > p { margin-top: 0; margin-bottom: 0; } @@ -20,3 +20,7 @@ float: right; margin-left: 10px; } + +[data-wrap="floatc"] { + clear: both; +} diff --git a/mobile/mobile.scss b/mobile/mobile.scss index ce05862..4da6f26 100644 --- a/mobile/mobile.scss +++ b/mobile/mobile.scss @@ -14,4 +14,5 @@ [data-wrap="floatr"] { } - +[data-wrap="floatc"] { +}