You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that I understand how css variable scoping works, we should be able to drastically simplify the css side of adding a new sort. Specifically, css variables declared within rules apply to all other rules matching the original rule's selector.
As long as we follow the logic of, when a page element should take on some sort-dependent color accent, we put the class Sort.to_string(sort) on it, then we should be able to just specify a single css rule:
Now that I understand how css variable scoping works, we should be able to drastically simplify the css side of adding a new sort. Specifically, css variables declared within rules apply to all other rules matching the original rule's selector.
As long as we follow the logic of, when a page element should take on some sort-dependent color accent, we put the class Sort.to_string(sort) on it, then we should be able to just specify a single css rule:
then, all component-specific rules involving that sort could just refer to that variable, so instead of having a bunch of rules like:
we could have a single rule like:
This approach would eliminate whole pages of rules
The text was updated successfully, but these errors were encountered: