From 2944236cf6624a19ef697e4983cbaddb7d03b7e8 Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Thu, 24 Dec 2015 16:22:59 +0800 Subject: [PATCH] style: replace hard code with variable --- package.json | 2 +- style/components/datepicker/RangePicker.less | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index d05858db2..8db1ef445 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "gregorian-calendar-format": "~4.0.4", "object-assign": "~4.0.1", "rc-animate": "~2.0.2", - "rc-calendar": "~5.0.1", + "rc-calendar": "~5.0.2", "rc-checkbox": "~1.1.1", "rc-collapse": "~1.4.4", "rc-dialog": "~5.2.2", diff --git a/style/components/datepicker/RangePicker.less b/style/components/datepicker/RangePicker.less index 85bb38e47..8dbf35483 100644 --- a/style/components/datepicker/RangePicker.less +++ b/style/components/datepicker/RangePicker.less @@ -48,7 +48,7 @@ position: absolute; left: 50%; } - .ant-time-picker-input { + .@{css-prefix}time-picker-input { width: 100%; } @@ -56,15 +56,15 @@ height: @input-box-height; } .@{calendar-prefix-cls}-input { - border: 1px solid #d9d9d9; - border-radius: 6px; + border: 1px solid @border-color-base; + border-radius: @border-radius-base; } .@{calendar-prefix-cls}-input, - .ant-time-picker-input { + .@{css-prefix}time-picker-input { padding: 1px 7px; - height: 22px; + height: @input-height-sm; } - .ant-time-picker-icon { + .@{css-prefix}time-picker-icon { display: none; } @@ -97,7 +97,7 @@ } .@{calendar-prefix-cls}-in-range-cell { - background: #ebf4f8; + background: tint(@primary-color, 90%); border-radius: 0; } @@ -106,9 +106,9 @@ } .@{calendar-prefix-cls}-ok-btn { position: static; - margin: 9px; + margin: 7px 9px 9px; } .@{calendar-prefix-cls}-today-btn { - margin: 12px 9px 0; + margin: 9px; } }