bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/settings/submenus/application/styles.js

131 lines
2.7 KiB
JavaScript
Raw Normal View History

2021-11-05 21:46:14 +08:00
import styled from 'styled-components';
import {
colorGrayLabel,
colorPrimary,
colorWhite,
colorGrayLighter,
} from '/imports/ui/stylesheets/styled-components/palette';
import { borderSize, borderSizeLarge } from '/imports/ui/stylesheets/styled-components/general';
2021-11-05 22:06:47 +08:00
import SpinnerStyles from '/imports/ui/components/loading-screen/styles';
import Styled from '/imports/ui/components/settings/submenus/styles';
2021-11-05 21:46:14 +08:00
2021-11-05 22:06:47 +08:00
const Row = styled(Styled.Row)``;
2021-11-05 21:46:14 +08:00
2021-11-05 22:06:47 +08:00
const Col = styled(Styled.Col)``;
2021-11-05 21:46:14 +08:00
2021-11-05 22:06:47 +08:00
const FormElement = styled(Styled.FormElement)``;
2021-11-05 21:46:14 +08:00
2021-11-05 22:06:47 +08:00
const Label = styled(Styled.Label)``;
2021-11-05 21:46:14 +08:00
2021-11-05 22:06:47 +08:00
const FormElementRight = styled(Styled.FormElementRight)``;
2021-11-05 21:46:14 +08:00
const Select = styled.select`
&:focus {
box-shadow: inset 0 0 0 ${borderSizeLarge} ${colorPrimary};
border-radius: ${borderSize};
}
background-color: ${colorWhite};
border: ${borderSize} solid ${colorWhite};
border-radius: ${borderSize};
border-bottom: 0.1rem solid ${colorGrayLighter};
color: ${colorGrayLabel};
width: 100%;
height: 1.75rem;
padding: 1px;
&:hover,
&:focus {
outline: transparent;
outline-style: dotted;
outline-width: ${borderSize};
}
`;
2021-11-05 22:06:47 +08:00
const Title = styled(Styled.Title)``;
2021-11-05 21:46:14 +08:00
2021-11-05 22:06:47 +08:00
const Form = styled(Styled.Form)``;
2021-11-05 21:46:14 +08:00
2021-11-05 22:06:47 +08:00
const SpinnerOverlay = styled(SpinnerStyles.Spinner)`
2021-11-05 21:46:14 +08:00
& > div {
background-color: black;
}
`;
2021-11-05 22:06:47 +08:00
const Bounce1 = styled(SpinnerStyles.Bounce1)``;
2021-11-05 21:46:14 +08:00
2021-11-05 22:06:47 +08:00
const Bounce2 = styled(SpinnerStyles.Bounce2)``;
2021-11-05 21:46:14 +08:00
const Separator = styled.hr`
margin: 2.5rem 0;
border: 1px solid ${colorGrayLighter};
opacity: 0.25;
`;
const FormElementCenter = styled.div`
position: relative;
display: flex;
flex-grow: 1;
justify-content: center;
flex-flow: row;
align-items: center;
`;
const BoldLabel = styled.label`
color: ${colorGrayLabel};
font-size: 0.9rem;
margin-bottom: 0.5rem;
font-weight: bold;
`;
const PullContentRight = styled.div`
display: flex;
justify-content: flex-end;
flex-flow: row;
align-items: center;
`;
const LocalesDropdownSelect = styled.div`
& > select {
&:focus {
box-shadow: inset 0 0 0 ${borderSizeLarge} ${colorPrimary};
border-radius: ${borderSize};
}
background-color: ${colorWhite};
border: ${borderSize} solid ${colorWhite};
border-radius: ${borderSize};
border-bottom: 0.1rem solid ${colorGrayLighter};
color: ${colorGrayLabel};
width: 100%;
height: 1.75rem;
padding: 1px;
&:hover,
&:focus {
outline: transparent;
outline-style: dotted;
outline-width: ${borderSize};
}
}
`;
export default {
Row,
Col,
FormElement,
Label,
FormElementRight,
Select,
Title,
Form,
SpinnerOverlay,
Bounce1,
Bounce2,
Separator,
FormElementCenter,
BoldLabel,
PullContentRight,
LocalesDropdownSelect,
};