"git@gitlab.liu.se:safelinks/safelinks-cleaner.git" did not exist on "7d1af6cac47e9c55b0a9bd45ff2869327ba1a7a8"
Newer
Older
import { AppBar, Button, Card, Drawer, Toolbar, Typography } from '@material-ui/core'
export const JudgeAppBar = styled(AppBar)`
z-index: 9000;
`
export const JudgeToolbar = styled(Toolbar)`
display: flex;
justify-content: space-between;
`
export const JudgeQuestionsLabel = styled(Typography)`
margin-left: 15px;
`
export const JudgeAnswersLabel = styled(Typography)`
export const ViewSelectContainer = styled.div`
display: flex;
justify-content: center;
padding-top: 12%;
height: calc(100%-12%);
`
export const ViewSelectButtonGroup = styled.div`
display: flex;
flex-direction: column;
justify-content: space-between;
width: max-content;
height: 140px;
margin-left: auto;
margin-right: auto;
export const OperatorHeader = styled(AppBar)`
display: flex;
justify-content: space-between;
width: 100%;
`
export const OperatorFooter = styled(AppBar)`
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
bottom: 0;
width: 100%;
margin-left: 16px;
margin-right: 16px;
`
export const OperatorHeaderItem = styled.div`
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
`
export const ToolBarContainer = styled.div`
align-self: center;
display: flex;
flex-direction: row;
justify-content: space-between;
height: 100%;
width: auto;
margin-right: auto;
margin-left: auto;
margin-bottom: 20px;
`
interface DrawerProps {
width: number
}
export const LeftDrawer = styled(Drawer)<DrawerProps>`
flex-shrink: 0;
position: 'relative';
z-index: -5;
width: ${(props) => (props ? props.width : 150)};
`
export const RightDrawer = styled(Drawer)<DrawerProps>`
width: ${(props) => (props ? props.width : 150)};
flex-shrink: 0;
z-index: 1;
`
interface ContentProps {
leftDrawerWidth: number
rightDrawerWidth: number
}
export const Content = styled.div<ContentProps>`
width: 100%;
height: 100%;
max-width: calc(100% - ${(props) => (props ? props.leftDrawerWidth + props.rightDrawerWidth : 0)}px);
max-height: calc(100% - 64px);
margin-left: ${(props) => (props ? props.leftDrawerWidth : 0)}px;
margin-right: ${(props) => (props ? props.rightDrawerWidth : 0)}px;
display: flex;
justify-content: center;
background-color: rgba(0, 0, 0, 0.08);
`
export const InnerContent = styled.div`
width: 100%;
/* Makes sure width is not bigger than where a 16:9 display can fit
without overlapping with header */
max-width: calc(((100vh - 64px) / 9) * 16);
`
height: 100%;
width: 100%;
display: flex;
justify-content: center;
background-color: rgba(0, 0, 0, 0.08);
`
height: 100%;
width: 100%;
/* Makes sure width is not bigger than where a 16:9 display can fit
without overlapping with header and footer */
max-width: calc(((100vh - 192px) / 9) * 16);
export const PresentationContainer = styled.div`
height: 100%;
width: 100%;
max-width: calc((100vh / 9) * 16);
export const PresentationBackground = styled.div`
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0.08);
display: flex;
justify-content: center;
`
interface ScoreHeaderPaperProps {
$rightDrawerWidth: number
}
export const ScoreHeaderPaper = styled(Card)<ScoreHeaderPaperProps>`
position: absolute;
top: 66px;
width: ${(props) => (props ? props.$rightDrawerWidth : 0)}px;
height: 71px;
display: flex;
justify-content: center;
align-items: center;
z-index: 10;
`
export const ScoreHeaderPadding = styled.div`
min-height: 71px;
`
export const ScoreFooterPadding = styled.div`
min-height: 250px;
`