Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya committed Aug 25, 2022
1 parent 3d3a849 commit f1cf1b7
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions packages/ui/src/components/ControllerBottom.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,6 @@ import { $ } from '@oplayer/core'
import { icon } from '../style'
import { isMobile } from '../utils'

export const controllerBottom = $.css({
display: 'flex',
'justify-content': 'space-between',
'font-size': '14px',
color: '#fff',
fill: '#fff',
height: '35px',
padding: isMobile ? 0 : '0px 0px 5px 0px',
'margin-right': isMobile ? '-9px' : '0px',
'text-align': 'center',

[`& .${icon}`]: {
width: '36px',
height: '22px',

['&[aria-label="WebFullscreen"]']: {
width: '25px',
height: '20px',
'margin-top': '2px'
},

['> svg']: {
width: '100%',
height: '100%',
'pointer-events': 'none'
}
},

// left & right
'> div': {
display: 'flex',
'align-items': 'center'
}
})

export const time = $.css`
padding: ${isMobile ? 0 : '0px 0.5em'};
font-variant-numeric: tabular-nums;
Expand Down Expand Up @@ -107,3 +72,38 @@ export const dropitem = $.css({
'background-color': 'rgba(255, 255, 255, 0.1)'
}
})

export const controllerBottom = $.css({
display: 'flex',
'justify-content': 'space-between',
'font-size': '14px',
color: '#fff',
fill: '#fff',
height: '35px',
padding: isMobile ? 0 : '0px 0px 5px 0px',
'margin-right': isMobile ? '-9px' : '0px',
'text-align': 'center',

[`& .${expand} .${icon}[aria-label="WebFullscreen"]`]: {
width: '25px',
height: '20px',
'margin-top': '2px'
},

[`& .${icon}`]: {
width: '36px',
height: '22px',

['> svg']: {
width: '100%',
height: '100%',
'pointer-events': 'none'
}
},

// left & right
'> div': {
display: 'flex',
'align-items': 'center'
}
})

0 comments on commit f1cf1b7

Please sign in to comment.