90 lines
1.6 KiB
Stylus
90 lines
1.6 KiB
Stylus
[data-component='Me'] {
|
|
position: relative;
|
|
height: 100%;
|
|
width: 100%;
|
|
|
|
> .controls {
|
|
position: absolute;
|
|
z-index: 10
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
display: flex;
|
|
flex-direction:; row;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
padding: 0.4vmin;
|
|
|
|
> .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_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');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|