From 620a271adb09bfb1c369b1a04ee34e671318e740 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 9 Feb 2016 17:39:27 +0100 Subject: [PATCH] Updated visuals within the editor field --- wcfsetup/install/files/style/ui/message.scss | 4 ++++ wcfsetup/install/files/style/ui/redactor.scss | 17 +++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/wcfsetup/install/files/style/ui/message.scss b/wcfsetup/install/files/style/ui/message.scss index b3bb413923..682ca19a66 100644 --- a/wcfsetup/install/files/style/ui/message.scss +++ b/wcfsetup/install/files/style/ui/message.scss @@ -202,6 +202,10 @@ flex: auto; } } + + > .messageText { + @extend .htmlContent; + } } /* content - footer */ diff --git a/wcfsetup/install/files/style/ui/redactor.scss b/wcfsetup/install/files/style/ui/redactor.scss index a8a4e5f5e0..438f0c0735 100644 --- a/wcfsetup/install/files/style/ui/redactor.scss +++ b/wcfsetup/install/files/style/ui/redactor.scss @@ -66,24 +66,21 @@ } } - ul, - ol { - @extend .nativeList; - } - - ul { - list-style-type: disc; - } + // enforce styles used in messages + @extend .htmlContent; - ol { - list-style-type: decimal; + // 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; } img { + // TODO: the border was required for 'Old Redactor', check if it is still a thing border: 1px solid transparent; max-width: 100%; } + // TODO: this is somewhat out of sync table { border-collapse: collapse; //font-size: 14px; TODO -- 2.20.1