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.

panel.tsx 1.5KB

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