CSS style sheet writer to add CSS rules to.

It is an object created by addSheet style production format method.

Hierarchy

  • Sheet

Properties

isGroup: true

Methods

  • Inserts a new global CSS at-rule into target style sheet, with some restrictions.

    Parameters

    • name: string

      Rule name of newly inserted at-rule. E.g. @namespace or @import.

    • value: string

      Verbatim value of newly inserted at-rule.

    • Optional index: number

      A positive integer less than or equal to the number of added rules, representing the newly inserted rule's position in target style sheet. The default is the number of added rules.

    Returns void

  • Inserts a new grouping CSS at-rule into target style sheet, with some restrictions.

    Parameters

    • name: string

      Rule name of newly inserted at-rule. E.g. @media, @keyframes, or @condition.

    • params: string

      Verbatim parameters of newly inserted rule. E.g. media query.

    • Optional index: number

      A positive integer less than or equal to the number of added rules, representing the newly inserted rule's position in target style sheet. The default is the number of added rules.

    Returns Group

    Inserted CSS style declarations writer.

  • Inserts a new empty CSS style declarations rule into target style sheet, with some restrictions.

    Parameters

    • selector: string

      CSS selector of the newly inserted rule.

    • Optional index: number

      A positive integer less than or equal to the number of added rules, representing the newly inserted rule's position in target style sheet. The default is the number of added rules.

    Returns Style

    Inserted CSS style declarations writer.

Generated using TypeDoc