You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

257 lines
4.2 KiB

  1. .emoji-mart {
  2. font-size: 13px;
  3. display: inline-block;
  4. color: $inverted-text-color;
  5. &,
  6. * {
  7. box-sizing: border-box;
  8. line-height: 1.15;
  9. }
  10. .emoji-mart-emoji {
  11. padding: 6px;
  12. }
  13. }
  14. .emoji-mart-bar {
  15. border: 0 solid darken($ui-secondary-color, 8%);
  16. &:first-child {
  17. border-bottom-width: 1px;
  18. border-top-left-radius: 5px;
  19. border-top-right-radius: 5px;
  20. background: $ui-secondary-color;
  21. }
  22. &:last-child {
  23. border-top-width: 1px;
  24. border-bottom-left-radius: 5px;
  25. border-bottom-right-radius: 5px;
  26. display: none;
  27. }
  28. }
  29. .emoji-mart-anchors {
  30. display: flex;
  31. justify-content: space-between;
  32. padding: 0 6px;
  33. color: $lighter-text-color;
  34. line-height: 0;
  35. }
  36. .emoji-mart-anchor {
  37. position: relative;
  38. flex: 1;
  39. text-align: center;
  40. padding: 12px 4px;
  41. overflow: hidden;
  42. transition: color .1s ease-out;
  43. cursor: pointer;
  44. background: transparent;
  45. border: 0;
  46. &:hover {
  47. color: darken($lighter-text-color, 4%);
  48. }
  49. }
  50. .emoji-mart-anchor-selected {
  51. color: $highlight-text-color;
  52. &:hover {
  53. color: darken($highlight-text-color, 4%);
  54. }
  55. .emoji-mart-anchor-bar {
  56. bottom: -1px;
  57. }
  58. }
  59. .emoji-mart-anchor-bar {
  60. position: absolute;
  61. bottom: -5px;
  62. left: 0;
  63. width: 100%;
  64. height: 4px;
  65. background-color: $highlight-text-color;
  66. }
  67. .emoji-mart-anchors {
  68. i {
  69. display: inline-block;
  70. width: 100%;
  71. max-width: 22px;
  72. }
  73. svg {
  74. fill: currentColor;
  75. max-height: 18px;
  76. }
  77. }
  78. .emoji-mart-scroll {
  79. overflow-y: scroll;
  80. height: 270px;
  81. max-height: 35vh;
  82. padding: 0 6px 6px;
  83. background: $simple-background-color;
  84. will-change: transform;
  85. &::-webkit-scrollbar-track:hover,
  86. &::-webkit-scrollbar-track:active {
  87. background-color: rgba($base-overlay-background, 0.3);
  88. }
  89. }
  90. .emoji-mart-search {
  91. padding: 10px;
  92. padding-right: 45px;
  93. background: $simple-background-color;
  94. position: relative;
  95. input {
  96. font-size: 14px;
  97. font-weight: 400;
  98. padding: 7px 9px;
  99. padding-right: 25px;
  100. font-family: inherit;
  101. display: block;
  102. width: 100%;
  103. background: rgba($ui-secondary-color, 0.3);
  104. color: $inverted-text-color;
  105. border: 1px solid $ui-secondary-color;
  106. border-radius: 4px;
  107. &::-moz-focus-inner {
  108. border: 0;
  109. }
  110. &::-moz-focus-inner,
  111. &:focus,
  112. &:active {
  113. outline: 0 !important;
  114. }
  115. }
  116. }
  117. .emoji-mart-search-icon {
  118. position: absolute;
  119. top: 18px;
  120. right: 45px + 5px;
  121. z-index: 2;
  122. padding: 2px 5px 1px;
  123. border: 0;
  124. background: none;
  125. transition: all 100ms linear;
  126. transition-property: opacity;
  127. pointer-events: auto;
  128. opacity: 0.7;
  129. &:disabled {
  130. cursor: default;
  131. pointer-events: none;
  132. opacity: 0.3;
  133. }
  134. svg {
  135. fill: $action-button-color;
  136. }
  137. }
  138. .emoji-mart-category .emoji-mart-emoji {
  139. cursor: pointer;
  140. span {
  141. z-index: 1;
  142. position: relative;
  143. text-align: center;
  144. }
  145. &:hover::before {
  146. z-index: 0;
  147. content: "";
  148. position: absolute;
  149. top: 0;
  150. left: 0;
  151. width: 100%;
  152. height: 100%;
  153. background-color: rgba($ui-secondary-color, 0.7);
  154. border-radius: 100%;
  155. }
  156. }
  157. .emoji-mart-category-label {
  158. z-index: 2;
  159. position: relative;
  160. position: -webkit-sticky;
  161. position: sticky;
  162. top: 0;
  163. span {
  164. display: block;
  165. width: 100%;
  166. font-weight: 500;
  167. padding: 5px 6px;
  168. background: $simple-background-color;
  169. }
  170. }
  171. /* For screenreaders only, via https://stackoverflow.com/a/19758620 */
  172. .emoji-mart-sr-only {
  173. position: absolute;
  174. width: 1px;
  175. height: 1px;
  176. padding: 0;
  177. margin: -1px;
  178. overflow: hidden;
  179. clip: rect(0, 0, 0, 0);
  180. border: 0;
  181. }
  182. .emoji-mart-category-list {
  183. margin: 0;
  184. padding: 0;
  185. }
  186. .emoji-mart-category-list li {
  187. list-style: none;
  188. margin: 0;
  189. padding: 0;
  190. display: inline-block;
  191. }
  192. .emoji-mart-emoji {
  193. position: relative;
  194. display: inline-block;
  195. background: transparent;
  196. border: 0;
  197. padding: 0;
  198. font-size: 0;
  199. span {
  200. width: 22px;
  201. height: 22px;
  202. }
  203. }
  204. .emoji-mart-no-results {
  205. font-size: 14px;
  206. color: $light-text-color;
  207. text-align: center;
  208. padding: 5px 6px;
  209. padding-top: 70px;
  210. .emoji-mart-no-results-label {
  211. margin-top: .2em;
  212. }
  213. .emoji-mart-emoji:hover::before {
  214. cursor: default;
  215. content: none;
  216. }
  217. }
  218. .emoji-mart-preview {
  219. display: none;
  220. }