From 9e7b600c0cefb41507d34f962172fde1dd11b767 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 25 Aug 2016 17:37:28 +0200 Subject: [PATCH] Better fix for clickable space --- wcfsetup/install/files/style/ui/redactor.scss | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/style/ui/redactor.scss b/wcfsetup/install/files/style/ui/redactor.scss index 92c69a7038..3fe35a33dc 100644 --- a/wcfsetup/install/files/style/ui/redactor.scss +++ b/wcfsetup/install/files/style/ui/redactor.scss @@ -62,7 +62,7 @@ border: 1px solid $wcfContentBorderInner; border-top-width: 0; max-height: 500px; - padding: 20px 10px; + padding: 10px; position: relative; outline: none; overflow: auto; @@ -95,6 +95,16 @@ // enforce styles used in messages @extend .htmlContent; + > :not(p) { + &:first-child { + margin-top: 10px !important; + } + + &:last-child { + margin-bottom: 20px !important; + } + } + // remove margin top for the first paragraph in the editor to avoid a weird looking offset a the top > p:first-child { margin-top: 0; -- 2.20.1