2021-05-28 20:30:27 +00:00
|
|
|
import styled from 'styles'
|
2021-05-17 10:01:11 +00:00
|
|
|
|
2021-05-28 20:30:27 +00:00
|
|
|
export const Root = styled('div', {
|
|
|
|
position: 'relative',
|
|
|
|
backgroundColor: '$panel',
|
|
|
|
borderRadius: '4px',
|
|
|
|
overflow: 'hidden',
|
|
|
|
border: '1px solid $border',
|
|
|
|
pointerEvents: 'all',
|
|
|
|
userSelect: 'none',
|
2021-05-17 10:01:11 +00:00
|
|
|
zIndex: 200,
|
2021-05-28 20:30:27 +00:00
|
|
|
boxShadow: '0px 2px 25px rgba(0,0,0,.16)',
|
2021-05-17 10:01:11 +00:00
|
|
|
|
|
|
|
variants: {
|
2021-05-17 21:27:18 +00:00
|
|
|
isOpen: {
|
2021-05-26 10:34:10 +00:00
|
|
|
true: {
|
2021-05-28 20:30:27 +00:00
|
|
|
width: 'auto',
|
2021-05-26 10:34:10 +00:00
|
|
|
minWidth: 300,
|
|
|
|
},
|
2021-05-17 21:27:18 +00:00
|
|
|
false: {
|
|
|
|
height: 34,
|
|
|
|
width: 34,
|
|
|
|
},
|
2021-05-17 10:01:11 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2021-05-28 20:30:27 +00:00
|
|
|
export const Layout = styled('div', {
|
|
|
|
display: 'grid',
|
|
|
|
gridTemplateColumns: '1fr',
|
|
|
|
gridTemplateRows: 'auto 1fr',
|
|
|
|
gridAutoRows: '28px',
|
|
|
|
height: '100%',
|
|
|
|
width: 'auto',
|
|
|
|
minWidth: '100%',
|
2021-05-17 10:01:11 +00:00
|
|
|
maxWidth: 560,
|
2021-05-28 20:30:27 +00:00
|
|
|
overflow: 'hidden',
|
|
|
|
userSelect: 'none',
|
|
|
|
pointerEvents: 'all',
|
2021-05-17 10:01:11 +00:00
|
|
|
})
|
|
|
|
|
2021-05-28 20:30:27 +00:00
|
|
|
export const Header = styled('div', {
|
|
|
|
pointerEvents: 'all',
|
|
|
|
display: 'flex',
|
|
|
|
width: '100%',
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
borderBottom: '1px solid $border',
|
|
|
|
position: 'relative',
|
2021-05-17 10:01:11 +00:00
|
|
|
|
2021-05-28 20:30:27 +00:00
|
|
|
'& h3': {
|
|
|
|
position: 'absolute',
|
2021-05-27 17:59:40 +00:00
|
|
|
top: 0,
|
|
|
|
left: 0,
|
2021-05-28 20:30:27 +00:00
|
|
|
width: '100%',
|
|
|
|
height: '100%',
|
|
|
|
textAlign: 'center',
|
2021-05-27 17:59:40 +00:00
|
|
|
padding: 0,
|
|
|
|
margin: 0,
|
2021-05-28 20:30:27 +00:00
|
|
|
display: 'flex',
|
|
|
|
justifyContent: 'center',
|
|
|
|
alignItems: 'center',
|
|
|
|
fontSize: '13px',
|
|
|
|
pointerEvents: 'none',
|
|
|
|
userSelect: 'none',
|
|
|
|
},
|
|
|
|
|
|
|
|
variants: {
|
|
|
|
side: {
|
|
|
|
left: {
|
|
|
|
flexDirection: 'row',
|
|
|
|
},
|
|
|
|
right: {
|
|
|
|
flexDirection: 'row-reverse',
|
|
|
|
},
|
|
|
|
},
|
2021-05-17 10:01:11 +00:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2021-05-28 20:30:27 +00:00
|
|
|
export const ButtonsGroup = styled('div', {
|
|
|
|
display: 'flex',
|
2021-05-17 10:01:11 +00:00
|
|
|
})
|
|
|
|
|
2021-05-28 20:30:27 +00:00
|
|
|
export const Content = styled('div', {
|
|
|
|
position: 'relative',
|
|
|
|
pointerEvents: 'all',
|
|
|
|
overflowY: 'scroll',
|
2021-05-17 10:01:11 +00:00
|
|
|
})
|
|
|
|
|
2021-05-28 20:30:27 +00:00
|
|
|
export const Footer = styled('div', {
|
|
|
|
overflowX: 'scroll',
|
|
|
|
color: '$text',
|
|
|
|
font: '$debug',
|
|
|
|
padding: '0 12px',
|
|
|
|
display: 'flex',
|
|
|
|
alignItems: 'center',
|
|
|
|
borderTop: '1px solid $border',
|
2021-05-17 10:01:11 +00:00
|
|
|
})
|