bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/presentation/presentation-toolbar/styles.js

233 lines
4.7 KiB
JavaScript
Raw Normal View History

2021-11-08 21:09:56 +08:00
import styled from 'styled-components';
import QuickPollDropdownContainer from '/imports/ui/components/actions-bar/quick-poll-dropdown/container';
import {
colorOffWhite,
colorBlueLightest,
toolbarButtonColor,
} from '/imports/ui/stylesheets/styled-components/palette';
import {
whiteboardToolbarMargin,
whiteboardToolbarPaddingSm,
whiteboardToolbarPadding,
borderSize,
smPaddingY,
} from '/imports/ui/stylesheets/styled-components/general';
2022-02-15 04:20:50 +08:00
import Button from '/imports/ui/components/common/button/component';
2021-11-08 21:09:56 +08:00
const PresentationToolbarWrapper = styled.div`
position: relative;
align-self: center;
z-index: 1;
background-color: ${colorOffWhite};
border-top: 1px solid ${colorBlueLightest};
min-width: fit-content;
width: 100%;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
select {
&:-moz-focusring {
outline: none;
}
border: 0;
background-color: ${colorOffWhite};
cursor: pointer;
margin: 0 ${whiteboardToolbarMargin} 0 0;
padding: ${whiteboardToolbarPadding};
padding-left: ${whiteboardToolbarPaddingSm};
[dir="rtl"] & {
margin: 0 0 0 ${whiteboardToolbarMargin};
padding: ${whiteboardToolbarPadding};
padding-right: ${whiteboardToolbarPaddingSm};
}
& > option {
color: ${toolbarButtonColor};
background-color: ${colorOffWhite};
}
}
i {
color: ${toolbarButtonColor};
display: flex;
justify-content: center;
align-items: center;
}
`;
const QuickPollButton = styled(QuickPollDropdownContainer)`
position: relative;
color: ${toolbarButtonColor};
background-color: ${colorOffWhite};
border-radius: 0;
box-shadow: none !important;
border: 0;
&:focus {
background-color: ${colorOffWhite};
border: 0;
}
`;
const PresentationSlideControls = styled.div`
justify-content: center;
padding-left: ${whiteboardToolbarPadding};
padding-right: ${whiteboardToolbarPadding};
display: flex;
flex-direction: row;
align-items: center;
border-radius: 0;
& > button {
padding: ${whiteboardToolbarPadding};
}
`;
const PrevSlideButton = styled(Button)`
border: none !important;
& > i {
font-size: 1rem;
[dir="rtl"] & {
-webkit-transform: scale(-1, 1);
-moz-transform: scale(-1, 1);
-ms-transform: scale(-1, 1);
-o-transform: scale(-1, 1);
transform: scale(-1, 1);
}
}
position: relative;
color: ${toolbarButtonColor};
background-color: ${colorOffWhite};
border-radius: 0;
box-shadow: none !important;
border: 0;
&:focus {
background-color: ${colorOffWhite};
border: 0;
}
`;
const NextSlideButton = styled(Button)`
border: none !important;
& > i {
font-size: 1rem;
[dir="rtl"] & {
-webkit-transform: scale(-1, 1);
-moz-transform: scale(-1, 1);
-ms-transform: scale(-1, 1);
-o-transform: scale(-1, 1);
transform: scale(-1, 1);
}
}
position: relative;
color: ${toolbarButtonColor};
background-color: ${colorOffWhite};
border-radius: 0;
box-shadow: none !important;
border: 0;
&:focus {
background-color: ${colorOffWhite};
border: 0;
}
`;
const SkipSlideSelect = styled.select`
padding: 0 ${smPaddingY};
margin: ${borderSize};
margin-left: ${whiteboardToolbarMargin};
[dir="rtl"] & {
margin: ${borderSize};
margin-right: ${whiteboardToolbarMargin};
}
&:-moz-focusring {
outline: none;
}
&:hover {
outline: transparent;
outline-style: dotted;
outline-width: ${borderSize};
}
&:focus {
outline: transparent;
outline-width: ${borderSize};
outline-style: solid;
}
`;
const PresentationZoomControls = styled.div`
justify-content: flex-end;
padding: 0 ${whiteboardToolbarPadding} 0 0;
[dir="rtl"] & {
padding: 0 0 0 ${whiteboardToolbarPadding};
}
display: flex;
flex-direction: row;
align-items: center;
border-radius: 0;
button {
padding: ${whiteboardToolbarPadding};
}
i {
font-size: 1.2rem;
}
`;
const FitToWidthButton = styled(Button)`
border: none !important;
& > i {
font-size: 1.2rem;
[dir="rtl"] & {
-webkit-transform: scale(-1, 1);
-moz-transform: scale(-1, 1);
-ms-transform: scale(-1, 1);
-o-transform: scale(-1, 1);
transform: scale(-1, 1);
}
}
margin-left: ${whiteboardToolbarMargin};
margin-right: ${whiteboardToolbarMargin};
position: relative;
color: ${toolbarButtonColor};
background-color: ${colorOffWhite};
border-radius: 0;
box-shadow: none !important;
border: 0;
&:focus {
background-color: ${colorOffWhite};
border: 0;
}
`;
export default {
PresentationToolbarWrapper,
QuickPollButton,
PresentationSlideControls,
PrevSlideButton,
NextSlideButton,
SkipSlideSelect,
PresentationZoomControls,
FitToWidthButton,
};