logo

pleroma-fe

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

status_body.scss (2963B)


  1. .StatusBody {
  2. display: flex;
  3. flex-direction: column;
  4. .emoji {
  5. --_still_image-label-scale: 0.5;
  6. }
  7. .attachments {
  8. margin-top: 0.5em;
  9. }
  10. & .text,
  11. & .summary {
  12. white-space: pre-wrap;
  13. overflow-wrap: break-word;
  14. word-wrap: break-word;
  15. word-break: break-word;
  16. line-height: var(--post-line-height);
  17. }
  18. .summary {
  19. display: block;
  20. font-style: italic;
  21. padding-bottom: 0.5em;
  22. }
  23. .text {
  24. &.-single-line {
  25. white-space: nowrap;
  26. text-overflow: ellipsis;
  27. overflow: hidden;
  28. height: 1.4em;
  29. }
  30. }
  31. .summary-wrapper {
  32. margin-bottom: 0.5em;
  33. border-style: solid;
  34. border-width: 0 0 1px;
  35. border-color: var(--border);
  36. flex-grow: 0;
  37. &.-tall {
  38. position: relative;
  39. .summary {
  40. max-height: 2em;
  41. overflow: hidden;
  42. white-space: nowrap;
  43. text-overflow: ellipsis;
  44. }
  45. }
  46. }
  47. .text-wrapper {
  48. display: flex;
  49. flex-flow: column nowrap;
  50. &.-tall-status {
  51. position: relative;
  52. height: 220px;
  53. overflow-x: hidden;
  54. overflow-y: hidden;
  55. z-index: 1;
  56. .media-body {
  57. min-height: 0;
  58. mask:
  59. linear-gradient(to top, white, transparent) bottom/100% 70px no-repeat,
  60. linear-gradient(to top, white, white);
  61. /* Autoprefixed seem to ignore this one, and also syntax is different */
  62. mask-composite: xor;
  63. mask-composite: exclude;
  64. }
  65. }
  66. }
  67. & .tall-status-hider,
  68. & .tall-subject-hider,
  69. & .status-unhider,
  70. & .cw-status-hider {
  71. display: inline-block;
  72. word-break: break-all;
  73. width: 100%;
  74. text-align: center;
  75. }
  76. .tall-status-hider {
  77. position: absolute;
  78. height: 70px;
  79. margin-top: 150px;
  80. line-height: 110px;
  81. z-index: 2;
  82. }
  83. .tall-subject-hider {
  84. // position: absolute;
  85. padding-bottom: 0.5em;
  86. }
  87. & .status-unhider,
  88. & .cw-status-hider {
  89. word-break: break-all;
  90. svg {
  91. color: inherit;
  92. }
  93. }
  94. &.-compact {
  95. align-items: top;
  96. flex-direction: row;
  97. --emoji-size: 16px;
  98. & .body,
  99. & .attachments {
  100. max-height: 3.25em;
  101. }
  102. .body {
  103. overflow: hidden;
  104. white-space: normal;
  105. min-width: 5em;
  106. flex: 5 1 auto;
  107. mask-size: auto 3.5em, auto auto;
  108. mask-position: 0 0, 0 0;
  109. mask-repeat: repeat-x, repeat;
  110. mask-image: linear-gradient(to bottom, white 2em, transparent 3em);
  111. /* Autoprefixed seem to ignore this one, and also syntax is different */
  112. mask-composite: xor;
  113. mask-composite: exclude;
  114. }
  115. .attachments {
  116. margin-top: 0;
  117. flex: 1 1 0;
  118. min-width: 5em;
  119. height: 100%;
  120. margin-left: 0.5em;
  121. }
  122. .summary-wrapper {
  123. .summary::after {
  124. content: ": ";
  125. }
  126. line-height: inherit;
  127. margin: 0;
  128. border: none;
  129. display: inline-block;
  130. }
  131. .text-wrapper {
  132. display: inline-block;
  133. }
  134. }
  135. }