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

feat(core): add option to output the internal layers as CSS Cascade Layers #3587

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

RebeccaStevens
Copy link
Contributor

@RebeccaStevens RebeccaStevens commented Feb 29, 2024

fix #3583
fix #3384

Allows the internal layers to be output nested inside @layer layerName {}

Probably out of scope for this PR but one thing to consider is the interaction with the layer variant in the mini preset.
With the new option enabled, this variant will now be creating sublayers, not root-level layers. Users would need to use the 'uno-layer' variant instead.

Copy link

netlify bot commented Feb 29, 2024

Deploy Preview for unocss ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 39eb620
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/65e95e50d0438f0008a837ea
😎 Deploy Preview https://deploy-preview-3587--unocss.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@antfu antfu added this pull request to the merge queue Mar 14, 2024
Merged via the queue into unocss:main with commit b798da0 Mar 14, 2024
9 checks passed
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.

Output layers as CSS Cascade Layers [re-request] Output layers as CSS Cascade Layers
3 participants