bsl
Version:
基于React的框架和UI组件
53 lines (51 loc) • 1.05 kB
text/typescript
import { StyleSheet } from 'aphrodite/no-important';
const styles = StyleSheet.create({
root: {
position: 'relative',
height: 'inherit',
overflow: 'hidden',
clear: 'both'
},
slide: {
height: 'inherit',
position: 'relative',
left: 0,
top: 0,
whiteSpace: 'nowrap',
transform: 'translate3d(0, 0, 0)'
},
sideHidden: {
overflow: 'hidden'
},
slideItem: {
display: 'block',
height: '100%',
float: 'left',
overflow: 'hidden',
textAlign: 'center',
textDecoration: 'none',
position: 'relative',
zIndex: 1
},
dot: {
position: 'absolute',
right: 0,
left: 0,
bottom: '12px',
transform: 'translateZ(1px)',
textAlign: 'center',
fontSize: 0
},
dotItem: {
display: 'inline-block',
margin: '0 4px',
width: '8px',
height: '8px',
borderRadius: '50%',
background: 'rgba(255, 255, 255, 0.5)'
},
dotItemActive: {
background: '#fff'
}
});
export default styles;