symbol-palette.less 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. .symbol-palette-container {
  2. height: 100%;
  3. width: 100%;
  4. position: relative;
  5. .symbol-palette {
  6. display: flex;
  7. flex-direction: column;
  8. background: @symbol-palette-bg;
  9. color: @symbol-palette-color;
  10. width: 100%;
  11. height: 100%;
  12. min-height: 220px; // allow space for the overlay contents
  13. }
  14. .symbol-palette-header-outer {
  15. flex-shrink: 0;
  16. display: flex;
  17. flex-wrap: nowrap;
  18. justify-content: space-between;
  19. align-items: flex-start;
  20. font-family: @font-family-sans-serif;
  21. font-size: 16px;
  22. background: @symbol-palette-header-background;
  23. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  24. }
  25. .symbol-palette-header {
  26. flex: 1;
  27. display: flex;
  28. flex-wrap: wrap;
  29. justify-content: space-between;
  30. align-items: center;
  31. }
  32. .symbol-palette-tab-list[role='tablist'] {
  33. background: none;
  34. border-bottom: none;
  35. flex-wrap: wrap;
  36. }
  37. .symbol-palette-tab[role='tab'] {
  38. -webkit-appearance: none;
  39. -moz-appearance: none;
  40. background: none;
  41. border: none;
  42. border-bottom: 1px solid transparent;
  43. color: inherit;
  44. cursor: pointer;
  45. display: inline-block;
  46. font: inherit;
  47. margin: 0;
  48. padding: 0.25em 0.5em;
  49. &[aria-selected='true'] {
  50. background: @symbol-palette-selected-tab-bg;
  51. color: @symbol-palette-selected-tab-color;
  52. }
  53. &:disabled {
  54. cursor: default;
  55. opacity: 0.25;
  56. }
  57. }
  58. .symbol-palette-body {
  59. flex: 1;
  60. overflow-y: auto;
  61. }
  62. .symbol-palette-items {
  63. display: flex;
  64. flex-wrap: wrap;
  65. padding: @padding-xs;
  66. }
  67. .symbol-palette-item {
  68. font-family: 'Stix Two Math', serif;
  69. font-size: 24px;
  70. line-height: 42px;
  71. height: 42px;
  72. width: 42px;
  73. margin: @margin-xs;
  74. color: @symbol-palette-item-color;
  75. background: @symbol-palette-item-bg;
  76. border: 1px solid transparent;
  77. border-radius: @border-radius-base;
  78. display: inline-flex;
  79. align-items: center;
  80. justify-content: center;
  81. }
  82. .symbol-palette-item-command {
  83. font-family: monospace;
  84. font-weight: bold;
  85. }
  86. .symbol-palette-item-notes {
  87. margin-top: @margin-xs;
  88. }
  89. .symbol-palette-empty {
  90. display: flex;
  91. align-items: center;
  92. justify-content: center;
  93. padding: @padding-sm;
  94. }
  95. .symbol-palette-search {
  96. padding: 2px @padding-sm;
  97. margin: @margin-xs;
  98. line-height: 1;
  99. height: auto;
  100. width: auto;
  101. }
  102. .symbol-palette-header-group {
  103. display: flex;
  104. align-items: center;
  105. white-space: nowrap;
  106. margin-left: @margin-xs;
  107. }
  108. .symbol-palette-info-link,
  109. .symbol-palette-info-link:focus,
  110. .symbol-palette-info-link:hover {
  111. color: inherit;
  112. }
  113. .symbol-palette-close-button {
  114. background: transparent;
  115. opacity: 1;
  116. float: none;
  117. text-shadow: none;
  118. color: @symbol-palette-color;
  119. padding: 4px @padding-sm;
  120. margin-left: @margin-xs;
  121. font-size: 24px;
  122. font-weight: bold;
  123. line-height: 1;
  124. }
  125. .symbol-palette-overlay {
  126. position: absolute;
  127. top: 0;
  128. bottom: 0;
  129. left: 0;
  130. right: 0;
  131. background: fade(@symbol-palette-bg, 75%);
  132. color: @symbol-palette-color;
  133. display: flex;
  134. flex-direction: column;
  135. padding: 0 @padding-lg @padding-sm;
  136. align-items: center;
  137. text-shadow: 0 0 8px @symbol-palette-text-shadow-color;
  138. min-height: 200px;
  139. overflow: auto;
  140. h4 {
  141. font-weight: bold;
  142. color: @symbol-palette-color;
  143. text-align: center;
  144. }
  145. .symbol-palette-close-button {
  146. position: absolute;
  147. top: 0;
  148. right: 0;
  149. }
  150. .upgrade-benefits {
  151. column-count: 2;
  152. }
  153. }
  154. }