Skip to content

Commit bc1d7ff

Browse files
authored
CSS: Prevent .hero-lede bottom cut-off, improve .ticker-card looks (#410)
1 parent a55e0ad commit bc1d7ff

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

src/styles/landing.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@
206206
line-height: 1.15;
207207
max-width: 700px;
208208
margin: 0 auto 1.5rem;
209+
padding-bottom: 0.2em;
209210
letter-spacing: -0.02em;
210211
background: linear-gradient(135deg, #d32f2f 0%, #ff6659 100%);
211212
-webkit-background-clip: text;
@@ -744,16 +745,27 @@
744745
}
745746

746747
.ticker-card p {
748+
position: relative;
747749
margin: 0 0 0.5rem;
748750
font-style: italic;
749751
font-weight: 500;
750-
line-height: 1.4;
752+
line-height: 1.25;
751753
display: -webkit-box;
752754
-webkit-line-clamp: 6;
753755
-webkit-box-orient: vertical;
754756
overflow: hidden;
755757
}
756758

759+
.ticker-card p::after {
760+
content: "";
761+
position: absolute;
762+
left: 0;
763+
right: 0;
764+
bottom: 2em;
765+
height: 2em;
766+
background: linear-gradient(0deg, hsl(var(--tc-h), var(--tc-s), 96%) 25%, rgba(255, 255, 255, 0));
767+
}
768+
757769
.ticker-card cite {
758770
font-size: 0.75rem;
759771
font-style: normal;

0 commit comments

Comments
 (0)