@nbamford123/arwes
Version:
Futuristic Sci-Fi and Cyberpunk Graphical User Interface Framework for Web Apps
44 lines (38 loc) • 985 B
JavaScript
export default (theme) => {
return {
root: {
display: 'inline-block',
position: 'relative',
lineHeight: 1,
verticalAlign: 'middle',
},
button: {
position: 'relative',
zIndex: 2,
display: 'inline-block',
margin: 0,
border: 'none',
padding: [theme.padding / 2, theme.padding],
background: 'transparent',
color: props => theme.color[props.disabled ? 'disabled' : props.layer].base,
fontSize: theme.typography.fontSize * 0.75,
lineHeight: 1,
verticalAlign: 'middle',
transition: `all ${theme.animTime}ms ease-out`,
userSelect: 'none',
outline: 'none',
cursor: props => props.disabled ? 'auto' : 'pointer',
'&:focus': {
outline: 'none',
},
'&::-moz-focus-inner': {
border: 'none',
},
'& .mdi, & .icon': {
lineHeight: 0,
fontSize: '140%',
verticalAlign: 'middle',
},
},
};
};