@instructure/quiz-interactions
Version:
A React UI component Library for quiz interaction types.
40 lines (38 loc) • 919 B
JavaScript
const generateStyle = (componentTheme, props) => {
return {
targetContainerWrapper: {
maxWidth: '100%',
display: 'flex',
alignItems: 'center',
...(props.justifyContent === 'left' && {
justifyContent: 'left',
}),
...(props.justifyContent === 'center' && {
justifyContent: 'center',
}),
},
targetContainerMain: {
position: 'relative',
marginTop: componentTheme.targetContainerMainMargin,
/* IE11 bugfix */
maxWidth: 'calc(100% - 0.01px)',
},
image: {
maxWidth: '100%',
maxHeight: '50rem',
},
mainContainerContentWrapper: {
maxWidth: '100%',
display: 'inline-block',
flex: '1',
alignItems: 'center',
},
mainContainerContent: {
position: 'relative',
width: '100%',
height: '100%',
cursor: 'pointer',
},
}
}
export default generateStyle