meet/styles/DualRoom.module.css
2026-01-13 16:57:44 +01:00

319 lines
5.7 KiB
CSS

.dualRoomContainer {
display: flex;
height: 100vh;
width: 100vw;
gap: 0;
overflow: hidden;
}
.primaryRoom {
flex: 0 0 60%;
display: flex;
flex-direction: column;
min-width: 0;
height: 100%;
transition: flex 0.3s ease-in-out;
}
.secondaryRoom {
flex: 0 0 40%;
display: flex;
flex-direction: column;
border-left: 1px solid rgba(255, 255, 255, 0.1);
background: var(--lk-bg);
min-width: 0;
height: 100%;
transition: flex 0.3s ease-in-out;
}
/* Enlarged state - 50/50 split */
.dualRoomContainer[data-secondary-enlarged='true'] .primaryRoom {
flex: 0 0 50%;
}
.dualRoomContainer[data-secondary-enlarged='true'] .secondaryRoom {
flex: 0 0 50%;
}
.primaryRoomInner,
.secondaryRoomInner {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
position: relative;
}
.primaryGridView,
.primaryFocusView {
flex: 1;
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
}
.primaryCarousel {
height: 120px;
min-height: 120px;
width: 100%;
background: rgba(0, 0, 0, 0.3);
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* Local participant Picture-in-Picture */
.localPip {
position: absolute;
width: 200px;
height: 150px;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
cursor: grab;
z-index: 100;
border: 2px solid rgba(255, 255, 255, 0.2);
transition: box-shadow 0.2s ease;
}
.localPip:hover {
box-shadow: 0 6px 30px rgba(0, 0, 0, 0.7);
border-color: rgba(255, 255, 255, 0.4);
}
.localPip.dragging {
cursor: grabbing;
box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8);
border-color: rgba(59, 130, 246, 0.8);
}
.secondaryRoomHeader {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.75rem 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
background: var(--lk-bg2);
min-height: 60px;
}
.secondaryRoomTitle {
font-size: 1rem;
font-weight: 600;
color: var(--lk-foreground);
flex: 1;
}
.headerControls {
display: flex;
gap: 0.5rem;
align-items: center;
}
.volumeControl {
display: flex;
align-items: center;
gap: 0.5rem;
}
.volumeSlider {
width: 80px;
height: 4px;
-webkit-appearance: none;
appearance: none;
background: rgba(255, 255, 255, 0.2);
border-radius: 2px;
outline: none;
cursor: pointer;
transition: background 0.2s ease;
}
.volumeSlider:hover {
background: rgba(255, 255, 255, 0.3);
}
.volumeSlider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 14px;
height: 14px;
background: var(--lk-foreground);
border-radius: 50%;
cursor: pointer;
transition: all 0.2s ease;
}
.volumeSlider::-webkit-slider-thumb:hover {
background: white;
transform: scale(1.2);
}
.volumeSlider::-moz-range-thumb {
width: 14px;
height: 14px;
background: var(--lk-foreground);
border-radius: 50%;
border: none;
cursor: pointer;
transition: all 0.2s ease;
}
.volumeSlider::-moz-range-thumb:hover {
background: white;
transform: scale(1.2);
}
.controlButton,
.enlargeButton {
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 6px;
color: var(--lk-foreground);
cursor: pointer;
padding: 0.5rem;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.controlButton:hover,
.enlargeButton:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.3);
}
.controlButton:active,
.enlargeButton:active {
transform: scale(0.95);
}
.secondaryRoomContent {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
}
.presentationMode {
flex: 1;
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
gap: 0;
}
.screenShareView {
flex: 1;
display: flex;
width: 100%;
min-height: 0;
}
.participantCarousel {
height: 120px;
min-height: 120px;
width: 100%;
background: rgba(0, 0, 0, 0.3);
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.gridView {
flex: 1;
display: flex;
width: 100%;
height: 100%;
}
/* Hover controls for camera/mic publishing */
.publishControls {
position: absolute;
bottom: 1rem;
right: 1rem;
display: flex;
gap: 0.5rem;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
}
.publishControls.visible {
opacity: 1;
pointer-events: auto;
}
.publishButton {
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
color: rgba(255, 255, 255, 0.7);
cursor: pointer;
padding: 0.75rem;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.publishButton:hover {
background: rgba(0, 0, 0, 0.85);
border-color: rgba(255, 255, 255, 0.4);
color: rgba(255, 255, 255, 0.9);
}
.publishButton.active {
background: rgba(59, 130, 246, 0.8);
border-color: rgba(59, 130, 246, 1);
color: white;
}
.publishButton.active:hover {
background: rgba(59, 130, 246, 0.9);
}
/* Mobile responsive - stack vertically */
@media (max-width: 768px) {
.dualRoomContainer {
flex-direction: column;
}
.primaryRoom {
flex: 0 0 60%;
}
.secondaryRoom {
flex: 0 0 40%;
border-left: none;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.dualRoomContainer[data-secondary-enlarged='true'] .primaryRoom {
flex: 0 0 40%;
}
.dualRoomContainer[data-secondary-enlarged='true'] .secondaryRoom {
flex: 0 0 60%;
}
}
/* Tablet breakpoint */
@media (max-width: 1024px) and (min-width: 769px) {
.primaryRoom {
flex: 0 0 65%;
}
.secondaryRoom {
flex: 0 0 35%;
}
.dualRoomContainer[data-secondary-enlarged='true'] .primaryRoom {
flex: 0 0 50%;
}
.dualRoomContainer[data-secondary-enlarged='true'] .secondaryRoom {
flex: 0 0 50%;
}
}