diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-11-21 19:44:01 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-11-21 19:44:01 +0100 |
commit | 18f196400352eb8c0bb6f6dd30890b8cc272ad15 (patch) | |
tree | 3a541981566242b6d2df862ea2963fb4e2f9ee35 /public | |
parent | a1fe768c6d40c7c885db1c9843c61527cbe583e3 (diff) | |
download | server-18f196400352eb8c0bb6f6dd30890b8cc272ad15.tar.gz |
Use grid-layout instead of table for forum posts.
Diffstat (limited to 'public')
-rw-r--r-- | public/style.css | 42 |
1 files changed, 40 insertions, 2 deletions
diff --git a/public/style.css b/public/style.css index e3c4ae6..9db076f 100644 --- a/public/style.css +++ b/public/style.css @@ -61,7 +61,8 @@ td.body { padding: 10px 10px; } table a:not(:hover) { text-decoration: none; color: black; } -table td.command a { text-decoration: underline; color: blue; } +td.command a { text-decoration: underline; color: blue; } +td.is_active { background-color: lemonchiffon; } input[type="checkbox"] { margin-right: 7px; @@ -92,11 +93,48 @@ button:disabled { outline: 1px solid gray; } -td.is_active { background-color: lemonchiffon; } p.error { color: brown; font-style: italic; white-space: pre-wrap; } p.warning { color: brown; } p.warning::before { content: "\26a0"; } +div.post { + margin-bottom: 2em; + max-width: 50em; + display: grid; + grid-template: + "from time" auto + "body body" 1fr + "xxxx edit" auto + / 1fr auto +} +div.post div.from { + grid-area: from; + background-color: gainsboro; + padding: 5px 10px; + border-top: 1px solid black; + border-left: 1px solid black; + font-weight: bold; +} +div.post div.time { + grid-area: time; + background-color: gainsboro; + padding: 5px; + border-top: 1px solid black; + border-right: 1px solid black; +} +div.post div.body { + grid-area: body; + border: 1px solid black; + padding: 15px; + white-space: pre-wrap; +} +div.post div.edit{ + grid-area: edit; + padding: 5px; + text-align:right; +} +div.post div.from a:not(:hover) {color:black;text-decoration:none} + article hr { max-width: 50rem; margin-right: auto; margin-left: 0; } article hr { border: none; border-top: 2px dotted brown; } article hr + p { font-style: italic; } |