Skip to content

Commit

Permalink
Adjust stylelint
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypnosphi committed Dec 5, 2017
1 parent b0a9b97 commit 5829538
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 5 additions & 4 deletions components/table/table.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
padding-right: calc(unit * 4);
}

&:nth-child(1) {
&:first-child {
min-width: 297px;
}

&:nth-child(1):only-child {
&:first-child:only-child {
width: initial;
max-width: none;
}
Expand Down Expand Up @@ -172,6 +172,7 @@
border-top-style: none;
}

/* stylelint-disable-next-line selector-max-specificity */
&.rowSelected:not(.rowFocused) + .rowSelected:not(.rowFocused) .cell {
border-top-color: dirty-blue-color;
}
Expand Down Expand Up @@ -215,12 +216,12 @@
padding-right: calc(unit * 4);
}

&:nth-child(1) {
&:first-child {
min-width: 297px;
max-width: 617px;
}

&:nth-child(1):only-child {
&:first-child:only-child {
width: initial;
max-width: none;
}
Expand Down
4 changes: 3 additions & 1 deletion stylelint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module.exports = {
extends: '@jetbrains/stylelint-config',
rules: {
'selector-max-specificity': '0,3,0'
'selector-max-specificity': ['0,3,0', {
ignoreSelectors: [':global', ':local']
}]
}
};

0 comments on commit 5829538

Please sign in to comment.