6
1
mirror of https://git.mills.io/saltyim/saltyim.git synced 2024-07-20 09:45:09 +00:00
prologic-saltyim/internal/web/css/style.css
mlctrez 53e79b449b chat_window_formatting (#102)
![image](/attachments/8d560ad1-bcf7-44c6-940e-3e386f9cc2b6)

trying out message formatting in the style of text message chatting where incoming is left justified and send messages are right justified

only the last message will have a timestamp

WIP until onClick displays timestamp of message

Co-authored-by: mlctrez <mlctrez@gmail.com>
Reviewed-on: https://git.mills.io/saltyim/saltyim/pulls/102
Reviewed-by: xuu <xuu@noreply@mills.io>
Co-authored-by: mlctrez <mlctrez@noreply@mills.io>
Co-committed-by: mlctrez <mlctrez@noreply@mills.io>
2022-03-31 21:38:34 +00:00

113 lines
1.8 KiB
CSS

body {
background-color: var(--mdc-theme-background);
color: var(--mdc-theme-text-primary-on-background);
font-family: Roboto, monospace;
margin: 0;
}
.main-content {
margin-left: 5px;
margin-right: 5px;
}
form {
display: flex;
gap: 5px;
justify-content: flex-start;
}
#wrapper {
margin: 0px;
background: #eee;
max-width: 100%;
}
#chatbox {
box-sizing: border-box;
background: #efefef;
padding: 10px;
height: calc(100vh - 130px);
width: 100%;
display: block;
overflow: auto;
}
.chat-msg.user > .msg-avatar img {
max-width: 45px;
max-height: 45px;
border-radius: 50%;
float: left;
width: 15%;
}
.chat-msg.self > .msg-avatar img {
max-width: 45px;
max-height: 45px;
border-radius: 50%;
float: right;
width: 15%;
}
.cm-msg-text {
background: white;
padding: 10px 15px 10px 15px;
color: #666;
max-width: 75%;
float: left;
margin-left: 10px;
position: relative;
margin-bottom: 20px;
border-radius: 30px;
}
.chat-msg {
clear: both;
}
.chat-msg.self > .cm-msg-text {
float: right;
margin-right: 10px;
background: #5A5EB9;
color: white;
}
.cm-msg-time {
font-size: small;
}
#chat-input {
flex: 1;
}
#config-user-input {
width: 500px;
}
#config-endpoint-input {
width: 500px;
}
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: url(micons.woff2) format('woff2');
}
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px;
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;
}