Skip to content

overwrite svg styles #8

@nuxodin

Description

@nuxodin

Here you overwrite svg styles that can be relevant.

bedrocss/src/media.css

Lines 10 to 12 in e4ee7c6

fill: currentColor;
stroke: currentColor;
stroke-width: 0;

Note that css is stronger than the svg attributes.
Even :where(svg) is stronger.

<svg fill="red">...</svg>

Possible, but maybe a little too much overhead:

svg:not([fill]) { fill:currentColor; }
svg:not([stroke]) { stroke:currentColor; }
svg:not([stroke-width]) { stroke-width: 0 }

Close this issue if it still fits your use-cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions