CSS: no more shadows (requires too much CPU)

This commit is contained in:
Joeri Exelmans 2025-10-21 10:05:02 +02:00
parent 46fe01089d
commit 9e79537b6e
3 changed files with 19 additions and 38 deletions

View file

@ -97,21 +97,7 @@ ul {
/* list-style-position: ; */
}
.insetParent {
position: relative;
}
.insetChild {
position: absolute;
box-shadow: inset 0 10px 10px -10px rgba(0, 0, 0, 0.75);
height: 20px;
z-index: 10;
pointer-events: none;
inset: 0;
}
.onTop {
box-shadow: 0 -10px 10px 10px rgba(0, 0, 0, 0.75);
box-shadow: 0 -10px 20px 10px rgba(0, 0, 0, 0.75);
z-index: 1;
}