feat(table): use more flexible selector for `thead` and `tbody`

This commit is contained in:
郭桓桓 2023-03-07 22:18:31 +08:00
parent 0f50a7c98d
commit b43013e33e
Signed by: kuohuanhuan
GPG Key ID: FD846A0A797B0D75
1 changed files with 2 additions and 2 deletions

View File

@ -8,10 +8,10 @@ table {
padding: 6px 13px; padding: 6px 13px;
border: 1.5px solid var(--xm-c-border-rev); border: 1.5px solid var(--xm-c-border-rev);
} }
thead > tr > th { thead th {
font-weight: 700; font-weight: 700;
} }
tbody > tr { tbody tr {
&:hover { &:hover {
background-color: var(--xm-c-shallowest); background-color: var(--xm-c-shallowest);
} }