闭社主体 forked from https://github.com/tootsuite/mastodon
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.

221 lines
3.6 KiB

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