From 6e9715c9b0ee07753440d8926feb21e53b769ccb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 18 Nov 2020 13:37:40 +0100 Subject: [PATCH] allow for transparent background --- webchat.css | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/webchat.css b/webchat.css index 4309596..123a052 100644 --- a/webchat.css +++ b/webchat.css @@ -8,11 +8,6 @@ color: inherit; } -body { - background-color: #FFF; - color: #000; -} - b, strong { font-weight: bold; } i, em { font-style: italic; } @@ -31,8 +26,9 @@ button { position: fixed; min-width: 20%; max-width: 90%; width: 30em; - top: 3em; + bottom: 12em; left: 50%; transform: translate(-50%); + color: #000; background-color: #FFF; border: 1px solid; border-radius: 1ex 1ex .5ex .5ex; @@ -81,6 +77,7 @@ button { } #settings .error.nick ~ a.section + #nick, #settings .error.register ~ a.section + #register, +#settings a.section + #nick, #settings a.section + *:target { max-height: 20ex; padding: 1ex 1ex .5ex 1ex; @@ -108,25 +105,39 @@ form#channel input[name=message] { width: calc(100% - 4.5ex); } form#channel button[value=submit] { display: none; } -#chat .message .date { - color: #888; - font-size: .75em; -} #chat { position: fixed; bottom: 2em; left: 0; right: 0; - border: 1px solid #08b; padding: 1ex; margin: .5ex; z-index: -1; } -#chat .message .nick { - font-weight: bold; +#chat p.message { + margin-top: .25em; +} +#chat p.message > * { + display: table-cell; + color: #000; + background-color: rgba(255, 255, 255, .5); + line-height: 1.5em; + padding: .125em 0 .125em .5em; } +#chat .message .date { + color: #888; + font-size: .75em; +} #chat .message .nick .indicator { color: #888; } +#chat .message .nick { + font-weight: bold; + white-space: nowrap; +} +#chat .message .message { + border-radius: 0 .5em .5em 0; + padding-right: .5em; +} -- 2.39.2