mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Enable stylelint for _reboot.scss.
This commit is contained in:
parent
0af78ac630
commit
7e149e20a9
1 changed files with 13 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
// stylelint-disable
|
// stylelint-disable at-rule-no-vendor-prefix, declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix
|
||||||
|
|
||||||
// Reboot
|
// Reboot
|
||||||
//
|
//
|
||||||
|
@ -35,13 +35,17 @@ html {
|
||||||
|
|
||||||
// IE10+ doesn't honor `<meta name="viewport">` in some cases.
|
// IE10+ doesn't honor `<meta name="viewport">` in some cases.
|
||||||
@at-root {
|
@at-root {
|
||||||
@-ms-viewport { width: device-width; }
|
@-ms-viewport {
|
||||||
|
width: device-width;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// stylelint-disable selector-list-comma-newline-after
|
||||||
// Shim for "new" HTML5 structural elements to display correctly (IE10, older browsers)
|
// Shim for "new" HTML5 structural elements to display correctly (IE10, older browsers)
|
||||||
article, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section {
|
article, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
// stylelint-enable selector-list-comma-newline-after
|
||||||
|
|
||||||
// Body
|
// Body
|
||||||
//
|
//
|
||||||
|
@ -91,10 +95,12 @@ hr {
|
||||||
//
|
//
|
||||||
// By default, `<h1>`-`<h6>` all receive top and bottom margins. We nuke the top
|
// By default, `<h1>`-`<h6>` all receive top and bottom margins. We nuke the top
|
||||||
// margin for easier control within type scales as it avoids margin collapsing.
|
// margin for easier control within type scales as it avoids margin collapsing.
|
||||||
|
// stylelint-disable selector-list-comma-newline-after
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: $headings-margin-bottom;
|
margin-bottom: $headings-margin-bottom;
|
||||||
}
|
}
|
||||||
|
// stylelint-enable selector-list-comma-newline-after
|
||||||
|
|
||||||
// Reset margins on paragraphs
|
// Reset margins on paragraphs
|
||||||
//
|
//
|
||||||
|
@ -157,10 +163,12 @@ dfn {
|
||||||
font-style: italic; // Add the correct font style in Android 4.3-
|
font-style: italic; // Add the correct font style in Android 4.3-
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// stylelint-disable font-weight-notation
|
||||||
b,
|
b,
|
||||||
strong {
|
strong {
|
||||||
font-weight: bolder; // Add the correct font weight in Chrome, Edge, and Safari
|
font-weight: bolder; // Add the correct font weight in Chrome, Edge, and Safari
|
||||||
}
|
}
|
||||||
|
// stylelint-enable font-weight-notation
|
||||||
|
|
||||||
small {
|
small {
|
||||||
font-size: 80%; // Add the correct font size in all browsers
|
font-size: 80%; // Add the correct font size in all browsers
|
||||||
|
@ -224,6 +232,7 @@ a:not([href]):not([tabindex]) {
|
||||||
// Code
|
// Code
|
||||||
//
|
//
|
||||||
|
|
||||||
|
// stylelint-disable font-family-no-duplicate-names
|
||||||
pre,
|
pre,
|
||||||
code,
|
code,
|
||||||
kbd,
|
kbd,
|
||||||
|
@ -231,6 +240,7 @@ samp {
|
||||||
font-family: monospace, monospace; // Correct the inheritance and scaling of font size in all browsers.
|
font-family: monospace, monospace; // Correct the inheritance and scaling of font size in all browsers.
|
||||||
font-size: 1em; // Correct the odd `em` font sizing in all browsers.
|
font-size: 1em; // Correct the odd `em` font sizing in all browsers.
|
||||||
}
|
}
|
||||||
|
// stylelint-enable font-family-no-duplicate-names
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
// Remove browser default top margin
|
// Remove browser default top margin
|
||||||
|
@ -283,7 +293,7 @@ a,
|
||||||
area,
|
area,
|
||||||
button,
|
button,
|
||||||
[role="button"],
|
[role="button"],
|
||||||
input:not([type=range]),
|
input:not([type="range"]),
|
||||||
label,
|
label,
|
||||||
select,
|
select,
|
||||||
summary,
|
summary,
|
||||||
|
|
Loading…
Reference in a new issue