mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-10-21 14:51:49 +02:00
fix: settings bar fade
This commit is contained in:
1 parent
42dc47e569
commit
20aa676eec
3 files changed
+17
-17
No files matched your search
+11
-7
@@ -239,24 +239,28 @@
|
||||
--bottom-mask: transparent;
|
||||
}
|
||||
|
||||
/* The same for a single row that scrolls sideways (`ScrollStrip`). The band
|
||||
is wider than the chevron that sits over it, so a badge passing under the
|
||||
chevron is already gone. */
|
||||
/* The same for a single row that scrolls sideways (`ScrollStrip`). The first
|
||||
24px, where the chevron sits, are fully cleared, so the chevron never lands
|
||||
on half-faded letters; the badges fade in over the next 24px. */
|
||||
.scroll-fade-x {
|
||||
--left-mask: black;
|
||||
--right-mask: black;
|
||||
-webkit-mask-image: linear-gradient(
|
||||
to right,
|
||||
var(--left-mask) 0,
|
||||
black 36px,
|
||||
black calc(100% - 36px),
|
||||
var(--left-mask) 24px,
|
||||
black 48px,
|
||||
black calc(100% - 48px),
|
||||
var(--right-mask) calc(100% - 24px),
|
||||
var(--right-mask)
|
||||
);
|
||||
mask-image: linear-gradient(
|
||||
to right,
|
||||
var(--left-mask) 0,
|
||||
black 36px,
|
||||
black calc(100% - 36px),
|
||||
var(--left-mask) 24px,
|
||||
black 48px,
|
||||
black calc(100% - 48px),
|
||||
var(--right-mask) calc(100% - 24px),
|
||||
var(--right-mask)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user