You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. import styled from 'styles'
  2. export const Root = styled('div', {
  3. position: 'relative',
  4. backgroundColor: '$panel',
  5. borderRadius: '4px',
  6. overflow: 'hidden',
  7. pointerEvents: 'all',
  8. userSelect: 'none',
  9. zIndex: 200,
  10. border: '1px solid $panel',
  11. boxShadow: '0px 2px 4px rgba(0,0,0,.2)',
  12. variants: {
  13. isOpen: {
  14. true: {},
  15. false: {
  16. padding: 2,
  17. height: 38,
  18. width: 38,
  19. },
  20. },
  21. },
  22. })
  23. export const Layout = styled('div', {
  24. display: 'grid',
  25. gridTemplateColumns: '1fr',
  26. gridTemplateRows: 'auto 1fr',
  27. gridAutoRows: '28px',
  28. height: '100%',
  29. width: 'auto',
  30. minWidth: '100%',
  31. maxWidth: 560,
  32. overflow: 'hidden',
  33. userSelect: 'none',
  34. pointerEvents: 'all',
  35. })
  36. export const Header = styled('div', {
  37. pointerEvents: 'all',
  38. display: 'flex',
  39. width: '100%',
  40. alignItems: 'center',
  41. justifyContent: 'space-between',
  42. padding: 2,
  43. position: 'relative',
  44. '& h3': {
  45. position: 'absolute',
  46. top: 0,
  47. left: 0,
  48. width: '100%',
  49. height: '100%',
  50. textAlign: 'center',
  51. padding: 0,
  52. margin: 0,
  53. display: 'flex',
  54. justifyContent: 'center',
  55. alignItems: 'center',
  56. fontSize: '13px',
  57. pointerEvents: 'none',
  58. userSelect: 'none',
  59. },
  60. variants: {
  61. side: {
  62. left: {
  63. flexDirection: 'row',
  64. },
  65. right: {
  66. flexDirection: 'row-reverse',
  67. },
  68. },
  69. },
  70. })
  71. export const ButtonsGroup = styled('div', {
  72. display: 'flex',
  73. })
  74. export const Content = styled('div', {
  75. position: 'relative',
  76. pointerEvents: 'all',
  77. overflowY: 'scroll',
  78. })
  79. export const Footer = styled('div', {
  80. overflowX: 'scroll',
  81. color: '$text',
  82. font: '$debug',
  83. padding: '0 12px',
  84. display: 'flex',
  85. alignItems: 'center',
  86. })