Skip to content

kizu/csscomb-join-similar-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published