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_reactions.scss (2310B)


  1. @use "../../mixins";
  2. .EmojiReactions {
  3. display: flex;
  4. margin-top: 0.25em;
  5. flex-wrap: wrap;
  6. --emoji-size: calc(var(--emojiSize, 1.25em) * var(--emojiReactionsScale, 1));
  7. .emoji-reaction-container {
  8. display: flex;
  9. align-items: stretch;
  10. margin-top: 0.5em;
  11. margin-right: 0.5em;
  12. .emoji-reaction-popover {
  13. padding: 0;
  14. .emoji-reaction-count-button {
  15. margin: 0;
  16. height: 100%;
  17. border-top-left-radius: 0;
  18. border-bottom-left-radius: 0;
  19. box-sizing: border-box;
  20. min-width: 2em;
  21. display: inline-flex;
  22. justify-content: center;
  23. align-items: center;
  24. }
  25. }
  26. }
  27. .emoji-reaction {
  28. padding-left: 0.5em;
  29. display: flex;
  30. align-items: center;
  31. justify-content: center;
  32. box-sizing: border-box;
  33. border-top-right-radius: 0;
  34. border-bottom-right-radius: 0;
  35. margin: 0;
  36. .reaction-emoji {
  37. width: var(--emoji-size);
  38. height: var(--emoji-size);
  39. margin-right: 0.25em;
  40. line-height: var(--emoji-size);
  41. display: flex;
  42. justify-content: center;
  43. align-items: center;
  44. --_still_image-label-scale: 0.3;
  45. }
  46. .reaction-emoji-content {
  47. max-width: 100%;
  48. max-height: 100%;
  49. width: var(--emoji-size);
  50. height: var(--emoji-size);
  51. line-height: inherit;
  52. overflow: hidden;
  53. font-size: calc(var(--emoji-size) * 0.8);
  54. margin: 0;
  55. img {
  56. object-fit: contain;
  57. }
  58. }
  59. &:focus {
  60. outline: none;
  61. }
  62. .svg-inline--fa {
  63. color: var(--text);
  64. }
  65. &.-picked-reaction {
  66. .svg-inline--fa {
  67. color: var(--accent);
  68. }
  69. }
  70. @include mixins.unfocused-style {
  71. .focus-marker {
  72. visibility: hidden;
  73. }
  74. .active-marker {
  75. visibility: visible;
  76. }
  77. }
  78. @include mixins.focused-style {
  79. .svg-inline--fa {
  80. color: var(--accent);
  81. }
  82. .focus-marker {
  83. visibility: visible;
  84. }
  85. .active-marker {
  86. visibility: hidden;
  87. }
  88. }
  89. }
  90. .emoji-reaction-expand {
  91. padding: 0 0.5em;
  92. margin-right: 0.5em;
  93. margin-top: 0.5em;
  94. display: flex;
  95. align-items: center;
  96. justify-content: center;
  97. &:hover {
  98. text-decoration: underline;
  99. }
  100. }
  101. }