Using ReactJSS, I've built a stylesheet that looks like this:
const styleSheet = {
mainContainer: {
height: '100vh',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
},
modalBodyContainer: {
overflowY: 'auto'
},
'@media (min-width: 576px)': {
modalBodyContainer: {
padding: '0 100px',
maxHeight: 'calc(80vh - 185px)'
}
},
errorStateDropdown: {
border: [['1px solid red'], '!important']
}
};
export default styleSheet;
I'm now just starting to introduce some responsive code, as illustrated by this line: '@media (min-width: 576px)'
Rather than repeat 576px
over & over, I'd prefer to set it to a constant and reuse the constant.
The ReactJSS documentation is quite sparse so I can't figure out if this is possible. If you have a suggestion, I'd love to hear it.