logo

pleroma-fe

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

status.scss (6582B)


  1. .Status {
  2. min-width: 0;
  3. white-space: normal;
  4. word-wrap: break-word;
  5. word-break: break-word;
  6. &:hover {
  7. --_still-image-img-visibility: visible;
  8. --_still-image-canvas-visibility: hidden;
  9. --_still-image-label-visibility: hidden;
  10. }
  11. .gravestone {
  12. padding: var(--status-margin);
  13. display: flex;
  14. .deleted-text {
  15. margin: 0.5em 0;
  16. align-items: center;
  17. }
  18. }
  19. .status-container {
  20. display: flex;
  21. padding: var(--status-margin);
  22. > * {
  23. min-width: 0;
  24. }
  25. &.-repeat {
  26. padding-top: 0;
  27. }
  28. }
  29. .pin {
  30. padding: var(--status-margin) var(--status-margin) 0;
  31. display: flex;
  32. align-items: center;
  33. justify-content: flex-end;
  34. }
  35. ._misclick-prevention & {
  36. pointer-events: none;
  37. .attachments {
  38. pointer-events: initial;
  39. cursor: initial;
  40. }
  41. }
  42. .left-side {
  43. margin-right: var(--status-margin);
  44. }
  45. .right-side {
  46. flex: 1;
  47. min-width: 0;
  48. }
  49. .usercard {
  50. margin-bottom: var(--status-margin);
  51. }
  52. .status-username {
  53. white-space: nowrap;
  54. overflow: hidden;
  55. max-width: 85%;
  56. font-weight: bold;
  57. flex-shrink: 1;
  58. margin-right: 0.4em;
  59. text-overflow: ellipsis;
  60. --_still_image-label-scale: 0.25;
  61. --emoji-size: 1em;
  62. }
  63. .status-favicon {
  64. height: 18px;
  65. width: 18px;
  66. margin-right: 0.4em;
  67. }
  68. .status-heading {
  69. margin-bottom: 0.5em;
  70. }
  71. .heading-name-row {
  72. display: flex;
  73. justify-content: space-between;
  74. line-height: 1.3;
  75. a {
  76. display: inline-block;
  77. word-break: break-all;
  78. }
  79. }
  80. .account-name {
  81. min-width: 1.6em;
  82. margin-right: 0.4em;
  83. white-space: nowrap;
  84. overflow: hidden;
  85. text-overflow: ellipsis;
  86. flex: 1 1 0;
  87. }
  88. .heading-left {
  89. display: flex;
  90. min-width: 0;
  91. }
  92. .heading-right {
  93. display: flex;
  94. flex-shrink: 0;
  95. .button-unstyled {
  96. padding: 5px;
  97. margin: -5px;
  98. }
  99. .svg-inline--fa {
  100. margin-left: 0.25em;
  101. }
  102. }
  103. .glued-label {
  104. display: inline-flex;
  105. white-space: nowrap;
  106. }
  107. .timeago {
  108. margin-right: 0.2em;
  109. }
  110. & .heading-reply-row,
  111. & .heading-edited-row {
  112. position: relative;
  113. align-content: baseline;
  114. font-size: 0.85em;
  115. margin-top: 0.2em;
  116. line-height: 130%;
  117. max-width: 100%;
  118. align-items: stretch;
  119. }
  120. & .reply-to-popover,
  121. & .reply-to-no-popover,
  122. & .mentions {
  123. min-width: 0;
  124. margin-right: 0.4em;
  125. flex-shrink: 0;
  126. }
  127. .reply-glued-label {
  128. margin-right: 0.5em;
  129. }
  130. .reply-to-popover {
  131. .reply-to:hover::before {
  132. content: "";
  133. display: block;
  134. position: absolute;
  135. bottom: 0;
  136. width: 100%;
  137. border-bottom: 1px solid var(--faint);
  138. pointer-events: none;
  139. }
  140. .faint-link:hover {
  141. // override default
  142. text-decoration: none;
  143. }
  144. &.-strikethrough {
  145. .reply-to::after {
  146. content: "";
  147. display: block;
  148. position: absolute;
  149. top: 50%;
  150. width: 100%;
  151. border-bottom: 1px solid var(--faint);
  152. pointer-events: none;
  153. }
  154. }
  155. }
  156. & .mentions,
  157. & .reply-to {
  158. white-space: nowrap;
  159. position: relative;
  160. }
  161. & .mentions-text,
  162. & .reply-to-text {
  163. color: var(--faint);
  164. overflow: hidden;
  165. text-overflow: ellipsis;
  166. white-space: nowrap;
  167. }
  168. .mentions-line {
  169. display: inline;
  170. }
  171. .replies {
  172. margin-top: 0.25em;
  173. line-height: 1.3;
  174. font-size: 0.85em;
  175. display: flex;
  176. flex-wrap: wrap;
  177. & > * {
  178. margin-right: 0.4em;
  179. }
  180. }
  181. .reply-link {
  182. height: 17px;
  183. }
  184. .repeat-info {
  185. padding: 0.4em var(--status-margin);
  186. .repeat-icon {
  187. color: var(--cGreen);
  188. }
  189. }
  190. .repeater-avatar {
  191. border-radius: var(--roundness);
  192. margin-left: 28px;
  193. width: 20px;
  194. height: 20px;
  195. }
  196. .repeater-name {
  197. text-overflow: ellipsis;
  198. margin-right: 0;
  199. .emoji {
  200. width: 14px;
  201. height: 14px;
  202. vertical-align: middle;
  203. object-fit: contain;
  204. }
  205. }
  206. .status-fadein {
  207. animation-duration: 0.4s;
  208. animation-name: fadein;
  209. }
  210. @keyframes fadein {
  211. from {
  212. opacity: 0;
  213. }
  214. to {
  215. opacity: 1;
  216. }
  217. }
  218. .status-actions {
  219. position: relative;
  220. width: 100%;
  221. display: grid;
  222. grid-template-columns: 1fr;
  223. grid-auto-columns: 1fr;
  224. grid-auto-flow: column;
  225. margin-top: var(--status-margin);
  226. }
  227. .muted {
  228. padding: 0.25em 0.6em;
  229. height: 1.2em;
  230. line-height: 1.2em;
  231. text-overflow: ellipsis;
  232. overflow: hidden;
  233. display: flex;
  234. flex-wrap: nowrap;
  235. gap: 1ex;
  236. & .status-username,
  237. & .mute-reason {
  238. word-wrap: normal;
  239. word-break: normal;
  240. white-space: nowrap;
  241. text-overflow: ellipsis;
  242. overflow: hidden;
  243. }
  244. .status-username {
  245. font-weight: normal;
  246. flex: 0 1 auto;
  247. margin-right: 0.2em;
  248. font-size: smaller;
  249. display: flex;
  250. }
  251. .unmute {
  252. flex: 0 0 auto;
  253. margin-left: auto;
  254. display: block;
  255. }
  256. }
  257. .reply-form {
  258. padding-top: 0;
  259. padding-bottom: 0;
  260. }
  261. .reply-body {
  262. flex: 1;
  263. }
  264. .favs-repeated-users {
  265. margin-top: var(--status-margin);
  266. }
  267. .stats {
  268. width: 100%;
  269. display: flex;
  270. line-height: 1em;
  271. }
  272. .avatar-row {
  273. flex: 1;
  274. position: relative;
  275. display: flex;
  276. align-items: center;
  277. overflow: hidden;
  278. &::before {
  279. content: "";
  280. position: absolute;
  281. height: 100%;
  282. width: 1px;
  283. left: 0;
  284. background-color: var(--textFaint);
  285. }
  286. }
  287. .stat-count {
  288. margin-right: var(--status-margin);
  289. user-select: none;
  290. .stat-title {
  291. color: var(--textFaint);
  292. font-size: 0.85em;
  293. text-transform: uppercase;
  294. position: relative;
  295. }
  296. .stat-number {
  297. font-weight: bolder;
  298. font-size: 1.1em;
  299. line-height: 1em;
  300. color: var(--text);
  301. }
  302. &:hover .stat-title {
  303. text-decoration: underline;
  304. }
  305. }
  306. @media all and (max-width: 800px) {
  307. .repeater-avatar {
  308. margin-left: 20px;
  309. }
  310. .post-avatar {
  311. width: 40px;
  312. height: 40px;
  313. // TODO define those other way somehow?
  314. // stylelint-disable rscss/class-format
  315. &.-compact {
  316. width: 32px;
  317. height: 32px;
  318. }
  319. }
  320. }
  321. .quoted-status {
  322. margin-top: 0.5em;
  323. border: 1px solid var(--border);
  324. border-radius: var(--roundness);
  325. &.-unavailable-prompt {
  326. padding: 0.5em;
  327. }
  328. }
  329. .display-quoted-status-button {
  330. margin: 0.5em;
  331. &-icon {
  332. color: inherit;
  333. }
  334. }
  335. }