Skip to content

Commit

Permalink
Enable stylelint's no-duplicate-selectors rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Oct 6, 2017
1 parent 8767338 commit ebc82db
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
2 changes: 2 additions & 0 deletions assets/scss/_brand.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// stylelint-disable no-duplicate-selectors

//
// Brand guidelines
//
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/_component-examples.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// stylelint-disable selector-no-qualifying-type
// stylelint-disable no-duplicate-selectors, selector-no-qualifying-type

//
// Grid examples
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/_content.scss
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion build/.stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
27 changes: 12 additions & 15 deletions scss/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
//
Expand Down
1 change: 1 addition & 0 deletions scss/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ebc82db

Please sign in to comment.