ant-design/components/date-picker/style/RangePicker.less

133 lines
2.5 KiB
Plaintext
Raw Normal View History

@input-box-height: 34px;
.@{calendar-prefix-cls}-range-picker.ant-input {
padding-right: 26px;
}
2015-12-11 11:11:24 +08:00
.@{calendar-prefix-cls}-range-picker-input {
background-color: transparent;
border: 0;
height: 18px;
line-height: 18px;
outline: 0;
width: 43%;
2015-12-25 15:27:24 +08:00
text-align: center;
2015-12-11 11:11:24 +08:00
&[disabled] {
cursor: not-allowed;
}
}
2015-12-25 15:27:24 +08:00
.@{calendar-prefix-cls}-range-picker-separator {
color: #999;
}
2015-12-11 11:11:24 +08:00
.@{calendar-prefix-cls}-range {
2015-12-25 14:52:41 +08:00
width: 470px;
2015-12-11 11:11:24 +08:00
overflow: hidden;
&-part {
2015-12-25 15:27:24 +08:00
width: 50%;
2015-12-11 11:11:24 +08:00
}
&-left {
float: left;
}
&-right {
float: right;
}
&-middle {
position: absolute;
left: 50%;
width: 20px;
2015-12-25 15:27:24 +08:00
margin-left: -132px;
2015-12-11 11:11:24 +08:00
text-align: center;
height: @input-box-height;
line-height: @input-box-height;
2015-12-25 15:27:24 +08:00
color: #999;
2015-12-11 11:11:24 +08:00
}
&-right .@{calendar-prefix-cls}-date-input-wrap {
2015-12-25 15:27:24 +08:00
margin-left: -118px;
2015-12-11 11:11:24 +08:00
}
&.@{calendar-prefix-cls}-time &-middle {
2015-12-25 15:27:24 +08:00
margin-left: -29px;
2015-12-11 11:11:24 +08:00
}
&.@{calendar-prefix-cls}-time &-right .@{calendar-prefix-cls}-date-input-wrap {
2015-12-25 15:27:24 +08:00
margin-left: -15px;
2015-12-11 11:11:24 +08:00
}
.@{calendar-prefix-cls}-input-wrap {
height: @input-box-height;
}
.@{calendar-prefix-cls}-input {
2015-12-24 16:22:59 +08:00
border: 1px solid @border-color-base;
2016-03-02 15:10:13 +08:00
border-radius: @border-radius-sm;
2015-12-11 11:11:24 +08:00
}
.@{calendar-prefix-cls}-input,
.@{timepicker-prefix-cls}-input {
2016-03-02 15:10:13 +08:00
.input;
border-radius: @border-radius-sm;
2015-12-24 16:22:59 +08:00
height: @input-height-sm;
2015-12-25 01:50:29 +08:00
width: 96px;
2015-12-11 11:11:24 +08:00
}
.@{timepicker-prefix-cls}-icon {
2015-12-11 11:11:24 +08:00
display: none;
}
.@{calendar-prefix-cls}-calendar-body,
.@{calendar-prefix-cls}-decade-panel-body,
.@{calendar-prefix-cls}-year-panel-body,
.@{calendar-prefix-cls}-month-panel-body {
2015-12-27 14:29:05 +08:00
border-bottom: 1px solid @border-color-split;
2015-12-11 11:11:24 +08:00
}
&.@{calendar-prefix-cls}-week-number {
width: 574px;
.@{calendar-prefix-cls}-range-part {
width: 286px;
}
}
.@{calendar-prefix-cls}-year-panel,
.@{calendar-prefix-cls}-month-panel {
top: @input-box-height;
}
.@{calendar-prefix-cls}-month-panel .@{calendar-prefix-cls}-year-panel {
top: 0;
}
.@{calendar-prefix-cls}-decade-panel-table,
.@{calendar-prefix-cls}-year-panel-table,
.@{calendar-prefix-cls}-month-panel-table {
height: 208px;
}
.@{calendar-prefix-cls}-in-range-cell {
border-radius: 0;
2015-12-27 14:29:05 +08:00
> span {
background: tint(@primary-color, 90%);
width: 100%;
border-radius: 0;
border: 0;
}
2015-12-11 11:11:24 +08:00
}
&-bottom {
text-align: right;
}
.@{calendar-prefix-cls}-ok-btn {
position: static;
2016-03-02 15:10:13 +08:00
height: 22px;
margin: 8px;
2015-12-11 11:11:24 +08:00
}
.@{calendar-prefix-cls}-today-btn {
2016-03-02 15:10:13 +08:00
margin: 8px 12px;
height: 22px;
2015-12-11 11:11:24 +08:00
}
}