6
1
mirror of https://git.mills.io/saltyim/saltyim.git synced 2024-07-05 09:31:25 +00:00
prologic-saltyim/internal/web/css/style.css

124 lines
2.2 KiB
CSS
Raw Normal View History

html, body {
2022-03-23 04:06:56 +00:00
background-color: var(--mdc-theme-background);
color: var(--mdc-theme-text-primary-on-background);
font-family: system-ui, -apple-system, "Segoe UI", "Roboto", "Ubuntu";
2022-03-23 04:06:56 +00:00
margin: 0;
}
2022-03-23 17:08:21 +00:00
form {
margin: 0 0.5rem;
background-color: var(--mdc-theme-primary);
2022-03-23 17:08:21 +00:00
display: flex;
gap: 0.5rem;
2022-03-23 17:08:21 +00:00
justify-content: flex-start;
border-radius: 0.5rem;
2022-03-23 17:08:21 +00:00
}
#wrapper {
margin: 0;
2022-03-23 17:08:21 +00:00
background: #eee;
max-width: 100%;
padding-bottom: 1.1rem;
2022-03-23 17:08:21 +00:00
}
#chatbox {
margin-top: -2rem;
2022-03-23 17:08:21 +00:00
box-sizing: border-box;
background: #efefef;
2022-03-23 17:08:21 +00:00
padding: 10px;
height: calc(100vh - 130px);
width: 100%;
display: block;
2022-03-23 17:08:21 +00:00
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%;
2022-03-25 02:22:57 +00:00
}
.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;
2022-03-23 17:08:21 +00:00
}
.cm-msg-time {
font-size: small;
2022-03-25 02:11:26 +00:00
}
#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;
2022-03-23 17:08:21 +00:00
}
2022-03-24 14:50:51 +00:00
#config-user-input {
width: 500px;
}
2022-03-25 02:11:26 +00:00
2022-03-24 14:50:51 +00:00
#config-endpoint-input {
width: 500px;
}
2022-03-23 17:08:21 +00:00
2022-03-23 04:06:56 +00:00
@font-face {
font-family: 'wdc';
2022-03-23 04:06:56 +00:00
font-style: normal;
font-weight: 400;
src: url(micons.woff2) format('woff2');
}
.material-icons {
font-family: 'wdc';
2022-03-23 04:06:56 +00:00
font-weight: normal;
font-style: normal;
font-size: 1.5rem;
2022-03-23 04:06:56 +00:00
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;
}