From 0eac8aa1c6392cd820fcb5a41421ad70fdb10aff Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 13 Dec 2017 11:19:52 +0800 Subject: [PATCH] Fix table title/footer/size style, close #8577 --- components/table/style/size.less | 37 +++++++++++++++++--------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/components/table/style/size.less b/components/table/style/size.less index d7ebf92d1c..47e5929693 100644 --- a/components/table/style/size.less +++ b/components/table/style/size.less @@ -1,27 +1,40 @@ .@{table-prefix-cls}-middle { + > .@{table-prefix-cls}-title, + > .@{table-prefix-cls}-footer { + padding: 12px 8px; + } > .@{table-prefix-cls}-content { > .@{table-prefix-cls}-header > table, - > .@{table-prefix-cls}-body > 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}-thead > tr > th, > .@{table-prefix-cls}-tbody > tr > td { padding: 12px 8px; } } } - - .@{table-prefix-cls}-title, - .@{table-prefix-cls}-footer { - padding: 12px 8px; - } } .@{table-prefix-cls}-small { border: @border-width-base @border-style-base @border-color-split; border-radius: @border-radius-base; + > .@{table-prefix-cls}-title, + > .@{table-prefix-cls}-footer { + padding: 8px; + } + + > .@{table-prefix-cls}-title { + border-bottom: @border-width-base @border-style-base @border-color-split; + top: 0; + } + > .@{table-prefix-cls}-content { > .@{table-prefix-cls}-header > table, - > .@{table-prefix-cls}-body > table { + > .@{table-prefix-cls}-body > table, + > .@{table-prefix-cls}-scroll > .@{table-prefix-cls}-header > table, + > .@{table-prefix-cls}-scroll > .@{table-prefix-cls}-body > table { border: 0; padding: 0 8px; > .@{table-prefix-cls}-thead > tr > th, @@ -34,16 +47,6 @@ } } - .@{table-prefix-cls}-title, - .@{table-prefix-cls}-footer { - padding: 8px; - } - - .@{table-prefix-cls}-title { - border-bottom: @border-width-base @border-style-base @border-color-split; - top: 0; - } - .@{table-prefix-cls}-header { background: @component-background; }