diff options
| author | XhmikosR <[email protected]> | 2017-10-04 14:11:00 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2017-10-07 00:11:40 +0300 |
| commit | ebc82db8efe129c4e91849373ed018d7e3f0194e (patch) | |
| tree | f00e65cacad505e641b7f87a8e476d83cd0c6d32 | |
| parent | 876733866911f4c6cfefeaf42aad5653105d7dce (diff) | |
| download | bootstrap-ebc82db8efe129c4e91849373ed018d7e3f0194e.tar.xz bootstrap-ebc82db8efe129c4e91849373ed018d7e3f0194e.zip | |
Enable stylelint's no-duplicate-selectors rule.
| -rw-r--r-- | assets/scss/_brand.scss | 2 | ||||
| -rw-r--r-- | assets/scss/_component-examples.scss | 2 | ||||
| -rw-r--r-- | assets/scss/_content.scss | 2 | ||||
| -rw-r--r-- | build/.stylelintrc | 2 | ||||
| -rw-r--r-- | scss/_card.scss | 27 | ||||
| -rw-r--r-- | scss/_tables.scss | 1 |
6 files changed, 18 insertions, 18 deletions
diff --git a/assets/scss/_brand.scss b/assets/scss/_brand.scss index 1fb2119a2..2d5c5a4cf 100644 --- a/assets/scss/_brand.scss +++ b/assets/scss/_brand.scss @@ -1,3 +1,5 @@ +// stylelint-disable no-duplicate-selectors + // // Brand guidelines // diff --git a/assets/scss/_component-examples.scss b/assets/scss/_component-examples.scss index 2a2c740b3..3d216991a 100644 --- a/assets/scss/_component-examples.scss +++ b/assets/scss/_component-examples.scss @@ -1,4 +1,4 @@ -// stylelint-disable selector-no-qualifying-type +// stylelint-disable no-duplicate-selectors, selector-no-qualifying-type // // Grid examples diff --git a/assets/scss/_content.scss b/assets/scss/_content.scss index b8311495c..112370a2d 100644 --- a/assets/scss/_content.scss +++ b/assets/scss/_content.scss @@ -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`. diff --git a/build/.stylelintrc b/build/.stylelintrc index 8fa310490..0027d7a08 100644 --- a/build/.stylelintrc +++ b/build/.stylelintrc @@ -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", diff --git a/scss/_card.scss b/scss/_card.scss index ad4221806..25c511a90 100644 --- a/scss/_card.scss +++ b/scss/_card.scss @@ -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 // diff --git a/scss/_tables.scss b/scss/_tables.scss index 32384391e..6bd0b91a4 100644 --- a/scss/_tables.scss +++ b/scss/_tables.scss @@ -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 { |
