377 lines
6.6 KiB
CSS
377 lines
6.6 KiB
CSS
/* Base styles */
|
|
body {
|
|
background-color: #121212;
|
|
color: #e0e0e0;
|
|
font-family: 'Roboto', sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
transition: background-color 0.3s ease, color 0.3s ease;
|
|
}
|
|
|
|
#messages-container {
|
|
height: 45vh; /* Adjust as needed */
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* body {
|
|
display: flex;
|
|
} */
|
|
|
|
#sidebar {
|
|
width: 200px;
|
|
background-color: #2f3136;
|
|
color: white;
|
|
height: 100vh;
|
|
padding: 10px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#room-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
#room-list li {
|
|
padding: 10px;
|
|
cursor: pointer;
|
|
margin-bottom: 5px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
#room-list li:hover {
|
|
background-color: #40444b;
|
|
}
|
|
|
|
#content {
|
|
flex: 1;
|
|
padding: 10px;
|
|
}
|
|
|
|
#sidebar button {
|
|
width: 100%;
|
|
padding: 10px;
|
|
margin-bottom: 10px;
|
|
cursor: pointer;
|
|
background-color: #7289da;
|
|
border: none;
|
|
color: white;
|
|
font-size: 14px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
#sidebar button:hover {
|
|
background-color: #5b6eae;
|
|
}
|
|
|
|
#remove-room-btn {
|
|
margin-top: 10px;
|
|
padding: 10px;
|
|
background-color: #f04747;
|
|
border: none;
|
|
color: white;
|
|
cursor: pointer;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
#remove-room-btn:hover {
|
|
background-color: #c03535;
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
/* Header styles */
|
|
header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1rem;
|
|
background-color: #1f1f1f;
|
|
color: #fff;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
|
|
cursor: move;
|
|
-webkit-app-region: drag;
|
|
}
|
|
|
|
.window-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
-webkit-app-region: no-drag;
|
|
}
|
|
|
|
.window-controls button {
|
|
background-color: #2e2e2e;
|
|
border: none;
|
|
color: #fff;
|
|
font-size: 1.25rem;
|
|
margin-left: 0.5rem;
|
|
padding: 0.5rem;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.window-controls button:hover {
|
|
background-color: #3e3e3e;
|
|
}
|
|
|
|
/* Button and input styles */
|
|
button,
|
|
input,
|
|
textarea {
|
|
border: 1px solid #b0d944;
|
|
background-color: #333;
|
|
color: #b0d944;
|
|
padding: 0.75rem;
|
|
font-family: 'Roboto Mono', monospace;
|
|
font-size: 1rem;
|
|
line-height: 1.5rem;
|
|
border-radius: 4px;
|
|
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
|
|
resize: none; /* Prevent resizing */
|
|
overflow-y: hidden; /* Hide scrollbar */
|
|
}
|
|
|
|
textarea {
|
|
height: auto; /* Allow the textarea to grow dynamically */
|
|
}
|
|
|
|
textarea:focus {
|
|
outline: none; /* Remove focus outline */
|
|
}
|
|
|
|
textarea::placeholder {
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
/* Main container styles */
|
|
main {
|
|
display: flex;
|
|
flex: 1;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 1rem;
|
|
}
|
|
|
|
/* Hidden class */
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Form container styles */
|
|
#register,
|
|
#setup {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 2rem;
|
|
background-color: #1f1f1f;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
#or {
|
|
margin: 1.5rem 0;
|
|
color: #b0d944;
|
|
}
|
|
|
|
#loading {
|
|
align-self: center;
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Chat container styles */
|
|
#chat {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
width: 100%;
|
|
padding: 1rem;
|
|
background-color: #1e1e1e;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
|
overflow: hidden;
|
|
}
|
|
|
|
#header {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
#join-chat-room-container {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
#join-chat-room-container label {
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
#join-chat-room-container input,
|
|
#join-chat-room-container textarea {
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
#join-chat-room-container button {
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
#details {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 1rem;
|
|
background-color: #2b2b2b;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
#submit-button {
|
|
margin-left: 1rem;
|
|
}
|
|
|
|
#messages {
|
|
flex: 1;
|
|
min-height: 200px;
|
|
overflow-y: auto;
|
|
padding: 1rem;
|
|
background-color: #262626;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
#message-form {
|
|
display: flex;
|
|
margin-top: 1rem;
|
|
margin-right: 1rem;
|
|
}
|
|
|
|
#message {
|
|
flex: 1;
|
|
margin-right: 0.5rem;
|
|
padding-right: 0.5rem;
|
|
}
|
|
|
|
#user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
#user-info input {
|
|
margin: 0 0.5rem;
|
|
}
|
|
|
|
#user-list {
|
|
margin-top: 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Message styles */
|
|
.message {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.message img {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
margin-right: 0.75rem;
|
|
border: 2px solid #b0d944;
|
|
}
|
|
|
|
.message-content {
|
|
max-width: 70%;
|
|
background-color: #2e2e2e;
|
|
padding: 0.5rem;
|
|
border-radius: 10px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.message-header {
|
|
font-weight: bold;
|
|
color: #b0d944;
|
|
}
|
|
|
|
.message-time {
|
|
color: #a0a0a0;
|
|
font-size: 0.75rem;
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
/* Button and input styles */
|
|
button,
|
|
input,
|
|
textarea {
|
|
border: 1px solid #b0d944;
|
|
background-color: #333;
|
|
color: #b0d944;
|
|
padding: 0.75rem;
|
|
font-family: 'Roboto Mono', monospace;
|
|
font-size: 1rem;
|
|
line-height: 1.5rem;
|
|
border-radius: 4px;
|
|
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
|
|
resize: none; /* Prevent resizing */
|
|
overflow-y: hidden; /* Hide scrollbar */
|
|
}
|
|
|
|
textarea {
|
|
height: auto; /* Allow the textarea to grow dynamically */
|
|
}
|
|
|
|
textarea:focus {
|
|
outline: none; /* Remove focus outline */
|
|
}
|
|
|
|
textarea::placeholder {
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
/* Chat container styles */
|
|
#chat {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
width: 100%;
|
|
padding: 1rem;
|
|
background-color: #1e1e1e;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
|
overflow: hidden;
|
|
}
|
|
|
|
#message-form {
|
|
display: flex;
|
|
margin-top: 1rem;
|
|
margin-right: 1rem;
|
|
}
|
|
|
|
#message {
|
|
flex: 1;
|
|
margin-right: 0.5rem;
|
|
padding-right: 0.5rem;
|
|
height: 1.5rem; /* Initial single line height */
|
|
overflow-y: hidden; /* Hide scrollbar */
|
|
}
|
|
|
|
#message:focus {
|
|
height: auto; /* Allow the textarea to grow dynamically when focused */
|
|
}
|
|
|
|
#message:empty {
|
|
height: 1.5rem; /* Ensure single line height when empty */
|
|
} |