styles.tsx 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. import SplitPane from "react-split-pane";
  2. import styled from "styled-components";
  3. export const StyledPageWrapper = styled.div`
  4. display: flex;
  5. `;
  6. export const StyledEditorWrapper = styled.div`
  7. width: 100%;
  8. overflow: hidden;
  9. @media only screen and (max-width: 568px) {
  10. display: none;
  11. }
  12. `;
  13. export const StyledTools = styled.div`
  14. display: flex;
  15. align-items: center;
  16. height: 15px;
  17. border-bottom: 1px solid ${({ theme }) => theme.BLACK};
  18. padding: 4px 16px;
  19. background: ${({ theme }) => theme.BLACK_SECONDARY};
  20. color: ${({ theme }) => theme.SILVER};
  21. `;
  22. export const StyledEditor = styled(SplitPane)`
  23. position: relative !important;
  24. display: flex;
  25. background: ${({ theme }) => theme.BLACK_LIGHT};
  26. height: calc(100vh - 26px) !important;
  27. .Resizer {
  28. background: #000;
  29. opacity: 0.2;
  30. box-sizing: border-box;
  31. background-clip: padding-box;
  32. z-index: 1;
  33. }
  34. .Resizer:hover {
  35. transition: all 2s ease;
  36. }
  37. .Resizer.horizontal {
  38. height: 11px;
  39. margin: -5px 0;
  40. border-top: 5px solid rgba(255, 255, 255, 0);
  41. border-bottom: 5px solid rgba(255, 255, 255, 0);
  42. cursor: row-resize;
  43. width: 100%;
  44. }
  45. .Resizer.horizontal:hover {
  46. border-top: 5px solid rgba(0, 0, 0, 0.5);
  47. border-bottom: 5px solid rgba(0, 0, 0, 0.5);
  48. }
  49. .Resizer.vertical {
  50. width: 16px;
  51. margin: 0 -5px;
  52. border-left: 5px solid rgba(255, 255, 255, 0);
  53. border-right: 5px solid rgba(255, 255, 255, 0);
  54. cursor: col-resize;
  55. z-index: 0 !important;
  56. }
  57. .Resizer.vertical:hover {
  58. border-left: 5px solid rgba(0, 0, 0, 0.5);
  59. border-right: 5px solid rgba(0, 0, 0, 0.5);
  60. }
  61. .Resizer.disabled {
  62. cursor: not-allowed;
  63. }
  64. .Resizer.disabled:hover {
  65. border-color: transparent;
  66. }
  67. `;