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:
parent
8571d022d9
commit
f2de44f8d2
@ -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"]}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user