Skip to content

Commit 9cf31e7

Browse files
committed
Latest SMACSS ordering
1 parent b95ed16 commit 9cf31e7

9 files changed

Lines changed: 145 additions & 101 deletions

File tree

.stylelintrc.yml

Lines changed: 83 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -556,15 +556,25 @@ rules:
556556
# SMACSS-like property order rules (stylelint-order plugin).
557557
order/properties-order:
558558

559+
# Heading.
560+
561+
- content
562+
- quotes
563+
559564
# Box.
560565

561566
- display
567+
- visibility
568+
562569
- position
570+
- z-index
563571
- top
564572
- right
565573
- bottom
566574
- left
567575

576+
- box-sizing
577+
568578
- flex
569579
- flex-basis
570580
- flex-direction
@@ -581,7 +591,6 @@ rules:
581591
- width
582592
- min-width
583593
- max-width
584-
585594
- height
586595
- min-height
587596
- max-height
@@ -601,7 +610,12 @@ rules:
601610
- float
602611
- clear
603612

604-
- resize
613+
- overflow
614+
- overflow-x
615+
- overflow-y
616+
617+
- clip
618+
- zoom
605619

606620
- columns
607621
- column-gap
@@ -611,23 +625,39 @@ rules:
611625
- column-count
612626
- column-width
613627

614-
- grid-gap
615-
- grid-template-columns
628+
- table-layout
629+
- empty-cells
630+
- caption-side
631+
- border-spacing
632+
- border-collapse
633+
- list-style
634+
- list-style-position
635+
- list-style-type
636+
- list-style-image
616637

617-
- animation
618-
- animation-name
619-
- animation-timing-function
638+
# Animation.
620639

621640
- transform
622-
- transform-box
623641
- transform-origin
624642
- transform-style
643+
- backface-visibility
644+
- perspective
645+
- perspective-origin
625646

626647
- transition
627-
- transition-delay
628-
- transition-duration
629648
- transition-property
649+
- transition-duration
630650
- transition-timing-function
651+
- transition-delay
652+
653+
- animation
654+
- animation-name
655+
- animation-duration
656+
- animation-play-state
657+
- animation-timing-function
658+
- animation-delay
659+
- animation-iteration-count
660+
- animation-direction
631661

632662
# Border.
633663

@@ -666,77 +696,91 @@ rules:
666696
- outline-style
667697
- outline-width
668698

699+
- stroke-width
700+
- stroke-linecap
701+
- stroke-dasharray
702+
- stroke-dashoffset
703+
- stroke
704+
669705
# Background.
670706

707+
- 'opacity'
708+
671709
- background
672-
- background-attachment
673-
- background-clip
674710
- background-color
675711
- background-image
676712
- background-repeat
677713
- background-position
678714
- background-size
679-
715+
- box-shadow
680716
- fill
681717

682-
- opacity
683-
684718
# Text.
685719

686720
- color
687721

688722
- font
689723
- font-family
690724
- font-size
691-
- font-smoothing
725+
- font-size-adjust
726+
- font-stretch
727+
- font-effect
692728
- font-style
693729
- font-variant
694730
- font-weight
695731

732+
- font-emphasize
733+
- font-emphasize-position
734+
- font-emphasize-style
735+
696736
- letter-spacing
697737
- line-height
698738
- list-style
739+
- word-spacing
699740

700741
- text-align
742+
- text-align-last
701743
- text-decoration
702744
- text-indent
745+
- text-justify
703746
- text-overflow
747+
- text-overflow-ellipsis
748+
- text-overflow-mode
704749
- text-rendering
750+
- text-outline
705751
- text-shadow
706752
- text-transform
707753
- text-wrap
754+
- word-wrap
755+
- word-break
756+
757+
- text-emphasis
758+
- text-emphasis-color
759+
- text-emphasis-style
760+
- text-emphasis-position
708761

762+
- vertical-align
709763
- white-space
710764
- word-spacing
765+
- hyphens
711766

712-
# Cursor.
713-
714-
- cursor
715-
- pointer-events
716-
- user-select
767+
- src
717768

718769
# Other.
719770

720-
- appearance
721-
- border-collapse
722-
- border-spacing
723-
- box-shadow
724-
- box-sizing
725-
- caption-side
726-
- content
771+
- tab-size
772+
- counter-reset
773+
- counter-increment
774+
- resize
727775
- cursor
728-
- empty-cells
729-
- overflow
730-
- overflow-x
731-
- overflow-y
732-
- quotes
776+
- pointer-events
733777
- speak
734-
- table-layout
735-
- vertical-align
736-
- visibility
737-
- will-change
738-
- z-index
739-
778+
- user-select
779+
- nav-index
780+
- nav-up
781+
- nav-right
782+
- nav-down
783+
- nav-left
740784

741785
# Additonal SCSS rules (stylelint-scss plugin).
742786

0 commit comments

Comments
 (0)