LibraryMenu.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. @import "open-color/open-color";
  2. .excalidraw {
  3. .layer-ui__library-sidebar {
  4. display: flex;
  5. flex-direction: column;
  6. }
  7. .layer-ui__library {
  8. display: flex;
  9. flex-direction: column;
  10. flex: 1 1 auto;
  11. .layer-ui__library-header {
  12. display: flex;
  13. align-items: center;
  14. width: 100%;
  15. margin: 2px 0 15px 0;
  16. .Spinner {
  17. margin-right: 1rem;
  18. }
  19. button {
  20. // 2px from the left to account for focus border of left-most button
  21. margin: 0 2px;
  22. }
  23. }
  24. }
  25. .layer-ui__sidebar {
  26. .library-menu-items-container {
  27. height: 100%;
  28. width: 100%;
  29. }
  30. }
  31. .library-actions-counter {
  32. background-color: var(--color-primary);
  33. color: var(--color-primary-light);
  34. font-weight: bold;
  35. display: flex;
  36. align-items: center;
  37. justify-content: center;
  38. border-radius: 50%;
  39. width: 1rem;
  40. height: 1rem;
  41. position: absolute;
  42. bottom: -0.25rem;
  43. right: -0.25rem;
  44. font-size: 0.625rem;
  45. pointer-events: none;
  46. }
  47. .layer-ui__library-message {
  48. padding: 2rem;
  49. min-width: 200px;
  50. display: flex;
  51. flex-direction: column;
  52. align-items: center;
  53. flex-grow: 1;
  54. justify-content: center;
  55. span {
  56. font-size: 0.8em;
  57. }
  58. }
  59. .publish-library-success {
  60. .Dialog__content {
  61. display: flex;
  62. flex-direction: column;
  63. }
  64. &-close.ToolIcon_type_button {
  65. background-color: $oc-blue-6;
  66. align-self: flex-end;
  67. &:hover {
  68. background-color: $oc-blue-8;
  69. }
  70. .ToolIcon__icon {
  71. width: auto;
  72. font-size: 1rem;
  73. color: $oc-white;
  74. padding: 0 0.5rem;
  75. }
  76. }
  77. }
  78. .library-menu-browse-button {
  79. margin: 1rem auto;
  80. padding: 0.875rem 1rem;
  81. display: flex;
  82. align-items: center;
  83. justify-content: center;
  84. overflow: hidden;
  85. position: relative;
  86. border-radius: var(--border-radius-lg);
  87. background-color: var(--color-primary);
  88. color: $oc-white;
  89. text-align: center;
  90. white-space: nowrap;
  91. text-decoration: none !important;
  92. font-weight: 600;
  93. font-size: 0.75rem;
  94. &:hover {
  95. background-color: var(--color-primary-darker);
  96. }
  97. &:active {
  98. background-color: var(--color-primary-darkest);
  99. }
  100. }
  101. &.theme--dark {
  102. .library-menu-browse-button {
  103. color: var(--color-gray-100);
  104. }
  105. }
  106. .library-menu-browse-button--mobile {
  107. min-height: 22px;
  108. margin-left: auto;
  109. a {
  110. padding-right: 0;
  111. }
  112. }
  113. .layer-ui__sidebar__header .dropdown-menu {
  114. &.dropdown-menu--mobile {
  115. top: 100%;
  116. }
  117. .dropdown-menu-container {
  118. --gap: 0;
  119. z-index: 1;
  120. position: absolute;
  121. top: 100%;
  122. left: 0;
  123. :root[dir="rtl"] & {
  124. right: 0;
  125. left: auto;
  126. }
  127. width: 196px;
  128. box-shadow: var(--library-dropdown-shadow);
  129. border-radius: var(--border-radius-lg);
  130. padding: 0.25rem 0.5rem;
  131. }
  132. }
  133. }