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