To be honest, my first thought is that this makes no sense. This is what media queries are for. If you want different CSS on an element at different breakpoints⦠do one of two things.
Have one class you add to X element, and use media queries to trigger different stuff / adjust settings for that class.
or
Add 3 classes to the element so that Class-1 only acts on breakpoint 1, class-2 at breakpoint 2 and so on.
Then add 1,2 and 3 to the element - css will only kick in on X breakpoints.
re1 - Donāt understand your assertion that itās hard to maintain⦠given itās how weāve been doing it for years, and itās easier to maintain than some custom class-swapping script.
You can add a class, make innumerable css changes in the STYLES panel, different on all breakpoints, and thatās it.
If what you want to do is unique to a very limited set of elements⦠or canāt be done with the style panel⦠you can do this:
Add class ā.my-classā to the element. Remain in desktop view. Add custom CSS to the custom CSS element.
Switch view, add the unique custom css to the element in that breakpoint. Repeat for all breakpoints.
The custom css is ārememberedā for that class and breakpoint. Then if you change breakpoint px widths it wonāt matter.