Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Nov 4, 2020
1 parent cb4d98d commit 059758d
Show file tree
Hide file tree
Showing 7 changed files with 194 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
.gitignore export-ignore
.stylelintignore export-ignore
.stylelintrc.json export-ignore
.stylelintrc-css.json export-ignore
.wp-env.json export-ignore
composer.json export-ignore
composer.lock export-ignore
Expand Down
1 change: 0 additions & 1 deletion .stylelintignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ assets/images
LICENSE
composer.lock
*.txt
*.css
22 changes: 22 additions & 0 deletions .stylelintrc-css.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"extends": [
"stylelint-config-wordpress"
],
"rules": {
"indentation": "tab",
"no-duplicate-selectors": null,
"function-url-quotes": null,
"selector-attribute-quotes": null,
"declaration-block-no-duplicate-properties": null,
"function-calc-no-unspaced-operator": null,
"selector-pseudo-class-no-unknown": null,
"selector-class-pattern": null,
"font-weight-notation": null,
"selector-type-no-unknown": null,
"max-line-length": null,
"at-rule-empty-line-before": null,
"selector-pseudo-element-colon-notation": null,
"number-leading-zero": null,
"no-descending-specificity": null
}
}
4 changes: 1 addition & 3 deletions assets/sass/04-elements/forms-editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ select {
-webkit-appearance: none;
appearance: none;
padding: var(--form--spacing-unit) calc(3 * var(--form--spacing-unit)) var(--form--spacing-unit) var(--form--spacing-unit);
/* stylelint-disable */
background: var(--global--color-white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%2328303d'><polygon points='0,0 10,0 5,5'/></svg>") no-repeat;
/* stylelint-enable */
background: var(--global--color-white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%2328303d'><polygon points='0,0 10,0 5,5'/></svg>") no-repeat; // stylelint-disable-line function-url-quotes
background-position: right var(--form--spacing-unit) top 60%;
}
8 changes: 2 additions & 6 deletions assets/sass/04-elements/forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ select {
appearance: none;
line-height: var(--global--line-height-body);
padding: var(--form--spacing-unit) calc(3 * var(--form--spacing-unit)) var(--form--spacing-unit) var(--form--spacing-unit);
/* stylelint-disable */
background: var(--global--color-white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%2328303d'><polygon points='0,0 10,0 5,5'/></svg>") no-repeat;
/* stylelint-enable */
background: var(--global--color-white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%2328303d'><polygon points='0,0 10,0 5,5'/></svg>") no-repeat; // stylelint-disable-line function-url-quotes
background-position: right var(--form--spacing-unit) top 60%;

&:focus {
Expand All @@ -80,9 +78,7 @@ select {
}

.has-background-dark & {
/* stylelint-disable */
background: var(--global--color-white-90) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%2328303d'><polygon points='0,0 10,0 5,5'/></svg>") no-repeat;
/* stylelint-enable */
background: var(--global--color-white-90) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%2328303d'><polygon points='0,0 10,0 5,5'/></svg>") no-repeat; // stylelint-disable-line function-url-quotes
background-position: right var(--form--spacing-unit) top 60%;
}
}
Expand Down
183 changes: 166 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"chokidar-cli": "^2.1.0",
"eslint": "^7.11.0",
"minimist": "^1.2.2",
"sass": "^1.28.0",
"npm-run-all": "^4.1.5",
"postcss-calc": "^7.0.5",
"postcss-cli": "^7.1.0",
Expand All @@ -29,6 +28,7 @@
"postcss-focus-within": "^3.0.0",
"postcss-nested": "^4.2.1",
"rtlcss": "^2.6.1",
"sass": "^1.28.0",
"stylelint": "^13.7.2",
"stylelint-config-recommended-scss": "^4.2.0",
"stylelint-config-wordpress": "^17.0.0"
Expand Down Expand Up @@ -58,6 +58,7 @@
"build:print": "sass assets/sass/07-utilities/print.scss:assets/css/print.css --style=expanded --source-map",
"build:ie": "postcss style.css -o assets/css/ie.css",
"build:ie-editor": "postcss assets/css/style-editor.css -o assets/css/ie-editor.css",
"build:stylelint": "stylelint **/*.css --fix --config .stylelintrc-css.json",
"build": "run-s \"build:*\"",
"watch": "chokidar \"**/*.scss\" -c \"npm run build\" --initial",
"lint:scss": "stylelint **/*.scss",
Expand Down

0 comments on commit 059758d

Please sign in to comment.