Option to scope CSS to entity

Created on 16 October 2022, about 2 years ago
Updated 29 December 2023, 11 months ago

It would be soooooooooooo cool if this module had a setting that could enable scoping the input CSS to the entity.

As we know, CSS is global, so if an editor writes something like h2 { color: red !important }, the entire site is broken.

If there was a "limit CSS to this entity" checkbox that would enable a setting that would prepend an entity-specific selector on each ruleset, so that instead of a h2 { color: red !important }, it'd output .block-block-content92d23d45-9a44-4e8d-ae7b-0627fc89e7e2 h2 { color: red !important }, that would increase the utility of this module so much.

Maybe something like https://github.com/sabberworm/PHP-CSS-Parser could help with this?

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mherchel Gainesville, FL, US

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024