diff options
author | WlodekM <[email protected]> | 2024-11-30 20:15:09 +0200 |
---|---|---|
committer | WlodekM <[email protected]> | 2024-11-30 20:15:09 +0200 |
commit | db84220e2bc60b637cc5736c556e2c0bc34d6ae3 (patch) | |
tree | a8d89084f320d5f84343cb9da1b1d0c93dd9e1e9 /styles.less | |
parent | ec81523b3933135463defba924245d78026d7ec0 (diff) |
use less, topbar (wip) also warkdown
Diffstat (limited to 'styles.less')
-rw-r--r-- | styles.less | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/styles.less b/styles.less new file mode 100644 index 0000000..b1938ea --- /dev/null +++ b/styles.less @@ -0,0 +1,89 @@ +/* i have no idea what im doing so */ +body { + /* why */ + margin: 0; + height: 100vh; +} + +.main { + height: 100%; + width: 100%; + line-break: anywhere; + word-break: break-all; +} + +.channel { + flex-grow: 1; + display: flex; + flex-direction: column; + height: 100%; + overflow: auto; +} + +.messages { + flex-grow: 1; +} + +.topbar { + background: white; + position: sticky; + top: 0; + display: flex; + justify-content: space-between; +} + +.topbar.hidden { + display: none; +} + +.messageInput { + background: white; + position: sticky; + bottom: 0; +} + +.messageInputForm { + display: flex; +} + +.reply { + color: #000000aa +} + +.attachment { + max-height: 25vw; + max-width: 25vw; + width: auto; + height: auto; +} + +#messageInput { + flex-grow: 1; +} + +.messageInput.disabled { + display: none; +} + +.message { + p, h1, h2, h3, h4, h5, h6 { + margin: 0; + } +} + +.message-header { + display: flex; + justify-content: space-between; + .username { + font-size: 1.3em; + } + .action-buttons { + display: none; + } +} +.message:hover { + background: #0004; + .action-buttons { + display: block; + } +} \ No newline at end of file |