Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to stop Attribute Selector from overpowering Folder Selector in importance? #211

Open
bluerosegarden opened this issue Nov 29, 2023 · 1 comment

Comments

@bluerosegarden
Copy link

Hello! I have an attribute selector that targets any file with the attribute publish: true, and I also have a folder selector that targets anything under my Other Site/ folder.

The first one works flawlessly and always has, however I want the Other Site/ styling to override it. The problem is, the files in Other Site/ also use the published attribute and that takes precedent over the folder selector. I've tried moving the folder selector to the top above the attribute selector, and I've tried moving the attribute to the bottom (and vice-versa just to make sure I was mistaken) and neither work.

At first I just thought the solution would be as easy as having two conditions for one selector to raise its importance level (such as a folder selector AND an attribute selector), but as far as I can manage to find there isn't a way to do that. I could manually add the styles in a snippet, but that ruins the convenience of this plugin hahaha. Any help would be amazing, thank you in advance!

@Pellucid1137
Copy link

Hi!

I was going to create a new issue, but I saw that this one was still open. I've noticed the same behavior between attribute and tag selectors, tag and path selectors, and two attribute selectors as well. There seems to be an arbitrary "priority" which the selectors take precedence in, dragging selectors above or below other does not seem to be able to fix this.

Any help or perhaps a feature would be greatly appreciated. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants