@nbamford123/arwes
Version:
Futuristic Sci-Fi and Cyberpunk Graphical User Interface Framework for Web Apps
40 lines (35 loc) • 810 B
JavaScript
import { rgba } from 'polished';
export default (theme) => {
return {
root: {
display: 'block',
position: 'relative',
backgroundColor: rgba(theme.background.primary.level0, theme.alpha),
'&$exiting, &$exited': {
backgroundColor: 'transparent',
'& $separator': {
width: 0,
},
},
},
separator: {
position: 'absolute',
top: 'auto',
left: '50%',
transform: 'translateX(-50%)',
display: 'block',
width: '100%',
borderStyle: 'solid',
borderColor: theme.color.primary.dark,
borderWidth: '0 0 1px',
transition: `all ${theme.animTime}ms ease-in`,
},
children: {
display: 'block',
},
entering: {},
entered: {},
exiting: {},
exited: {},
};
};