Converting scss to sass

These two mixins are equivalent? but while the one in scss applies, the other doesn't
@mixin deferred-bg() {
    &::after {
        content: "";
        position: absolute;
        left: 0.25rem;
        top: 0.25rem;
        z-index: -1;

        width: 100%;
        height: 100%;
        border-radius: 0.5rem;
        background-color: var(--elementary);
    }
}

@mixin deferred-bg()
    &::after
        content: ""
        position: absolute
        left: 0.25rem
        top: 0.25rem
        z-index: -1

        width: 100%
        height: 100%
        border-radius: 0.5rem
        border-radius: var(--elementary)
Was this page helpful?