skip to Main Content

CSS HSL-Triangle

I try to build a website with a color picker. For that, I would like to use some sort of semicircle with which you can choose the hue and a triangle with which you can choose the saturation and lightness.…

VIEW QUESTION

Css – How can I modify an element based on ancestor "has"?

.grid-container { background-color: yellow; } .grid-container:has(.someClass1) { background-color: red; } .grid-container:has(.someClass2) { background-color: green; } /* NEEDS TO VARY BETWEEN CONDITIONS: default -> border: 5px solid grey; .grid-container:has(.someClass1) -> border: 5px solid black; .grid-container:has(.someClass2) -> border: 5px solid blue; */…

VIEW QUESTION
Back To Top
Search