Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance property-sort-order (other preset orders apart from alphabetical) #20

Closed
bgriffith opened this issue Aug 27, 2015 · 2 comments
Closed

Comments

@bgriffith
Copy link
Member

One for a rainy day.. It would be great if we could have a few preset orders to chose from (biased for Recess) when configuring the property-sort-order, similar to scss-lint (https://github.com/brigade/scss-lint/tree/master/data/property-sort-orders) and the config (https://github.com/brigade/scss-lint/blob/master/lib/scss_lint/linter/README.md#propertysortorder)

@bgriffith bgriffith changed the title Enhanced property-sort-order (other preset orders apart from alphabetical) Enhance property-sort-order (other preset orders apart from alphabetical) Aug 27, 2015
@Snugug
Copy link
Member

Snugug commented Aug 27, 2015

It's set up to allow for this, just haven't written any yet.

@minamarkham
Copy link

My config is setup in a custom order:

  property-sort-order:
    - 1
    - order:
      - position
      - top
      - right
      - bottom
      - left
      - z-index
      -
      - display
      - float
      - width
      - height
      - padding
      - border
      -
      - color
      - font-family
      - font-size
      - font-weight
      - letter-spacing
      - line-height
      - text-align
      - text-decoration
      - text-shadow
      - text-transform
      -
      - background-color
      - border-radius
      - box-shadow
      -
      - opacity
      - visibility

This seems to work, aside from the issue outlined in #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants