keanu-weblite/src/assets/css/chat.scss
2020-12-15 17:06:26 +01:00

341 lines
No EOL
8 KiB
SCSS

@import "@/assets/css/main.scss";
$chat-background: $background;
$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;
.chat-header {
margin: 0;
padding: 0;
background-color: #ffffff;
border-bottom: 1px solid #eeeeee;
.chat-header-row {
margin: 0;
padding: 4px 10px;
align-items: center;
}
.num-members {
font-family: 'Titillium Web', sans-serif;
font-weight: 400;
font-size: 12 * $chat-text-size;
color: black;
}
.v-btn.leave-button {
font-family: 'Titillium Web', sans-serif;
font-weight: 700;
font-size: 11 * $chat-text-size;
color: white;
background-color: #f74e4e !important;
border: none;
border-radius: $chat-standard-padding / 2;
height: $chat-standard-padding;
margin-top: $chat-standard-padding-xs;
margin-bottom: $chat-standard-padding-xs;
}
}
.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 {
background-color: #e2e2e2;
margin: 0;
padding-left: $chat-standard-padding-s;
padding-right: $chat-standard-padding-s;
}
.input-area-outer {
background-color: #ffffff;
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;
}
.input-area-inner {
background-color: white;
border: 1px solid #d4d4d4;
border-radius: 32px;
}
.input-area-button {
margin: 0;
padding: 0;
min-width: 48px;
}
.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;
}
}
}
.op-button {
position:absolute;
right:-30px;
top:0;
.v-icon {
color: #cccccc;
&:hover {
color: #888888;
}
}
}
.messageOut .op-button {
right:70%;
}
}
.messageJoin {
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: #e5e5e5;
border-radius: 10px 10px 0 10px;
padding: 8px;
}
.audio-bubble {
overflow: scroll;
}
.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;
}
}
.messageIn {
margin: 8px;
margin-right: 30% !important;
text-align: left;
position: relative;
.bubble {
background-color: #eeeeee;
border-radius: 0px 10px 10px 10px;
padding: 8px;
border-width: 1px !important;
border-style: solid !important;
border-color: #eeeeee !important;
margin-left: 40px;
}
.audio-bubble {
margin-left: 40px;
overflow: scroll;
}
.bubble.image-bubble {
padding: 0px;
overflow: hidden;
}
.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;
}
}
.sender, .status {
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;
color: #000000;
overflow-wrap: break-word;
white-space: pre;
.edit-marker {
font-size: 0.8rem;
color: #888888;
}
}
.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 {
font-family: 'Titillium Web', sans-serif;
font-weight: 700;
font-size: 13 * $chat-text-size;
color: #000000;
overflow-wrap: break-word;
white-space: pre;
}
.original-message-text {
font-family: 'Titillium Web', sans-serif;
font-weight: 400;
font-size: 11 * $chat-text-size;
color: #000000;
overflow-wrap: break-word;
white-space: pre;
}
}
.time {
font-family: 'Titillium Web', sans-serif;
font-weight: 300;
font-style: italic;
font-size: 15 * $chat-text-size;
color: #1c242a;
display: inline-block;
}
.statusEvent {
font-family: 'Titillium Web', sans-serif;
font-weight: 300;
font-size: 15 * $chat-text-size;
color: #1c242a;
text-align: center;
margin: 20px;
}
.message-operations-strut {
position: relative;
height: 0px;
z-index: 1;
}
.message-operations {
position: absolute;
width: auto;
background-color: #e2e2e2;
&.incoming {
right: 30%;
}
&.outgoing {
left: 30%;
}
}
.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;
}
}
.room-name {
font-family: 'Poppins', sans-serif;
font-weight: 700;
font-size: 21 * $chat-text-size;
color: black;
}