keanu-weblite/src/assets/css/chat.scss

395 lines
9.2 KiB
SCSS
Raw Normal View History

2020-11-09 15:55:17 +01:00
@import "@/assets/css/main.scss";
2020-11-09 10:26:56 +01:00
.chat-root {
position: absolute;
left: 0px;
top: 0px;
right: 0px;
bottom: 0px;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
background-color: $chat-background;
overflow: hidden;
2020-12-04 17:15:18 +01:00
.chat-header {
margin: 0;
padding: 0;
2020-12-09 15:20:50 +01:00
background-color: #ffffff;
border-bottom: 1px solid #eeeeee;
2020-12-04 17:15:18 +01:00
.chat-header-row {
margin: 0;
padding: 4px 10px;
align-items: center;
}
.num-members {
2021-01-11 17:44:09 +01:00
font-family: 'Inter', sans-serif;
2020-12-04 17:15:18 +01:00
font-weight: 400;
2020-12-09 15:20:50 +01:00
font-size: 12 * $chat-text-size;
2020-12-04 17:15:18 +01:00
color: black;
}
.v-btn.leave-button {
2021-01-11 17:44:09 +01:00
font-family: 'Inter', sans-serif;
2020-12-09 15:20:50 +01:00
font-weight: 700;
font-size: 11 * $chat-text-size;
2020-12-04 17:15:18 +01:00
color: white;
2020-12-09 15:20:50 +01:00
background-color: #f74e4e !important;
2020-12-04 17:15:18 +01:00
border: none;
2020-12-09 15:20:50 +01:00
border-radius: $chat-standard-padding / 2;
2020-12-04 17:15:18 +01:00
height: $chat-standard-padding;
margin-top: $chat-standard-padding-xs;
margin-bottom: $chat-standard-padding-xs;
}
}
2020-11-09 10:26:56 +01:00
.chat-content {
margin: 0;
padding-top: $chat-standard-padding-s;
padding-left: $chat-standard-padding-s;
padding-bottom: $chat-standard-padding-s;
padding-right: $chat-standard-padding-s;
&::-webkit-scrollbar {
width: 4px;
}
/* Track */
&::-webkit-scrollbar-track {
background: #cccccc;
}
/* Handle */
&::-webkit-scrollbar-thumb {
background: black;
}
/* Handle on hover */
&::-webkit-scrollbar-thumb:hover {
background: #4d4d4d;
}
}
.input-area {
2020-12-04 12:15:47 +01:00
background-color: #e2e2e2;
2020-11-09 10:26:56 +01:00
margin: 0;
padding-left: $chat-standard-padding-s;
padding-right: $chat-standard-padding-s;
}
2020-12-04 12:15:47 +01:00
.input-area-outer {
2020-12-10 12:00:07 +01:00
background-color: #ffffff;
2020-12-04 12:15:47 +01:00
margin: 0;
padding-left: 2 * $chat-standard-padding-s;
padding-right: 2 * $chat-standard-padding-s;
padding-top: 0px;
.typing {
2021-01-11 17:44:09 +01:00
font-family: 'Inter', sans-serif;
2020-12-04 12:15:47 +01:00
font-weight: 300;
font-size: 12 * $chat-text-size;
color: #1c242a;
text-align: center;
min-height: 20px;
2020-11-09 10:26:56 +01:00
}
2020-12-04 12:15:47 +01:00
.input-area-inner {
background-color: white;
2020-12-10 12:00:07 +01:00
border: 1px solid #d4d4d4;
border-radius: 32px;
2020-11-09 10:26:56 +01:00
}
2020-12-04 12:15:47 +01:00
.input-area-button {
margin: 0;
padding: 0;
min-width: 48px;
2020-11-09 10:26:56 +01:00
}
2020-12-04 12:15:47 +01:00
.input-area-text {
max-height: 30vh;
overflow-x: hidden;
overflow-y: auto;
padding: 0 0 0 0px;
margin: 6px 0;
2021-01-11 17:44:09 +01:00
font-family: 'Inter', sans-serif;
2020-12-04 12:15:47 +01:00
font-weight: 300;
font-size: 18 * $chat-text-size;
.v-input__slot {
/* Remove text underline */
color: transparent !important;
min-height: 20px;
}
2020-11-17 20:02:42 +01:00
}
2020-11-09 10:26:56 +01:00
}
2020-12-14 16:11:45 +01:00
.op-button {
2021-01-11 17:44:09 +01:00
position: relative;
display: inline-block;
vertical-align: top !important;
2020-12-14 16:11:45 +01:00
.v-icon {
2020-12-15 17:21:34 +01:00
color: #eeeeee;
2020-12-14 16:11:45 +01:00
&:hover {
color: #888888;
}
}
}
2020-11-09 10:26:56 +01:00
}
2020-12-04 12:15:47 +01:00
.messageJoin {
2021-01-11 17:44:09 +01:00
font-family: 'Inter', sans-serif;
2020-11-09 10:26:56 +01:00
font-weight: 300;
font-size: 15 * $chat-text-size;
color: #1c242a;
text-align: center;
}
2021-01-11 17:44:09 +01:00
.messageIn {
2020-11-09 10:26:56 +01:00
margin: 8px;
2021-01-11 17:44:09 +01:00
text-align: left;
position: relative;
2020-11-09 10:26:56 +01:00
.bubble {
2021-01-11 17:44:09 +01:00
background-color: #eeeeee;
border-radius: 0px 10px 10px 10px;
2020-11-09 10:26:56 +01:00
padding: 8px;
2021-01-11 17:44:09 +01:00
border-width: 1px !important;
border-style: solid !important;
border-color: #eeeeee !important;
display: inline-block;
position: relative;
max-width: 70%;
2020-11-09 10:26:56 +01:00
}
2020-12-14 16:11:45 +01:00
.audio-bubble {
overflow: scroll;
2021-01-11 17:44:09 +01:00
display: inline-block;
width: fit-content;
max-width: 70%;
2020-12-14 16:11:45 +01:00
}
2020-11-19 17:08:58 +01:00
.bubble.image-bubble {
padding: 0px;
overflow: hidden;
2021-01-11 17:44:09 +01:00
display: inline-block;
width: 70%;
max-width: 70%;
}
.avatar {
display: inline-block;
vertical-align: top !important;
margin-right: 10px;
top: 0;
border: 2px solid white;
}
.senderAndTime {
display: block;
2020-11-19 17:08:58 +01:00
}
.sender {
2021-01-11 17:44:09 +01:00
font-family: 'Inter', sans-serif;
font-weight: 400;
font-style: normal;
font-size: 10 * $chat-text-size;
color: rgba(#000000, 0.6);
margin-left: 40px;
margin-right: 8px;
2021-01-11 17:44:09 +01:00
display: inline-block;
}
.time {
2021-01-11 17:44:09 +01:00
font-family: 'Inter', sans-serif;
font-weight: 400;
font-style: normal;
font-size: 10 * $chat-text-size;
color: rgba(#000000, 0.6);
display: inline-block;
2020-11-09 10:26:56 +01:00
}
}
2021-01-11 17:44:09 +01:00
.messageOut {
2020-11-09 10:26:56 +01:00
margin: 8px;
2021-01-11 17:44:09 +01:00
text-align: right;
2020-11-11 20:27:34 +01:00
position: relative;
2020-11-09 10:26:56 +01:00
.bubble {
2021-01-11 17:44:09 +01:00
background-color: #e5e5e5;
border-radius: 10px 10px 0 10px;
2020-11-09 10:26:56 +01:00
padding: 8px;
2021-01-11 17:44:09 +01:00
display: inline-block;
position: relative;
max-width: 70%;
}
.audio-bubble {
2020-12-14 16:11:45 +01:00
overflow: scroll;
2021-01-11 17:44:09 +01:00
display: inline-block;
width: fit-content;
max-width: 70%;
2020-11-09 10:26:56 +01:00
}
2020-11-19 17:08:58 +01:00
.bubble.image-bubble {
padding: 0px;
2021-01-11 17:44:09 +01:00
display: inline-block;
width: 70%;
max-width: 70%;
.v-image {
border-radius: 10px 10px 0 10px;
}
2020-11-19 17:08:58 +01:00
}
2021-01-11 17:44:09 +01:00
.senderAndTime {
display: block;
2020-11-11 20:27:34 +01:00
}
.sender {
2021-01-11 17:44:09 +01:00
font-family: 'Inter', sans-serif;
font-weight: 400;
font-style: normal;
font-size: 10 * $chat-text-size;
color: rgba(#000000, 0.6);
display: inline-block;
margin-left: 40px;
margin-right: 8px;
}
.time {
2021-01-11 17:44:09 +01:00
font-family: 'Inter', sans-serif;
font-weight: 400;
font-style: normal;
font-size: 10 * $chat-text-size;
color: rgba(#000000, 0.6);
display: inline-block;
2020-11-11 20:27:34 +01:00
}
2020-11-09 10:26:56 +01:00
}
.sender, .status {
2021-01-11 17:44:09 +01:00
font-family: 'Inter', sans-serif;
2020-11-09 10:26:56 +01:00
font-weight: 300;
font-size: 15 * $chat-text-size;
color: #1c242a;
margin-bottom: 4px;
}
.message {
2021-01-11 17:44:09 +01:00
font-family: 'Inter', sans-serif;
2020-11-09 10:26:56 +01:00
font-weight: 400;
2021-01-11 17:44:09 +01:00
font-size: 16 * $chat-text-size;
2020-11-09 10:26:56 +01:00
color: #000000;
overflow-wrap: break-word;
2021-01-11 17:44:09 +01:00
word-wrap: break-word;
white-space: pre-wrap;
2020-11-25 15:29:20 +01:00
.edit-marker {
font-size: 0.8rem;
color: #888888;
}
2020-11-09 10:26:56 +01:00
}
2020-12-15 17:06:26 +01:00
.original-message {
background-color: white;
border: 1px solid black;
border-radius: 10px;
padding: 8px;
max-height: 200px;
overflow-x: hidden;
overflow-y: auto;
margin-bottom: 8px;
.original-message-sender {
2021-01-11 17:44:09 +01:00
font-family: 'Inter', sans-serif;
2020-12-15 17:06:26 +01:00
font-weight: 700;
font-size: 13 * $chat-text-size;
color: #000000;
overflow-wrap: break-word;
white-space: pre;
}
.original-message-text {
2021-01-11 17:44:09 +01:00
font-family: 'Inter', sans-serif;
2020-12-15 17:06:26 +01:00
font-weight: 400;
font-size: 11 * $chat-text-size;
color: #000000;
overflow-wrap: break-word;
white-space: pre;
}
}
2020-11-09 10:26:56 +01:00
.time {
2021-01-11 17:44:09 +01:00
font-family: 'Inter', sans-serif;
2020-11-09 10:26:56 +01:00
font-weight: 300;
font-style: italic;
font-size: 15 * $chat-text-size;
color: #1c242a;
display: inline-block;
2020-11-09 10:26:56 +01:00
}
.statusEvent {
2021-01-11 17:44:09 +01:00
font-family: 'Inter', sans-serif;
font-weight: 300;
font-size: 15 * $chat-text-size;
color: #1c242a;
text-align: center;
margin: 20px;
2020-11-25 14:42:50 +01:00
}
2020-12-14 16:11:45 +01:00
.message-operations-strut {
position: relative;
height: 0px;
z-index: 1;
}
.message-operations {
2020-11-25 14:42:50 +01:00
position: absolute;
2021-01-11 17:44:09 +01:00
width: fit-content;
2020-12-14 17:12:29 +01:00
background-color: #e2e2e2;
2021-01-11 17:44:09 +01:00
// &.incoming {
// right: 30%;
// }
// &.outgoing {
// left: 30%;
// }
2020-11-25 14:42:50 +01:00
}
.quick-reaction-container {
2020-12-15 17:21:34 +01:00
position: absolute;
background-color: #000000;
border: 3px solid white;
border-radius: 15px;
height: 30px;
2021-01-11 17:44:09 +01:00
width: fit-content;
right: 10px;
top: -12px;
2020-11-25 14:42:50 +01:00
.quick-reaction {
2021-01-11 17:44:09 +01:00
margin: 0px 6px;
2020-11-25 14:42:50 +01:00
padding: 2px;
2020-12-15 17:21:34 +01:00
font-size: 10px;
2020-11-25 14:42:50 +01:00
&:hover {
border: 1px solid #888888;
background-color: #e2e2e2;
}
.quick-reaction-count {
color: #888888;
font-size: 0.7rem;
}
}
2020-12-15 17:21:34 +01:00
.sent .quick-reaction-count {
color: white;
font-weight: 700;
// background-color: palegreen;
2020-11-25 14:42:50 +01:00
}
2020-12-10 20:10:22 +01:00
}
.room-name {
font-family: 'Poppins', sans-serif;
font-weight: 700;
font-size: 21 * $chat-text-size;
color: black;
2021-01-14 17:21:11 +01:00
}
.read-marker {
margin-left: 20px;
margin-right: 20px;
height: 1px;
width: 100%;
2021-01-14 17:21:11 +01:00
line-height: var(--v-theme-title-featured-line-height);
position: absolute;
bottom: 0;
2021-01-14 17:21:11 +01:00
font-family: sans-serif;
font-style: normal;
font-weight: bold;
font-size: 8 * $chat-text-size;
2021-01-14 17:21:11 +01:00
line-height: 140%;
/* identical to box height, or 14px */
letter-spacing: 0.29px;
color: #c0c0c0;
background-color: #c0c0c0;
text-align: center;
2021-01-14 17:21:11 +01:00
&::after {
position: absolute;
top: -4px;
2021-01-14 17:21:11 +01:00
background: white;
padding-left: 4px;
padding-right: 4px;
2021-01-14 17:21:11 +01:00
content: attr(title);
}
}