mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 09:26:06 +08:00
fix: Table nest style (#22643)
This commit is contained in:
parent
9316f180ca
commit
0fa8e4cfab
@ -33,8 +33,8 @@
|
||||
}
|
||||
|
||||
// ============================= Cell =============================
|
||||
thead > tr > th,
|
||||
tbody > tr > td,
|
||||
&-thead > tr > th,
|
||||
&-tbody > tr > td,
|
||||
tfoot > tr > th,
|
||||
tfoot > tr > td {
|
||||
position: relative;
|
||||
@ -74,7 +74,7 @@
|
||||
}
|
||||
|
||||
// ============================ Header ============================
|
||||
thead {
|
||||
&-thead {
|
||||
> tr {
|
||||
> th {
|
||||
color: @table-header-color;
|
||||
@ -98,7 +98,7 @@
|
||||
}
|
||||
|
||||
// ============================= Body =============================
|
||||
tbody {
|
||||
&-tbody {
|
||||
> tr {
|
||||
> td {
|
||||
border-bottom: @border-width-base @border-style-base @border-color-split;
|
||||
@ -132,7 +132,7 @@
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
tbody > tr:last-child > td {
|
||||
&-tbody > tr:last-child > td {
|
||||
border-bottom: 0;
|
||||
|
||||
&:first-child,
|
||||
@ -165,7 +165,7 @@
|
||||
// ================================================================
|
||||
|
||||
// ============================ Sorter ============================
|
||||
thead th.@{table-prefix-cls}-column-has-sorters {
|
||||
&-thead th.@{table-prefix-cls}-column-has-sorters {
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
|
||||
@ -178,7 +178,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
thead th.@{table-prefix-cls}-column-sort {
|
||||
&-thead th.@{table-prefix-cls}-column-sort {
|
||||
background: @table-header-sort-bg;
|
||||
}
|
||||
td&-column-sort {
|
||||
@ -247,7 +247,7 @@
|
||||
|
||||
&-open,
|
||||
&:hover,
|
||||
thead th.@{table-prefix-cls}-column-has-sorters:hover &:hover {
|
||||
.@{table-prefix-cls}-thead th.@{table-prefix-cls}-column-has-sorters:hover &:hover {
|
||||
background: @table-header-filter-active-bg;
|
||||
}
|
||||
}
|
||||
@ -461,7 +461,7 @@
|
||||
}
|
||||
|
||||
// ========================= Placeholder ==========================
|
||||
tbody > tr&-placeholder {
|
||||
&-tbody > tr&-placeholder {
|
||||
text-align: center;
|
||||
&:hover {
|
||||
> td {
|
||||
|
@ -18,7 +18,7 @@
|
||||
}
|
||||
|
||||
// ============================ Header ============================
|
||||
thead {
|
||||
&-thead {
|
||||
> tr {
|
||||
> th {
|
||||
&[colspan]:not([colspan='1']) {
|
||||
@ -35,7 +35,7 @@
|
||||
}
|
||||
|
||||
// ============================= Body =============================
|
||||
tbody {
|
||||
&-tbody {
|
||||
> tr {
|
||||
// ========================= Nest Table ===========================
|
||||
.@{table-prefix-cls} {
|
||||
|
@ -9,8 +9,8 @@
|
||||
.@{table-prefix-cls}.@{table-prefix-cls}-@{size} {
|
||||
.@{table-prefix-cls}-title,
|
||||
.@{table-prefix-cls}-footer,
|
||||
thead > tr > th,
|
||||
tbody > tr > td {
|
||||
.@{table-prefix-cls}-thead > tr > th,
|
||||
.@{table-prefix-cls}-tbody > tr > td {
|
||||
padding: @padding-vertical @padding-horizontal;
|
||||
}
|
||||
|
||||
@ -35,7 +35,7 @@
|
||||
.table-size(~'small', @table-padding-vertical-sm, @table-padding-horizontal-sm);
|
||||
|
||||
.@{table-prefix-cls}.@{table-prefix-cls}-small {
|
||||
thead > tr > th {
|
||||
.@{table-prefix-cls}-thead > tr > th {
|
||||
background-color: @table-header-bg-sm;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user