RangePicker.less 2.4 KB
Newer Older
A
afc163 已提交
1 2 3 4 5
@input-box-height: 34px;

.@{calendar-prefix-cls}-range-picker.ant-input {
  padding-right: 26px;
}
B
Benjy Cui 已提交
6 7 8 9 10 11

.@{calendar-prefix-cls}-range-picker-input {
  background-color: transparent;
  border: 0;
  height: 18px;
  line-height: 18px;
A
afc163 已提交
12 13
  outline: 0;
  width: 43%;
B
Benjy Cui 已提交
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40

  &[disabled] {
    cursor: not-allowed;
  }
}

.@{calendar-prefix-cls}-range {
  width: 502px;
  overflow: hidden;

  &-part {
    width: 250px;
    position: relative;
  }

  &-left {
    float: left;
  }

  &-right {
    float: right;
  }

  &-middle {
    position: absolute;
    left: 50%;
    width: 20px;
A
afc163 已提交
41
    margin-left: -147px;
B
Benjy Cui 已提交
42 43 44 45 46
    text-align: center;
    height: @input-box-height;
    line-height: @input-box-height;
  }

A
afc163 已提交
47 48
  &-right .@{calendar-prefix-cls}-date-input-wrap {
    margin-left: -133px;
B
Benjy Cui 已提交
49 50
  }

A
afc163 已提交
51 52
  &.@{calendar-prefix-cls}-time &-middle {
    margin-left: -45px;
B
Benjy Cui 已提交
53
  }
A
afc163 已提交
54 55 56 57 58 59 60

  &.@{calendar-prefix-cls}-time &-right .@{calendar-prefix-cls}-date-input-wrap {
    margin-left: -30px;
  }

  &.@{calendar-prefix-cls}-time &-right .@{calendar-prefix-cls}-time-picker-wrap {
    left: 78px;
B
Benjy Cui 已提交
61 62 63 64 65 66
  }

  .@{calendar-prefix-cls}-input-wrap {
    height: @input-box-height;
  }
  .@{calendar-prefix-cls}-input {
B
Benjy Cui 已提交
67 68
    border: 1px solid @border-color-base;
    border-radius: @border-radius-base;
B
Benjy Cui 已提交
69 70
  }
  .@{calendar-prefix-cls}-input,
B
Benjy Cui 已提交
71
  .@{css-prefix}time-picker-input {
B
Benjy Cui 已提交
72
    padding: 1px 7px;
B
Benjy Cui 已提交
73
    height: @input-height-sm;
B
Benjy Cui 已提交
74
  }
B
Benjy Cui 已提交
75
  .@{css-prefix}time-picker-icon {
B
Benjy Cui 已提交
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
    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 {
    border-bottom: 1px solid #e9e9e9;
  }

  &.@{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 {
B
Benjy Cui 已提交
108
    background: tint(@primary-color, 90%);
B
Benjy Cui 已提交
109 110 111 112 113 114 115 116
    border-radius: 0;
  }

  &-bottom {
    text-align: right;
  }
  .@{calendar-prefix-cls}-ok-btn {
    position: static;
B
Benjy Cui 已提交
117
    margin: 7px 9px 9px;
B
Benjy Cui 已提交
118 119
  }
  .@{calendar-prefix-cls}-today-btn {
B
Benjy Cui 已提交
120
    margin: 9px;
B
Benjy Cui 已提交
121 122
  }
}