LayerUI.scss 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. @import "open-color/open-color";
  2. @import "../css/variables.module";
  3. .excalidraw {
  4. .layer-ui__wrapper.animate {
  5. transition: width 0.1s ease-in-out;
  6. }
  7. .layer-ui__wrapper {
  8. // when the rightside sidebar is docked, we need to resize the UI by its
  9. // width, making the nested UI content shift to the left. To do this,
  10. // we need the UI container to actually have dimensions set, but
  11. // then we also need to disable pointer events else the canvas below
  12. // wouldn't be interactive.
  13. position: absolute;
  14. width: 100%;
  15. height: 100%;
  16. pointer-events: none;
  17. z-index: var(--zIndex-layerUI);
  18. &__top-right {
  19. display: flex;
  20. gap: 0.75rem;
  21. }
  22. &__footer {
  23. width: 100%;
  24. &-right {
  25. z-index: 100;
  26. display: flex;
  27. }
  28. }
  29. .zen-mode-transition {
  30. transition: transform 0.5s ease-in-out;
  31. :root[dir="ltr"] &.transition-left {
  32. transform: translate(-999px, 0);
  33. }
  34. :root[dir="ltr"] &.transition-right {
  35. transform: translate(999px, 0);
  36. }
  37. :root[dir="rtl"] &.transition-left {
  38. transform: translate(999px, 0);
  39. }
  40. :root[dir="rtl"] &.transition-right {
  41. transform: translate(-999px, 0);
  42. }
  43. &.layer-ui__wrapper__footer-left--transition-bottom {
  44. transform: translate(0, 92px);
  45. }
  46. }
  47. .disable-zen-mode {
  48. height: 30px;
  49. position: absolute;
  50. bottom: 10px;
  51. [dir="ltr"] & {
  52. right: 15px;
  53. }
  54. [dir="rtl"] & {
  55. left: 15px;
  56. }
  57. font-size: 10px;
  58. padding: 10px;
  59. font-weight: 500;
  60. opacity: 0;
  61. visibility: hidden;
  62. transition: visibility 0s linear 0s, opacity 0.5s;
  63. &--visible {
  64. opacity: 1;
  65. visibility: visible;
  66. transition: visibility 0s linear 300ms, opacity 0.5s;
  67. transition-delay: 0.8s;
  68. }
  69. }
  70. .layer-ui__wrapper__footer-left,
  71. .layer-ui__wrapper__footer-right,
  72. .disable-zen-mode--visible {
  73. pointer-events: all;
  74. }
  75. .layer-ui__wrapper__footer-right {
  76. margin-top: auto;
  77. margin-bottom: auto;
  78. }
  79. }
  80. }