logo

pleroma-fe

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

mention_link.scss (2026B)


  1. .MentionLink {
  2. position: relative;
  3. white-space: normal;
  4. display: inline;
  5. word-break: normal;
  6. & .new,
  7. & .original {
  8. display: inline;
  9. border-radius: 2px;
  10. }
  11. .mention-avatar {
  12. border-radius: var(--roundness);
  13. width: 1.5em;
  14. height: 1.5em;
  15. vertical-align: middle;
  16. user-select: none;
  17. margin-right: 0.2em;
  18. }
  19. .full {
  20. position: absolute;
  21. display: inline-block;
  22. pointer-events: none;
  23. opacity: 0;
  24. top: 100%;
  25. left: 0;
  26. height: 100%;
  27. word-wrap: normal;
  28. white-space: nowrap;
  29. transition: opacity 0.2s ease;
  30. z-index: 1;
  31. margin-top: 0.25em;
  32. padding: 0.5em;
  33. user-select: all;
  34. }
  35. & .short.-with-tooltip,
  36. & .you {
  37. user-select: none;
  38. }
  39. & .short,
  40. & .full {
  41. white-space: nowrap;
  42. }
  43. .shortName {
  44. white-space: normal;
  45. }
  46. .new {
  47. &.-you {
  48. .shortName {
  49. font-weight: 600;
  50. }
  51. }
  52. &.-has-selection {
  53. --color: var(--selectionText);
  54. --link: var(--selectionText);
  55. background-color: var(--selectionBackground);
  56. }
  57. .at {
  58. color: var(--link);
  59. opacity: 0.8;
  60. display: inline-block;
  61. line-height: 1;
  62. padding: 0 0.1em;
  63. vertical-align: -25%;
  64. margin: 0;
  65. }
  66. &.-striped {
  67. & .shortName {
  68. background-image:
  69. repeating-linear-gradient(
  70. 135deg,
  71. var(--____highlight-tintColor),
  72. var(--____highlight-tintColor) 5px,
  73. var(--____highlight-tintColor2) 5px,
  74. var(--____highlight-tintColor2) 10px
  75. );
  76. }
  77. }
  78. &.-solid {
  79. .shortName {
  80. background-image: linear-gradient(var(--____highlight-tintColor2), var(--____highlight-tintColor2));
  81. }
  82. }
  83. &.-side {
  84. .shortName {
  85. box-shadow: 0 -5px 3px -4px inset var(--____highlight-solidColor);
  86. }
  87. }
  88. }
  89. .serverName.-faded {
  90. color: var(--linkFaint);
  91. }
  92. }
  93. .mention-link-popover {
  94. max-width: 70ch;
  95. max-height: 20rem;
  96. overflow: hidden;
  97. }