From: Paul Hänsch Date: Wed, 18 Nov 2020 12:37:40 +0000 (+0100) Subject: allow for transparent background X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=6e9715c9b0ee07753440d8926feb21e53b769ccb;p=httpchat allow for transparent background --- 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; +}