1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Enable stylelint's no-duplicate-selectors rule.

This commit is contained in:
XhmikosR 2017-10-04 14:11:00 +03:00
parent 8767338669
commit ebc82db8ef
6 changed files with 18 additions and 18 deletions

View file

@ -1,3 +1,5 @@
// stylelint-disable no-duplicate-selectors
//
// Brand guidelines
//

View file

@ -1,4 +1,4 @@
// stylelint-disable selector-no-qualifying-type
// stylelint-disable no-duplicate-selectors, selector-no-qualifying-type
//
// Grid examples

View file

@ -1,4 +1,4 @@
// stylelint-disable selector-max-combinators, selector-max-compound-selectors, selector-max-type, selector-no-qualifying-type
// stylelint-disable no-duplicate-selectors, selector-max-combinators, selector-max-compound-selectors, selector-max-type, selector-no-qualifying-type
//
// Automatically style Markdown-based tables like a Bootstrap `.table`.

View file

@ -32,7 +32,7 @@
"media-feature-range-operator-space-after": "always",
"media-feature-range-operator-space-before": "never",
"no-descending-specificity": null,
"no-duplicate-selectors": null,
"no-duplicate-selectors": true,
"number-leading-zero": "never",
"order/properties-order": [
"position",

View file

@ -17,6 +17,18 @@
margin-right: 0;
margin-left: 0;
}
> .list-group:first-child {
.list-group-item:first-child {
@include border-top-radius($card-border-radius);
}
}
> .list-group:last-child {
.list-group-item:last-child {
@include border-bottom-radius($card-border-radius);
}
}
}
.card-body {
@ -49,21 +61,6 @@
}
}
.card {
> .list-group:first-child {
.list-group-item:first-child {
@include border-top-radius($card-border-radius);
}
}
> .list-group:last-child {
.list-group-item:last-child {
@include border-bottom-radius($card-border-radius);
}
}
}
//
// Optional textual caps
//

View file

@ -103,6 +103,7 @@
//
// Same table markup, but inverted color scheme: dark background and light text.
// stylelint-disable-next-line no-duplicate-selectors
.table {
.thead-dark {
th {