224 lines
13 KiB
CSS
224 lines
13 KiB
CSS
/* Kronic room layout — controls keep their existing IDs and JS listeners. */
|
|
.workspace {min-height:0;position:relative}
|
|
.connection-panel {display:none!important}
|
|
.kronic-voice-top {display:flex;align-items:center;gap:9px;justify-content:center;min-width:0;max-width:62%;margin:0 auto}
|
|
.kronic-voice-top .panel-section {display:flex;align-items:center;gap:9px;padding:0;overflow:visible;min-width:0}
|
|
.kronic-voice-top .section-heading,.kronic-voice-top .form-group label {display:none}
|
|
.kronic-voice-top .form-group {margin:0;min-width:70px;max-width:135px}
|
|
.kronic-voice-top .form-group input {width:100%;padding:7px 8px;min-height:34px}
|
|
.kronic-voice-top .connection-actions {display:flex;gap:5px}
|
|
.kronic-voice-top .connection-actions button {padding:6px 10px;min-height:34px;white-space:nowrap}
|
|
.kronic-audio-popover {position:fixed!important;z-index:1000!important;right:12px;bottom:10px;top:auto!important;left:auto!important;width:min(370px,calc(100vw - 24px));max-height:min(76vh,650px);overflow-y:auto;display:none!important;flex-direction:column;background:var(--background-panel);box-shadow:0 22px 60px #0009;border:1px solid #57687e;border-radius:14px}
|
|
.kronic-audio-popover.kronic-open {display:flex!important}
|
|
.kronic-audio-popover .panel-section {flex:0 0 auto}
|
|
.kronic-audio-popover .connection-status {margin:10px}
|
|
.main-content {flex:1!important;width:100%;min-width:0}
|
|
.participant-card {position:relative;overflow:hidden}
|
|
.participant-card > img.avatar,.participant-card > .avatar {width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;inset:0;position:absolute;object-fit:cover!important;object-position:center!important;}
|
|
.participant-card > .avatar-fallback {width:100%;height:100%;}
|
|
.participant-card .name-overlay {top:auto!important;bottom:36px!important;max-width:calc(100% - 20px)!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
.participant-card .stats-overlay {top:auto!important;bottom:8px!important}
|
|
@media(max-width:820px){.kronic-voice-top {max-width:100%;flex:1;gap:4px}.kronic-voice-top .panel-section{gap:4px}.kronic-voice-top .form-group{max-width:85px}.kronic-voice-top .connection-actions button{padding:5px 6px;font-size:11px}.brand-text{display:none}}
|
|
|
|
#mobileAudioMenuBtn {display:none!important;}
|
|
|
|
/* Compact embedded Chat: only one Kronic identity in the parent topbar. */
|
|
.app-shell > .topbar {min-height:43px!important;height:43px!important;padding:3px 12px!important;gap:8px!important;}
|
|
.app-shell > .topbar .brand {display:none!important;}
|
|
.app-shell > .topbar .topbar-tools {gap:7px!important;}
|
|
.app-shell > .topbar .window-taskbar {min-height:0!important;}
|
|
.workspace {height:calc(100% - 43px)!important;}
|
|
.main-content .content-header {min-height:39px!important;padding:5px 14px!important;}
|
|
.main-content .content-header h2 {font-size:16px!important;margin:0!important;}
|
|
.main-content .channel-label {display:none!important;}
|
|
.kronic-voice-top .connection-actions #muteBtn,
|
|
.kronic-voice-top .connection-actions #leaveBtn {display:none!important;}
|
|
.kronic-voice-top {max-width:80%!important;margin:0!important;}
|
|
.kronic-parked-sidebar {display:none!important;}
|
|
.kronic-audio-popup {position:fixed!important;z-index:1500!important;bottom:7px;left:12px;width:min(385px,calc(100vw - 24px));max-height:min(78vh,700px);overflow:auto;background:#25272c;color:#e9edf4;border:1px solid #51657e;border-radius:13px;padding:13px;box-shadow:0 18px 45px #0009;}
|
|
.kronic-audio-popup[hidden] {display:none!important;}
|
|
.kronic-audio-popup .audio-setting-group {display:block!important;margin:20px 0 0;}
|
|
.kronic-audio-popup .audio-setting-group > summary {font-size:14px;font-weight:bold;}
|
|
.kronic-audio-popup .kronic-audio-close {position:absolute;right:10px;top:8px;border:1px solid #536177;border-radius:7px;background:#354052;color:#fff;font-size:18px;padding:2px 10px;cursor:pointer;}
|
|
@media(max-width:730px){.kronic-voice-top {max-width:100%!important}.app-shell > .topbar {padding:3px 6px!important}.main-content .content-header{padding:3px 8px!important}}
|
|
|
|
/* Preserve chat real estate: compact voice row, no duplicated top controls. */
|
|
.app-shell > .topbar {min-height:40px!important;height:40px!important;}
|
|
.workspace {height:calc(100% - 40px)!important;}
|
|
.kronic-voice-top .connection-actions #muteBtn,
|
|
.kronic-voice-top .connection-actions #leaveBtn {display:none!important;}
|
|
.main-content .content-header {min-height:34px!important;padding:4px 12px!important;}
|
|
.kronic-audio-popup {max-height:min(76vh,640px);box-sizing:border-box;}
|
|
.kronic-audio-popup .audio-setting-group {width:100%;}
|
|
@media(max-width:700px){
|
|
.kronic-voice-top .form-group {max-width:90px;}
|
|
.kronic-audio-popup {left:5px;width:calc(100vw - 10px);bottom:4px;max-height:70vh;}
|
|
}
|
|
|
|
/* Keep participant art and overlay labels inside a narrower embedded Chat viewport. */
|
|
.participant-grid {min-width:0!important;max-width:100%!important; box-sizing:border-box!important;
|
|
grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr))!important;
|
|
padding:clamp(6px,1.8vw,16px)!important; gap:clamp(6px,1.3vw,14px)!important;}
|
|
.participant-card,.octagon.participant-card {
|
|
box-sizing:border-box!important; max-width:100%!important; min-width:0!important;
|
|
min-height:140px; overflow:hidden!important;
|
|
}
|
|
.participant-card .name-overlay,.participant-card .stats-overlay {
|
|
box-sizing:border-box!important; left:8px!important; right:8px!important;
|
|
width:auto!important; max-width:calc(100% - 16px)!important;
|
|
overflow:hidden!important; text-overflow:ellipsis!important;
|
|
white-space:nowrap!important; font-size:clamp(10px,1.5vw,14px)!important;
|
|
line-height:1.35!important;
|
|
}
|
|
.participant-card .name-overlay {bottom:34px!important;}
|
|
.participant-card .stats-overlay {bottom:6px!important;font-size:clamp(9px,1vw,11px)!important;}
|
|
.participant-card .volume-overlay {max-width:calc(100% - 16px)!important;box-sizing:border-box!important;overflow:hidden!important;}
|
|
.participant-card .volume-overlay input {max-width:100%!important;min-width:0!important;}
|
|
.participant-card .participant-resize-handle {display:block!important;z-index:35!important;cursor:nwse-resize!important;}
|
|
|
|
/* Keep Join Voice on the same line while the room is resized to half width. */
|
|
.app-shell > .topbar {display:flex!important;flex-wrap:nowrap!important;align-items:center!important;overflow:visible!important;}
|
|
.kronic-voice-top {display:flex!important;flex:0 1 auto!important;width:auto!important;max-width:100%!important;min-width:0!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important;}
|
|
.kronic-voice-top .panel-section,.kronic-voice-top .connection-actions {display:flex!important;flex-wrap:nowrap!important;align-items:center!important;min-width:0;}
|
|
.kronic-voice-top .connection-actions {flex:0 0 auto!important;}
|
|
.kronic-voice-top .form-group {flex:0 1 125px!important;min-width:0!important;}
|
|
.kronic-voice-top .form-group input {min-width:0!important;max-width:100%!important;}
|
|
.kronic-voice-top .connection-actions button {white-space:nowrap!important;min-height:32px!important;}
|
|
.app-shell > .topbar .topbar-tools {flex:0 0 auto!important;white-space:nowrap!important;}
|
|
@media(max-width:600px){
|
|
.kronic-voice-top {gap:3px!important;}
|
|
.kronic-voice-top .panel-section {gap:3px!important;}
|
|
.kronic-voice-top .connection-actions button {font-size:11px!important;padding:5px!important;}
|
|
.kronic-voice-top .form-group {flex:0 1 75px!important;}
|
|
}
|
|
|
|
|
|
/* Per-listener LiveKit volume controls. The participant renderer already
|
|
creates and wires .volume-overlay for remote participants only. Keep it
|
|
above the GIF/image layer and within the resizable card's boundaries. */
|
|
.octagon.participant-card,
|
|
.participant-card {
|
|
isolation: isolate;
|
|
}
|
|
.participant-card > .avatar,
|
|
.participant-card > .avatar-fallback {
|
|
z-index: 0 !important;
|
|
}
|
|
.participant-card .name-overlay {
|
|
position: absolute !important;
|
|
top: 7px !important;
|
|
bottom: auto !important;
|
|
z-index: 5 !important;
|
|
pointer-events: none;
|
|
}
|
|
.participant-card .stats-overlay {
|
|
position: absolute !important;
|
|
top: 31px !important;
|
|
bottom: auto !important;
|
|
z-index: 5 !important;
|
|
pointer-events: none;
|
|
}
|
|
.participant-card .volume-overlay {
|
|
position: absolute !important;
|
|
display: flex !important;
|
|
visibility: visible !important;
|
|
opacity: 1 !important;
|
|
flex-direction: column !important;
|
|
align-items: stretch !important;
|
|
gap: 3px !important;
|
|
left: 8px !important;
|
|
right: 8px !important;
|
|
bottom: 9px !important;
|
|
top: auto !important;
|
|
width: auto !important;
|
|
max-width: calc(100% - 16px) !important;
|
|
min-width: 0 !important;
|
|
padding: 7px 9px !important;
|
|
box-sizing: border-box !important;
|
|
border-radius: 9px !important;
|
|
background: rgba(14,17,24,.87) !important;
|
|
color: #f2f5fa !important;
|
|
z-index: 20 !important;
|
|
pointer-events: auto !important;
|
|
overflow: visible !important;
|
|
}
|
|
.participant-card .volume-overlay span {
|
|
display: block !important;
|
|
font-size: 11px !important;
|
|
line-height: 1.25 !important;
|
|
color: #edf2f9 !important;
|
|
}
|
|
.participant-card .volume-overlay input[type="range"] {
|
|
display: block !important;
|
|
appearance: auto !important;
|
|
-webkit-appearance: auto !important;
|
|
width: 100% !important;
|
|
max-width: 100% !important;
|
|
min-width: 0 !important;
|
|
height: 22px !important;
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
cursor: pointer !important;
|
|
accent-color: #5e9efa !important;
|
|
opacity: 1 !important;
|
|
pointer-events: auto !important;
|
|
touch-action: pan-x;
|
|
}
|
|
.participant-card .volume-overlay input[type="range"]:focus-visible {
|
|
outline: 2px solid #b4d5ff !important;
|
|
outline-offset: 2px;
|
|
}
|
|
@media (max-width: 650px) {
|
|
.participant-card .volume-overlay {padding: 5px 7px !important;bottom: 6px !important;}
|
|
.participant-card .volume-overlay input[type="range"] {height: 26px !important;}
|
|
}
|
|
|
|
/* Consolidated voice badge alignment + always accessible remote participant gain. */
|
|
.app-shell > .topbar {align-items:center!important;min-height:42px!important;height:42px!important;}
|
|
.kronic-voice-top {align-self:center!important;align-items:center!important;transform:none!important;line-height:1!important;}
|
|
.kronic-voice-top .connection-actions {align-self:center!important;align-items:center!important;}
|
|
.kronic-voice-top .connection-actions #joinBtn,
|
|
.kronic-voice-top .connection-actions #connectBtn,
|
|
.kronic-voice-top .connection-actions button {vertical-align:middle!important;align-self:center!important;margin-top:0!important;margin-bottom:0!important;}
|
|
.workspace {height:calc(100% - 42px)!important;}
|
|
.participant-card .volume-overlay {z-index:55!important;display:flex!important;opacity:1!important;visibility:visible!important;bottom:8px!important;left:8px!important;right:8px!important;min-height:47px!important;}
|
|
.participant-card .volume-overlay input[type=range] {display:block!important;width:100%!important;pointer-events:auto!important;}
|
|
.participant-card .name-overlay {bottom:86px!important;top:auto!important;}
|
|
.participant-card .stats-overlay {bottom:61px!important;top:auto!important;}
|
|
@media(max-width:700px){
|
|
.kronic-voice-top {flex-wrap:nowrap!important;overflow:visible!important;}
|
|
.kronic-voice-top .form-group {max-width:80px!important;}
|
|
.app-shell > .topbar {overflow:visible!important;}
|
|
.topbar-tools {flex:0 0 auto!important;}
|
|
}
|
|
|
|
/* Phone-sized embedded room: voice and tools wrap inside the header, never behind it. */
|
|
@media (max-width:700px) {
|
|
.app-shell > .topbar {
|
|
display:flex!important;flex-wrap:wrap!important;align-content:center!important;
|
|
align-items:center!important;justify-content:space-between!important;
|
|
width:100%!important;height:auto!important;min-height:90px!important;
|
|
padding:7px 8px!important;gap:6px!important;overflow:visible!important;
|
|
box-sizing:border-box!important;
|
|
}
|
|
.kronic-voice-top {
|
|
order:1!important;display:flex!important;flex:1 1 100%!important;width:100%!important;
|
|
max-width:100%!important;min-width:0!important;margin:0!important;
|
|
flex-wrap:nowrap!important;justify-content:space-between!important;gap:5px!important;
|
|
}
|
|
.kronic-voice-top .panel-section {flex:1 1 0!important;min-width:0!important;max-width:none!important;}
|
|
.kronic-voice-top .form-group {flex:1 1 0!important;min-width:0!important;max-width:none!important;}
|
|
.kronic-voice-top .form-group input {width:100%!important;min-width:0!important;max-width:100%!important;font-size:12px!important;min-height:40px!important;box-sizing:border-box!important;}
|
|
.kronic-voice-top .connection-actions {flex:0 0 auto!important;min-width:0!important;}
|
|
.kronic-voice-top .connection-actions button {min-height:40px!important;font-size:12px!important;padding:6px 9px!important;}
|
|
.app-shell > .topbar .topbar-tools {order:2!important;flex:0 0 auto!important;gap:7px!important;align-items:center!important;margin-left:auto!important;}
|
|
.app-shell > .topbar .topbar-tools .icon-button {min-width:40px!important;min-height:38px!important;}
|
|
.app-shell > .topbar .window-taskbar {order:3!important;min-width:0!important;max-width:100%!important;}
|
|
.workspace {height:auto!important;min-height:0!important;flex:1 1 auto!important;}
|
|
.main-content,.participant-grid {min-width:0!important;}
|
|
}
|
|
|
|
/* Avatars may be dragged anywhere: do not clip them at the grid edge. */
|
|
.participant-grid{overflow:visible!important}
|
|
.main-content{overflow:visible}
|