kidonng / unocss-preset-daisy

UnoCSS preset for daisyUI
https://unocss-preset-daisy.vercel.app
MIT License
228 stars 19 forks source link

fix: recursively traverse atRules #23

Closed ameinhardt closed 1 year ago

ameinhardt commented 1 year ago

in the resulting css, some rules are deeply nested, e.g. drawer-mobile:

@media(min-width: 1024px) {
    .drawer-mobile {
        grid-auto-columns:max-content auto
    }

    .drawer-mobile>.drawer-toggle~.drawer-content {
        height: auto
    }

    @media(min-width: 1024px) {
        .drawer-mobile>.drawer-toggle~.drawer-content {
            grid-column-start:2
        }
...

This fix traverses these rules deeply