LayerUI.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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-left: auto;
  19. // 17px for scrollbar (needed for overlay scrollbars on Big Sur?) + 1px extra
  20. padding-right: 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. .encrypted-icon {
  36. position: relative;
  37. margin-inline-start: 15px;
  38. display: flex;
  39. justify-content: center;
  40. align-items: center;
  41. border-radius: var(--space-factor);
  42. color: $oc-green-9;
  43. svg {
  44. width: 1.2rem;
  45. height: 1.2rem;
  46. }
  47. }
  48. &__github-corner {
  49. top: 0;
  50. :root[dir="ltr"] & {
  51. right: 0;
  52. }
  53. :root[dir="rtl"] & {
  54. left: 0;
  55. }
  56. position: absolute;
  57. width: 40px;
  58. }
  59. &__footer {
  60. position: absolute;
  61. z-index: 100;
  62. bottom: 0px;
  63. :root[dir="ltr"] & {
  64. right: 0;
  65. }
  66. :root[dir="rtl"] & {
  67. left: 0;
  68. }
  69. width: 190px;
  70. }
  71. .zen-mode-transition {
  72. transition: transform 0.5s ease-in-out;
  73. :root[dir="ltr"] &.transition-left {
  74. transform: translate(-999px, 0);
  75. }
  76. :root[dir="ltr"] &.transition-right {
  77. transform: translate(999px, 0px);
  78. }
  79. :root[dir="rtl"] &.transition-left {
  80. transform: translate(999px, 0);
  81. }
  82. :root[dir="rtl"] &.transition-right {
  83. transform: translate(-999px, 0);
  84. }
  85. :root[dir="ltr"] &.App-menu_bottom--transition-left {
  86. transform: translate(-92px, 0);
  87. }
  88. :root[dir="rtl"] &.App-menu_bottom--transition-left {
  89. transform: translate(92px, 0);
  90. }
  91. }
  92. .disable-zen-mode {
  93. height: 30px;
  94. position: absolute;
  95. bottom: 10px;
  96. [dir="ltr"] & {
  97. right: 15px;
  98. }
  99. [dir="rtl"] & {
  100. left: 15px;
  101. }
  102. font-size: 10px;
  103. padding: 10px;
  104. font-weight: 500;
  105. opacity: 0;
  106. visibility: hidden;
  107. transition: visibility 0s linear 0s, opacity 0.5s;
  108. &--visible {
  109. opacity: 1;
  110. visibility: visible;
  111. transition: visibility 0s linear 300ms, opacity 0.5s;
  112. transition-delay: 0.8s;
  113. }
  114. }
  115. }
  116. }