Skip to content
This repository was archived by the owner on May 5, 2022. It is now read-only.
This repository was archived by the owner on May 5, 2022. It is now read-only.

Support for transparent CSS value is missing #319

@mkgl

Description

@mkgl

For example when building a Valo theme, one cannot use the transparent CSS value, at least for some exposed valo variables, such as:

$v-textfield-background-color--readonly: transparent;

The Sass compiler just blows.

As a workaround it is possible to use rgba(0, 0, 0, 0), yet the "original" Sass compiler gracefully supports both. See also:

.transparent{
    $transparentcolor: transparent;
    red: red($transparentcolor);
    green: green($transparentcolor);
    blue: blue($transparentcolor);
    alpha: alpha($transparentcolor);
    opacity: opacity($transparentcolor);
    colorA: rgba(0,0,0,0);
    colorB: $transparentcolor;
    colorC: darken($transparentcolor, 50);
    colorD: lighten($transparentcolor, 100);
    colorE: adjust-color($transparentcolor);
    colorF: scale-color($transparentcolor);
}

PR incoming (maybe) ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions