transient.chat/static/assets/css/chat.css

318 lines
No EOL
5.2 KiB
CSS

/* === Chat Room Layout === */
#page-container {
display: flex;
justify-content: center;
align-items: flex-start;
width: 100%;
max-width: 1200px;
padding: 0 8px;
margin-top: 5px;
flex-wrap: nowrap;
gap: 12px;
height: 100%;
flex: 1;
height: calc(100vh - 100px);
transition: max-width 0.3s ease;
}
body.watchparty-active #page-container {
max-width: 1600px;
}
/* === Watch Party Video Section === */
#video-section {
flex: 1.5;
display: flex;
flex-direction: column;
max-width: 800px;
width: 100%;
}
#video-section.hidden {
display: none !important;
}
#video-controls {
display: flex;
gap: 8px;
margin-bottom: 10px;
width: 100%;
flex-wrap: wrap;
}
#video-controls input {
flex: 1;
min-width: 200px;
margin-bottom: 0;
}
.video-wrapper {
position: relative;
width: 100%;
aspect-ratio: 16 / 9;
background: #000;
border-radius: 6px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
#video-iframe {
width: 100%;
height: 100%;
border: none;
}
#paused-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: contain;
background: #000;
}
/* === Chat Center === */
#chat-center {
flex: 1 1 700px;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
height: 100%;
max-height: 100%;
}
body.watchparty-active #chat-center {
flex: 1 1 500px;
}
/* === Messages === */
#messages {
background-color: #2e2e2e;
border: 1px solid #444;
padding: 8px;
border-radius: 8px;
width: 100%;
height: 400px;
overflow-y: auto;
display: flex;
flex-direction: column;
flex-grow: 1;
height: auto;
max-height: calc(100vh - 205px);
}
#messages .message {
line-height: 1.5em;
padding: 6px 12px;
word-wrap: break-word;
background-color: #399fff8a;
color: #f0f0f0;
border-radius: 10px;
margin-bottom: 6px;
max-width: 90%;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
align-self: flex-start;
text-align: left;
}
#messages .my-message {
align-self: flex-end;
background-color: #18794e;
text-align: right;
color: #fff;
}
#messages .system-message {
align-self: center;
background-color: #4a3810;
border: 1px solid #d4a017;
color: #ffeb99;
text-align: center;
font-size: 0.9em;
max-width: 95%;
}
/* === Chat Input Form === */
#chat-form {
display: flex;
gap: 6px;
width: 100%;
margin-top: 10px;
}
#message-input.inputfield {
height: 42px;
padding: 0 12px;
line-height: 1;
}
/* === User List Sidebar === */
#user-list-container {
flex: 0 1 230px;
min-width: 180px;
background-color: #2a2a2a;
border: 1px solid #444;
border-radius: 8px;
padding: 8px;
height: fit-content;
transition: max-height 0.3s ease-in-out;
}
#user-list-container h3 {
margin-top: 10px;
font-size: 16px;
}
#user-list div {
padding: 5px 0;
color: #ccc;
border-bottom: 1px solid #333;
}
#user-list-container > button,
#user-list-container > a > button {
display: block;
width: 100%;
margin-bottom: 6px;
text-align: left;
}
#user-list-container #user-list-toggle {
display: none;
}
@media (max-width: 950px) {
#page-container {
flex-direction: column;
height: auto;
align-items: stretch;
}
body.watchparty-active #video-section,
body.watchparty-active #chat-center {
max-width: 100%;
}
#user-list-container {
display: block;
order: -1;
width: 100%;
flex: none;
max-height: 38px;
overflow: hidden;
margin-bottom: 10px;
padding: 0;
cursor: default;
transition: max-height 0.3s ease-in-out;
}
#user-list-container.expanded {
max-height: 1200px;
padding-bottom: 10px;
}
#user-list-container #user-list-toggle {
display: block;
width: 100%;
margin-bottom: 0;
border-radius: 7px 7px 0 0;
}
#user-list-container.expanded #user-list-toggle {
margin-bottom: 10px;
border-bottom: 1px solid #444;
}
#user-list-container > *:not(#user-list-toggle) {
margin-left: 10px;
margin-right: 10px;
}
#user-list-container h3 {
display: block;
margin-top: 10px;
text-align: left;
}
}
/* === Chat Components === */
.mic-button {
margin: 0 0.5em;
}
.mic-button.recording {
background-color: #ff4d4d !important;
}
.toggle-off {
background-color: #808080 !important;
}
.audio-container {
margin-top: 0.25em;
}
.voice-message-audio {
height: 30px;
max-width: 100%;
}
.kick-button {
margin-left: 0.5em;
padding: 2px 6px;
font-size: 11px;
background-color: #d9534f;
}
/* === Password Modal Overlay === */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.75);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
.modal-box {
background: #2a2a2a;
border: 1px solid #444;
border-radius: 8px;
padding: 24px 30px;
max-width: 440px;
width: 90%;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
text-align: center;
}
.modal-box h3 {
margin-top: 0;
color: #fff;
}
.modal-box p {
color: #ccc;
font-size: 14px;
margin-bottom: 16px;
}
.modal-buttons {
display: flex;
justify-content: center;
gap: 10px;
margin-top: 15px;
}
.cancel-btn {
background-color: #555 !important;
}
.cancel-btn:hover {
background-color: #666 !important;
}