diff options
Diffstat (limited to 'client-web/public/assets')
-rw-r--r-- | client-web/public/assets/style/chat.css | 29 | ||||
-rw-r--r-- | client-web/public/assets/style/master.css | 72 | ||||
-rw-r--r-- | client-web/public/assets/style/room.css | 36 |
3 files changed, 100 insertions, 37 deletions
diff --git a/client-web/public/assets/style/chat.css b/client-web/public/assets/style/chat.css new file mode 100644 index 0000000..12741e6 --- /dev/null +++ b/client-web/public/assets/style/chat.css @@ -0,0 +1,29 @@ +/* TODO all of these rules are totally stupid */ +.chat { + overflow: scroll; + + background-color: var(--bg); + padding: 1em; + border-radius: 1em; +} + +.chat .message { + margin: 0.2em; +} +.chat .author { + font-weight: bold; +} +.chat .content { + color: white; +} +.chat .messages { + height: calc(100% - 5em); + width: 100%; + overflow: scroll; +} +.chat .controls { + padding: 1em; +} +.chat input { + width: 100%; +} diff --git a/client-web/public/assets/style/master.css b/client-web/public/assets/style/master.css index 3013fa7..d67be15 100644 --- a/client-web/public/assets/style/master.css +++ b/client-web/public/assets/style/master.css @@ -1,5 +1,7 @@ @import url("https://s.metamuffin.org/static/font-ubuntu/include.css"); @import url("./logger.css"); +@import url("./chat.css"); +@import url("./room.css"); * { font-family: "Ubuntu", sans-serif; @@ -12,10 +14,6 @@ :root { --bg: #151315; --bg-dark: #070707; - --bg-light: #417143; - --bg-lighter: #949494; - --bg-disabled: #720000; - --bg-enabled: #097200; --ac: #5e3f84; --ac-light: #7c43bd; --ac-dark: #12005e; @@ -23,6 +21,27 @@ body { background-color: var(--bg-dark); + height: 100vh; + width: 100vw; + justify-content: left; +} + +/* layout magic, dont touch */ +.room { + display: table-cell; + white-space: nowrap; +} +.room:nth-child(2) { + width: 64vw; +} +.room:nth-child(1) { + width: 100vw; +} +.chat { + display: table-cell; + width: 35vw; + height: calc(100vh - 3em); + white-space: nowrap; } h2 { @@ -42,6 +61,10 @@ input[type="button"]:hover, button:hover { filter: brightness(130%); } +input[type="button"].active, +button.active { + filter: hue-rotate(20deg); +} input[type="text"] { background-color: var(--bg-dark); border: 1px solid var(--ac-light); @@ -59,37 +82,6 @@ input[type="text"] { z-index: 100; } -.room { - width: 100%; - height: 100%; -} - -.user { - background-color: var(--bg); - border: 0px soly transparent; - border-radius: 5px; - padding: 1em; - vertical-align: baseline; - min-width: 10em; - margin: 0.5em; -} - -.user .info .name { - font-weight: 400; -} -.user.local .info .name { - text-decoration: underline; -} -.user .info { - margin-bottom: 1em; -} - -.media { - max-height: 30vh; - border: 0px solid transparent; - border-radius: 5px; -} - .start-box { position: absolute; top: 50vh; @@ -104,10 +96,16 @@ input[type="text"] { font-size: 32px; } -.menu-overlay { - position: absolute; +.menu-br { + position: fixed; bottom: 0px; right: 0px; display: block; text-align: right; } +.menu-br .version { + font-size: medium; + font-weight: bold; + color: var(--ac-light); + padding: 0.5em; +} diff --git a/client-web/public/assets/style/room.css b/client-web/public/assets/style/room.css new file mode 100644 index 0000000..1d3ca88 --- /dev/null +++ b/client-web/public/assets/style/room.css @@ -0,0 +1,36 @@ +.room { + overflow-y: scroll; +} + +.user { + background-color: var(--bg); + border: 0px soly transparent; + border-radius: 5px; + padding: 1em; + vertical-align: baseline; + min-width: 10em; + margin: 0.5em; +} + +.user .info .name { + font-weight: 400; +} +.user.local .info .name { + text-decoration: underline; +} +.user .info { + margin-bottom: 1em; +} + +.media { + max-height: 30vh; + border: 0px solid transparent; + border-radius: 5px; +} + +.local-controls { + display: inline; +} +.local-controls::before { + content: "|"; +} |