6
1
mirror of https://git.mills.io/saltyim/saltyim.git synced 2024-07-03 00:33:38 +00:00
prologic-saltyim/internal/web/css/style.css
James Mills 237dce3664 Fixes live from @ullarah 😅 (#135)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/saltyim/saltyim/pulls/135
2022-04-03 09:46:28 +00:00

124 lines
2.2 KiB
CSS

html, body {
background-color: var(--mdc-theme-background);
color: var(--mdc-theme-text-primary-on-background);
font-family: system-ui, -apple-system, "Segoe UI", "Roboto", "Ubuntu";
margin: 0;
}
form {
margin: 0 0.5rem;
background-color: var(--mdc-theme-primary);
display: flex;
gap: 0.5rem;
justify-content: flex-start;
border-radius: 0.5rem;
}
#wrapper {
margin: 0;
background: #eee;
max-width: 100%;
padding-bottom: 1.1rem;
}
#chatbox {
margin-top: -2rem;
box-sizing: border-box;
background: #efefef;
padding: 10px;
height: calc(100vh - 130px);
width: 100%;
display: block;
overflow: auto;
}
.chat-msg.user > .msg-avatar img,
.chat-msg.self > .msg-avatar img {
max-width: 45px;
max-height: 45px;
border-radius: 50%;
float: left;
width: 15%;
}
.chat-msg.user > .msg-avatar img {
float: left;
}
.chat-msg.self > .msg-avatar img {
float: right;
}
.cm-msg-text {
background: white;
padding: 10px 15px 10px 15px;
color: #666;
max-width: 75%;
float: left;
margin-left: 10px;
position: relative;
margin-bottom: 1.25rem;
border-radius: 0.5rem;
}
.chat-msg {
clear: both;
}
.chat-msg.self > .cm-msg-text {
float: right;
margin-right: 10px;
background: var(--mdc-theme-primary);
color: white;
}
.cm-msg-time {
font-size: small;
}
#chat-send {
color: #fff;
vertical-align: middle;
height: 3.5rem;
margin-left: -0.5rem;
}
#chat-input {
flex: 1;
border-radius: 0.5rem;
border: 2px solid var(--mdc-theme-primary);
padding: 10px;
}
#config-user-input {
width: 500px;
}
#config-endpoint-input {
width: 500px;
}
@font-face {
font-family: 'wdc';
font-style: normal;
font-weight: 400;
src: url(micons.woff2) format('woff2');
}
.material-icons {
font-family: 'wdc';
font-weight: normal;
font-style: normal;
font-size: 1.5rem;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-webkit-font-feature-settings: 'liga';
-webkit-font-smoothing: antialiased;
}