ankit / stylebot

Change the appearance of the web instantly
https://stylebot.dev/
MIT License
1.38k stars 205 forks source link

[Feature] Editor support for multiple matching rules #674

Open xianath opened 2 years ago

xianath commented 2 years ago

Is your feature request related to a problem? Please describe.

I use Stylebot for an intranet system used by many different teams. I have a global site-wide style, and page-specific styles for team workspaces. Stylebot correctly matches and applies all rules, however the editor lacks an option to edit a particular rule, forcing me to use the Options screen and refresh, which is cumbersome and error-prone.

Describe the solution you'd like

When matching multiple URLs, I'd like to have an option to edit the stylesheet for a particular rule. This could be done, for example, by adding a drop-down to select the stylesheet to edit. Another option is to display, in the editor itself, the sum of all applied stylesheets, with color coding or some other visual indication as to the rule they originate from, ideally also with the ability to easily move CSS styles between Stylebot rules.

Additional context

Mock-up

image

ankit commented 2 years ago

@xianath makes sense - An earlier version used to support this. I will try and bring this back.