logo

pleroma-fe

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

status.scss (6727B)


  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: 14px;
  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: flex;
  222. margin-top: var(--status-margin);
  223. > * {
  224. max-width: 4em;
  225. flex: 1;
  226. }
  227. }
  228. .muted {
  229. padding: 0.25em 0.6em;
  230. height: 1.2em;
  231. line-height: 1.2em;
  232. text-overflow: ellipsis;
  233. overflow: hidden;
  234. display: flex;
  235. flex-wrap: nowrap;
  236. & .status-username,
  237. & .mute-thread,
  238. & .mute-words {
  239. word-wrap: normal;
  240. word-break: normal;
  241. white-space: nowrap;
  242. }
  243. & .status-username,
  244. & .mute-words {
  245. text-overflow: ellipsis;
  246. overflow: hidden;
  247. }
  248. .status-username {
  249. font-weight: normal;
  250. flex: 0 1 auto;
  251. margin-right: 0.2em;
  252. font-size: smaller;
  253. }
  254. .mute-thread {
  255. flex: 0 0 auto;
  256. }
  257. .mute-words {
  258. flex: 1 0 5em;
  259. margin-left: 0.2em;
  260. &::before {
  261. content: " ";
  262. }
  263. }
  264. .unmute {
  265. flex: 0 0 auto;
  266. margin-left: auto;
  267. display: block;
  268. }
  269. }
  270. .reply-form {
  271. padding-top: 0;
  272. padding-bottom: 0;
  273. }
  274. .reply-body {
  275. flex: 1;
  276. }
  277. .favs-repeated-users {
  278. margin-top: var(--status-margin);
  279. }
  280. .stats {
  281. width: 100%;
  282. display: flex;
  283. line-height: 1em;
  284. }
  285. .avatar-row {
  286. flex: 1;
  287. position: relative;
  288. display: flex;
  289. align-items: center;
  290. overflow: hidden;
  291. &::before {
  292. content: "";
  293. position: absolute;
  294. height: 100%;
  295. width: 1px;
  296. left: 0;
  297. background-color: var(--textFaint);
  298. }
  299. }
  300. .stat-count {
  301. margin-right: var(--status-margin);
  302. user-select: none;
  303. .stat-title {
  304. color: var(--textFaint);
  305. font-size: 0.85em;
  306. text-transform: uppercase;
  307. position: relative;
  308. }
  309. .stat-number {
  310. font-weight: bolder;
  311. font-size: 1.1em;
  312. line-height: 1em;
  313. }
  314. &:hover .stat-title {
  315. text-decoration: underline;
  316. }
  317. }
  318. @media all and (max-width: 800px) {
  319. .repeater-avatar {
  320. margin-left: 20px;
  321. }
  322. .post-avatar {
  323. width: 40px;
  324. height: 40px;
  325. // TODO define those other way somehow?
  326. // stylelint-disable rscss/class-format
  327. &.-compact {
  328. width: 32px;
  329. height: 32px;
  330. }
  331. }
  332. }
  333. .quoted-status {
  334. margin-top: 0.5em;
  335. border: 1px solid var(--border);
  336. border-radius: var(--roundness);
  337. &.-unavailable-prompt {
  338. padding: 0.5em;
  339. }
  340. }
  341. .display-quoted-status-button {
  342. margin: 0.5em;
  343. &-icon {
  344. color: inherit;
  345. }
  346. }
  347. }