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

313 lines
7.3 KiB
SCSS
Raw Normal View History

2020-11-09 15:55:17 +01:00
@import "@/assets/css/main.scss";
$chat-background: $background;
2020-11-09 10:26:56 +01:00
$chat-standard-padding: 32px;
$chat-standard-padding-s: 16px;
$chat-standard-padding-xs: 8px;
$chat-text-size: 0.7pt;
.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 {
font-family: 'Titillium Web', sans-serif;
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 {
font-family: 'Titillium Web', 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 {
font-family: 'Titillium Web', sans-serif;
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;
font-family: 'Titillium Web', sans-serif;
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 {
position:absolute;
right:-30px;
top:0;
.v-icon {
color: #cccccc;
&:hover {
color: #888888;
}
}
}
.messageOut .op-button {
right:70%;
}
2020-11-09 10:26:56 +01:00
}
2020-12-04 12:15:47 +01:00
.messageJoin {
2020-11-09 10:26:56 +01:00
font-family: 'Titillium Web', sans-serif;
font-weight: 300;
font-size: 15 * $chat-text-size;
color: #1c242a;
text-align: center;
}
.messageOut {
margin: 8px;
margin-left: 30% !important;
text-align: right;
.bubble {
background-color: #88eec0;
2020-11-09 10:26:56 +01:00
border-radius: 10px 10px 0 10px;
padding: 8px;
}
2020-12-14 16:11:45 +01:00
.audio-bubble {
overflow: scroll;
}
2020-11-19 17:08:58 +01:00
.bubble.image-bubble {
padding: 0px;
overflow: hidden;
}
.sender {
font-family: 'Titillium Web', 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 {
font-family: 'Titillium Web', 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
}
}
.messageIn {
margin: 8px;
margin-right: 30% !important;
text-align: left;
2020-11-11 20:27:34 +01:00
position: relative;
2020-11-09 10:26:56 +01:00
.bubble {
background-color: #eeeeee;
border-radius: 0px 10px 10px 10px;
2020-11-09 10:26:56 +01:00
padding: 8px;
border-width: 1px !important;
border-style: solid !important;
border-color: #eeeeee !important;
margin-left: 40px;
}
.audio-bubble {
margin-left: 40px;
2020-12-14 16:11:45 +01:00
overflow: scroll;
2020-11-09 10:26:56 +01:00
}
2020-11-19 17:08:58 +01:00
.bubble.image-bubble {
padding: 0px;
overflow: hidden;
}
2020-11-11 20:27:34 +01:00
.avatar {
position: absolute;
left: -10px;
top: 0;
border: 2px solid white;
}
.sender {
font-family: 'Titillium Web', 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 {
font-family: 'Titillium Web', 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 {
2020-11-09 10:26:56 +01:00
font-family: 'Titillium Web', sans-serif;
font-weight: 300;
font-size: 15 * $chat-text-size;
color: #1c242a;
margin-bottom: 4px;
}
.message {
font-family: 'Titillium Web', sans-serif;
font-weight: 400;
font-size: 14 * $chat-text-size;
2020-11-09 10:26:56 +01:00
color: #000000;
overflow-wrap: break-word;
2020-11-25 15:29:20 +01:00
.edit-marker {
font-size: 0.8rem;
color: #888888;
}
2020-11-09 10:26:56 +01:00
}
.time {
font-family: 'Titillium Web', sans-serif;
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 {
font-family: 'Titillium Web', 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;
2020-12-14 16:11:45 +01:00
width: auto;
2020-12-14 17:12:29 +01:00
background-color: #e2e2e2;
2020-11-25 14:42:50 +01:00
&.incoming {
2020-12-14 16:11:45 +01:00
right: 30%;
2020-11-25 14:42:50 +01:00
}
&.outgoing {
2020-12-14 16:11:45 +01:00
left: 30%;
2020-11-25 14:42:50 +01:00
}
}
.quick-reaction-container {
.quick-reaction {
border: 1px solid #e2e2e2;
border-radius: 9px;
margin: 0px 2px;
padding: 2px;
&:hover {
border: 1px solid #888888;
background-color: #e2e2e2;
}
.quick-reaction-count {
color: #888888;
font-size: 0.7rem;
}
}
.sent {
background-color: palegreen;
}
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;
}