2022-06-30 01:18:15 +08:00
|
|
|
import styled from 'styled-components';
|
|
|
|
import Button from '/imports/ui/components/common/button/component';
|
2022-08-24 23:40:03 +08:00
|
|
|
import Toggle from '/imports/ui/components/common/switch/component';
|
|
|
|
import {
|
|
|
|
colorWhite,
|
|
|
|
colorPrimary,
|
|
|
|
colorOffWhite,
|
|
|
|
colorDangerDark,
|
|
|
|
colorSuccess,
|
|
|
|
} from '/imports/ui/stylesheets/styled-components/palette';
|
2022-06-30 01:18:15 +08:00
|
|
|
|
|
|
|
const ClosedCaptionToggleButton = styled(Button)`
|
|
|
|
${({ ghost }) => ghost && `
|
|
|
|
span {
|
|
|
|
box-shadow: none;
|
|
|
|
background-color: transparent !important;
|
|
|
|
border-color: ${colorWhite} !important;
|
|
|
|
}
|
2022-08-03 04:33:53 +08:00
|
|
|
i {
|
|
|
|
margin-top: .4rem;
|
|
|
|
}
|
2022-06-30 01:18:15 +08:00
|
|
|
`}
|
|
|
|
`;
|
|
|
|
|
2022-08-24 23:40:03 +08:00
|
|
|
const SpanButtonWrapper = styled.span`
|
|
|
|
position: relative;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const TranscriptionToggle = styled(Toggle)`
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-start;
|
|
|
|
padding-left: 1em;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const TitleLabel = {
|
|
|
|
fontWeight: 'bold',
|
|
|
|
opacity: 1,
|
|
|
|
};
|
|
|
|
|
|
|
|
const EnableTrascription = {
|
|
|
|
color: colorSuccess,
|
|
|
|
};
|
|
|
|
|
|
|
|
const DisableTrascription = {
|
|
|
|
color: colorDangerDark,
|
|
|
|
};
|
|
|
|
|
|
|
|
const SelectedLabel = {
|
|
|
|
color: colorPrimary,
|
|
|
|
backgroundColor: colorOffWhite,
|
|
|
|
};
|
|
|
|
|
2022-06-30 01:18:15 +08:00
|
|
|
export default {
|
|
|
|
ClosedCaptionToggleButton,
|
2022-08-24 23:40:03 +08:00
|
|
|
SpanButtonWrapper,
|
|
|
|
TranscriptionToggle,
|
|
|
|
TitleLabel,
|
|
|
|
EnableTrascription,
|
|
|
|
DisableTrascription,
|
|
|
|
SelectedLabel,
|
2022-06-30 01:18:15 +08:00
|
|
|
};
|