【发布时间】:2018-01-03 16:43:39
【问题描述】:
我知道答案应该很容易找到,但是我在stylelint's official website 中找到的唯一提及“订单”的是stylelint-order plugin,这看起来很有趣,但对于我的需求来说有点过分了(不打算暂时安装和配置它)。
Stylelint 建议(通过发送警告)块内属性的特定顺序,即这个块:
.my-class {
height: 100%;
position: absolute;
top: 0;
right: 0;
overflow-x: hidden;
background: #dadada;
}
将在所有内部行中发送带有property-sort-order 的警告。那么需要的顺序是什么?
【问题讨论】:
标签: css properties stylelint