bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/timer/styles.js
Arthur B. Grossi cc61652aa3 feat(timer): ambient music
Adds a music player for ambient sound which can be turned on and off using a
toggle located inside timer panel. When stopwatch is selected, this toggle is
automattically turned off.
2023-05-18 15:29:34 -03:00

204 lines
3.8 KiB
JavaScript

import styled from 'styled-components';
import {
borderSize,
borderSizeLarge,
mdPaddingX,
mdPaddingY,
pollHeaderOffset,
toastContentWidth,
} from '../../stylesheets/styled-components/general';
import { colorGrayDark, colorGrayLightest, colorWhite } from '../../stylesheets/styled-components/palette';
import { TextElipsis } from '../../stylesheets/styled-components/placeholders';
import Button from '/imports/ui/components/common/button/component';
const TimerSidebarContent = styled.div`
background-color: ${colorWhite};
padding:
${mdPaddingX}
${mdPaddingY}
${mdPaddingX}
${mdPaddingX};
display: flex;
flex-grow: 1;
flex-direction: column;
justify-content: space-around;
overflow: hidden;
height: 100vh;
transform: translateZ(0);
`;
const TimerHeader = styled.header`
position: relative;
top: ${pollHeaderOffset};
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
`;
const TimerTitle = styled.div`
${TextElipsis};
flex: 1;
& > button, button:hover {
max-width: ${toastContentWidth};
}
`;
const TimerMinimizeButton = styled(Button)`
position: relative;
background-color: ${colorWhite};
display: block;
margin: ${borderSizeLarge};
margin-bottom: ${borderSize};
padding-left: 0;
padding-right: inherit;
[dir="rtl"] & {
padding-left: inherit;
padding-right: 0;
}
> i {
color: ${colorGrayDark};
font-size: smaller;
[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);
}
}
&:hover {
background-color: ${colorWhite};
}
`;
const TimerContent = styled.div`
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
`;
const TimerCurrent = styled.span`
border-bottom: 1px solid ${colorGrayLightest};
border-top: 1px solid ${colorGrayLightest};
display: flex;
font-size: xxx-large;
justify-content: center;
`;
const TimerType = styled.div`
display: flex;
width: 100%;
justify-content: center;
padding-top: 2rem;
`;
const TimerSwitchButton = styled(Button)`
width: 100%;
height: 2rem;
margin: 0 .5rem;
`;
const StopwatchTime = styled.div`
display: flex;
margin-top: 4rem;
width: 100%;
height: 3rem;
font-size: x-large;
justify-content: center;
input {
width: 5rem;
}
`;
const StopwatchTimeColon = styled.span`
align-self: center;
padding: 0 .25rem;
`;
const TimerPreset = styled.span`
display: flex;
width: 100%;
margin-top: 1rem;
flex-direction: column;
`;
const TimerLine = styled.div`
display: flex;
justify-content: center;
width: 100%;
padding: .5rem 0;
`;
const TimerPresetButton = styled(Button)`
margin: 0 .5rem;
`
const TimerControls = styled.div`
margin-top: 4rem;
height: 3rem;
display: flex;
width: 100%;
justify-content: center;
`;
const TimerControlButton = styled(Button)`
width: 6rem;
margin: 0 1rem;
`;
const TimerSongsWrapper = styled.div`
display: flex;
flex-flow: column;
margin-top: 2rem;
margin-bottom: -2rem;
`;
const TimerRow = styled.div`
display: flex;
flex-flow: row;
flex-grow: 1;
`;
const PullContentRight = `
display: flex;
justify-content: flex-end;
flex-flow: row;
`;
const TimerCol = styled.div`
display: flex;
flex-grow: 1;
flex-basis: 0;
${({ disabled }) => disabled && 'opacity: 50%'}
${({ pullContentRight }) => pullContentRight && `${PullContentRight}`}
`;
export default {
TimerSidebarContent,
TimerHeader,
TimerTitle,
TimerMinimizeButton,
TimerContent,
TimerCurrent,
TimerType,
TimerSwitchButton,
StopwatchTime,
StopwatchTimeColon,
TimerPreset,
TimerLine,
TimerPresetButton,
TimerControls,
TimerControlButton,
TimerSongsWrapper,
TimerRow,
TimerCol,
};