From 426626a2d40a2e4486d979ff64b71e6504ba469d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 20 Jul 2023 12:01:06 +0200 Subject: [PATCH] editor theme on [newpage] page --- themes/default.css | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/themes/default.css b/themes/default.css index e23c182..d35e1bf 100644 --- a/themes/default.css +++ b/themes/default.css @@ -123,31 +123,47 @@ body[id$="/[newpage]"] textarea { padding-top: 2.5em; } [id$="/[edit]"] input[type=radio].tab ~ div.tab.syntax, -[id$="/[edit]"] input[type=radio].tab ~ div.tab.help { +[id$="/[edit]"] input[type=radio].tab ~ div.tab.help, +[id$="/[newpage]"] input[type=radio].tab ~ div.tab.syntax, +[id$="/[newpage]"] input[type=radio].tab ~ div.tab.help { background-color: #FFF; min-height: 20em; min-height: 50vh; } -[id$="/[edit]"] input[type=radio].tab#edtr:checked ~ form.tab.editor { display: block; } -[id$="/[edit]"] input[type=radio].tab#help:checked ~ div.tab.syntax { display: block; } +[id$="/[edit]"] input[type=radio].tab#edtr:checked ~ form.tab.editor, +[id$="/[newpage]"] input[type=radio].tab#edtr:checked ~ form.tab.editor { + display: block; +} +[id$="/[edit]"] input[type=radio].tab#help:checked ~ div.tab.syntax, +[id$="/[newpage]"] input[type=radio].tab#help:checked ~ div.tab.syntax { + display: block; +} [id$="/[edit]"] input[type=radio].tab#himg:checked ~ div.tab.help, -[id$="/[edit]"] input[type=radio].tab#hdoc:checked ~ div.tab.help { +[id$="/[edit]"] input[type=radio].tab#hdoc:checked ~ div.tab.help, +[id$="/[newpage]"] input[type=radio].tab#himg:checked ~ div.tab.help, +[id$="/[newpage]"] input[type=radio].tab#hdoc:checked ~ div.tab.help { display: block; } [id$="/[edit]"] input[type=radio].tab ~ div.tab.help .himg, -[id$="/[edit]"] input[type=radio].tab ~ div.tab.help .hdoc { +[id$="/[edit]"] input[type=radio].tab ~ div.tab.help .hdoc, +[id$="/[newpage]"] input[type=radio].tab ~ div.tab.help .himg, +[id$="/[newpage]"] input[type=radio].tab ~ div.tab.help .hdoc { display: none; } -[id$="/[edit]"] input[type=radio].tab ~ div.tab.help { +[id$="/[edit]"] input[type=radio].tab ~ div.tab.help, +[id$="/[newpage]"] input[type=radio].tab ~ div.tab.help { padding-top: 1em; padding-left: 7em; } -[id$="/[edit]"] input[type=radio].tab ~ div.tab.help .himg img { +[id$="/[edit]"] input[type=radio].tab ~ div.tab.help .himg img, +[id$="/[newpage]"] input[type=radio].tab ~ div.tab.help .himg img { float: left; max-height: 4em; margin-left: -6em; } -[id$="/[edit]"] input[type=radio].tab#himg:checked ~ div.tab.help .himg { display: block; } -[id$="/[edit]"] input[type=radio].tab#hdoc:checked ~ div.tab.help .hdoc { display: block; } +[id$="/[edit]"] input[type=radio].tab#himg:checked ~ div.tab.help .himg, +[id$="/[newpage]"] input[type=radio].tab#himg:checked ~ div.tab.help .himg { display: block; } +[id$="/[edit]"] input[type=radio].tab#hdoc:checked ~ div.tab.help .hdoc, +[id$="/[newpage]"] input[type=radio].tab#hdoc:checked ~ div.tab.help .hdoc { display: block; } /* === Attachments === */ -- 2.39.2