bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/common/modal/fullscreen/styles.js

93 lines
2.0 KiB
JavaScript
Raw Normal View History

2021-11-11 03:10:35 +08:00
import styled from 'styled-components';
import Styled from '../base/styles';
import { smallOnly } from '/imports/ui/stylesheets/styled-components/breakpoints';
2022-02-15 04:20:50 +08:00
import Button from '/imports/ui/components/common/button/component';
2021-11-11 03:10:35 +08:00
import { borderSize, smPaddingX } from '/imports/ui/stylesheets/styled-components/general';
import {
lineHeightComputed,
modalTitleFw,
} from '/imports/ui/stylesheets/styled-components/typography';
import {
colorGrayLighter,
colorText,
colorWhite,
colorLink,
} from '/imports/ui/stylesheets/styled-components/palette';
const FullscreenModal = styled(Styled.BaseModal)`
outline: transparent;
outline-width: ${borderSize};
outline-style: solid;
display: flex;
flex-direction: column;
align-self: flex-start;
padding: calc(${lineHeightComputed} / 2) ${lineHeightComputed};
@media ${smallOnly} {
width: 100%;
height: 100%;
}
`;
const Header = styled.header`
display: flex;
padding: ${lineHeightComputed} 0;
border-bottom: ${borderSize} solid ${colorGrayLighter};
`;
const Title = styled.h1`
min-width: 0;
display: inline-block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
margin: 0;
font-weight: ${modalTitleFw};
`;
const Actions = styled.div`
flex: 0 1 35%;
display: flex;
align-items: center;
justify-content: space-between;
`;
const Content = styled.div`
color: ${colorText};
font-weight: normal;
padding: ${lineHeightComputed} 0;
`;
const DismissButton = styled(Button)`
flex: 0 1 48%;
`;
const ConfirmButton = styled(Button)`
flex: 0 1 48%;
color: ${colorWhite} !important;
background-color: ${colorLink} !important;
${({ popout }) => popout === 'popout' && `
& > i {
bottom: ${borderSize};
left: ${smPaddingX};
[dir="rtl"] & {
left: -0.5rem;
transform: rotateY(180deg);
}
}
`}
`;
export default {
FullscreenModal,
Header,
Title,
Actions,
Content,
DismissButton,
ConfirmButton,
};