bsl
Version:
基于React的框架和UI组件
29 lines (27 loc) • 564 B
text/typescript
import { create, css } from '../../css-in-js';
import device from '../../utils/device';
const styles = create({
root: css({
position: 'fixed',
width: '100%',
height: device.system === 'ios' ? window.innerHeight + 75 : '100vh',
zIndex: 10,
bottom: 0,
left: 0
}),
content: css({
position: 'absolute',
outline: 0,
zIndex: 2
}),
bg: css({
width: '100%',
height: '100%',
position: 'absolute',
top: 0,
left: 0,
zIndex: 1,
backgroundColor: 'rgba(55, 55, 55, 0.6)'
})
});
export default styles;