Skip to content

Commit

Permalink
fix: fix table stripe style error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-ovo committed May 13, 2024
1 parent 32e1b6c commit 93db4ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"less.validate": false,
"scss.validate": false,
"editor.codeActionsOnSave": {
"source.fixAll.stylelint": true,
"source.fixAll.eslint": true
"source.fixAll.stylelint": "explicit",
"source.fixAll.eslint": "explicit"
},
"cSpell.words": [
"stylelint"
Expand Down
8 changes: 4 additions & 4 deletions style/web/components/table/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -291,27 +291,27 @@
}

&.@{prefix}-table--header-fixed {
> .@{prefix}-table__content > table > tbody tr:nth-of-type(even) {
> .@{prefix}-table__content > table > tbody tr.@{prefix}-table__row__even {
background-color: @table-highlight-bg-color;
}
}

&:not(.@{prefix}-table--header-fixed) {
> .@{prefix}-table__content > table > tbody > tr:nth-of-type(odd):not(.@{prefix}-table__expanded-row) {
> .@{prefix}-table__content > table > tbody > tr.@{prefix}-table__row__odd:not(.@{prefix}-table__expanded-row) {
background-color: @table-highlight-bg-color;
}
}

&.@{prefix}-table--hoverable {

&.@{prefix}-table__header--fixed {
tbody tr:nth-of-type(even):hover {
tbody tr.@{prefix}-table__row__even:hover {
background-color: @table-highlight-bg-color--hover;
}
}

&:not(.@{prefix}-table__header--fixed) {
> .@{prefix}-table__content > table > tbody tr:nth-of-type(odd):hover {
> .@{prefix}-table__content > table > tbody tr.@{prefix}-table__row__odd:hover {
background-color: @table-highlight-bg-color--hover;
}
}
Expand Down

0 comments on commit 93db4ce

Please sign in to comment.