435 lines
7.7 KiB
CSS
435 lines
7.7 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;
|
|
}
|
|
|
|
pear-ctrl[data-platform="darwin"] { float: right; margin-top: 4px; }
|
|
|
|
pear-ctrl {
|
|
margin-top: 9px;
|
|
margin-left: 9px;
|
|
position: absolute;
|
|
}
|
|
|
|
pear-ctrl:after {
|
|
content: '';
|
|
display: block;
|
|
height: 1.8rem;
|
|
position: fixed;
|
|
z-index: -1;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
background-color: #B0D94413;
|
|
filter: drop-shadow(2px 10px 6px #888);
|
|
}
|
|
|
|
main {
|
|
display: flex;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
/* Ensure no overflow in main */
|
|
}
|
|
|
|
#sidebar {
|
|
width: 200px;
|
|
background-color: #2f3136;
|
|
color: white;
|
|
height: 100%;
|
|
padding: 10px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
padding: 10px;
|
|
}
|
|
|
|
#register,
|
|
#setup,
|
|
#chat {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 2rem;
|
|
background-color: #1f1f1f;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
#chat {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
padding: 1rem;
|
|
background-color: #1e1e1e;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
|
width: 100%;
|
|
}
|
|
|
|
#messages-container {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
/* Allow vertical scrolling */
|
|
overflow-x: hidden;
|
|
/* Hide horizontal scrolling */
|
|
width: 100%;
|
|
}
|
|
|
|
#messages-container::-webkit-scrollbar {
|
|
width: 8px;
|
|
/* Set the width of the scrollbar */
|
|
}
|
|
|
|
#messages-container::-webkit-scrollbar-thumb {
|
|
background-color: #b0d944;
|
|
/* Set the color of the scrollbar thumb */
|
|
border-radius: 10px;
|
|
/* Round the corners of the scrollbar thumb */
|
|
}
|
|
|
|
#messages-container::-webkit-scrollbar-track {
|
|
background: #2e2e2e;
|
|
/* Set the color of the scrollbar track */
|
|
}
|
|
|
|
#message-form {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-top: 1rem;
|
|
width: 100%;
|
|
}
|
|
|
|
#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 */
|
|
}
|
|
|
|
#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;
|
|
padding: 1rem;
|
|
background-color: #1f1f1f;
|
|
color: #fff;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
|
|
cursor: move;
|
|
-webkit-app-region: drag;
|
|
}
|
|
|
|
#linkup-text {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.window-controls {
|
|
display: flex;
|
|
-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.5rem;
|
|
/* Reduced padding */
|
|
font-family: 'Roboto Mono', monospace;
|
|
font-size: 1rem;
|
|
line-height: 1.25rem;
|
|
/* Adjusted line height */
|
|
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;
|
|
}
|
|
|
|
#attach-file, #message-form input[type="submit"] {
|
|
padding: 0.5rem 1rem; /* Add padding to buttons */
|
|
margin-left: 0.5rem; /* Add margin between buttons */
|
|
}
|
|
|
|
/* 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 {
|
|
width: 100%;
|
|
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;
|
|
align-items: center;
|
|
padding: 1rem;
|
|
background-color: #2b2b2b;
|
|
border-radius: 4px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
/* Added to ensure box model includes padding */
|
|
}
|
|
|
|
#details>div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
/* Allow peers count to stack */
|
|
}
|
|
|
|
#submit-button {
|
|
margin-left: 1rem;
|
|
}
|
|
|
|
#messages {
|
|
flex: 1;
|
|
min-height: 200px;
|
|
overflow-y: auto;
|
|
padding: 0.5rem;
|
|
/* Reduced padding */
|
|
background-color: #262626;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
}
|
|
|
|
#message-form {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-top: 1rem;
|
|
width: 100%;
|
|
}
|
|
|
|
#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: flex-start;
|
|
margin-bottom: 0.5rem;
|
|
/* Reduced margin */
|
|
}
|
|
|
|
.message img.avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
margin-right: 0.5rem;
|
|
border: 2px solid #b0d944;
|
|
}
|
|
|
|
.message-content {
|
|
max-width: 70%;
|
|
background-color: #2e2e2e;
|
|
padding: 0.5rem;
|
|
/* Reduced padding */
|
|
border-radius: 8px;
|
|
/* Reduced border radius */
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.message-header {
|
|
font-weight: bold;
|
|
color: #b0d944;
|
|
font-size: 0.9rem;
|
|
/* Reduced font size */
|
|
}
|
|
|
|
.message-text {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.attached-image {
|
|
max-width: 100%;
|
|
height: auto;
|
|
margin-top: 0.5rem;
|
|
border-radius: 4px;
|
|
/* Removed circular border */
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|