@nbamford123/arwes
Version:
Futuristic Sci-Fi and Cyberpunk Graphical User Interface Framework for Web Apps
71 lines (67 loc) • 1.59 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (theme) {
return {
root: {
position: 'relative',
display: 'block',
margin: [0, 0, theme.margin],
width: '100%',
height: 1,
'&$exiting, &$exited': {
'& $line': {
width: '0%'
},
'& $left, & $right': {
opacity: 0
}
}
},
line: {
position: 'absolute',
top: 0,
left: '50%',
transform: 'translateX(-50%)',
width: '100%',
display: 'block',
borderStyle: 'solid',
borderColor: function borderColor(props) {
return theme.color[props.layer].dark;
},
borderWidth: '0 0 1px',
transition: 'all ' + theme.animTime + 'ms ease-out'
},
left: {
position: 'absolute',
left: 0,
top: -1,
display: 'block',
width: 3,
height: 3,
background: function background(props) {
return theme.color[props.layer].dark;
},
opacity: 1,
transition: 'all ' + theme.animTime / 4 * 3 + 'ms ease-out ' + theme.animTime / 4 + 'ms'
},
right: {
position: 'absolute',
top: -1,
right: 0,
display: 'block',
width: 3,
height: 3,
background: function background(props) {
return theme.color[props.layer].dark;
},
opacity: 1,
transition: 'all ' + theme.animTime / 4 * 3 + 'ms ease-out ' + theme.animTime / 4 + 'ms'
},
entering: {},
entered: {},
exiting: {},
exited: {}
};
};