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; }