Thorvarium / vine-styling

Styles to use with vine
https://discord.gg/C3xDJTTGhh
MIT License
23 stars 13 forks source link

add var to change the cutoff highlight color #11

Closed ohmonster closed 1 year ago

ohmonster commented 1 year ago

Add definition for user-customized background color, for use with the Karen-generated cutoff.css file.

In Karen's css, you would use

selector { background-color: var(--cutoff-background-color, #D1D1D1);}

The default is also defined in

If a user hasn't added their own block to override this color by defining the var --custom-cutoff-background-color they will still get the default highlight color.

You may wish to move the logic for the default and override into cutoff.css, to save the repetition of adding the default with each ASIN.