218 lines
3.8 KiB
Stylus
218 lines
3.8 KiB
Stylus
[data-component='Peer'] {
|
|
flex: 100 100 auto;
|
|
position: relative;
|
|
height: 100%;
|
|
width: 100%;
|
|
flex-direction: row;
|
|
display: flex;
|
|
|
|
&.screen {
|
|
border: 5px solid rgba(#fff, 0.4);
|
|
}
|
|
|
|
&:not(.screen) {
|
|
}
|
|
|
|
+mobile() {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
> .view-container {
|
|
position: relative;
|
|
flex-grow: 1;
|
|
|
|
&.webcam {
|
|
order: 2;
|
|
}
|
|
|
|
&.screen {
|
|
order: 1;
|
|
max-width: 50%;
|
|
}
|
|
> .indicators {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
display: flex;
|
|
flex-direction:; row;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
padding: 0.4vmin;
|
|
transition: opacity 0.3s;
|
|
z-index: 10;
|
|
|
|
> .icon {
|
|
flex: 0 0 auto;
|
|
margin: 0.2vmin;
|
|
border-radius: 2px;
|
|
background-position: center;
|
|
background-size: 75%;
|
|
background-repeat: no-repeat;
|
|
background-color: rgba(#000, 0.5);
|
|
transition-property: opacity, background-color;
|
|
transition-duration: 0.15s;
|
|
|
|
+desktop() {
|
|
width: 24px;
|
|
height: 24px;
|
|
opacity: 0.85;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
+mobile() {
|
|
width: 22px;
|
|
height: 22px;
|
|
}
|
|
|
|
&.on {
|
|
opacity: 1;
|
|
}
|
|
|
|
&.off {
|
|
opacity: 0.2;
|
|
}
|
|
|
|
&.raise-hand {
|
|
background-image: url('/resources/images/icon-hand-white.svg');
|
|
}
|
|
}
|
|
}
|
|
> .controls {
|
|
position: absolute;
|
|
z-index: 10;
|
|
right: 0;
|
|
top: 0;
|
|
display: flex;
|
|
flex-direction:; row;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
padding: 0.4vmin;
|
|
opacity: 0;
|
|
transition: opacity 0.3s;
|
|
|
|
&.visible {
|
|
opacity: 1;
|
|
}
|
|
|
|
> .button {
|
|
flex: 0 0 auto;
|
|
margin: 0.2vmin;
|
|
border-radius: 2px;
|
|
background-position: center;
|
|
background-size: 75%;
|
|
background-repeat: no-repeat;
|
|
background-color: rgba(#000, 0.5);
|
|
cursor: pointer;
|
|
transition-property: opacity, background-color;
|
|
transition-duration: 0.15s;
|
|
|
|
+desktop() {
|
|
width: 24px;
|
|
height: 24px;
|
|
opacity: 0.85;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
+mobile() {
|
|
width: 22px;
|
|
height: 22px;
|
|
}
|
|
|
|
&.unsupported {
|
|
pointer-events: none;
|
|
}
|
|
|
|
&.disabled {
|
|
pointer-events: none;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
&.on {
|
|
background-color: rgba(#fff, 0.7);
|
|
}
|
|
|
|
&.mic {
|
|
&.on {
|
|
background-image: url('/resources/images/icon_mic_black_on.svg');
|
|
}
|
|
|
|
&.off {
|
|
background-image: url('/resources/images/icon_remote_mic_white_off.svg');
|
|
background-color: rgba(#d42241, 0.7);
|
|
}
|
|
|
|
&.unsupported {
|
|
background-image: url('/resources/images/icon_mic_white_unsupported.svg');
|
|
}
|
|
}
|
|
|
|
&.webcam {
|
|
&.on {
|
|
background-image: url('/resources/images/icon_webcam_black_on.svg');
|
|
}
|
|
|
|
&.off {
|
|
background-image: url('/resources/images/icon_remote_webcam_white_off.svg');
|
|
background-color: rgba(#d42241, 0.7);
|
|
}
|
|
|
|
&.unsupported {
|
|
background-image: url('/resources/images/icon_webcam_white_unsupported.svg');
|
|
}
|
|
}
|
|
|
|
&.screen {
|
|
&.on {
|
|
background-image: url('/resources/images/share-screen-black.svg');
|
|
}
|
|
|
|
&.off {
|
|
background-image: url('/resources/images/no-share-screen-white.svg');
|
|
background-color: rgba(#d42241, 0.7);
|
|
}
|
|
|
|
&.unsupported {
|
|
background-image: url('/resources/images/no-share-screen-white.svg');
|
|
}
|
|
}
|
|
|
|
&.fullscreen {
|
|
background-image: url('/resources/images/icon_fullscreen_black.svg');
|
|
background-color: rgba(#fff, 0.7);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.incompatible-video {
|
|
position: absolute;
|
|
z-index: 2
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
> p {
|
|
padding: 6px 12px;
|
|
border-radius: 6px;
|
|
user-select: none;
|
|
pointer-events: none;
|
|
font-size: 15px;
|
|
color: rgba(#fff, 0.55);
|
|
}
|
|
}
|
|
}
|