transient.chat/static/assets/css/styles.css

194 lines
2.9 KiB
CSS
Raw Permalink Normal View History

2026-05-12 23:50:49 +00:00
/* === Global === */
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 10px;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #1e1e1e;
color: #ffffff;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
}
/* === Headings === */
h1,
h2,
h3 {
color: #ffffff;
text-align: center;
margin-bottom: 10px;
}
/* === Layout Containers === */
.container {
width: 100%;
max-width: 1200px;
padding: 0 15px;
}
.title-row {
display: flex;
align-items: center;
justify-content: center;
}
.title-row img {
height: 60px;
margin-right: 15px;
}
#message-input {
flex: 1;
background-color: #1a1a1a;
color: #ffffff;
border: 1px solid #444;
border-radius: 4px;
font-size: 14px;
box-sizing: border-box;
}
button {
min-height: 36px;
height: auto;
padding: 4px 12px;
display: inline-flex;
align-items: center;
justify-content: center;
/* horizontal only */
font-weight: bold;
font-size: 14px;
background-color: #39a0ff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s ease-in-out;
}
button:hover {
background-color: #1e7cc9;
}
/* === Shared Forms/Input Styles === */
input[type="text"],
input[type="password"] {
background-color: #1a1a1a;
color: #ffffff;
border: 1px solid #444;
padding: 10px;
border-radius: 4px;
font-size: 14px;
width: 100%;
box-sizing: border-box;
margin-bottom: 10px;
}
/* === Index && Server List Styling === */
#info-text {
max-width: 800px;
text-align: center;
font-size: 16px;
padding: 0 15px;
color: #ccc;
}
#login-container {
padding: 25px 30px;
background-color: #2a2a2a;
border: 1px solid #444;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
text-align: center;
max-width: 400px;
margin: 20px auto;
}
#chat-rooms {
background-color: #2a2a2a;
border: 1px solid #444;
padding: 20px;
border-radius: 8px;
margin-top: 30px;
width: 100%;
max-width: 600px;
}
ul {
list-style-type: none;
padding-left: 0;
}
li {
margin: 8px 0;
color: #ccc;
}
/* Collapsible headers */
.collapsible {
cursor: pointer;
margin: 12px 0 8px;
}
.collapsible-content {
margin-left: 15px;
}
/* === Buttons Index Page === */
#create-room-form,
#start-chat-button,
#create-room-btn {
margin-top: 10px;
}
#create-room-btn,
#create-unlisted-room-btn {
margin-top: 0;
}
.button-row {
display: flex;
justify-content: center;
gap: 12px;
margin-top: 10px;
}
/* === Links === */
a {
color: #79c4ff;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:visited {
color: #79c4ff;
}
#username-input,
#new-room-name,
#message-input,
#new-watchparty-name,
#video-url-input {
background-color: #ffffff;
color: #444;
}
li a {
display: block;
text-align: center;
color: #ffffff;
text-decoration: underline;
}
/* === Utilities === */
.hidden {
display: none !important;
}