logo

pleroma-fe

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

emoji_picker.scss (4289B)


  1. .emoji-picker {
  2. --__emoji-picker-header: 2.2em;
  3. width: 25em;
  4. max-width: calc(100vw - 20px); // popover gives 10px margin from window edge
  5. display: flex;
  6. flex-direction: column;
  7. &-header-image {
  8. display: inline-flex;
  9. justify-content: center;
  10. align-items: center;
  11. width: var(--__emoji-picker-header);
  12. max-width: var(--__emoji-picker-header);
  13. height: var(--__emoji-picker-header);
  14. max-height: var(--__emoji-picker-header);
  15. .still-image {
  16. width: var(--__emoji-picker-header);
  17. max-width: var(--__emoji-picker-header);
  18. height: var(--__emoji-picker-header);
  19. max-height: var(--__emoji-picker-header);
  20. object-fit: contain;
  21. --_still_image-label-scale: 0.5;
  22. }
  23. }
  24. .keep-open,
  25. .too-many-emoji,
  26. .hide-custom-emoji {
  27. padding: 0.5em;
  28. line-height: normal;
  29. }
  30. .hide-custom-emoji {
  31. padding-top: 0;
  32. }
  33. .too-many-emoji {
  34. display: flex;
  35. flex-direction: column;
  36. }
  37. .keep-open-label {
  38. padding: 0 0.5em;
  39. display: flex;
  40. }
  41. .heading {
  42. display: flex;
  43. padding: 0.7em 0.5em 0;
  44. }
  45. .content {
  46. display: flex;
  47. flex-direction: column;
  48. flex: 1 1 auto;
  49. min-height: 0;
  50. }
  51. .emoji-tabs {
  52. flex-grow: 1;
  53. display: flex;
  54. flex-flow: row nowrap;
  55. overflow-x: auto;
  56. overflow-y: hidden;
  57. }
  58. .additional-tabs {
  59. display: flex;
  60. border-left: 1px solid;
  61. border-left-color: var(--border);
  62. padding-left: 0.5em;
  63. flex: 0 0 auto;
  64. }
  65. .additional-tabs,
  66. .emoji-tabs {
  67. flex-basis: auto;
  68. display: flex;
  69. align-content: center;
  70. scrollbar-width: thin;
  71. &-item {
  72. padding: 0 0.5em;
  73. cursor: pointer;
  74. width: var(--__emoji-picker-header);
  75. max-width: var(--__emoji-picker-header);
  76. height: var(--__emoji-picker-header);
  77. max-height: var(--__emoji-picker-header);
  78. display: flex;
  79. align-items: center;
  80. .svg-inline--fa {
  81. font-size: 1.85em;
  82. }
  83. &.disabled {
  84. opacity: 0.5;
  85. pointer-events: none;
  86. }
  87. &.toggled {
  88. border-bottom: 0.2em solid;
  89. }
  90. }
  91. }
  92. .sticker-picker {
  93. flex: 1 1 auto;
  94. }
  95. .stickers,
  96. .emoji {
  97. &-content {
  98. display: flex;
  99. flex-direction: column;
  100. flex: 1 1 auto;
  101. min-height: 0;
  102. &.hidden {
  103. opacity: 0;
  104. pointer-events: none;
  105. position: absolute;
  106. }
  107. }
  108. }
  109. .emoji {
  110. &-search {
  111. padding: 0.3em;
  112. flex: 0 0 auto;
  113. input {
  114. width: 100%;
  115. }
  116. }
  117. &-groups {
  118. height: 100%;
  119. min-height: 200px;
  120. flex: 1 1 1px;
  121. position: relative;
  122. overflow: auto;
  123. scrollbar-gutter: stable both-edges;
  124. user-select: none;
  125. mask:
  126. linear-gradient(to top, white 0, transparent 100%) bottom no-repeat,
  127. linear-gradient(to bottom, white 0, transparent 100%) top no-repeat,
  128. linear-gradient(to top, white, white);
  129. transition: mask-size 150ms;
  130. mask-size: 100% 20px, 100% 20px, auto;
  131. // Autoprefixed seem to ignore this one, and also syntax is different
  132. mask-composite: xor;
  133. mask-composite: exclude;
  134. &.scrolled {
  135. &-top {
  136. mask-size: 100% 20px, 100% 0, auto;
  137. }
  138. &-bottom {
  139. mask-size: 100% 0, 100% 20px, auto;
  140. }
  141. }
  142. }
  143. &-group {
  144. display: flex;
  145. align-items: center;
  146. flex-wrap: wrap;
  147. justify-content: left;
  148. &-title {
  149. font-size: 0.85em;
  150. width: 100%;
  151. margin: 0;
  152. padding-left: 0.3em;
  153. &.disabled {
  154. display: none;
  155. }
  156. }
  157. }
  158. &-item {
  159. width: var(--emoji-size);
  160. height: var(--emoji-size);
  161. box-sizing: border-box;
  162. display: flex;
  163. line-height: var(--emoji-size);
  164. align-items: center;
  165. justify-content: center;
  166. margin: 0.2em;
  167. cursor: pointer;
  168. .emoji-picker-emoji.-custom {
  169. object-fit: contain;
  170. width: var(--emoji-size);
  171. max-width: var(--emoji-size);
  172. height: var(--emoji-size);
  173. max-height: var(--emoji-size);
  174. --_still_image-label-scale: 0.5;
  175. }
  176. .emoji-picker-emoji.-unicode {
  177. font-size: 1.6em;
  178. overflow: hidden;
  179. }
  180. }
  181. }
  182. }