diff options
author | curly <curlybryce@protonmail.com> | 2023-02-16 11:48:55 -0700 |
---|---|---|
committer | curly <curlybryce@protonmail.com> | 2023-02-16 11:48:55 -0700 |
commit | 0532d71133f15bf38b8a809694968ba99e249b31 (patch) | |
tree | 2b7d09f331e2494aed54dac27285b5d31294bea9 /src/main.css | |
parent | 7c115c6475b854ace67ccae4b410a7ef2b2bd1f0 (diff) | |
download | rocket_test_ui-0532d71133f15bf38b8a809694968ba99e249b31.tar.gz rocket_test_ui-0532d71133f15bf38b8a809694968ba99e249b31.tar.bz2 rocket_test_ui-0532d71133f15bf38b8a809694968ba99e249b31.zip |
typescript ftw, styling
Diffstat (limited to 'src/main.css')
-rw-r--r-- | src/main.css | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/src/main.css b/src/main.css new file mode 100644 index 0000000..6c6218d --- /dev/null +++ b/src/main.css @@ -0,0 +1,116 @@ +.UI { + background-color: blue; +} +#chatwindow { + display: flex; + flex-flow: column; + overflow-y: scroll; + overflow-x: clip; + word-break: break-word; + scroll-snap-align: end; + flex-basis: 100vh; + flex-grow: 1; +} +.message:hover { + background-color: #DDD; +} +.message { + display: flex; + flex-basis: 1.6em; + padding-left: 2px; + padding-right: 2px; + flex-shrink: 0; +} +.message:hover > :last-child > :first-child { + display: flex; +} +.messagetext { + white-space: pre-wrap; + flex-grow: 1; +} +.messagedate { + font-size: 12px; + align-self: start; + margin-top: 4px; + word-break: keep-all; + +} +.message:not(.deleted) > .messagedate { + color: #666; +} + +.message_buttons_anchor { + position: relative; +} +.message_buttons { + display: none; + position: absolute; + /* calc (((button height + anchor padding) / 2) * -1) */ + top: calc(((1.6em + 4px) / 2) * -1); + /* calc ((buttons amount(button size + button padding) + anchor padding) * -1) */ + left: calc((3(1.6em + 4px) + 4px) * -1); + right: 0; + bottom: 0; + + margin-right: 8px; + padding: 2px; + height: min-content; + background-color: white; + border: 1px solid black; + border-radius: 2px; +} +.message_buttons > button { + height: 1.6em; + width: 1.6em; + padding: 2px; + margin: 2px; +} + +#navbar { + border-bottom: 2px solid black; + width: 100%; + display: inline-block; + flex-grow: 0; +} +#inputbox { + border-top: 2px solid black; + display: flex; +} +#inputbox > button { + /* padding: 0 10px 0 10px; */ + width: 4em; +} +#input { + resize: none; + flex-grow: 1; + font-size: 16px; +} + +* { + margin: 0; + padding: 0; + border: 0; +} + +body { + display: flex; + flex-direction: column; + max-height: 100vh; +} + +.date { + text-align: center; + font-weight: bold; + border-bottom: 1px solid black; +} + +.deleted { + color: #999; +} + +.new_messages { + display: none; + text-align: center; + background-color: red; + color: white; +}
\ No newline at end of file |