1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-30 18:24:35 +01:00

Fixed stylelint errors (#1913)

This commit is contained in:
Benjamin Staneck 2020-09-07 19:04:26 +02:00 committed by GitHub
parent 8571d022d9
commit f2de44f8d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 14 deletions

View File

@ -30,12 +30,12 @@
"function-url-quotes": "always", "function-url-quotes": "always",
"no-descending-specificity": null, "no-descending-specificity": null,
"no-unknown-animations": true, "no-unknown-animations": true,
"property-no-vendor-prefix": true, "property-no-vendor-prefix": [true, {"ignoreProperties": ["line-clamp", "box-orient"]}],
"selector-class-pattern": "^[a-z0-9]+(-[a-z0-9]+)*(__[a-z]+)?(--[a-z]+)?$", "selector-class-pattern": "^[a-z0-9]+(-[a-z0-9]+)*(__[a-z]+)?(--[a-z]+)?$",
"selector-descendant-combinator-no-non-space": null, "selector-descendant-combinator-no-non-space": null,
"string-quotes": "double", "string-quotes": "double",
"unit-whitelist": ["px", "em", "deg", "ms", "%", "mm", "vh", "vw", "dppx"], "unit-allowed-list": ["px", "em", "deg", "ms", "%", "mm", "vh", "vw", "dppx"],
"value-keyword-case": "lower", "value-keyword-case": "lower",
"value-no-vendor-prefix": true "value-no-vendor-prefix": [true, {"ignoreValues": ["box"]}]
} }
} }

View File

@ -26,9 +26,10 @@
// Rules // Rules
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// Enforce correct box model // Enforce correct box model and prevent adjustments of font size after orientation changes in IE and iOS
html { html {
box-sizing: border-box; box-sizing: border-box;
text-size-adjust: none;
} }
// All elements shall inherit the document default // All elements shall inherit the document default
@ -38,11 +39,6 @@ html {
box-sizing: inherit; box-sizing: inherit;
} }
// Prevent adjustments of font size after orientation changes in IE and iOS
html {
text-size-adjust: none;
}
// Remove margin in all browsers // Remove margin in all browsers
body { body {
margin: 0; margin: 0;

View File

@ -69,7 +69,7 @@ body {
min-height: 100%; min-height: 100%;
// Hack: reset font-size to 10px, so the spacing for all inline elements is // Hack: reset font-size to 10px, so the spacing for all inline elements is
// correct again. Otherwise the spacing would be based on 20px. // correct again. Otherwise the spacing would be based on 20px.
font-size: 0.5rem; // stylelint-disable-line unit-whitelist font-size: 0.5rem; // stylelint-disable-line unit-allowed-list
background-color: var(--md-default-bg-color); background-color: var(--md-default-bg-color);
// [tablet portrait -]: Lock body to disable scroll bubbling // [tablet portrait -]: Lock body to disable scroll bubbling

View File

@ -629,8 +629,6 @@ $md-toggle__search--checked:
line-height: 1.4; line-height: 1.4;
} }
// stylelint-disable value-no-vendor-prefix, property-no-vendor-prefix
// Teaser // Teaser
&__teaser { &__teaser {
display: -webkit-box; display: -webkit-box;
@ -657,8 +655,6 @@ $md-toggle__search--checked:
} }
} }
// stylelint-enable value-no-vendor-prefix, property-no-vendor-prefix
// Search term highlighting // Search term highlighting
em { em {
font-weight: 700; font-weight: 700;