Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

panel.tsx 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. width: "auto",
  16. minWidth: 300,
  17. },
  18. false: {
  19. height: 34,
  20. width: 34,
  21. },
  22. },
  23. },
  24. })
  25. export const Layout = styled("div", {
  26. display: "grid",
  27. gridTemplateColumns: "1fr",
  28. gridTemplateRows: "auto 1fr",
  29. gridAutoRows: "28px",
  30. height: "100%",
  31. width: "auto",
  32. minWidth: "100%",
  33. maxWidth: 560,
  34. overflow: "hidden",
  35. userSelect: "none",
  36. pointerEvents: "all",
  37. })
  38. export const Header = styled("div", {
  39. pointerEvents: "all",
  40. display: "flex",
  41. width: "100%",
  42. alignItems: "center",
  43. justifyContent: "space-between",
  44. borderBottom: "1px solid $border",
  45. position: "relative",
  46. "& h3": {
  47. position: "absolute",
  48. top: 0,
  49. left: 0,
  50. width: "100%",
  51. height: "100%",
  52. textAlign: "center",
  53. padding: 0,
  54. margin: 0,
  55. display: "flex",
  56. justifyContent: "center",
  57. alignItems: "center",
  58. fontSize: "13px",
  59. pointerEvents: "none",
  60. userSelect: "none",
  61. },
  62. })
  63. export const ButtonsGroup = styled("div", {
  64. display: "flex",
  65. })
  66. export const Content = styled("div", {
  67. position: "relative",
  68. pointerEvents: "all",
  69. overflowY: "scroll",
  70. })
  71. export const Footer = styled("div", {
  72. overflowX: "scroll",
  73. color: "$text",
  74. font: "$debug",
  75. padding: "0 12px",
  76. display: "flex",
  77. alignItems: "center",
  78. borderTop: "1px solid $border",
  79. })