Hierarchy

  • MiniCSS

Constructors

  • New MiniCSS instance.

    Example

    const miniCSS = new MiniCSS;
    

    Example

    const clonedMiniCSS = new MiniCSS(miniCSS);
    

    Example

    const miniCSS = new MiniCSS({
    classes: {
    firstClass : "_",
    secondClass: "a",
    },
    ids: {
    firstId : "_",
    secondId: "a",
    },
    keyframes: {
    firstKeyframe : "_",
    secondKeyframe: "a",
    },
    variables: {
    firstVariable : "_",
    secondVariable: "a",
    },
    });

    Parameters

    Returns MiniCSS

Properties

#classes: Node = ...

CSS class map.

#ids: Node = ...

CSS id map.

#keyframes: Node = ...

CSS keyframes map.

#variables: Node = ...

CSS variable map.

Methods

  • Add a new attribute selection condition to be applied to classes/ids being renamed from this point on.

    Example

    miniCSS = miniCSS.addAttributeSelector({
    attribute : ATTRIBUTE.CLASS,
    operator : OPERATOR.EXACT_OR_BEGIN_WITH_HYPHEN,
    value : "col",
    caseSensitivity: CASE_SENSITIVITY.SENSITIVE,
    });

    Parameters

    Returns MiniCSS

  • Returns the keyframes node.

    Example

    const keyframes = miniCSS.keyframes();
    

    Returns Node

  • Returns the variables node.

    Example

    const variables = miniCSS.variables();
    

    Returns Node

Generated using TypeDoc