LinkUp-P2P-Chat/style.css

228 lines
4.3 KiB
CSS
Raw Normal View History

2024-06-03 19:23:14 -04:00
/* 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;
}
/* Header styles */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
background-color: #1F1F1F;
color: #FFFFFF;
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: #FFFFFF;
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 {
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;
}
button:hover, input:hover {
background-color: #444;
}
input::placeholder {
color: #A0A0A0;
}
/* 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 */
#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;
2024-06-03 22:49:52 -04:00
flex: 1;
2024-06-03 19:23:14 -04:00
width: 100%;
padding: 1rem;
background-color: #1E1E1E;
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 {
margin-bottom: 1rem;
}
2024-06-03 23:05:03 -04:00
#join-chat-room-container {
display: flex;
align-items: center;
margin-top: 1rem; /* Add margin between this container and the previous content */
}
#join-chat-room-container label {
margin-right: 0.5rem; /* Add margin to the right of the label */
}
#join-chat-room-container input {
margin-right: 0.5rem; /* Add margin to the right of the input field */
}
#join-chat-room-container button {
margin-left: 0.5rem; /* Add margin to the left of the button */
}
2024-06-03 19:23:14 -04:00
#details {
display: flex;
justify-content: space-between;
padding: 1rem;
background-color: #2B2B2B;
border-radius: 4px;
}
2024-06-03 23:05:03 -04:00
#submit-button {
margin-left: 1rem; /* Added left margin */
}
2024-06-03 19:23:14 -04:00
#messages {
flex: 1;
2024-06-03 22:49:52 -04:00
min-height: 200px; /* Ensures minimum height to prevent squishing */
2024-06-03 19:23:14 -04:00
overflow-y: auto;
padding: 1rem;
background-color: #262626;
border-radius: 4px;
2024-06-03 22:49:52 -04:00
display: flex;
flex-direction: column;
2024-06-03 19:23:14 -04:00
}
#message-form {
display: flex;
margin-top: 1rem;
2024-06-03 23:05:03 -04:00
margin-right: 1rem; /* Added right margin */
2024-06-03 19:23:14 -04:00
}
#message {
flex: 1;
margin-right: 0.5rem;
2024-06-03 23:05:03 -04:00
padding-right: 0.5rem; /* Added right padding */
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: center; /* Center vertically */
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%; /* Adjusted width */
background-color: #2E2E2E;
padding: 0.5rem; /* Adjusted padding */
border-radius: 10px; /* Increased border radius */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.message-header {
font-weight: bold;
color: #B0D944; /* Added color */
}
.message-time {
color: #A0A0A0; /* Adjusted color */
font-size: 0.75rem;
margin-left: 0.5rem;
}