Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add Stylelint configuration and cleanup (#16379)
* build: add initial Stylelint setup * fix: stylelint no-eol-whitespace * fix: stylelint no-empty-first-line * fix: stylelint max-empty-lines * fix: stylelint rule-empty-line-before * fix: stylelint block-closing-brace-empty-line-before * fix: stylelint block-closing-brace-newline-after * fix: stylelint block-opening-brace-newline-after * fix: stylelint block-opening-brace-space-before * fix: stylelint declaration-colon-newline-after * fix: stylelint declaration-colon-space-after * fix: stylelint declaration-empty-line-before * fix: stylelint length-zero-no-unit * fix: stylelint indentation of 4 * fix: stylelint media-feature-colon-space-after * fix: stylelint no-duplicate-at-import-rules * fix: stylelint scss/at-import-partial-extension * fix: stylelint scss/double-slash-comment-empty-line-before * fix: stylelint selector-attribute-quotes * fix: stylelint selector-combinator-space-after * fix: stylelint selector-combinator-space-before * fix: stylelint selector-descendant-combinator-no-non-space * fix: stylelint selector-list-comma-newline-after * fix: stylelint selector-pseudo-element-colon-notation * fix: stylelint string-quotes * fix: stylelint value-list-comma-newline-after * ci: add Stylelint hook for docs * docs: add direct Stylelint dep * docs: ignore re-copied SCSS files in _site * Update docs/src/assets/scss/print.scss Co-authored-by: Nick Schonning <nschonni@gmail.com> * Update docs/package.json Co-authored-by: Strek <ssharishkumar@gmail.com> * Update .github/workflows/ci.yml Co-authored-by: Nick Schonning <nschonni@gmail.com> * Add `lint:fix:scss` script * Update docs/src/assets/scss/syntax-highlighter.scss Co-authored-by: Strek <ssharishkumar@gmail.com> * Update docs/.stylelintrc.json Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com> Co-authored-by: Nicholas C. Zakas <nicholas@humanwhocodes.com> Co-authored-by: Strek <ssharishkumar@gmail.com> Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
- Loading branch information
1 parent
9b0a469
commit 8a15968
Showing
29 changed files
with
149 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"extends": ["stylelint-config-standard-scss"], | ||
"rules": { | ||
"alpha-value-notation": null, | ||
"at-rule-empty-line-before": null, | ||
"color-function-notation": null, | ||
"color-hex-case": null, | ||
"custom-property-empty-line-before": null, | ||
"custom-property-pattern": null, | ||
"declaration-block-no-duplicate-properties": null, | ||
"declaration-block-no-redundant-longhand-properties": null, | ||
"declaration-block-no-shorthand-property-overrides": null, | ||
"hue-degree-notation": null, | ||
"indentation": 4, | ||
"max-line-length": null, | ||
"no-descending-specificity": null, | ||
"no-duplicate-selectors": null, | ||
"number-leading-zero": null, | ||
"number-no-trailing-zeros": null, | ||
"property-no-unknown": null, | ||
"property-no-vendor-prefix": null, | ||
"selector-class-pattern": null, | ||
"value-keyword-case": null | ||
}, | ||
"ignoreFiles": [ | ||
"_site/**" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,7 +143,6 @@ | |
} | ||
|
||
#ham-top { | ||
|
||
transform: rotate(41deg); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,6 @@ | |
} | ||
|
||
.hero--homepage { | ||
|
||
.section-title { | ||
margin-bottom: 1.5rem; | ||
margin-block-end: 1.5rem; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,7 +79,6 @@ | |
} | ||
|
||
#ham-top { | ||
|
||
transform: rotate(41deg); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,8 +105,6 @@ | |
} | ||
} | ||
|
||
|
||
|
||
.c-toc__panel { | ||
&[data-open="false"] { | ||
display: none; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,5 +61,4 @@ | |
flex-direction: row; | ||
justify-content: space-between; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.