LibraryMenu.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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 {
  32. width: 100%;
  33. display: flex;
  34. margin-right: auto;
  35. align-items: center;
  36. button .library-actions-counter {
  37. position: absolute;
  38. right: 2px;
  39. bottom: 2px;
  40. border-radius: 50%;
  41. width: 1em;
  42. height: 1em;
  43. padding: 1px;
  44. font-size: 0.7rem;
  45. background: #fff;
  46. }
  47. &--remove {
  48. background-color: $oc-red-7;
  49. &:hover {
  50. background-color: $oc-red-8;
  51. }
  52. &:active {
  53. background-color: $oc-red-9;
  54. }
  55. svg {
  56. color: $oc-white;
  57. }
  58. .library-actions-counter {
  59. color: $oc-red-7;
  60. }
  61. }
  62. &--export {
  63. background-color: $oc-lime-5;
  64. &:hover {
  65. background-color: $oc-lime-7;
  66. }
  67. &:active {
  68. background-color: $oc-lime-8;
  69. }
  70. svg {
  71. color: $oc-white;
  72. }
  73. .library-actions-counter {
  74. color: $oc-lime-5;
  75. }
  76. }
  77. &--publish {
  78. background-color: $oc-cyan-6;
  79. &:hover {
  80. background-color: $oc-cyan-7;
  81. }
  82. &:active {
  83. background-color: $oc-cyan-9;
  84. }
  85. svg {
  86. color: $oc-white;
  87. }
  88. label {
  89. margin-left: -0.2em;
  90. margin-right: 1.1em;
  91. color: $oc-white;
  92. font-size: 0.86em;
  93. }
  94. .library-actions-counter {
  95. color: $oc-cyan-6;
  96. }
  97. }
  98. &--load {
  99. background-color: $oc-blue-6;
  100. &:hover {
  101. background-color: $oc-blue-7;
  102. }
  103. &:active {
  104. background-color: $oc-blue-9;
  105. }
  106. svg {
  107. color: $oc-white;
  108. }
  109. }
  110. }
  111. .layer-ui__library-message {
  112. padding: 2em 4em;
  113. min-width: 200px;
  114. display: flex;
  115. flex-direction: column;
  116. align-items: center;
  117. .Spinner {
  118. margin-bottom: 1em;
  119. }
  120. span {
  121. font-size: 0.8em;
  122. }
  123. }
  124. .publish-library-success {
  125. .Dialog__content {
  126. display: flex;
  127. flex-direction: column;
  128. }
  129. &-close.ToolIcon_type_button {
  130. background-color: $oc-blue-6;
  131. align-self: flex-end;
  132. &:hover {
  133. background-color: $oc-blue-8;
  134. }
  135. .ToolIcon__icon {
  136. width: auto;
  137. font-size: 1rem;
  138. color: $oc-white;
  139. padding: 0 0.5rem;
  140. }
  141. }
  142. }
  143. .library-menu-browse-button {
  144. width: 80%;
  145. min-height: 22px;
  146. margin: 0 auto;
  147. margin-top: 1rem;
  148. padding: 10px;
  149. display: flex;
  150. align-items: center;
  151. justify-content: center;
  152. overflow: hidden;
  153. position: relative;
  154. border-radius: var(--border-radius-lg);
  155. background-color: var(--color-primary);
  156. color: $oc-white;
  157. text-align: center;
  158. white-space: nowrap;
  159. text-decoration: none !important;
  160. &:hover {
  161. background-color: var(--color-primary-darker);
  162. }
  163. &:active {
  164. background-color: var(--color-primary-darkest);
  165. }
  166. }
  167. .library-menu-browse-button--mobile {
  168. min-height: 22px;
  169. margin-left: auto;
  170. a {
  171. padding-right: 0;
  172. }
  173. }
  174. }