LayerUI.scss 2.7 KB

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