I’m using Minimal Theme and trying to write some custom css to give a color value to overfilled progress bars. Currently, a progress bar with a value over 100% defaults to whatever color is defined as “Red” in the Style Settings plugin. I like the dynamic color changing that Minimal has, but would like to customize the color for a beyond 100% value.
Things I have tried
I’ve found a variety of useful websites describing CSS, but either none contain the answer, or I’m missing something.
How do you generate those progress bars? Do they come from some query capable of providing extra classes in case over the max, or similar?
This shouldn’t be that hard to code using Dataview or similar. Other than that you’re kind of stuck since the CSS attribute selectors treats everything as strings, and one hack I’ve seen uses a variable definition in setting the values, and if you can do that, you should rather set a given class if above the maximum value, and use that for styling.