Skip to content

Disable red border for blocked large media elements #3407

Closed Answered by krystian3w
vvkdev asked this question in Q&A
Discussion options

You must be logged in to vote

Due CSS specificity:

You should try this:

*##:root img:not(#style_important):style(border: 1px solid lightgrey !important;)
! Rest of blocked huge media (optional):
*##:root picture:not(#style_important):style(border: 1px solid lightgrey !important;)
*##:root audio:not(#style_important):style(border: 1px solid lightgrey !important;)
*##:root video:not(#style_important):style(border: 1px solid lightgrey !important;)

If too many photos will be bordered (e.g. smaller than limit or from cache loaded) then maybe needed use:

  • :matches-attr(/^data-.*/=/^$/) to found data-.* with empty value (still not w…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@garry-ut99
Comment options

@krystian3w
Comment options

@garry-ut99
Comment options

Answer selected by vvkdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants