X-Git-Url: https://git.plutz.net/?p=httpchat;a=blobdiff_plain;f=webchat.css;h=457b63247d8a2ff91640459d49d8075fa1c3abc2;hp=4309596a20bccbc06d1e9cb82e1c672d35b11631;hb=HEAD;hpb=665e431e7d944b27d72cbc55eb9bd61d8a983c80 diff --git a/webchat.css b/webchat.css index 4309596..457b632 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,11 +26,13 @@ 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; + z-index: 2; } #settings h1 { background-color: #08b; @@ -81,6 +78,7 @@ button { } #settings .error.nick ~ a.section + #nick, #settings .error.register ~ a.section + #register, +#settings a.section + .open, #settings a.section + *:target { max-height: 20ex; padding: 1ex 1ex .5ex 1ex; @@ -108,25 +106,106 @@ 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; + -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; +} + +#chat div.nicklist { + position: fixed; + top: 1em; bottom: 3em; + right: 0; width: 1em; + background-color: rgba(255, 255, 255, .875); + padding: .5em; + z-index: 1; + border: 1px solid black; + border-width: 1px 0 1px 1px; + overflow-y: auto; + white-space: nowrap; +} +#chat div.nicklist:hover { + width: 20%; + min-width: 10em; + white-space: normal; +} +#chat div.nicklist h2 { + font-weight: bold; + border-bottom: 1px solid black; +} +#chat div.nicklist .nick { + margin-top: .5em; + display: block; + line-height: 1.5em; +} +#chat div.nicklist a.nick { + color: #00F; +} + +body.create, +body.front { + text-align: center; +} +body.create h1, +body.front h1 { + font-size: 1.25em; + font-weight: bold; + margin: 2em 1ex 1em 1ex; +} +body.front h2 { + font-weight: bold; + margin: 2em 1ex 1em 1ex; +} + +body.front label { + font-weight: bold; +} + +body.front #channels { + display: block; + margin: auto; + width: 20em; max-width: 100%; + text-align: left; +} +body.front #channels a { + display: block; + color: #44F; + text-decoration: underline; + margin: .5em 0 0 0; +} + +body.create button { + display: block; + margin: 1em auto; +}