From 6a86811e95fc5a1cbe9512b1948058e1e3ca4f87 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 17 Aug 2016 14:55:03 +0800 Subject: [PATCH] Fix table style, close #2723 --- components/table/style/index.less | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/table/style/index.less b/components/table/style/index.less index 384180b2f9..7085d39d9b 100644 --- a/components/table/style/index.less +++ b/components/table/style/index.less @@ -96,11 +96,11 @@ } } - tr.@{table-prefix-cls}-row-selected { + &-tbody > tr.@{table-prefix-cls}-row-selected { background: #fafafa; } - th.@{table-prefix-cls}-column-sort { + &-thead > tr > th.@{table-prefix-cls}-column-sort { background: #eaeaea; } @@ -110,8 +110,8 @@ word-break: break-all; } - th.@{table-prefix-cls}-selection-column, - td.@{table-prefix-cls}-selection-column { + &-thead > tr > th.@{table-prefix-cls}-selection-column, + &-tbody > tr > td.@{table-prefix-cls}-selection-column { text-align: center; width: 60px; } @@ -491,12 +491,12 @@ display: none; } - th&-column-has-prev { + &-thead > tr > th&-column-has-prev { position: relative; } - th&-column-has-prev, - td&-column-has-prev { + &-thead > tr > th&-column-has-prev, + &-tbody > tr > td&-column-has-prev { padding-left: 24px; }