2024-06-13 17:47:01 +00:00
|
|
|
/* styles.css */
|
|
|
|
|
2024-06-24 08:50:18 +00:00
|
|
|
:root{
|
|
|
|
--account-height: 50px;
|
|
|
|
}
|
|
|
|
|
2024-06-13 13:57:02 +00:00
|
|
|
body {
|
|
|
|
display: flex;
|
|
|
|
height: 100vh;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2024-06-13 17:47:01 +00:00
|
|
|
|
2024-06-24 08:50:18 +00:00
|
|
|
body, h1, h2, h3, h4, h5, h6, p, a {
|
|
|
|
font-family: "Segoe UI", Arial, sans-serif;
|
|
|
|
font-weight: 100;
|
2024-06-13 13:57:02 +00:00
|
|
|
}
|
2024-06-13 17:47:01 +00:00
|
|
|
|
2024-06-13 13:57:02 +00:00
|
|
|
.sidebar h3 {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2024-06-13 17:47:01 +00:00
|
|
|
|
2024-06-13 13:57:02 +00:00
|
|
|
.sidebar ul {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
}
|
2024-06-13 17:47:01 +00:00
|
|
|
|
2024-06-13 13:57:02 +00:00
|
|
|
.sidebar ul li {
|
|
|
|
margin: 10px 0;
|
|
|
|
cursor: pointer;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
2024-06-13 17:47:01 +00:00
|
|
|
|
2024-06-13 13:57:02 +00:00
|
|
|
.sidebar ul li .status-indicator {
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
border-radius: 50%;
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
2024-06-13 17:47:01 +00:00
|
|
|
|
|
|
|
.content {
|
|
|
|
flex: 1;
|
|
|
|
padding: 20px;
|
|
|
|
overflow-y: auto;
|
2024-06-13 13:57:02 +00:00
|
|
|
}
|
2024-06-13 17:47:01 +00:00
|
|
|
|
2024-06-13 13:57:02 +00:00
|
|
|
.chat-container {
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-06-24 08:50:18 +00:00
|
|
|
/* border-top: solid 10px #d6ebf0; */
|
|
|
|
/* border-left: solid 10px #d6ebf0; */
|
|
|
|
/* border-right: solid 10px #d6ebf0; */
|
|
|
|
/* padding: 10px 10px 0px 10px; */
|
2024-06-13 13:57:02 +00:00
|
|
|
overflow-y: auto;
|
2024-06-24 08:50:18 +00:00
|
|
|
background-color: #00000000;
|
2024-06-13 13:57:02 +00:00
|
|
|
}
|
|
|
|
.chat-header {
|
2024-06-24 08:50:18 +00:00
|
|
|
background-color: #ffffff;
|
|
|
|
height: 62px;
|
2024-06-13 13:57:02 +00:00
|
|
|
color: white;
|
2024-06-24 08:50:18 +00:00
|
|
|
/* margin: 10px 0 10px 0; */
|
|
|
|
/* border-radius: 5px; */
|
|
|
|
border: 1px solid #cad6d8;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2024-06-13 13:57:02 +00:00
|
|
|
}
|
2024-06-13 17:47:01 +00:00
|
|
|
|
2024-06-24 08:50:18 +00:00
|
|
|
#chat-with {
|
|
|
|
color: #4f5051;
|
|
|
|
font-size: 15px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin: 0;
|
|
|
|
padding: 10px 10px 10px 5px;
|
|
|
|
font-weight: 400;
|
2024-06-13 13:57:02 +00:00
|
|
|
}
|
2024-06-13 17:47:01 +00:00
|
|
|
|
2024-06-24 08:50:18 +00:00
|
|
|
i.fa-solid.fa-hashtag {
|
|
|
|
padding-left: 10px;
|
|
|
|
color: #4f5051;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-container-and-sidebar-container {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
width: 100%;
|
|
|
|
height: calc(100% - var(--account-height));
|
|
|
|
background: #f5f5f5;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin: 0px !important;
|
|
|
|
color: #1d2021;
|
2024-06-13 13:57:02 +00:00
|
|
|
}
|
2024-06-13 17:47:01 +00:00
|
|
|
|
2024-06-24 08:50:18 +00:00
|
|
|
h1, h2, h3, h4, h5, h6{
|
|
|
|
color: #1d2021;
|
2024-06-13 13:57:02 +00:00
|
|
|
}
|
2024-06-13 17:47:01 +00:00
|
|
|
|
2024-06-24 08:50:18 +00:00
|
|
|
strong {
|
|
|
|
color: #7c7c7c;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message-sender {
|
|
|
|
align-self: flex-start;
|
|
|
|
margin-top: 15px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.message-sender-timestamp {
|
|
|
|
color: gray;
|
|
|
|
font-size: 13px;
|
|
|
|
padding-left: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-13 13:57:02 +00:00
|
|
|
.message .timestamp {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
top: -20px;
|
|
|
|
right: 0;
|
|
|
|
background-color: rgba(0,0,0,0.7);
|
|
|
|
color: white;
|
|
|
|
padding: 5px;
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
2024-06-13 17:47:01 +00:00
|
|
|
|
2024-06-13 13:57:02 +00:00
|
|
|
.message:hover .timestamp {
|
|
|
|
display: block;
|
|
|
|
}
|
2024-06-13 17:47:01 +00:00
|
|
|
|
2024-06-24 08:50:18 +00:00
|
|
|
.message-input-container {
|
2024-06-14 09:35:53 +00:00
|
|
|
display: flex;
|
2024-06-24 08:50:18 +00:00
|
|
|
width: 100%;
|
|
|
|
margin-top: 10px;
|
2024-06-14 09:35:53 +00:00
|
|
|
flex-direction: column;
|
2024-06-24 08:50:18 +00:00
|
|
|
padding: 0px 62px;
|
2024-06-14 09:35:53 +00:00
|
|
|
}
|
|
|
|
|
2024-06-24 08:50:18 +00:00
|
|
|
.extra-buttons-text-input {
|
2024-06-13 13:57:02 +00:00
|
|
|
display: flex;
|
2024-06-24 08:50:18 +00:00
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
2024-06-13 13:57:02 +00:00
|
|
|
}
|
2024-06-13 17:47:01 +00:00
|
|
|
|
2024-06-24 08:50:18 +00:00
|
|
|
.send-message-container {
|
2024-06-13 13:57:02 +00:00
|
|
|
flex: 1;
|
|
|
|
border-radius: 5px;
|
2024-06-24 08:50:18 +00:00
|
|
|
background: #ffffff;
|
|
|
|
border: 1px solid #e0e0e0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.extra-buttons-text-input {
|
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
padding-top: 9px;
|
|
|
|
padding-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
button.add-file-btn{
|
|
|
|
position: relative;
|
|
|
|
flex: 1 1 auto;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
min-width: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
button.send-btn{
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
min-width: 0;
|
|
|
|
flex: 0 0 auto;
|
2024-06-13 13:57:02 +00:00
|
|
|
}
|
2024-06-13 17:47:01 +00:00
|
|
|
|
2024-06-24 08:50:18 +00:00
|
|
|
|
|
|
|
.message-input-container button:not(#send-message-form > div.message-input-container > div > button) {
|
2024-06-13 13:57:02 +00:00
|
|
|
padding: 10px;
|
|
|
|
border: none;
|
|
|
|
background-color: #7289da;
|
|
|
|
color: white;
|
|
|
|
border-radius: 5px;
|
|
|
|
cursor: pointer;
|
2024-06-13 17:47:01 +00:00
|
|
|
}
|
|
|
|
|
2024-06-24 08:50:18 +00:00
|
|
|
#send-message-form > div.message-input-container > div > button {
|
|
|
|
padding: 0px 12px 0 12px;
|
|
|
|
border: none;
|
|
|
|
background-color: #00000000;
|
|
|
|
color: #596d72;
|
|
|
|
cursor: pointer;
|
2024-06-14 09:35:53 +00:00
|
|
|
}
|
|
|
|
|
2024-06-24 08:50:18 +00:00
|
|
|
/* input[type="text"]:not(#username) {
|
|
|
|
height: 44px;
|
|
|
|
width: 100%;
|
|
|
|
background: #ffffff;
|
|
|
|
border: 0;
|
|
|
|
padding: 12px;
|
|
|
|
border-radius: 5px;
|
|
|
|
} */
|
|
|
|
|
|
|
|
textarea:focus, input:focus{
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* .add-file-btn {
|
|
|
|
margin-right: 10px;
|
|
|
|
} */
|
|
|
|
|
2024-06-14 09:35:53 +00:00
|
|
|
.file-preview {
|
2024-06-13 17:47:01 +00:00
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
2024-06-14 09:35:53 +00:00
|
|
|
margin-bottom: 10px;
|
|
|
|
max-width: 100%;
|
2024-06-13 17:47:01 +00:00
|
|
|
}
|
|
|
|
|
2024-06-14 09:35:53 +00:00
|
|
|
.file-preview img,
|
|
|
|
.file-preview video,
|
|
|
|
.file-preview .file-preview-filename {
|
|
|
|
max-width: 100%;
|
2024-06-13 17:47:01 +00:00
|
|
|
max-height: 100px;
|
|
|
|
display: block;
|
2024-06-14 09:35:53 +00:00
|
|
|
margin-bottom: 5px;
|
2024-06-13 17:47:01 +00:00
|
|
|
}
|
|
|
|
|
2024-06-14 09:35:53 +00:00
|
|
|
.file-preview .remove-file {
|
2024-06-13 17:47:01 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
|
|
color: white;
|
|
|
|
border: none;
|
|
|
|
border-radius: 50%;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Image enhancer */
|
|
|
|
.image-overlay {
|
|
|
|
display: none;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
z-index: 1000;
|
|
|
|
}
|
|
|
|
|
|
|
|
.image-overlay img {
|
|
|
|
max-width: 90%;
|
|
|
|
max-height: 90%;
|
2024-06-24 08:50:18 +00:00
|
|
|
/* box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); */
|
|
|
|
/* border-radius: 10px; */
|
2024-06-13 17:47:01 +00:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2024-06-24 08:50:18 +00:00
|
|
|
img.enhanceable-image {
|
|
|
|
border-radius: 10px;
|
|
|
|
min-height: 70px;
|
|
|
|
min-width: 70px;
|
|
|
|
}
|
|
|
|
|
2024-06-14 09:35:53 +00:00
|
|
|
.sidebar-tabs {
|
|
|
|
width: 100%;
|
|
|
|
height: 34px;
|
|
|
|
display: flex;
|
|
|
|
padding-left: 10px;
|
|
|
|
align-items: center;
|
|
|
|
border-radius: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-tabs-content {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Toast */
|
|
|
|
.toast {
|
|
|
|
display: none;
|
|
|
|
position: fixed;
|
|
|
|
bottom: 10px;
|
|
|
|
left: 50%;
|
|
|
|
transform: translateX(-50%);
|
|
|
|
background-color: #333;
|
|
|
|
color: #fff;
|
|
|
|
padding: 10px;
|
|
|
|
border-radius: 5px;
|
|
|
|
z-index: 1000;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toast.show {
|
|
|
|
display: block;
|
|
|
|
animation: fadeInOut 3s;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes fadeInOut {
|
|
|
|
0% { opacity: 0; }
|
|
|
|
10% { opacity: 1; }
|
|
|
|
90% { opacity: 1; }
|
|
|
|
100% { opacity: 0; }
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Right click menu */
|
|
|
|
.custom-context-menu {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
z-index: 1000;
|
|
|
|
width: 150px;
|
|
|
|
background-color: #fff;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
|
|
|
|
}
|
|
|
|
|
|
|
|
.custom-context-menu ul {
|
|
|
|
list-style-type: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.custom-context-menu ul li {
|
|
|
|
padding: 10px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.custom-context-menu ul li:hover {
|
|
|
|
background-color: #eee;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Status indicator */
|
|
|
|
/* li {
|
|
|
|
list-style-type: none;
|
|
|
|
} */
|
|
|
|
|
|
|
|
ul#friends-list {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.status-indicator {
|
2024-06-13 17:47:01 +00:00
|
|
|
margin-right: 10px;
|
2024-06-14 09:35:53 +00:00
|
|
|
display: inline-block;
|
2024-06-13 17:47:01 +00:00
|
|
|
height: 10px;
|
|
|
|
width: 10px;
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
2024-06-14 09:35:53 +00:00
|
|
|
|
|
|
|
.online {
|
|
|
|
background-color: #23a55a;
|
|
|
|
}
|
|
|
|
|
|
|
|
.offline {
|
2024-06-13 17:47:01 +00:00
|
|
|
background-color: #80848e;
|
2024-06-14 09:35:53 +00:00
|
|
|
}
|
2024-06-24 08:50:18 +00:00
|
|
|
|
|
|
|
/* Custom Scroll Bar */
|
|
|
|
|
|
|
|
::-webkit-scrollbar {
|
|
|
|
width: 5px;
|
|
|
|
padding-right: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-track {
|
|
|
|
background: #00000000;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
background: #909090;
|
|
|
|
border-radius: 100vh;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
|
|
background: #909090;
|
|
|
|
}
|
|
|
|
|
|
|
|
@font-face{
|
|
|
|
font-family: "LogoFont";
|
|
|
|
src: url("./fonts/speakmore-font.ttf") format("truetype");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Dropdown Button */
|
|
|
|
.dropbtn {
|
|
|
|
background-color: transparent;
|
|
|
|
color: white;
|
|
|
|
padding: 16px;
|
|
|
|
font-size: 16px;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* The container <div> - needed to position the dropdown content */
|
|
|
|
.dropdown {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Dropdown Content (Hidden by Default) */
|
|
|
|
.dropdown-content {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
min-width: max-content;
|
|
|
|
right: 0px;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Links inside the dropdown */
|
|
|
|
.dropdown-content a {
|
|
|
|
padding: 12px 16px;
|
|
|
|
text-decoration: none;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-content p {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Change color of dropdown links on hover */
|
|
|
|
.dropdown-content a:hover {background-color: #838383;}
|
|
|
|
|
|
|
|
/* Show the dropdown menu on hover */
|
|
|
|
.dropdown:hover .dropdown-content {display: block;}
|
|
|
|
|
|
|
|
/* Change the background color of the dropdown button when the dropdown content is shown */
|
2024-06-24 21:06:46 +00:00
|
|
|
.dropdown:hover .dropbtn {background-color: transparent;}
|
|
|
|
|
|
|
|
.profile-picture {
|
|
|
|
width: 40px !important;
|
|
|
|
height: 40px !important;
|
|
|
|
min-width: 40px !important;
|
|
|
|
min-height: 40px !important;
|
|
|
|
border-radius: 50% !important;
|
|
|
|
margin-right: 10px;
|
|
|
|
position: relative;
|
|
|
|
right: 44px;
|
|
|
|
top: 14px;
|
|
|
|
}
|
|
|
|
.message-sender > strong, .message-sender > .message-sender-timestamp {
|
|
|
|
position: relative;
|
|
|
|
right: 48px;
|
|
|
|
}
|