113 lines
2.0 KiB
SCSS
113 lines
2.0 KiB
SCSS
|
@import '../../_variables.scss';
|
||
|
|
||
|
.StatusBody {
|
||
|
.emoji {
|
||
|
--_still_image-label-scale: 0.5;
|
||
|
}
|
||
|
|
||
|
.summary {
|
||
|
display: block;
|
||
|
font-style: italic;
|
||
|
padding-bottom: 0.5em;
|
||
|
}
|
||
|
|
||
|
.text {
|
||
|
&.-single-line {
|
||
|
white-space: nowrap;
|
||
|
text-overflow: ellipsis;
|
||
|
overflow: hidden;
|
||
|
height: 1.4em;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.summary-wrapper {
|
||
|
margin-bottom: 0.5em;
|
||
|
border-style: solid;
|
||
|
border-width: 0 0 1px 0;
|
||
|
border-color: var(--border, $fallback--border);
|
||
|
flex-grow: 0;
|
||
|
|
||
|
&.-tall {
|
||
|
position: relative;
|
||
|
|
||
|
.summary {
|
||
|
max-height: 2em;
|
||
|
overflow: hidden;
|
||
|
white-space: nowrap;
|
||
|
text-overflow: ellipsis;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.text-wrapper {
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
flex-wrap: nowrap;
|
||
|
|
||
|
&.-tall-status {
|
||
|
position: relative;
|
||
|
height: 220px;
|
||
|
overflow-x: hidden;
|
||
|
overflow-y: hidden;
|
||
|
z-index: 1;
|
||
|
|
||
|
.text {
|
||
|
min-height: 0;
|
||
|
mask:
|
||
|
linear-gradient(to top, white, transparent) bottom/100% 70px no-repeat,
|
||
|
linear-gradient(to top, white, white);
|
||
|
|
||
|
/* Autoprefixed seem to ignore this one, and also syntax is different */
|
||
|
-webkit-mask-composite: xor;
|
||
|
mask-composite: exclude;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
& .tall-status-hider,
|
||
|
& .tall-subject-hider,
|
||
|
& .status-unhider,
|
||
|
& .cw-status-hider {
|
||
|
display: inline-block;
|
||
|
word-break: break-all;
|
||
|
width: 100%;
|
||
|
text-align: center;
|
||
|
}
|
||
|
|
||
|
.tall-status-hider {
|
||
|
position: absolute;
|
||
|
height: 70px;
|
||
|
margin-top: 150px;
|
||
|
line-height: 110px;
|
||
|
z-index: 2;
|
||
|
}
|
||
|
|
||
|
.tall-subject-hider {
|
||
|
// position: absolute;
|
||
|
padding-bottom: 0.5em;
|
||
|
}
|
||
|
|
||
|
& .status-unhider,
|
||
|
& .cw-status-hider {
|
||
|
word-break: break-all;
|
||
|
|
||
|
svg {
|
||
|
color: inherit;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.greentext {
|
||
|
color: $fallback--cGreen;
|
||
|
color: var(--postGreentext, $fallback--cGreen);
|
||
|
}
|
||
|
|
||
|
/* Not sure if this is necessary */
|
||
|
video {
|
||
|
max-width: 100%;
|
||
|
max-height: 400px;
|
||
|
vertical-align: middle;
|
||
|
object-fit: contain;
|
||
|
}
|
||
|
|
||
|
}
|