bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/screenshare/styles.js
2021-11-05 16:36:03 +00:00

75 lines
1.5 KiB
JavaScript

import styled from 'styled-components';
import {
colorWhite,
colorContentBackground,
} from '/imports/ui/stylesheets/styled-components/palette';
import SpinnerStyles from '/imports/ui/components/loading-screen/styles';
const ScreenshareContainerInside = styled.div`
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
text-align: center;
`;
const MainText = styled.h1`
color: ${colorWhite};
font-size: 1.3rem;
font-weight: 600;
`;
const ScreenshareVideo = styled.video`
${({ unhealthy }) => unhealthy && `
filter: grayscale(50%) opacity(50%);
`}
`;
const ScreenshareContainer = styled.div`
display: flex;
align-items: center;
justify-content: center;
background-color: ${colorContentBackground};
width: 100%;
height: 100%;
${({ switched }) => !switched && `
flex-direction: column;
`}
`;
const ScreenshareContainerDefault = styled.div`
position: absolute;
align-items: center;
justify-content: center;
padding-top: 4rem;
`;
const SpinnerWrapper = styled.div`
position: absolute;
display: flex;
align-items: center;
justify-content: center;
z-index: 1;
width: 100%;
height: 100%;
`;
const Spinner = styled(SpinnerStyles.Spinner)``;
const Bounce1 = styled(SpinnerStyles.Bounce1)``;
const Bounce2 = styled(SpinnerStyles.Bounce2)``;
export default {
ScreenshareContainerInside,
MainText,
ScreenshareVideo,
ScreenshareContainer,
ScreenshareContainerDefault,
SpinnerWrapper,
Spinner,
Bounce1,
Bounce2,
};