Merge pull request #17066 from ant-design/optimize-table-style

style: optimize bordered table header scrollbar style
This commit is contained in:
偏右 2019-06-12 19:56:12 +08:00 committed by GitHub
commit 1a34dcde8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -604,11 +604,6 @@
}
}
&-bordered&-fixed-header &-scroll &-header::-webkit-scrollbar {
border: 1px solid @border-color-split;
border-width: 1px 1px 0 0;
}
&-hide-scrollbar {
// https://github.com/ant-design/ant-design/issues/4637
// https://stackoverflow.com/a/54101063
@ -619,6 +614,17 @@
}
}
// optimize header style of borderd table after hide extra scrollbar
&-bordered&-fixed-header &-scroll &-header {
&::-webkit-scrollbar {
border: 1px solid @border-color-split;
border-width: 1px 1px 1px 0;
}
&.@{table-prefix-cls}-hide-scrollbar .@{table-prefix-cls}-thead > tr > th:last-child {
border-right-color: transparent;
}
}
&-fixed-left,
&-fixed-right {
position: absolute;