Skip to content

use where selector to reduce specificity for images#1

Open
tetov wants to merge 1 commit into
matthewl:mainfrom
tetov:reduce_imgnot_specificity
Open

use where selector to reduce specificity for images#1
tetov wants to merge 1 commit into
matthewl:mainfrom
tetov:reduce_imgnot_specificity

Conversation

@tetov

@tetov tetov commented Nov 22, 2025

Copy link
Copy Markdown

I wanted to make embedded mastodon posts made using stoot display properly in bothy. I'm using :where() since it has 0 specificity.

Before

Screenshot 2025-11-22 at 11-26-00

After

Screenshot 2025-11-22 at 11-25-03

@tetov

tetov commented Nov 22, 2025

Copy link
Copy Markdown
Author

I added video to this rule:

:where(.content, .post) is:(img, video):not(.microblog_avatar) {

for my site. Let me know if you wish to add this as a commit to this PR or to another PR.

@tetov tetov force-pushed the reduce_imgnot_specificity branch from 7431e70 to 1f91380 Compare November 22, 2025 12:44
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

Successfully merging this pull request may close these issues.

1 participant