Locked slider dims its rail: :has() on the slider, since the rail comes before the input and no sibling selector reaches it
This commit is contained in:
@@ -576,8 +576,9 @@
|
|||||||
outline-offset: 2px;
|
outline-offset: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* The rail comes before the input, so no sibling selector reaches it. */
|
||||||
.dui-slider-input:disabled ~ .dui-slider-thumb,
|
.dui-slider-input:disabled ~ .dui-slider-thumb,
|
||||||
.dui-slider-input:disabled ~ .dui-slider-rail {
|
.dui-slider:has(.dui-slider-input:disabled) .dui-slider-rail {
|
||||||
opacity: 0.45;
|
opacity: 0.45;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user