Only show data-read-more when it's available

This commit is contained in:
Lim Chee Aun 2024-04-11 17:16:04 +08:00
parent 60920966d6
commit 6e73728e2b

View file

@ -160,7 +160,7 @@
display: block;
position: relative;
&:after {
&[data-read-more]:after {
content: attr(data-read-more);
line-height: 1;
display: inline-block;
@ -790,7 +790,9 @@
black 1.5em
);
}
.timeline-deck .status:not(.truncated .status) .content.truncated:after {
.timeline-deck
.status:not(.truncated .status)
.content.truncated[data-read-more]:after {
content: attr(data-read-more);
line-height: 1;
display: inline-block;
@ -2289,7 +2291,7 @@ a.card:is(:hover, :focus):visited {
mask-image: linear-gradient(to bottom, #000 80px, transparent);
}
&:after {
&[data-read-more]:after {
content: attr(data-read-more);
line-height: 1;
display: inline-block;