hgiesel / closet

The Web Framework for Flashcards
https://closetengine.com
GNU General Public License v3.0
65 stars 6 forks source link

color change of image occlusion boxes? #82

Closed ankidoc closed 3 years ago

ankidoc commented 3 years ago

Tried to change the color from the yellow to different colors, but that didn't work because I didn't really find it in the code. How can I do that?

Greetings

swkidd commented 3 years ago

You can use CSS selectors for this. There may be a better way, but this seems to work.

.is-front:not(.is-active) rect { fill: some-color !important; stroke: some-other-color !important; }

to change the color of all non active rectangles.

Or use .is-active as the selector for active rectangles.

ankidoc commented 3 years ago

thanks that worked!