mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed deprecated stylelint rules
This commit is contained in:
parent
79515879d1
commit
929fc39dbe
41
.stylelintrc
41
.stylelintrc
@ -2,7 +2,8 @@
|
|||||||
"extends": [
|
"extends": [
|
||||||
"stylelint-config-recess-order",
|
"stylelint-config-recess-order",
|
||||||
"stylelint-config-recommended",
|
"stylelint-config-recommended",
|
||||||
"stylelint-config-standard-scss"
|
"stylelint-config-standard-scss",
|
||||||
|
"stylelint-stylistic/config"
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"stylelint-scss"
|
"stylelint-scss"
|
||||||
@ -32,16 +33,6 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"at-rule-no-unknown": null,
|
"at-rule-no-unknown": null,
|
||||||
"block-closing-brace-newline-after": [
|
|
||||||
"always",
|
|
||||||
{
|
|
||||||
"ignoreAtRules": [
|
|
||||||
"if",
|
|
||||||
"else",
|
|
||||||
"elseif"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"color-function-notation": null,
|
"color-function-notation": null,
|
||||||
"color-hex-length": "long",
|
"color-hex-length": "long",
|
||||||
"color-named": "never",
|
"color-named": "never",
|
||||||
@ -58,12 +49,12 @@
|
|||||||
"declaration-colon-space-after": null,
|
"declaration-colon-space-after": null,
|
||||||
"declaration-no-important": true,
|
"declaration-no-important": true,
|
||||||
"declaration-block-single-line-max-declarations": 0,
|
"declaration-block-single-line-max-declarations": 0,
|
||||||
|
"font-family-name-quotes": "always-where-recommended",
|
||||||
|
"font-weight-notation": "numeric",
|
||||||
"function-calc-no-unspaced-operator": null,
|
"function-calc-no-unspaced-operator": null,
|
||||||
"function-no-unknown": null,
|
"function-no-unknown": null,
|
||||||
"function-url-no-scheme-relative": true,
|
"function-url-no-scheme-relative": true,
|
||||||
"function-url-quotes": "always",
|
"function-url-quotes": "always",
|
||||||
"font-family-name-quotes": "always-where-recommended",
|
|
||||||
"font-weight-notation": "numeric",
|
|
||||||
"hue-degree-notation": "number",
|
"hue-degree-notation": "number",
|
||||||
"length-zero-no-unit": [
|
"length-zero-no-unit": [
|
||||||
true,
|
true,
|
||||||
@ -71,12 +62,10 @@
|
|||||||
"ignore": ["custom-properties"]
|
"ignore": ["custom-properties"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"linebreaks": "unix",
|
|
||||||
"media-feature-name-no-unknown": null,
|
"media-feature-name-no-unknown": null,
|
||||||
"media-feature-range-notation": null,
|
"media-feature-range-notation": null,
|
||||||
"media-query-no-invalid": null,
|
"media-query-no-invalid": null,
|
||||||
"no-descending-specificity": null,
|
"no-descending-specificity": null,
|
||||||
"no-empty-first-line": true,
|
|
||||||
"no-unknown-animations": true,
|
"no-unknown-animations": true,
|
||||||
"property-no-unknown": null,
|
"property-no-unknown": null,
|
||||||
"property-no-vendor-prefix": [
|
"property-no-vendor-prefix": [
|
||||||
@ -92,13 +81,10 @@
|
|||||||
"selector-combinator-space-before": null,
|
"selector-combinator-space-before": null,
|
||||||
"selector-descendant-combinator-no-non-space": null,
|
"selector-descendant-combinator-no-non-space": null,
|
||||||
"selector-id-pattern": null,
|
"selector-id-pattern": null,
|
||||||
"selector-max-empty-lines": 0,
|
|
||||||
"selector-max-id": 0,
|
"selector-max-id": 0,
|
||||||
"selector-no-qualifying-type": null,
|
"selector-no-qualifying-type": null,
|
||||||
"selector-pseudo-class-no-unknown": null,
|
"selector-pseudo-class-no-unknown": null,
|
||||||
"selector-pseudo-element-no-unknown": null,
|
"selector-pseudo-element-no-unknown": null,
|
||||||
"string-quotes": "double",
|
|
||||||
"unicode-bom": "never",
|
|
||||||
"unit-allowed-list": [
|
"unit-allowed-list": [
|
||||||
"%",
|
"%",
|
||||||
"ch",
|
"ch",
|
||||||
@ -160,6 +146,23 @@
|
|||||||
"scss/operator-no-unspaced": true,
|
"scss/operator-no-unspaced": true,
|
||||||
"scss/partial-no-import": true,
|
"scss/partial-no-import": true,
|
||||||
"scss/percent-placeholder-pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$",
|
"scss/percent-placeholder-pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$",
|
||||||
"scss/selector-no-redundant-nesting-selector": true
|
"scss/selector-no-redundant-nesting-selector": true,
|
||||||
|
"stylistic/block-closing-brace-newline-after": [
|
||||||
|
"always",
|
||||||
|
{
|
||||||
|
"ignoreAtRules": [
|
||||||
|
"if",
|
||||||
|
"else",
|
||||||
|
"elseif"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"stylistic/declaration-colon-space-after": null,
|
||||||
|
"stylistic/no-empty-first-line": true,
|
||||||
|
"stylistic/linebreaks": "unix",
|
||||||
|
"stylistic/selector-max-empty-lines": 0,
|
||||||
|
"stylistic/string-quotes": "double",
|
||||||
|
"stylistic/unicode-bom": "never",
|
||||||
|
"stylistic/value-list-comma-newline-after": null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
60
package-lock.json
generated
60
package-lock.json
generated
@ -62,6 +62,7 @@
|
|||||||
"stylelint-config-recommended": "^13.0.0",
|
"stylelint-config-recommended": "^13.0.0",
|
||||||
"stylelint-config-standard-scss": "^11.0.0",
|
"stylelint-config-standard-scss": "^11.0.0",
|
||||||
"stylelint-scss": "^5.2.1",
|
"stylelint-scss": "^5.2.1",
|
||||||
|
"stylelint-stylistic": "^0.4.3",
|
||||||
"svgo": "3.0.0",
|
"svgo": "3.0.0",
|
||||||
"tiny-glob": "^0.2.9",
|
"tiny-glob": "^0.2.9",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
@ -5140,6 +5141,15 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/is-plain-object": {
|
||||||
|
"version": "5.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz",
|
||||||
|
"integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.10.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/is-regex": {
|
"node_modules/is-regex": {
|
||||||
"version": "1.1.4",
|
"version": "1.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz",
|
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz",
|
||||||
@ -9335,6 +9345,22 @@
|
|||||||
"stylelint": "^14.5.1 || ^15.0.0"
|
"stylelint": "^14.5.1 || ^15.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/stylelint-stylistic": {
|
||||||
|
"version": "0.4.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/stylelint-stylistic/-/stylelint-stylistic-0.4.3.tgz",
|
||||||
|
"integrity": "sha512-WphmneK3MRrm5ixvRPWy7+c9+EQUh0FPvNMXW/N9VD85vyqtpxUejpD+mxubVVht0fRgidcqBxtW3s3tU2Ujhw==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"is-plain-object": "^5.0.0",
|
||||||
|
"postcss": "^8.4.21",
|
||||||
|
"postcss-media-query-parser": "^0.2.3",
|
||||||
|
"postcss-value-parser": "^4.2.0",
|
||||||
|
"style-search": "^0.1.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"stylelint": "^15.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/stylelint/node_modules/balanced-match": {
|
"node_modules/stylelint/node_modules/balanced-match": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-2.0.0.tgz",
|
||||||
@ -9354,15 +9380,6 @@
|
|||||||
"node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"
|
"node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/stylelint/node_modules/is-plain-object": {
|
|
||||||
"version": "5.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz",
|
|
||||||
"integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==",
|
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
|
||||||
"node": ">=0.10.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/stylelint/node_modules/mdn-data": {
|
"node_modules/stylelint/node_modules/mdn-data": {
|
||||||
"version": "2.0.30",
|
"version": "2.0.30",
|
||||||
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz",
|
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz",
|
||||||
@ -13965,6 +13982,12 @@
|
|||||||
"integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==",
|
"integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"is-plain-object": {
|
||||||
|
"version": "5.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz",
|
||||||
|
"integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"is-regex": {
|
"is-regex": {
|
||||||
"version": "1.1.4",
|
"version": "1.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz",
|
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz",
|
||||||
@ -16909,12 +16932,6 @@
|
|||||||
"source-map-js": "^1.0.1"
|
"source-map-js": "^1.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"is-plain-object": {
|
|
||||||
"version": "5.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz",
|
|
||||||
"integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"mdn-data": {
|
"mdn-data": {
|
||||||
"version": "2.0.30",
|
"version": "2.0.30",
|
||||||
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz",
|
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz",
|
||||||
@ -17021,6 +17038,19 @@
|
|||||||
"postcss-value-parser": "^4.2.0"
|
"postcss-value-parser": "^4.2.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"stylelint-stylistic": {
|
||||||
|
"version": "0.4.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/stylelint-stylistic/-/stylelint-stylistic-0.4.3.tgz",
|
||||||
|
"integrity": "sha512-WphmneK3MRrm5ixvRPWy7+c9+EQUh0FPvNMXW/N9VD85vyqtpxUejpD+mxubVVht0fRgidcqBxtW3s3tU2Ujhw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"is-plain-object": "^5.0.0",
|
||||||
|
"postcss": "^8.4.21",
|
||||||
|
"postcss-media-query-parser": "^0.2.3",
|
||||||
|
"postcss-value-parser": "^4.2.0",
|
||||||
|
"style-search": "^0.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"supports-color": {
|
"supports-color": {
|
||||||
"version": "7.2.0",
|
"version": "7.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
||||||
|
@ -92,6 +92,7 @@
|
|||||||
"stylelint-config-recommended": "^13.0.0",
|
"stylelint-config-recommended": "^13.0.0",
|
||||||
"stylelint-config-standard-scss": "^11.0.0",
|
"stylelint-config-standard-scss": "^11.0.0",
|
||||||
"stylelint-scss": "^5.2.1",
|
"stylelint-scss": "^5.2.1",
|
||||||
|
"stylelint-stylistic": "^0.4.3",
|
||||||
"svgo": "3.0.0",
|
"svgo": "3.0.0",
|
||||||
"tiny-glob": "^0.2.9",
|
"tiny-glob": "^0.2.9",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
|
@ -95,7 +95,7 @@
|
|||||||
|
|
||||||
// Badge
|
// Badge
|
||||||
.mdx-badge {
|
.mdx-badge {
|
||||||
font-size: .85em;
|
font-size: 0.85em;
|
||||||
|
|
||||||
// Badge with heart
|
// Badge with heart
|
||||||
&--heart {
|
&--heart {
|
||||||
@ -112,7 +112,7 @@
|
|||||||
// Badge moved to the right
|
// Badge moved to the right
|
||||||
&--right {
|
&--right {
|
||||||
float: right;
|
float: right;
|
||||||
margin-left: .35em;
|
margin-left: 0.35em;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Badge icon
|
// Badge icon
|
||||||
|
@ -370,7 +370,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Show buttons when search is active and input non-empty
|
// Show buttons when search is active and input non-empty
|
||||||
[data-md-toggle="search"]:checked ~ .md-header
|
[data-md-toggle="search"]:checked ~ .md-header // stylelint-disable-line
|
||||||
.md-search__input:valid ~ & {
|
.md-search__input:valid ~ & {
|
||||||
pointer-events: initial;
|
pointer-events: initial;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user