Up to date fork #1

Merged
MiTask merged 33 commits from snxraven/LinkUp-P2P-Chat:main into main 2024-06-14 04:32:25 -04:00
Showing only changes of commit 76b00ce5b2 - Show all commits

141
style.css
View File

@ -17,23 +17,28 @@ body {
padding: 3px 7px; padding: 3px 7px;
font-size: 14px; font-size: 14px;
font-weight: bold; font-weight: bold;
color: #fff; color: #ffffff;
background-color: #7289da; background-color: #464343;
border: none; border: none;
border-radius: 3px; border-radius: 3px;
text-decoration: none; text-decoration: none;
cursor: pointer; cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
} }
.mini-button:hover { .mini-button:hover {
background-color: #0056b3; background-color: #181717;
transform: scale(1.05);
} }
.bold { .bold {
font-weight: bold; font-weight: bold;
} }
pear-ctrl[data-platform="darwin"] { float: right; margin-top: 4px; } pear-ctrl[data-platform="darwin"] {
float: right;
margin-top: 4px;
}
pear-ctrl { pear-ctrl {
margin-top: 9px; margin-top: 9px;
@ -50,7 +55,7 @@ pear-ctrl:after {
left: 0; left: 0;
top: 0; top: 0;
width: 100%; width: 100%;
background-color: #B0D94413; background-color: #1f1f1f;
filter: drop-shadow(2px 10px 6px #888); filter: drop-shadow(2px 10px 6px #888);
} }
@ -58,7 +63,6 @@ main {
display: flex; display: flex;
flex: 1; flex: 1;
overflow: hidden; overflow: hidden;
/* Ensure no overflow in main */
} }
#sidebar { #sidebar {
@ -107,27 +111,21 @@ main {
#messages-container { #messages-container {
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
/* Allow vertical scrolling */
overflow-x: hidden; overflow-x: hidden;
/* Hide horizontal scrolling */
width: 100%; width: 100%;
} }
#messages-container::-webkit-scrollbar { #messages-container::-webkit-scrollbar {
width: 8px; width: 8px;
/* Set the width of the scrollbar */
} }
#messages-container::-webkit-scrollbar-thumb { #messages-container::-webkit-scrollbar-thumb {
background-color: #b0d944; background-color: #464343;
/* Set the color of the scrollbar thumb */
border-radius: 10px; border-radius: 10px;
/* Round the corners of the scrollbar thumb */
} }
#messages-container::-webkit-scrollbar-track { #messages-container::-webkit-scrollbar-track {
background: #2e2e2e; background: #2e2e2e;
/* Set the color of the scrollbar track */
} }
#message-form { #message-form {
@ -142,19 +140,15 @@ main {
margin-right: 0.5rem; margin-right: 0.5rem;
padding-right: 0.5rem; padding-right: 0.5rem;
height: 1.5rem; height: 1.5rem;
/* Initial single line height */
overflow-y: hidden; overflow-y: hidden;
/* Hide scrollbar */
} }
#message:focus { #message:focus {
height: auto; height: auto;
/* Allow the textarea to grow dynamically when focused */
} }
#message:empty { #message:empty {
height: 1.5rem; height: 1.5rem;
/* Ensure single line height when empty */
} }
#sidebar button { #sidebar button {
@ -162,7 +156,7 @@ main {
padding: 10px; padding: 10px;
margin-bottom: 10px; margin-bottom: 10px;
cursor: pointer; cursor: pointer;
background-color: #7289da; background-color: #3e3c3c;
border: none; border: none;
color: white; color: white;
font-size: 14px; font-size: 14px;
@ -171,7 +165,7 @@ main {
} }
#sidebar button:hover { #sidebar button:hover {
background-color: #5b6eae; background-color: #191919;
transform: scale(1.05); transform: scale(1.05);
} }
@ -183,10 +177,12 @@ main {
color: white; color: white;
cursor: pointer; cursor: pointer;
border-radius: 5px; border-radius: 5px;
transition: background-color 0.3s ease, transform 0.3s ease;
} }
#remove-room-btn:hover { #remove-room-btn:hover {
background-color: #c03535; background-color: #c03535;
transform: scale(1.05);
} }
.hidden { .hidden {
@ -223,67 +219,71 @@ header {
padding: 0.5rem; padding: 0.5rem;
border-radius: 4px; border-radius: 4px;
cursor: pointer; cursor: pointer;
transition: background-color 0.3s ease; transition: background-color 0.3s ease, transform 0.3s ease;
} }
.window-controls button:hover { .window-controls button:hover {
background-color: #3e3e3e; background-color: #3e3e3e;
transform: scale(1.05);
} }
/* Button and input styles */ /* Button and input styles */
button, button,
input, input,
textarea { textarea {
border: 1px solid #b0d944; border: 1px solid #464343;
background-color: #333; background-color: #333;
color: #b0d944; color: #e0e0e0;
padding: 0.5rem; padding: 0.5rem;
/* Reduced padding */
font-family: 'Roboto Mono', monospace; font-family: 'Roboto Mono', monospace;
font-size: 1rem; font-size: 1rem;
line-height: 1.25rem; line-height: 1.25rem;
/* Adjusted line height */
border-radius: 4px; border-radius: 4px;
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
resize: none; resize: none;
/* Prevent resizing */
overflow-y: hidden; overflow-y: hidden;
/* Hide scrollbar */ }
button:hover,
input[type="submit"]:hover {
background-color: #191919;
transform: scale(1.05);
} }
textarea { textarea {
height: auto; height: auto;
/* Allow the textarea to grow dynamically */
} }
textarea:focus { textarea:focus {
outline: none; outline: none;
/* Remove focus outline */
} }
textarea::placeholder { textarea::placeholder {
color: #a0a0a0; color: #a0a0a0;
} }
#attach-file, #message-form input[type="submit"] { #attach-file,
padding: 0.5rem 1rem; /* Add padding to buttons */ #message-form input[type="submit"] {
margin-left: 0.5rem; /* Add margin between buttons */ padding: 0.5rem 1rem;
margin-left: 0.5rem;
} }
#talk-btn { #talk-btn {
padding: 0.5rem 1rem; /* Add padding to the button */ padding: 0.5rem 1rem;
margin-left: 0.5rem; /* Add margin between buttons */ margin-left: 0.5rem;
font-size: 14px; font-size: 14px;
border-radius: 5px; border-radius: 5px;
cursor: pointer; cursor: pointer;
} }
#talk-btn:active { #talk-btn:active {
color : #fff; /* White text when clicked */ color: #fff;
background-color: #f04747; /* Red color when clicked */ background-color: #f04747;
} }
#talk-btn:hover { #talk-btn:hover {
background-color: #191919;
transform: scale(1.05);
} }
/* Main container styles */ /* Main container styles */
@ -315,7 +315,7 @@ main {
#or { #or {
margin: 1.5rem 0; margin: 1.5rem 0;
color: #b0d944; color: #e0e0e0;
} }
#loading { #loading {
@ -359,6 +359,12 @@ main {
#join-chat-room-container button { #join-chat-room-container button {
margin-left: 0.5rem; 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 { #details {
@ -370,17 +376,21 @@ main {
border-radius: 4px; border-radius: 4px;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
/* Added to ensure box model includes padding */
} }
#details>div { #details>div {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
/* Allow peers count to stack */
} }
#submit-button { #submit-button {
margin-left: 1rem; margin-left: 1rem;
transition: background-color 0.3s ease, transform 0.3s ease;
}
#submit-button:hover {
background-color: #191919;
transform: scale(1.05);
} }
#messages { #messages {
@ -388,7 +398,6 @@ main {
min-height: 200px; min-height: 200px;
overflow-y: auto; overflow-y: auto;
padding: 0.5rem; padding: 0.5rem;
/* Reduced padding */
background-color: #262626; background-color: #262626;
border-radius: 4px; border-radius: 4px;
display: flex; display: flex;
@ -431,7 +440,6 @@ main {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
/* Reduced margin */
} }
.message img.avatar { .message img.avatar {
@ -439,24 +447,21 @@ main {
height: 32px; height: 32px;
border-radius: 50%; border-radius: 50%;
margin-right: 0.5rem; margin-right: 0.5rem;
border: 2px solid #b0d944; border: 2px solid #464343;
} }
.message-content { .message-content {
max-width: 70%; max-width: 70%;
background-color: #2e2e2e; background-color: #2e2e2e;
padding: 0.5rem; padding: 0.5rem;
/* Reduced padding */
border-radius: 8px; border-radius: 8px;
/* Reduced border radius */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
} }
.message-header { .message-header {
font-weight: bold; font-weight: bold;
color: #b0d944; color: #e0e0e0;
font-size: 0.9rem; font-size: 0.9rem;
/* Reduced font size */
} }
.message-text { .message-text {
@ -468,7 +473,6 @@ main {
height: auto; height: auto;
margin-top: 0.5rem; margin-top: 0.5rem;
border-radius: 4px; border-radius: 4px;
/* Removed circular border */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
} }
@ -502,25 +506,25 @@ main {
#room-list li .edit-icon, #room-list li .edit-icon,
#room-list li .delete-icon { #room-list li .delete-icon {
margin-left: 10px; margin-left: 10px;
color: #b0d944; color: #e0e0e0;
cursor: pointer; cursor: pointer;
transition: color 0.3s ease; transition: color 0.3s ease;
} }
#room-list li .edit-icon:hover, #room-list li .edit-icon:hover,
#room-list li .delete-icon:hover { #room-list li .delete-icon:hover {
color: #9ac831; color: #a0a0a0;
} }
/* Style for Edit Mode Input Box */ /* Style for Edit Mode Input Box */
#room-list li input[type="text"] { #room-list li input[type="text"] {
background-color: #2e2e2e; background-color: #2e2e2e;
border: 1px solid #b0d944; border: 1px solid #464343;
border-radius: 5px; border-radius: 5px;
color: #b0d944; color: #e0e0e0;
padding: 5px; padding: 5px;
width: calc(100% - 40px); /* Adjusted width to fit inside the list item */ width: calc(100% - 40px);
margin-right: 10px; /* Added margin to separate from icons */ margin-right: 10px;
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
} }
@ -529,21 +533,22 @@ main {
background-color: #3a3a3a; background-color: #3a3a3a;
} }
/* Sidebar Button Style */ /* Link styles */
#sidebar button { a {
width: 100%; color: #e0e0e0; /* Base color for links matching the text color */
padding: 10px; text-decoration: none; /* Remove underline */
margin-bottom: 10px; transition: color 0.3s ease, text-decoration 0.3s ease;
cursor: pointer;
background-color: #7289da;
border: none;
color: white;
font-size: 14px;
border-radius: 5px;
transition: background-color 0.3s ease, transform 0.3s ease;
} }
#sidebar button:hover { a:hover {
background-color: #5b6eae; color: #b0b0b0; /* Lighter color on hover */
transform: scale(1.05); text-decoration: underline; /* Underline on hover */
} }
a:active {
color: #a0a0a0; /* Slightly darker color on active */
}
a:visited {
color: #b0b0b0; /* Different color for visited links */
}