LayerUI.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. @import "open-color/open-color";
  2. .excalidraw {
  3. .layer-ui__library {
  4. margin: auto;
  5. display: flex;
  6. align-items: center;
  7. justify-content: center;
  8. .layer-ui__library-header {
  9. display: flex;
  10. align-items: center;
  11. width: 100%;
  12. margin: 2px 0;
  13. button {
  14. // 2px from the left to account for focus border of left-most button
  15. margin: 0 2px;
  16. }
  17. a {
  18. margin-inline-start: auto;
  19. // 17px for scrollbar (needed for overlay scrollbars on Big Sur?) + 1px extra
  20. padding-inline-end: 18px;
  21. white-space: nowrap;
  22. }
  23. }
  24. }
  25. .layer-ui__library-message {
  26. padding: 10px 20px;
  27. max-width: 200px;
  28. }
  29. .layer-ui__library-items {
  30. max-height: 50vh;
  31. overflow: auto;
  32. }
  33. .layer-ui__wrapper {
  34. z-index: var(--zIndex-layerUI);
  35. &__top-right {
  36. display: flex;
  37. }
  38. &__footer {
  39. width: 100%;
  40. &-right {
  41. z-index: 100;
  42. display: flex;
  43. }
  44. }
  45. .zen-mode-transition {
  46. transition: transform 0.5s ease-in-out;
  47. :root[dir="ltr"] &.transition-left {
  48. transform: translate(-999px, 0);
  49. }
  50. :root[dir="ltr"] &.transition-right {
  51. transform: translate(999px, 0);
  52. }
  53. :root[dir="rtl"] &.transition-left {
  54. transform: translate(999px, 0);
  55. }
  56. :root[dir="rtl"] &.transition-right {
  57. transform: translate(-999px, 0);
  58. }
  59. :root[dir="ltr"] &.layer-ui__wrapper__footer-left--transition-left {
  60. transform: translate(-92px, 0);
  61. }
  62. :root[dir="rtl"] &.layer-ui__wrapper__footer-left--transition-left {
  63. transform: translate(92px, 0);
  64. }
  65. &.layer-ui__wrapper__footer-left--transition-bottom {
  66. transform: translate(0, 92px);
  67. }
  68. }
  69. .disable-zen-mode {
  70. height: 30px;
  71. position: absolute;
  72. bottom: 10px;
  73. [dir="ltr"] & {
  74. right: 15px;
  75. }
  76. [dir="rtl"] & {
  77. left: 15px;
  78. }
  79. font-size: 10px;
  80. padding: 10px;
  81. font-weight: 500;
  82. opacity: 0;
  83. visibility: hidden;
  84. transition: visibility 0s linear 0s, opacity 0.5s;
  85. &--visible {
  86. opacity: 1;
  87. visibility: visible;
  88. transition: visibility 0s linear 300ms, opacity 0.5s;
  89. transition-delay: 0.8s;
  90. }
  91. }
  92. .layer-ui__wrapper__footer-center {
  93. pointer-events: none;
  94. & > * {
  95. pointer-events: all;
  96. }
  97. }
  98. .layer-ui__wrapper__footer-left,
  99. .layer-ui__wrapper__footer-right {
  100. pointer-events: all;
  101. }
  102. }
  103. }