aboutsummaryrefslogtreecommitdiff
path: root/src/components/status_body/status_body.scss
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2022-02-20 15:11:33 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2022-02-20 15:11:33 +0000
commitddee8bb686fb18baf5212089653a8b4e40feedd6 (patch)
treee200f269c3f8faca1f502cf416f0841126b52d9b /src/components/status_body/status_body.scss
parent56616787ec1b8373e5c160c6fe863694a66ca2db (diff)
parentbefd4d5fc787d3f8287456dbf5d1a6c70419591f (diff)
Merge branch 'proper-attachments' into 'develop'
Attachment improvements See merge request pleroma/pleroma-fe!1399
Diffstat (limited to 'src/components/status_body/status_body.scss')
-rw-r--r--src/components/status_body/status_body.scss56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/components/status_body/status_body.scss b/src/components/status_body/status_body.scss
index c7732bfe..f261108e 100644
--- a/src/components/status_body/status_body.scss
+++ b/src/components/status_body/status_body.scss
@@ -1,11 +1,17 @@
@import '../../_variables.scss';
.StatusBody {
+ display: flex;
+ flex-direction: column;
.emoji {
--_still_image-label-scale: 0.5;
}
+ .attachments {
+ margin-top: 0.5em;
+ }
+
& .text,
& .summary {
font-family: var(--postFont, sans-serif);
@@ -115,4 +121,54 @@
.cyantext {
color: var(--postCyantext, $fallback--cBlue);
}
+
+ &.-compact {
+ align-items: top;
+ flex-direction: row;
+
+ --emoji-size: 16px;
+
+ & .body,
+ & .attachments {
+ max-height: 3.25em;
+ }
+
+ .body {
+ overflow: hidden;
+ white-space: normal;
+ min-width: 5em;
+ flex: 5 1 auto;
+ mask-size: auto 3.5em, auto auto;
+ mask-position: 0 0, 0 0;
+ mask-repeat: repeat-x, repeat;
+ mask-image: linear-gradient(to bottom, white 2em, transparent 3em);
+
+ /* Autoprefixed seem to ignore this one, and also syntax is different */
+ -webkit-mask-composite: xor;
+ mask-composite: exclude;
+ }
+
+ .attachments {
+ margin-top: 0;
+ flex: 1 1 0;
+ min-width: 5em;
+ height: 100%;
+ margin-left: 0.5em;
+ }
+
+ .summary-wrapper {
+ .summary::after {
+ content: ': ';
+ }
+
+ line-height: inherit;
+ margin: 0;
+ border: none;
+ display: inline-block;
+ }
+
+ .text-wrapper {
+ display: inline-block;
+ }
+ }
}