Undo auto formatting

This commit is contained in:
BordedDev 2025-03-08 19:35:22 +01:00
parent ad7eab9717
commit e91ae4584a
No known key found for this signature in database
GPG Key ID: C5F495EAE56673BF

View File

@ -1,345 +1,345 @@
* { * {
margin: 0; margin: 0;
box-sizing: border-box; box-sizing: border-box;
} }
.gallery { .gallery {
padding: 50px; padding: 50px;
height: auto; height: auto;
overflow: auto; overflow: auto;
flex: 1; flex: 1;
} }
.gallery.tile, .tile { .gallery.tile, .tile {
width: 100px; width: 100px;
height: 100px; height: 100px;
object-fit: cover; object-fit: cover;
margin: 20px 10px 20px 0; margin: 20px 10px 20px 0;
border-radius: 5px; border-radius: 5px;
} }
body { body {
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
background-color: #1a1a1a; background-color: #1a1a1a;
color: #e6e6e6; color: #e6e6e6;
line-height: 1.5; line-height: 1.5;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100vh; height: 100vh;
min-width: 100%; min-width: 100%;
} }
main { main {
display: flex; display: flex;
flex: 1; flex: 1;
overflow: hidden; overflow: hidden;
} }
header { header {
background-color: #0f0f0f; background-color: #0f0f0f;
padding: 10px 20px; padding: 10px 20px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
} }
header .logo { header .logo {
color: #fff; color: #fff;
font-size: 1.5em; font-size: 1.5em;
font-weight: bold; font-weight: bold;
} }
header nav a { header nav a {
color: #aaa; color: #aaa;
text-decoration: none; text-decoration: none;
margin-left: 15px; margin-left: 15px;
font-size: 1em; font-size: 1em;
transition: color 0.3s; transition: color 0.3s;
} }
.no-select { .no-select {
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
} }
header nav a:hover { header nav a:hover {
color: #fff; color: #fff;
} }
a { a {
font-weight: bold; font-weight: bold;
color: #f05a28; color: #f05a28;
margin-bottom: 3px; margin-bottom: 3px;
} }
.chat-area { .chat-area {
flex: 1; flex: 1;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background-color: #1a1a1a; background-color: #1a1a1a;
overflow: hidden; overflow: hidden;
} }
.chat-header { .chat-header {
padding: 10px 20px; padding: 10px 20px;
background-color: #0f0f0f; background-color: #0f0f0f;
border-bottom: 1px solid #333; border-bottom: 1px solid #333;
user-select: none; user-select: none;
} }
.chat-header h2 { .chat-header h2 {
font-size: 1.2em; font-size: 1.2em;
color: #fff; color: #fff;
} }
.message-list { .message-list {
flex: 1; flex: 1;
height: 200px; height: 200px;
padding-bottom: 40px; padding-bottom: 40px;
overflow-y: auto; overflow-y: auto;
} }
.chat-messages, .threads { .chat-messages, .threads {
flex: 1; flex: 1;
overflow-y: scroll; overflow-y: scroll;
scrollbar-width: none; scrollbar-width: none;
-ms-overflow-style: none; -ms-overflow-style: none;
padding: 10px; padding: 10px;
height: 200px; height: 200px;
background: #1a1a1a; background: #1a1a1a;
} }
.container { .container {
flex: 1; flex: 1;
padding: 10px; padding: 10px;
ul { ul {
list-style: none; list-style: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
a { a {
font-size: 20px; font-size: 20px;
color: #f05a28; color: #f05a28;
} }
} }
.chat-messages::-webkit-scrollbar { .chat-messages::-webkit-scrollbar {
display: none; display: none;
} }
.chat-messages .message, .threads .thread { .chat-messages .message, .threads .thread {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
margin-bottom: 0; margin-bottom: 0;
padding: 5px; padding: 5px;
border-radius: 8px; border-radius: 8px;
} }
.chat-messages .message .avatar, .threads .thread .avatar { .chat-messages .message .avatar, .threads .thread .avatar {
width: 40px; width: 40px;
height: 40px; height: 40px;
border-radius: 50%; border-radius: 50%;
background: #f05a28; background: #f05a28;
color: #fff; color: #fff;
font-size: 1em; font-size: 1em;
font-weight: bold; font-weight: bold;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
margin-right: 15px; margin-right: 15px;
} }
.chat-messages .message .message-content, .threads .thread .message-content { .chat-messages .message .message-content, .threads .thread .message-content {
flex: 1; flex: 1;
} }
.chat-messages .message .message-content .author, .threads .thread .message-content .author { .chat-messages .message .message-content .author, .threads .thread .message-content .author {
font-weight: bold; font-weight: bold;
color: #f05a28; color: #f05a28;
margin-bottom: 3px; margin-bottom: 3px;
} }
* { * {
word-break: break-word; word-break: break-word;
overflow-wrap: break-word; overflow-wrap: break-word;
hyphens: auto; hyphens: auto;
} }
.highlight pre { .highlight pre {
white-space: pre-wrap; white-space: pre-wrap;
word-break: break-word; word-break: break-word;
overflow-wrap: break-word; overflow-wrap: break-word;
hyphens: auto; hyphens: auto;
} }
.chat-messages .message .message-content .text, .threads .thread .message-content .text { .chat-messages .message .message-content .text, .threads .thread .message-content .text {
margin-bottom: 5px; margin-bottom: 5px;
color: #e6e6e6; color: #e6e6e6;
word-break: break-word; word-break: break-word;
overflow-wrap: break-word; overflow-wrap: break-word;
hyphens: auto; hyphens: auto;
} }
.message-content { .message-content {
max-width: 100%; max-width: 100%;
} }
.message-content { .message-content {
img, video, iframe, div { img, video, iframe, div {
max-width: 90%; max-width: 90%;
border-radius: 20px; border-radius: 20px;
} }
} }
.chat-messages .message .message-content .time, .threads .thread .message-content .time { .chat-messages .message .message-content .time, .threads .thread .message-content .time {
font-size: 0.8em; font-size: 0.8em;
color: #aaa; color: #aaa;
} }
.chat-input { .chat-input {
padding: 15px; padding: 15px;
background-color: #121212; background-color: #121212;
display: flex; display: flex;
align-items: center; align-items: center;
border-top: 1px solid #333; border-top: 1px solid #333;
} }
input[type="text"], .chat-input textarea { input[type="text"], .chat-input textarea {
flex: 1; flex: 1;
background-color: #1a1a1a; background-color: #1a1a1a;
color: white; color: white;
border: none; border: none;
padding: 10px; padding: 10px;
border-radius: 5px; border-radius: 5px;
resize: none; resize: none;
} }
.chat-input upload-button { .chat-input upload-button {
background-color: #f05a28; background-color: #f05a28;
color: white; color: white;
border: none; border: none;
padding: 10px 15px; padding: 10px 15px;
margin-left: 10px; margin-left: 10px;
border-radius: 5px; border-radius: 5px;
cursor: pointer; cursor: pointer;
font-size: 1em; font-size: 1em;
transition: background-color 0.3s; transition: background-color 0.3s;
} }
.chat-input button:hover { .chat-input button:hover {
background-color: #e04924; background-color: #e04924;
} }
@media (max-width: 768px) { @media (max-width: 768px) {
.sidebar { .sidebar {
display: none; display: none;
} }
} }
.message { .message {
.text { .text {
max-width: 100%; max-width: 100%;
word-wrap: break-word; word-wrap: break-word;
overflow-wrap: break-word; overflow-wrap: break-word;
hyphens: auto; hyphens: auto;
} }
.avatar { .avatar {
opacity: 0; opacity: 0;
} }
.author, .time { .author, .time {
display: none; display: none;
} }
} }
.message.switch-user { .message.switch-user {
.text img, iframe, video { .text img, iframe, video {
max-width: 90%; max-width: 90%;
border-radius: 20px; border-radius: 20px;
} }
.avatar { .avatar {
user-select: none; user-select: none;
opacity: 1; opacity: 1;
} }
.author { .author {
display: block; display: block;
} }
} }
.message:has(+ .message.switch-user), .message:last-child { .message:has(+ .message.switch-user), .message:last-child {
.time { .time {
display: block; display: block;
} }
} }
/* The entire scrollbar */ /* The entire scrollbar */
::-webkit-scrollbar { ::-webkit-scrollbar {
display: none; display: none;
} }
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
background: #f1f1f1; background: #f1f1f1;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background-color: #888; background-color: #888;
border-radius: 3px; border-radius: 3px;
border: 1px solid #f1f1f1; border: 1px solid #f1f1f1;
} }
::-webkit-scrollbar-thumb:hover { ::-webkit-scrollbar-thumb:hover {
background-color: #555; background-color: #555;
} }
.chat-messages, .threads { .chat-messages, .threads {
scrollbar-width: none; scrollbar-width: none;
scrollbar-color: #888 #f1f1f1; scrollbar-color: #888 #f1f1f1;
} }
a { a {
text-decoration: none text-decoration: none
} }
.sidebar { .sidebar {
width: 250px; width: 250px;
background-color: #121212; background-color: #121212;
padding: 20px; padding: 20px;
overflow-y: auto; overflow-y: auto;
border-right: 1px solid #333; border-right: 1px solid #333;
} }
.sidebar h2 { .sidebar h2 {
color: #f05a28; color: #f05a28;
font-size: 1.2em; font-size: 1.2em;
margin-bottom: 20px; margin-bottom: 20px;
} }
.sidebar ul { .sidebar ul {
list-style: none; list-style: none;
} }
.sidebar ul li { .sidebar ul li {
margin-bottom: 15px; margin-bottom: 15px;
} }
.sidebar ul li a { .sidebar ul li a {
color: #ccc; color: #ccc;
text-decoration: none; text-decoration: none;
font-size: 1em; font-size: 1em;
transition: color 0.3s; transition: color 0.3s;
} }
.sidebar ul li a:hover { .sidebar ul li a:hover {
color: #fff; color: #fff;
} }