tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
27
pulls
pipelines
try mask-image css
awarm.space
4 days ago
5add9002
10f35a13
+4
-17
1 changed file
expand all
collapse all
unified
split
app
globals.css
+4
-17
app/globals.css
···
531
531
.footnote-side-item {
532
532
max-height: 4.5em;
533
533
overflow: hidden;
534
534
-
transition: max-height 200ms ease;
534
534
+
transition: max-height 200ms ease, mask-image 200ms ease;
535
535
}
536
536
-
.footnote-side-item.has-overflow::after {
537
537
-
content: "";
538
538
-
position: absolute;
539
539
-
bottom: 0;
540
540
-
left: 0;
541
541
-
right: 0;
542
542
-
height: 1.5em;
543
543
-
background: linear-gradient(to bottom, transparent, rgb(var(--bg-page)));
544
544
-
pointer-events: none;
545
545
-
opacity: 1;
546
546
-
transition: opacity 200ms ease;
536
536
+
.footnote-side-item.has-overflow {
537
537
+
mask-image: linear-gradient(to bottom, white 50%, transparent 100%);
547
538
}
548
539
.footnote-side-item:hover,
549
540
.footnote-side-item:focus-within,
550
541
.footnote-side-item.footnote-side-focused {
551
542
max-height: 40em;
552
552
-
}
553
553
-
.footnote-side-item:hover::after,
554
554
-
.footnote-side-item:focus-within::after,
555
555
-
.footnote-side-item.footnote-side-focused::after {
556
556
-
opacity: 0;
543
543
+
mask-image: none;
557
544
}