Nylon Pendulum Movement

    csscomb-join-similar-rules

    0.1.1 • Public • Published

    CSSComb.js option for joining the rules with the same selectors

    join-similar-rules

    Acceptable value: true.

    Example: { "join-similar-rules": true }

    /* before */
    a { width: 10px; }
    a { height: 10px; }
     
    /* after */
    a { width: 10px;  height: 10px; }
     

    Usage

    This is a plugin for CSSComb.js, to learn how to use it read the corresponding docs.

    Features

    • Joins equal selectors.
    • Inserts missing semicolons between joined declarations.
    • Works for multiple selectors in different order.
    • Leaves untouched selectors if there is anything between them.

    Known issues

    There won't be any whitespaces between the joined declarations, so you should use space-between-declarations to set it if you'll need it.

    Keywords

    none

    Install

    npm i csscomb-join-similar-rules

    DownloadsWeekly Downloads

    4

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • kizu