logo

pleroma-fe

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

notifications.scss (2947B)


  1. .Notifications {
  2. &:not(.minimal) {
  3. // a bit of a hack to allow scrolling below notifications
  4. padding-bottom: 15em;
  5. }
  6. .loadmore-error {
  7. color: var(--text);
  8. }
  9. .notification {
  10. position: relative;
  11. .notification-overlay {
  12. position: absolute;
  13. top: 0;
  14. right: 0;
  15. left: 0;
  16. bottom: 0;
  17. pointer-events: none;
  18. }
  19. &.unseen {
  20. .notification-overlay {
  21. background-image: linear-gradient(135deg, var(--badgeNotification) 4px, transparent 10px);
  22. }
  23. }
  24. }
  25. }
  26. /* stylelint-disable-next-line no-descending-specificity */
  27. .notification {
  28. box-sizing: border-box;
  29. /* TODO cleanup this */
  30. .Status {
  31. flex: 1;
  32. }
  33. &:hover .animated.Avatar {
  34. canvas {
  35. display: none;
  36. }
  37. img {
  38. visibility: visible;
  39. }
  40. }
  41. &:last-child .Notification {
  42. border-bottom: none;
  43. }
  44. .non-mention {
  45. display: flex;
  46. flex: 1;
  47. flex-wrap: nowrap;
  48. padding: 0.6em;
  49. min-width: 0;
  50. .avatar-container {
  51. width: 32px;
  52. height: 32px;
  53. }
  54. }
  55. .follow-request-accept {
  56. &:hover {
  57. color: var(--text);
  58. }
  59. }
  60. .follow-request-reject {
  61. &:hover {
  62. color: var(--cRed);
  63. }
  64. }
  65. .follow-text,
  66. .move-text {
  67. padding: 0.5em 0;
  68. overflow-wrap: break-word;
  69. display: flex;
  70. justify-content: space-between;
  71. .follow-name {
  72. display: block;
  73. max-width: 100%;
  74. overflow: hidden;
  75. text-overflow: ellipsis;
  76. white-space: nowrap;
  77. }
  78. }
  79. time {
  80. white-space: nowrap;
  81. }
  82. .notification-right {
  83. flex: 1;
  84. padding-left: 0.8em;
  85. min-width: 0;
  86. .timeago {
  87. min-width: 3em;
  88. text-align: right;
  89. }
  90. .timeago-link {
  91. margin-right: 0.2em;
  92. }
  93. .expand-icon {
  94. .svg-inline--fa {
  95. margin-left: 0.25em;
  96. }
  97. }
  98. }
  99. .emoji-reaction-emoji {
  100. font-size: 1.3em;
  101. max-width: 1.25em;
  102. height: 1.25em;
  103. width: auto;
  104. }
  105. .emoji-reaction-emoji-image {
  106. vertical-align: middle;
  107. object-fit: contain;
  108. }
  109. .notification-details {
  110. min-width: 0;
  111. word-wrap: break-word;
  112. line-height: var(--post-line-height);
  113. position: relative;
  114. overflow: hidden;
  115. width: 100%;
  116. flex: 1 1 0;
  117. display: flex;
  118. flex-wrap: nowrap;
  119. justify-content: space-between;
  120. .name-and-action {
  121. flex: 1;
  122. overflow: hidden;
  123. text-overflow: ellipsis;
  124. }
  125. .username {
  126. font-weight: bolder;
  127. max-width: 100%;
  128. text-overflow: ellipsis;
  129. white-space: nowrap;
  130. }
  131. .timeago {
  132. margin-right: 0.2em;
  133. }
  134. .status-content {
  135. margin: 0;
  136. max-height: 300px;
  137. }
  138. h1 {
  139. word-break: break-all;
  140. margin: 0 0 0.3em;
  141. padding: 0;
  142. font-size: 1em;
  143. line-height: 1.5;
  144. small {
  145. font-weight: lighter;
  146. }
  147. }
  148. p {
  149. margin: 0;
  150. margin-top: 0;
  151. margin-bottom: 0.3em;
  152. }
  153. }
  154. }