logo

pleroma-fe

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

emoji_picker.scss (4058B)


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