LinkUp-P2P-Chat/style.css

551 lines
9.6 KiB
CSS
Raw Normal View History

2024-06-03 19:23:14 -04:00
/* Base styles */
body {
background-color: #121212;
2024-06-04 00:03:14 -04:00
color: #e0e0e0;
2024-06-03 19:23:14 -04:00
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);
}
2024-06-08 20:38:18 -04:00
main {
display: flex;
2024-06-08 20:38:18 -04:00
flex: 1;
overflow: hidden;
2024-06-08 20:38:18 -04:00
}
#sidebar {
width: 200px;
background-color: #2f3136;
color: white;
2024-06-08 20:38:18 -04:00
height: 100%;
padding: 10px;
box-sizing: border-box;
2024-06-08 20:38:18 -04:00
}
#content {
flex: 1;
display: flex;
flex-direction: column;
height: 100%;
padding: 10px;
2024-06-08 20:38:18 -04:00
}
#register,
#setup,
#chat {
2024-06-08 20:38:18 -04:00
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;
2024-06-08 20:38:18 -04:00
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;
2024-06-08 20:38:18 -04:00
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;
}
2024-06-08 20:38:18 -04:00
#message-form {
display: flex;
align-items: center;
2024-06-08 20:38:18 -04:00
margin-top: 1rem;
width: 100%;
}
#message {
flex: 1;
margin-right: 0.5rem;
padding-right: 0.5rem;
height: 1.5rem;
overflow-y: hidden;
2024-06-08 20:38:18 -04:00
}
#message:focus {
height: auto;
2024-06-08 20:38:18 -04:00
}
#message:empty {
height: 1.5rem;
2024-06-08 20:38:18 -04:00
}
#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;
2024-06-08 20:38:18 -04:00
}
#sidebar button:hover {
background-color: #191919;
transform: scale(1.05);
2024-06-08 20:38:18 -04:00
}
#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;
2024-06-08 20:38:18 -04:00
}
#remove-room-btn:hover {
background-color: #c03535;
transform: scale(1.05);
2024-06-08 20:38:18 -04:00
}
.hidden {
display: none;
2024-06-08 20:38:18 -04:00
}
2024-06-03 19:23:14 -04:00
/* Header styles */
header {
display: flex;
justify-content: space-between;
padding: 1rem;
2024-06-04 00:03:14 -04:00
background-color: #1f1f1f;
color: #fff;
2024-06-03 19:23:14 -04:00
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
cursor: move;
-webkit-app-region: drag;
}
#linkup-text {
margin-left: auto;
}
2024-06-03 19:23:14 -04:00
.window-controls {
display: flex;
-webkit-app-region: no-drag;
}
.window-controls button {
2024-06-04 00:03:14 -04:00
background-color: #2e2e2e;
2024-06-03 19:23:14 -04:00
border: none;
2024-06-04 00:03:14 -04:00
color: #fff;
2024-06-03 19:23:14 -04:00
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;
2024-06-03 19:23:14 -04:00
}
.window-controls button:hover {
2024-06-04 00:03:14 -04:00
background-color: #3e3e3e;
transform: scale(1.05);
2024-06-03 19:23:14 -04:00
}
/* Button and input styles */
2024-06-04 00:03:14 -04:00
button,
input,
textarea {
border: 1px solid #464343;
2024-06-03 19:23:14 -04:00
background-color: #333;
color: #e0e0e0;
padding: 0.5rem;
2024-06-03 19:23:14 -04:00
font-family: 'Roboto Mono', monospace;
font-size: 1rem;
line-height: 1.25rem;
2024-06-03 19:23:14 -04:00
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);
2024-06-03 19:23:14 -04:00
}
2024-06-04 00:03:14 -04:00
textarea {
height: auto;
2024-06-03 19:23:14 -04:00
}
2024-06-04 00:03:14 -04:00
textarea:focus {
outline: none;
2024-06-04 00:03:14 -04:00
}
textarea::placeholder {
color: #a0a0a0;
2024-06-03 19:23:14 -04:00
}
#attach-file,
#message-form input[type="submit"] {
padding: 0.5rem 1rem;
margin-left: 0.5rem;
}
2024-06-13 03:53:23 -04:00
#talk-btn {
padding: 0.5rem 1rem;
margin-left: 0.5rem;
2024-06-13 03:53:23 -04:00
font-size: 14px;
border-radius: 5px;
cursor: pointer;
}
#talk-btn:active {
color: #fff;
background-color: #f04747;
2024-06-13 03:53:23 -04:00
}
2024-06-03 19:23:14 -04:00
/* Main container styles */
main {
display: flex;
2024-06-03 22:49:52 -04:00
flex: 1;
2024-06-03 19:23:14 -04:00
justify-content: center;
align-items: center;
2024-06-03 22:49:52 -04:00
padding: 1rem;
2024-06-03 19:23:14 -04:00
}
2024-06-03 22:49:52 -04:00
/* Hidden class */
2024-06-03 19:23:14 -04:00
.hidden {
display: none !important;
}
/* Form container styles */
2024-06-04 00:03:14 -04:00
#register,
#setup {
2024-06-03 19:23:14 -04:00
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 2rem;
2024-06-04 00:03:14 -04:00
background-color: #1f1f1f;
2024-06-03 19:23:14 -04:00
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
#or {
margin: 1.5rem 0;
color: #e0e0e0;
2024-06-03 19:23:14 -04:00
}
#loading {
align-self: center;
font-size: 1.5rem;
font-weight: bold;
}
/* Chat container styles */
#chat {
display: flex;
flex-direction: column;
2024-06-03 22:49:52 -04:00
flex: 1;
2024-06-03 19:23:14 -04:00
width: 100%;
padding: 1rem;
2024-06-04 00:03:14 -04:00
background-color: #1e1e1e;
2024-06-03 19:23:14 -04:00
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
2024-06-03 22:49:52 -04:00
overflow: hidden;
2024-06-03 19:23:14 -04:00
}
#header {
2024-06-08 20:38:18 -04:00
width: 100%;
2024-06-03 19:23:14 -04:00
margin-bottom: 1rem;
}
2024-06-03 23:05:03 -04:00
#join-chat-room-container {
display: flex;
align-items: center;
2024-06-04 00:03:14 -04:00
margin-top: 1rem;
2024-06-03 23:05:03 -04:00
}
#join-chat-room-container label {
2024-06-04 00:03:14 -04:00
margin-right: 0.5rem;
2024-06-03 23:05:03 -04:00
}
2024-06-04 00:03:14 -04:00
#join-chat-room-container input,
#join-chat-room-container textarea {
margin-right: 0.5rem;
2024-06-03 23:05:03 -04:00
}
#join-chat-room-container button {
2024-06-04 00:03:14 -04:00
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);
2024-06-03 23:05:03 -04:00
}
2024-06-03 19:23:14 -04:00
#details {
display: flex;
justify-content: space-between;
2024-06-08 20:38:18 -04:00
align-items: center;
2024-06-03 19:23:14 -04:00
padding: 1rem;
2024-06-04 00:03:14 -04:00
background-color: #2b2b2b;
2024-06-03 19:23:14 -04:00
border-radius: 4px;
2024-06-08 20:38:18 -04:00
width: 100%;
box-sizing: border-box;
2024-06-08 20:38:18 -04:00
}
#details>div {
2024-06-08 20:38:18 -04:00
display: flex;
flex-direction: column;
2024-06-03 19:23:14 -04:00
}
2024-06-03 23:05:03 -04:00
#submit-button {
2024-06-04 00:03:14 -04:00
margin-left: 1rem;
transition: background-color 0.3s ease, transform 0.3s ease;
}
#submit-button:hover {
background-color: #191919;
transform: scale(1.05);
2024-06-03 23:05:03 -04:00
}
2024-06-03 19:23:14 -04:00
#messages {
flex: 1;
2024-06-04 00:03:14 -04:00
min-height: 200px;
2024-06-03 19:23:14 -04:00
overflow-y: auto;
padding: 0.5rem;
2024-06-03 19:23:14 -04:00
background-color: #262626;
border-radius: 4px;
2024-06-03 22:49:52 -04:00
display: flex;
flex-direction: column;
2024-06-08 20:38:18 -04:00
width: 100%;
2024-06-03 19:23:14 -04:00
}
#message-form {
display: flex;
align-items: center;
2024-06-03 19:23:14 -04:00
margin-top: 1rem;
2024-06-08 20:38:18 -04:00
width: 100%;
2024-06-03 19:23:14 -04:00
}
#message {
flex: 1;
margin-right: 0.5rem;
2024-06-04 00:03:14 -04:00
padding-right: 0.5rem;
2024-06-03 19:23:14 -04:00
}
#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;
2024-06-03 19:23:14 -04:00
}
.message img.avatar {
width: 32px;
height: 32px;
2024-06-03 19:23:14 -04:00
border-radius: 50%;
margin-right: 0.5rem;
border: 2px solid #464343;
2024-06-03 19:23:14 -04:00
}
.message-content {
2024-06-04 00:03:14 -04:00
max-width: 70%;
background-color: #2e2e2e;
padding: 0.5rem;
border-radius: 8px;
2024-06-03 19:23:14 -04:00
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.message-header {
font-weight: bold;
color: #e0e0e0;
font-size: 0.9rem;
2024-06-03 19:23:14 -04:00
}
.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);
2024-06-03 19:23:14 -04:00
}
/* Updated Room List Styles */
#room-list {
list-style: none;
padding: 0;
margin: 0;
}
#room-list li {
padding: 10px;
margin-bottom: 10px;
background-color: #3a3f44;
border-radius: 5px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
transition: background-color 0.3s ease;
}
#room-list li:hover {
background-color: #4a5258;
}
#room-list li span {
flex: 1;
}
#room-list li .edit-icon,
#room-list li .delete-icon {
margin-left: 10px;
color: #e0e0e0;
cursor: pointer;
transition: color 0.3s ease;
}
#room-list li .edit-icon:hover,
#room-list li .delete-icon:hover {
color: #a0a0a0;
}
/* Style for Edit Mode Input Box */
#room-list li input[type="text"] {
background-color: #2e2e2e;
border: 1px solid #464343;
border-radius: 5px;
color: #e0e0e0;
padding: 5px;
width: calc(100% - 40px);
margin-right: 10px;
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
#room-list li input[type="text"]:focus {
outline: none;
background-color: #3a3a3a;
}
/* Link styles */
a {
color: #e0e0e0; /* Base color for links matching the text color */
text-decoration: none; /* Remove underline */
transition: color 0.3s ease, text-decoration 0.3s ease;
}
a:hover {
color: #b0b0b0; /* Lighter color on hover */
text-decoration: underline; /* Underline on hover */
}
a:active {
color: #a0a0a0; /* Slightly darker color on active */
}
a:visited {
color: #b0b0b0; /* Different color for visited links */
2024-06-13 06:10:26 -04:00
}