logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

emoji_picker.scss (3376B)


  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. &::-webkit-scrollbar-track:hover,
  84. &::-webkit-scrollbar-track:active {
  85. background-color: rgba($base-overlay-background, 0.3);
  86. }
  87. }
  88. .emoji-mart-search {
  89. padding: 10px;
  90. padding-right: 45px;
  91. background: $simple-background-color;
  92. input {
  93. font-size: 14px;
  94. font-weight: 400;
  95. padding: 7px 9px;
  96. font-family: inherit;
  97. display: block;
  98. width: 100%;
  99. background: rgba($ui-secondary-color, 0.3);
  100. color: $ui-primary-color;
  101. border: 1px solid $ui-secondary-color;
  102. border-radius: 4px;
  103. &::-moz-focus-inner {
  104. border: 0;
  105. }
  106. &::-moz-focus-inner,
  107. &:focus,
  108. &:active {
  109. outline: 0 !important;
  110. }
  111. }
  112. }
  113. .emoji-mart-category .emoji-mart-emoji {
  114. cursor: pointer;
  115. span {
  116. z-index: 1;
  117. position: relative;
  118. text-align: center;
  119. }
  120. &:hover::before {
  121. z-index: 0;
  122. content: "";
  123. position: absolute;
  124. top: 0;
  125. left: 0;
  126. width: 100%;
  127. height: 100%;
  128. background-color: rgba($ui-secondary-color, 0.7);
  129. border-radius: 100%;
  130. }
  131. }
  132. .emoji-mart-category-label {
  133. z-index: 2;
  134. position: relative;
  135. position: -webkit-sticky;
  136. position: sticky;
  137. top: 0;
  138. span {
  139. display: block;
  140. width: 100%;
  141. font-weight: 500;
  142. padding: 5px 6px;
  143. background: $simple-background-color;
  144. }
  145. }
  146. .emoji-mart-emoji {
  147. position: relative;
  148. display: inline-block;
  149. font-size: 0;
  150. span {
  151. width: 22px;
  152. height: 22px;
  153. }
  154. }
  155. .emoji-mart-no-results {
  156. font-size: 14px;
  157. text-align: center;
  158. padding-top: 70px;
  159. color: $ui-primary-color;
  160. .emoji-mart-category-label {
  161. display: none;
  162. }
  163. .emoji-mart-no-results-label {
  164. margin-top: .2em;
  165. }
  166. .emoji-mart-emoji:hover::before {
  167. content: none;
  168. }
  169. }
  170. .emoji-mart-preview {
  171. display: none;
  172. }