LinkUp-P2P-Chat/style.css
2024-06-20 00:46:24 -04:00

619 lines
10 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;
}
.mini-button {
display: inline-block;
padding: 3px 7px;
font-size: 14px;
font-weight: bold;
color: #ffffff;
background-color: #464343;
border: none;
border-radius: 3px;
text-decoration: none;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.mini-button:hover {
background-color: #181717;
transform: scale(1.05);
}
.bold {
font-weight: bold;
}
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: #1f1f1f;
filter: drop-shadow(2px 10px 6px #888);
}
main {
display: flex;
flex: 1;
overflow: hidden;
}
#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;
overflow-x: hidden;
width: 100%;
}
#messages-container::-webkit-scrollbar {
width: 8px;
}
#messages-container::-webkit-scrollbar-thumb {
background-color: #464343;
border-radius: 10px;
}
#messages-container::-webkit-scrollbar-track {
background: #2e2e2e;
}
#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;
overflow-y: hidden;
}
#message:focus {
height: auto;
}
#message:empty {
height: 1.5rem;
}
#sidebar button {
width: 100%;
padding: 10px;
margin-bottom: 10px;
cursor: pointer;
background-color: #3e3c3c;
border: none;
color: white;
font-size: 14px;
border-radius: 5px;
transition: background-color 0.3s ease, transform 0.3s ease;
}
#sidebar button:hover {
background-color: #191919;
transform: scale(1.05);
}
#remove-room-btn {
margin-top: 10px;
padding: 10px;
background-color: #f04747;
border: none;
color: white;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s ease, transform 0.3s ease;
}
#remove-room-btn:hover {
background-color: #c03535;
transform: scale(1.05);
}
.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, transform 0.3s ease;
}
.window-controls button:hover {
background-color: #3e3e3e;
transform: scale(1.05);
}
/* Button and input styles */
button,
input,
textarea {
border: 1px solid #464343;
background-color: #333;
color: #e0e0e0;
padding: 0.5rem;
font-family: 'Roboto Mono', monospace;
font-size: 1rem;
line-height: 1.25rem;
border-radius: 4px;
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
resize: none;
overflow-y: hidden;
}
button:hover,
input[type="submit"]:hover {
background-color: #191919;
transform: scale(1.05);
}
textarea {
height: auto;
}
textarea:focus {
outline: none;
}
textarea::placeholder {
color: #a0a0a0;
}
#attach-file,
#message-form input[type="submit"] {
padding: 0.5rem 1rem;
margin-left: 0.5rem;
}
#talk-btn {
padding: 0.5rem 1rem;
margin-left: 0.5rem;
font-size: 14px;
border-radius: 5px;
cursor: pointer;
}
#talk-btn:active {
color: #fff;
background-color: #f04747;
}
/* 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: #e0e0e0;
}
#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;
transition: background-color 0.3s ease, transform 0.3s ease;
}
#join-chat-room-container button:hover {
background-color: #191919;
transform: scale(1.05);
}
#details {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
background-color: #2b2b2b;
border-radius: 4px;
width: 100%;
box-sizing: border-box;
}
#details>div {
display: flex;
flex-direction: column;
}
#submit-button {
margin-left: 1rem;
transition: background-color 0.3s ease, transform 0.3s ease;
}
#submit-button:hover {
background-color: #191919;
transform: scale(1.05);
}
#messages {
flex: 1;
min-height: 200px;
overflow-y: auto;
padding: 0.5rem;
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;
}
.message img.avatar {
width: 32px;
height: 32px;
border-radius: 50%;
margin-right: 0.5rem;
border: 2px solid #464343;
user-select: none;
}
.message-content {
max-width: 70%;
background-color: #2e2e2e;
padding: 0.5rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.message-header {
font-weight: bold;
color: #e0e0e0;
font-size: 0.9rem;
}
.message-text {
color: #e0e0e0;
}
.attached-image {
max-width: 100%;
height: auto;
margin-top: 0.5rem;
border-radius: 4px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
/* Updated Room List Styles */
#guild-list {
list-style: none;
padding: 0;
margin: 0;
}
.guild-item {
padding: 10px;
margin-bottom: 10px;
background-color: #3a3f44;
border-radius: 5px;
cursor: pointer;
display: flex;
flex-direction: column;
transition: background-color 0.3s ease;
}
.guild-item:hover {
background-color: #4a5258;
}
.guild-item h3 {
margin: 0;
font-size: 16px;
color: #ffffff;
}
.guild-item .manage-guild-btn {
align-self: flex-end;
margin-top: 10px;
font-size: 12px;
padding: 5px 10px;
}
.guild-item .room-list {
list-style: none;
padding: 0;
margin: 10px 0 0 0;
display: flex;
flex-direction: column;
}
.guild-item .room-list li {
padding: 5px;
margin-bottom: 5px;
background-color: #464343;
border-radius: 3px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
transition: background-color 0.3s ease;
}
.guild-item .room-list li:hover {
background-color: #5a5f64;
}
.guild-item .room-list li span {
flex: 1;
}
.guild-item .room-list li .edit-icon,
.guild-item .room-list li .delete-icon {
margin-left: 10px;
color: #e0e0e0;
cursor: pointer;
transition: color 0.3s ease;
}
.guild-item .room-list li .edit-icon:hover,
.guild-item .room-list li .delete-icon:hover {
color: #a0a0a0;
}
/* Modal styles */
.modal {
display: flex;
justify-content: center;
align-items: center;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
z-index: 1000;
}
.modal-content {
background-color: #2e2e2e;
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
max-width: 500px;
width: 100%;
text-align: center;
}
.close-btn {
color: #e0e0e0;
float: right;
font-size: 1.5rem;
cursor: pointer;
}
.close-btn:hover {
color: #f04747;
}
.modal h2 {
margin-bottom: 1rem;
color: #fff;
}
.modal form {
display: flex;
flex-direction: column;
align-items: center;
}
.modal form input,
.modal form button {
margin-bottom: 1rem;
width: 100%;
}
.modal form button {
width: auto;
background-color: #3e3e3e;
color: #fff;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.modal form button:hover {
background-color: #191919;
transform: scale(1.05);
}