symbol-palette.less 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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[data-reach-tab-list] {
  33. background: none;
  34. border-bottom: none;
  35. flex-wrap: wrap;
  36. }
  37. .symbol-palette-tab[data-reach-tab][data-selected] {
  38. background: @symbol-palette-selected-tab-bg;
  39. color: @symbol-palette-selected-tab-color;
  40. border-bottom-color: transparent;
  41. }
  42. .symbol-palette-body {
  43. flex: 1;
  44. overflow-y: auto;
  45. }
  46. .symbol-palette-items {
  47. display: flex;
  48. flex-wrap: wrap;
  49. padding: @padding-xs;
  50. }
  51. .symbol-palette-item {
  52. font-family: 'Stix Two Math', serif;
  53. font-size: 24px;
  54. line-height: 42px;
  55. height: 42px;
  56. width: 42px;
  57. margin: @margin-xs;
  58. color: @symbol-palette-item-color;
  59. background: @symbol-palette-item-bg;
  60. border: 1px solid transparent;
  61. border-radius: @border-radius-base;
  62. display: inline-flex;
  63. align-items: center;
  64. justify-content: center;
  65. }
  66. .symbol-palette-item-command {
  67. font-family: monospace;
  68. font-weight: bold;
  69. }
  70. .symbol-palette-item-notes {
  71. margin-top: @margin-xs;
  72. }
  73. .symbol-palette-empty {
  74. display: flex;
  75. align-items: center;
  76. justify-content: center;
  77. padding: @padding-sm;
  78. }
  79. .symbol-palette-search {
  80. padding: 2px @padding-sm;
  81. margin: @margin-xs;
  82. line-height: 1;
  83. height: auto;
  84. width: auto;
  85. }
  86. .symbol-palette-header-group {
  87. display: flex;
  88. align-items: center;
  89. white-space: nowrap;
  90. margin-left: @margin-xs;
  91. }
  92. .symbol-palette-info-link,
  93. .symbol-palette-info-link:focus,
  94. .symbol-palette-info-link:hover {
  95. color: inherit;
  96. }
  97. .symbol-palette-close-button {
  98. background: transparent;
  99. color: @symbol-palette-color;
  100. padding-left: @padding-sm;
  101. padding-right: @padding-sm;
  102. margin-left: @margin-xs;
  103. font-size: 24px;
  104. font-weight: bold;
  105. line-height: 1;
  106. }
  107. .symbol-palette-overlay {
  108. position: absolute;
  109. top: 0;
  110. bottom: 0;
  111. left: 0;
  112. right: 0;
  113. background: fade(@symbol-palette-bg, 75%);
  114. color: @symbol-palette-color;
  115. display: flex;
  116. flex-direction: column;
  117. padding: 0 @padding-lg @padding-sm;
  118. align-items: center;
  119. text-shadow: 0 0 8px @symbol-palette-text-shadow-color;
  120. min-height: 200px;
  121. overflow: auto;
  122. h4 {
  123. font-weight: bold;
  124. color: @symbol-palette-color;
  125. text-align: center;
  126. }
  127. .symbol-palette-close-button {
  128. position: absolute;
  129. top: 0;
  130. right: 0;
  131. }
  132. .upgrade-benefits {
  133. column-count: 2;
  134. }
  135. }
  136. }