ant-design/components/table/style/size.less

165 lines
5.5 KiB
Plaintext
Raw Normal View History

2018-11-08 14:34:43 +08:00
@table-padding-vertical-md: @table-padding-vertical * 3 / 4;
@table-padding-horizontal-md: @table-padding-horizontal / 2;
@table-padding-vertical-sm: @table-padding-vertical / 2;
@table-padding-horizontal-sm: @table-padding-horizontal / 2;
.@{table-prefix-cls}-middle {
> .@{table-prefix-cls}-title,
> .@{table-prefix-cls}-footer {
2018-11-08 14:34:43 +08:00
padding: @table-padding-vertical-md @table-padding-horizontal-md;
}
> .@{table-prefix-cls}-content {
> .@{table-prefix-cls}-header > table,
> .@{table-prefix-cls}-body > table,
> .@{table-prefix-cls}-scroll > .@{table-prefix-cls}-header > table,
> .@{table-prefix-cls}-scroll > .@{table-prefix-cls}-body > table,
> .@{table-prefix-cls}-fixed-left > .@{table-prefix-cls}-header > table,
> .@{table-prefix-cls}-fixed-right > .@{table-prefix-cls}-header > table,
2018-12-07 16:17:45 +08:00
> .@{table-prefix-cls}-fixed-left
> .@{table-prefix-cls}-body-outer
> .@{table-prefix-cls}-body-inner
> table,
> .@{table-prefix-cls}-fixed-right
> .@{table-prefix-cls}-body-outer
> .@{table-prefix-cls}-body-inner
> table {
> .@{table-prefix-cls}-thead > tr > th,
> .@{table-prefix-cls}-tbody > tr > td {
2018-11-08 14:34:43 +08:00
padding: @table-padding-vertical-md @table-padding-horizontal-md;
}
}
}
tr.@{table-prefix-cls}-expanded-row td > .@{table-prefix-cls}-wrapper {
2019-04-11 01:22:35 +08:00
margin: -@table-padding-vertical-md -@table-padding-horizontal / 2 -@table-padding-vertical-md -
1px;
}
}
.@{table-prefix-cls}-small {
border: @border-width-base @border-style-base @border-color-split;
border-radius: @table-border-radius-base;
> .@{table-prefix-cls}-title,
> .@{table-prefix-cls}-footer {
2018-11-08 14:34:43 +08:00
padding: @table-padding-vertical-sm @table-padding-horizontal-sm;
}
> .@{table-prefix-cls}-title {
top: 0;
border-bottom: @border-width-base @border-style-base @border-color-split;
}
> .@{table-prefix-cls}-content {
2018-09-17 14:36:26 +08:00
> .@{table-prefix-cls}-body {
2018-11-08 14:34:43 +08:00
margin: 0 @table-padding-horizontal-sm;
2018-09-17 14:36:26 +08:00
}
> .@{table-prefix-cls}-header > table,
> .@{table-prefix-cls}-body > table,
> .@{table-prefix-cls}-scroll > .@{table-prefix-cls}-header > table,
> .@{table-prefix-cls}-scroll > .@{table-prefix-cls}-body > table,
> .@{table-prefix-cls}-fixed-left > .@{table-prefix-cls}-header > table,
> .@{table-prefix-cls}-fixed-right > .@{table-prefix-cls}-header > table,
2018-12-07 16:17:45 +08:00
> .@{table-prefix-cls}-fixed-left
> .@{table-prefix-cls}-body-outer
> .@{table-prefix-cls}-body-inner
> table,
> .@{table-prefix-cls}-fixed-right
> .@{table-prefix-cls}-body-outer
> .@{table-prefix-cls}-body-inner
> table {
border: 0;
> .@{table-prefix-cls}-thead > tr > th,
> .@{table-prefix-cls}-tbody > tr > td {
2018-11-08 14:34:43 +08:00
padding: @table-padding-vertical-sm @table-padding-horizontal-sm;
}
> .@{table-prefix-cls}-thead > tr > th {
background-color: transparent;
}
> .@{table-prefix-cls}-thead > tr {
border-bottom: @border-width-base @border-style-base @border-color-split;
}
> .@{table-prefix-cls}-thead > tr > th.@{table-prefix-cls}-column-sort {
background-color: @table-body-sort-bg;
}
}
> .@{table-prefix-cls}-scroll > .@{table-prefix-cls}-header > table,
> .@{table-prefix-cls}-scroll > .@{table-prefix-cls}-body > table,
> .@{table-prefix-cls}-fixed-left > .@{table-prefix-cls}-header > table,
> .@{table-prefix-cls}-fixed-right > .@{table-prefix-cls}-header > table,
2018-12-07 16:17:45 +08:00
> .@{table-prefix-cls}-fixed-left
> .@{table-prefix-cls}-body-outer
> .@{table-prefix-cls}-body-inner
> table,
> .@{table-prefix-cls}-fixed-right
> .@{table-prefix-cls}-body-outer
> .@{table-prefix-cls}-body-inner
> table {
padding: 0;
}
.@{table-prefix-cls}-header {
background-color: @component-background;
border-radius: @border-radius-base @border-radius-base 0 0;
}
.@{table-prefix-cls}-placeholder,
.@{table-prefix-cls}-row:last-child td {
border-bottom: 0;
}
}
&.@{table-prefix-cls}-bordered {
border-right: 0;
.@{table-prefix-cls}-title {
border: 0;
border-right: @border-width-base @border-style-base @border-color-split;
border-bottom: @border-width-base @border-style-base @border-color-split;
}
.@{table-prefix-cls}-content {
border-right: @border-width-base @border-style-base @border-color-split;
}
.@{table-prefix-cls}-footer {
border: 0;
border-top: @border-width-base @border-style-base @border-color-split;
border-right: @border-width-base @border-style-base @border-color-split;
&::before {
display: none;
}
}
.@{table-prefix-cls}-placeholder {
border-right: 0;
border-bottom: 0;
border-left: 0;
}
.@{table-prefix-cls}-thead > tr:only-child > th:last-child,
.@{table-prefix-cls}-tbody > tr > td:last-child {
border-right: none;
}
.@{table-prefix-cls}-fixed-left {
.@{table-prefix-cls}-thead > tr > th:last-child,
.@{table-prefix-cls}-tbody > tr > td:last-child {
border-right: @border-width-base @border-style-base @border-color-split;
}
}
.@{table-prefix-cls}-fixed-right {
border-right: @border-width-base @border-style-base @border-color-split;
border-left: @border-width-base @border-style-base @border-color-split;
}
}
tr.@{table-prefix-cls}-expanded-row td > .@{table-prefix-cls}-wrapper {
2019-04-11 01:22:35 +08:00
margin: -@table-padding-vertical-sm -@table-padding-horizontal / 2 -@table-padding-vertical-sm -
1px;
}
}