1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-09-23 19:08:25 +02: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",
"no-descending-specificity": null,
"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-descendant-combinator-no-non-space": null,
"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-no-vendor-prefix": true
"value-no-vendor-prefix": [true, {"ignoreValues": ["box"]}]
}
}

View File

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

View File

@ -69,7 +69,7 @@ body {
min-height: 100%;
// Hack: reset font-size to 10px, so the spacing for all inline elements is
// 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);
// [tablet portrait -]: Lock body to disable scroll bubbling

View File

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