Blame view

src/styles/components/date-picker.less 2.81 KB
50637863   梁灏   update DatePicker
1
2
3
4
5
6
7
8
9
10
11
12
13
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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
  @date-picker-prefix-cls: ~"@{css-prefix}date-picker";
  
  .@{date-picker-prefix-cls} {
      position: relative;
      .@{select-dropdown-prefix-cls} {
          width: auto;
          overflow: visible;
          max-height: none;
      }
      &-cells{
          width: 196px;
          margin: 10px;
          span{
              display: inline-block;
              width: 24px;
              height: 24px;
  
              em{
                  display: inline-block;
                  width: 24px;
                  height: 24px;
                  line-height: 24px;
                  margin: 2px;
                  font-style: normal;
                  border-radius: @btn-border-radius-small;
                  text-align: center;
                  transition: all @transition-time @ease-in-out;
              }
          }
          &-header span{
              line-height: 24px;
              text-align: center;
              margin: 2px;
              color: @btn-disable-color;
          }
          &-cell{
              span&{
                  width: 28px;
                  height: 28px;
                  cursor: pointer;
              }
              &:hover{
                  em{
                      background: @date-picker-cell-hover-bg;
                  }
              }
              &-prev-month,&-next-month{
                  em{
                      color: @btn-disable-color;
                  }
                  &:hover{
                      em{
                          background: transparent;
                      }
                  }
              }
              span&-disabled,span&-disabled:hover{
                  cursor: @cursor-disabled;
                  background: @btn-disable-bg;
                  color: @btn-disable-color;
                  em{
                      color: inherit;
                      background: inherit;
                  }
              }
              &-today{
                  em {
                      position: relative;
                      &:after{
                          content: '';
                          display: block;
                          width: 6px;
                          height: 6px;
                          border-radius: 50%;
                          background: @primary-color;
                          position: absolute;
                          top: 1px;
                          right: 1px;
                      }
                  }
              }
              &-selected,&-selected:hover {
                  em{
                      background: @primary-color;
                      color: #fff;
                  }
              }
              span&-disabled&-selected{
                  em {
                      background: @btn-disable-color;
                      color: @btn-disable-bg;
                  }
              }
              &-today&-selected{
                  em{
                      &:after{
                          background: #fff;
                      }
                  }
              }
          }
      }
  }