speakmore-2.0/static/styles.css
Olai bc9fcda6aa Updated online detection and fixed bugs
Updated online detection and fixed bugs
2024-06-25 23:27:34 +02:00

453 lines
No EOL
7.7 KiB
CSS

/* styles.css */
:root{
--account-height: 50px;
}
body {
display: flex;
height: 100vh;
margin: 0;
}
body, h1, h2, h3, h4, h5, h6, p, a {
font-family: "Segoe UI", Arial, sans-serif;
font-weight: 100;
}
.sidebar h3 {
margin-top: 0;
}
.sidebar ul {
list-style: none;
padding: 0;
}
.sidebar ul li {
margin: 10px 0;
cursor: pointer;
display: flex;
align-items: center;
}
.sidebar ul li .status-indicator {
width: 10px;
height: 10px;
border-radius: 50%;
margin-right: 10px;
}
.content {
flex: 1;
padding: 20px;
overflow-y: auto;
}
.chat-container {
flex: 1;
display: flex;
flex-direction: column;
/* border-top: solid 10px #d6ebf0; */
/* border-left: solid 10px #d6ebf0; */
/* border-right: solid 10px #d6ebf0; */
/* padding: 10px 10px 0px 10px; */
overflow-y: auto;
background-color: #00000000;
}
.chat-header {
background-color: #ffffff;
height: 62px;
color: white;
/* margin: 10px 0 10px 0; */
/* border-radius: 5px; */
border: 1px solid #cad6d8;
display: flex;
align-items: center;
}
#chat-with {
color: #4f5051;
font-size: 15px;
display: flex;
align-items: center;
margin: 0;
padding: 10px 10px 10px 5px;
font-weight: 400;
}
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;
}
h1, h2, h3, h4, h5, h6{
color: #1d2021;
}
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;
}
.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;
}
.message:hover .timestamp {
display: block;
}
.message-input-container {
display: flex;
width: 100%;
margin-top: 10px;
flex-direction: column;
padding: 0px 62px;
}
.extra-buttons-text-input {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.send-message-container {
flex: 1;
border-radius: 5px;
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;
}
.message-input-container button:not(#send-message-form > div.message-input-container > div > button) {
padding: 10px;
border: none;
background-color: #7289da;
color: white;
border-radius: 5px;
cursor: pointer;
}
#send-message-form > div.message-input-container > div > button {
padding: 0px 12px 0 12px;
border: none;
background-color: #00000000;
color: #596d72;
cursor: pointer;
}
/* 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;
} */
.file-preview {
position: relative;
display: inline-block;
margin-bottom: 10px;
max-width: 100%;
}
.file-preview img,
.file-preview video,
.file-preview .file-preview-filename {
max-width: 100%;
max-height: 100px;
display: block;
margin-bottom: 5px;
}
.file-preview .remove-file {
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%;
/* box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); */
/* border-radius: 10px; */
cursor: pointer;
}
img.enhanceable-image {
border-radius: 10px;
min-height: 70px;
min-width: 70px;
}
.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 {
margin-right: 10px;
display: inline-block;
height: 10px;
width: 10px;
border-radius: 50%;
}
.online {
background-color: #23a55a;
}
.offline {
background-color: #80848e;
}
.idle {
background-color: #f0b232;
}
/* 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 */
.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;
}