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.

199 lines
3.2 KiB

  1. .emoji-mart {
  2. &,
  3. * {
  4. box-sizing: border-box;
  5. line-height: 1.15;
  6. }
  7. font-size: 13px;
  8. display: inline-block;
  9. color: $ui-base-color;
  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: $ui-primary-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. &:hover {
  45. color: darken($ui-primary-color, 4%);
  46. }
  47. }
  48. .emoji-mart-anchor-selected {
  49. color: darken($ui-highlight-color, 3%);
  50. &:hover {
  51. color: darken($ui-highlight-color, 3%);
  52. }
  53. .emoji-mart-anchor-bar {
  54. bottom: 0;
  55. }
  56. }
  57. .emoji-mart-anchor-bar {
  58. position: absolute;
  59. bottom: -3px;
  60. left: 0;
  61. width: 100%;
  62. height: 3px;
  63. background-color: darken($ui-highlight-color, 3%);
  64. }
  65. .emoji-mart-anchors {
  66. i {
  67. display: inline-block;
  68. width: 100%;
  69. max-width: 22px;
  70. }
  71. svg {
  72. fill: currentColor;
  73. max-height: 18px;
  74. }
  75. }
  76. .emoji-mart-scroll {
  77. overflow-y: scroll;
  78. height: 270px;
  79. max-height: 35vh;
  80. padding: 0 6px 6px;
  81. background: $simple-background-color;
  82. will-change: transform;
  83. }
  84. .emoji-mart-search {
  85. padding: 10px;
  86. padding-right: 45px;
  87. background: $simple-background-color;
  88. input {
  89. font-size: 14px;
  90. font-weight: 400;
  91. padding: 7px 9px;
  92. font-family: inherit;
  93. display: block;
  94. width: 100%;
  95. background: rgba($ui-secondary-color, 0.3);
  96. color: $ui-primary-color;
  97. border: 1px solid $ui-secondary-color;
  98. border-radius: 4px;
  99. &::-moz-focus-inner {
  100. border: 0;
  101. }
  102. &::-moz-focus-inner,
  103. &:focus,
  104. &:active {
  105. outline: 0 !important;
  106. }
  107. }
  108. }
  109. .emoji-mart-category .emoji-mart-emoji {
  110. cursor: pointer;
  111. span {
  112. z-index: 1;
  113. position: relative;
  114. text-align: center;
  115. }
  116. &:hover::before {
  117. z-index: 0;
  118. content: "";
  119. position: absolute;
  120. top: 0;
  121. left: 0;
  122. width: 100%;
  123. height: 100%;
  124. background-color: rgba($ui-secondary-color, 0.7);
  125. border-radius: 100%;
  126. }
  127. }
  128. .emoji-mart-category-label {
  129. z-index: 2;
  130. position: relative;
  131. position: -webkit-sticky;
  132. position: sticky;
  133. top: 0;
  134. span {
  135. display: block;
  136. width: 100%;
  137. font-weight: 500;
  138. padding: 5px 6px;
  139. background: $simple-background-color;
  140. }
  141. }
  142. .emoji-mart-emoji {
  143. position: relative;
  144. display: inline-block;
  145. font-size: 0;
  146. span {
  147. width: 22px;
  148. height: 22px;
  149. }
  150. }
  151. .emoji-mart-no-results {
  152. font-size: 14px;
  153. text-align: center;
  154. padding-top: 70px;
  155. color: $ui-primary-color;
  156. .emoji-mart-category-label {
  157. display: none;
  158. }
  159. .emoji-mart-no-results-label {
  160. margin-top: .2em;
  161. }
  162. .emoji-mart-emoji:hover::before {
  163. content: none;
  164. }
  165. }
  166. .emoji-mart-preview {
  167. display: none;
  168. }