UNPKG

bsl

Version:

基于React的框架和UI组件

66 lines (64 loc) 1.31 kB
import { StyleSheet, StyleDeclaration } from 'aphrodite/no-important'; import { border } from '../../styles/mixins'; const buttonStyle: StyleDeclaration = { flex: 1, textAlign: 'center', fontSize: 18, cursor: 'pointer' }; const styles = StyleSheet.create({ root: { position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', zIndex: 10, backgroundColor: '#fff', borderRadius: 5, width: 280, height: 'auto', paddingTop: 18, userSelect: 'none' }, title: { fontSize: 17, fontWeight: 'bold', color: '#000', padding: '10px 0 18px', textAlign: 'center' }, body: { padding: '0 18px 18px', fontSize: 14, color: '#999', textAlign: 'center' }, footer: { ...border('#d2d3d5', 'top'), display: 'flex', position: 'relative', padding: '13px 0' }, dismiss: { ...buttonStyle, color: '#e94f4f' }, ok: { ...buttonStyle, color: '#09bb07' }, button: { ...buttonStyle, color: '#09bb07' }, sep: { ...border('#d2d3d5', 'left'), width: 1, height: '100%', position: 'absolute', top: 0, left: '50%', transform: 'translateX(-50%)' } }); export default styles;