bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/screenshare/plugin-button/styles.js

65 lines
1.2 KiB
JavaScript
Raw Normal View History

import styled from 'styled-components';
import {
colorWhite,
colorTransparent,
colorBlack,
} from '/imports/ui/stylesheets/styled-components/palette';
import Button from '/imports/ui/components/common/button/component';
const PluginButtonWrapper = styled.div`
background-color: ${colorTransparent};
cursor: pointer;
border: 0;
z-index: 2;
margin: 2px;
[dir="rtl"] & {
right: auto;
left: 0;
${({ fullScreenEnabled }) => fullScreenEnabled && `
left: 1.75rem;
`}
}
[class*="presentationZoomControls"] & {
position: relative !important;
}
${({ dark }) => dark && `
background-color: rgba(0,0,0,.3);
& button i {
color: ${colorWhite};
}
`}
${({ dark }) => !dark && `
background-color: ${colorTransparent};
& button i {
color: ${colorBlack};
}
`}
`;
const PluginButton = styled(Button)`
padding: 5px;
&,
&:active,
&:hover,
&:focus {
background-color: ${colorTransparent} !important;
border: none !important;
i {
border: none !important;
background-color: ${colorTransparent} !important;
font-size: 1rem;
}
}
`;
export default {
PluginButtonWrapper,
PluginButton,
};