diff --git a/lib/declaration-block.js b/lib/declaration-block.js index ac3b999..811dc30 100644 --- a/lib/declaration-block.js +++ b/lib/declaration-block.js @@ -12,6 +12,30 @@ module.exports = { 'background' ] }, + { + order: 'strict', + emptyLineBefore: 'always', + properties: [ + 'font', + 'font-family', + 'font-feature-settings', + 'font-kerning', + 'font-language-override', + 'font-size', + 'font-size-adjust', + 'font-stretch', + 'font-style', + 'font-synthesis', + 'font-variant', + 'font-variant-alternates', + 'font-variant-caps', + 'font-variant-east-asian', + 'font-variant-ligatures', + 'font-variant-numeric', + 'font-variant-position', + 'font-weight' + ] + }, { order: 'strict', emptyLineBefore: 'always', @@ -26,6 +50,7 @@ module.exports = { order: 'strict', emptyLineBefore: 'always', properties: [ + 'margin', 'margin-top', 'margin-right', 'margin-bottom', @@ -36,11 +61,24 @@ module.exports = { order: 'strict', emptyLineBefore: 'always', properties: [ + 'padding', 'padding-top', 'padding-right', 'padding-bottom', 'padding-left' ] + }, + { + order: 'strict', + emptyLineBefore: 'always', + properties: [ + 'width', + 'max-width', + 'min-width', + 'height', + 'max-height', + 'min-height' + ] } ], { diff --git a/test/sample.scss b/test/sample.scss index 338bf04..e8d0d5f 100644 --- a/test/sample.scss +++ b/test/sample.scss @@ -6,11 +6,12 @@ color: white; background: #ffa; + font-family: 'Times New Roman', 'Times', serif; + font-weight: bold; + top: calc(1rem + 2rem); bottom: 1rem; - font-family: 'Times New Roman', 'Times', serif; - font-weight: bold; line-height: 0.5; transform: translate(1, 1) scale(3);