forked from snxraven/LinkUp-P2P-Chat
198 lines
3.5 KiB
CSS
198 lines
3.5 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;
|
|
}
|
|
|
|
/* 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;
|
|
height: 100%;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.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;
|
|
width: 100%;
|
|
padding: 1rem;
|
|
background-color: #1E1E1E;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
#header {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
#details {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 1rem;
|
|
background-color: #2B2B2B;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
#messages {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 1rem;
|
|
background-color: #262626;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
#message-form {
|
|
display: flex;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
#message {
|
|
flex: 1;
|
|
margin-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: 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;
|
|
}
|