Skip to content

Iwouldliketobeapig/css-properties-sorting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

css-properties-sort

NPM version NPM Downloads Build Status

Installation

First, You should have studied stylelint

npm install css-properties-sorting

Example

in .stylelintrc:

{
	"plugins": [
		"stylelint-order"
	],
	"extends": "css-properties-sorting"
}

you can use it with webpack or others

Sorting rules

  1. display & flow

  2. dosition

  3. dimension

  4. margin/padding/border/outline

  5. type graphic style

  6. background

  7. opacity/cursor/generated/content

  8. transition

Detailed rules(详细规则)

About

this is a plugin for css properies order,

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published