bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/common/fullscreen-button/styles.js

83 lines
1.4 KiB
JavaScript
Raw Normal View History

2021-11-09 01:44:34 +08:00
import styled from 'styled-components';
2022-02-15 04:20:50 +08:00
import Button from '/imports/ui/components/common/button/component';
2021-11-09 01:44:34 +08:00
import {
colorTransparent,
colorWhite,
colorBlack,
} from '/imports/ui/stylesheets/styled-components/palette';
const FullscreenButtonWrapper = styled.div`
position: absolute;
right: 0;
left: auto;
background-color: ${colorTransparent};
cursor: pointer;
border: 0;
z-index: 2;
margin: 2px;
[dir="rtl"] & {
right: auto;
left :0;
}
[class*="presentationZoomControls"] & {
position: relative !important;
}
${({ theme }) => theme === 'dark' && `
background-color: rgba(0,0,0,.3);
& button i {
color: ${colorWhite};
}
`}
${({ theme }) => theme === 'light' && `
background-color: ${colorTransparent};
& button i {
color: ${colorBlack};
}
`}
${({ position }) => position === 'bottom' && `
bottom: 0;
`}
${({ position }) => position === 'top' && `
top: 0;
`}
`;
const FullscreenButton = styled(Button)`
${({ isStyled }) => isStyled && `
&,
&:active,
&:hover,
&:focus {
background-color: ${colorTransparent} !important;
border: none !important;
i {
border: none !important;
background-color: ${colorTransparent} !important;
}
}
padding: 5px;
&:hover {
border: 0;
}
i {
font-size: 1rem;
}
`}
`;
export default {
FullscreenButtonWrapper,
FullscreenButton,
};