Kurohyou-Studios / k-scaffold

A framework for building Roll20 Character sheets
MIT License
4 stars 4 forks source link

BUG: `+scss` doesn't support `&` and nested SCSS #96

Closed Riernar closed 12 months ago

Riernar commented 12 months ago

Description

The following SCSS crashes the .scss mixin, be it with the +scss. direct input, or +scss and an include inside:

+scss.
    // SCSS for rolls
    .roller {
        padding: 0.2rem;
        border: 0.1rem solid black;
        border-radius: 0.5rem;

        &::before {
            font-family: "dicefontd6";
            content: "L";
        }
    }

Not using the & symbol works properly:

+scss.
    // SCSS for rolls
    .roller {
        padding: 0.2rem;
        border: 0.1rem solid black;
        border-radius: 0.5rem;
    }

    .roller::before {
        font-family: "dicefontd6";
        content: "L";
    }

Environment

$ npm list @kurohyou/k-scaffold
sr4@0.1 /home/quentin/dev/jdr.d/sr4-sheet
└── @kurohyou/k-scaffold@2.2.2
Kurohyou commented 12 months ago

Resolved by #97