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

71 lines
1.2 KiB
JavaScript
Raw Normal View History

2021-11-06 00:36:03 +08:00
import styled from 'styled-components';
import {
colorWhite,
colorTransparent,
colorBlack,
} from '/imports/ui/stylesheets/styled-components/palette';
2022-02-15 04:20:50 +08:00
import Button from '/imports/ui/components/common/button/component';
2021-11-06 00:36:03 +08:00
const SwitchButtonWrapper = styled.div`
position: relative;
2021-11-06 00:36:03 +08:00
right: 0;
left: auto;
background-color: ${colorTransparent};
cursor: pointer;
border: 0;
z-index: 2;
margin: 2px;
[dir="rtl"] & {
right: auto;
left: 1.75rem;
}
${({ dark }) => dark && `
background-color: rgba(0,0,0,.3);
& button i {
color: ${colorWhite};
}
`}
${({ dark }) => !dark && `
background-color: ${colorTransparent};
& button i {
color: ${colorBlack};
}
`}
${({ bottom }) => bottom && `
bottom: 0;
`}
${({ bottom }) => !bottom && `
top: 0;
`}
`;
const SwitchButton = 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 {
SwitchButtonWrapper,
SwitchButton,
};