-
No. Form (Middle size table)
+
Middle size table
Small size table
diff --git a/components/table/style/index.less b/components/table/style/index.less
index 8af0d1b897..9cb42ace25 100644
--- a/components/table/style/index.less
+++ b/components/table/style/index.less
@@ -68,10 +68,17 @@
&-footer {
padding: 16px 8px;
background: @table-head-background-color;
- position: relative;
- z-index: 2;
- top: -1px;
border-radius: 0 0 @border-radius-base @border-radius-base;
+ position: relative;
+ &:before {
+ content: '';
+ height: 1px;
+ background: @table-head-background-color;
+ position: absolute;
+ top: -1px;
+ width: 100%;
+ left: 0;
+ }
}
&.@{table-prefix-cls}-bordered &-footer {
@@ -157,6 +164,11 @@
.@{table-prefix-cls}-tbody > tr > td {
padding: 10px 8px;
}
+
+ .@{table-prefix-cls}-title,
+ .@{table-prefix-cls}-footer {
+ padding: 10px 8px;
+ }
}
&-small {
@@ -170,7 +182,6 @@
}
.@{table-prefix-cls}-thead > tr > th {
- padding: 10px 8px;
background: #fff;
border-bottom: 1px solid @border-color-split;
}
@@ -179,6 +190,17 @@
padding: 6px 8px;
}
+ .@{table-prefix-cls}-title,
+ .@{table-prefix-cls}-footer,
+ .@{table-prefix-cls}-thead > tr > th {
+ padding: 10px 8px;
+ }
+
+ .@{table-prefix-cls}-title {
+ border-bottom: 1px solid @border-color-split;
+ top: 0;
+ }
+
.@{table-prefix-cls}-header {
background: #fff;
table {
@@ -192,11 +214,6 @@
.@{table-prefix-cls}-row:last-child td {
border-bottom: 0;
}
-
- .@{table-prefix-cls}-title,
- .@{table-prefix-cls}-footer {
- top: 0;
- }
}
&-column-sorter {
@@ -279,11 +296,14 @@
}
&.@{table-prefix-cls}-small {
+ border-right: 0;
+
.@{table-prefix-cls}-header > table,
.@{table-prefix-cls}-body > table,
.@{table-prefix-cls}-fixed-left table,
.@{table-prefix-cls}-fixed-right table {
border: 0;
+ padding: 0;
}
.@{table-prefix-cls}-title {
diff --git a/site/theme/static/demo.less b/site/theme/static/demo.less
index 4b3601965f..00a6cf638f 100644
--- a/site/theme/static/demo.less
+++ b/site/theme/static/demo.less
@@ -43,6 +43,9 @@
.code-box:target {
border: 1px solid rgba(45, 183, 245, 0.7);
box-shadow: 0 0 4px rgba(45, 183, 245, 0.5);
+ z-index: 10;
+ background: #fff;
+ position: relative;
}
.code-box {