Skip to content

Order of Display property in CSS Linter #93

@eldelentes

Description

@eldelentes

One of the reasons for the new properties sorting in our stylesheets it's to have a better semantics of the code.

Although with the SMACSS sorting we have a better ordering I think that the displayproperty might place it before the position property because if not the outcome it's a little weird having in mind the closeness of the display: flex property and align-items property for example.

So instead of having:

...
"display",
"visibility",
"position",
"z-index",
 "top",
"right",
"bottom",
 "left",
"box-sizing",
"grid",
"grid-after",
 "grid-area",
...

I propose this:

...
"visibility",
"position",
"z-index",
 "top",
"right",
"bottom",
 "left",
"box-sizing",
"display",
"grid",
"grid-after",
 "grid-area",
...

Let me know what you thing about this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions