Files
lila/ui/lib/css/component/_material.scss
Berat121 0c354fa3c6 css: prevent material diff from blocking header dropdown hover
The material difference display (captured pieces and score) was intercepting mouse events, making it impossible to hover over the Tools dropdown menu when the material element overlapped with it.

Adding pointer-events: none fixes this without affecting any functionality, as the material display is purely visual and has no interactive elements.
2026-05-06 08:54:44 +02:00

49 lines
808 B
SCSS

.material {
pointer-events: none;
@extend %flex-center-nowrap;
div {
display: inline-block;
margin-inline-start: 10px;
}
mpiece {
margin-inline-start: -10px;
background-size: cover;
display: inline-block;
&.pawn {
background-image: url('../piece/mono/P.svg');
}
&.bishop {
background-image: url('../piece/mono/B.svg');
}
&.knight {
background-image: url('../piece/mono/N.svg');
}
&.rook {
background-image: url('../piece/mono/R.svg');
}
&.queen {
background-image: url('../piece/mono/Q.svg');
}
&.king {
background-image: url('../piece/mono/K.svg');
}
@include if-transp {
filter: brightness(1.3) drop-shadow(0 1px 1px #000);
}
}
score {
@extend %roboto;
}
}