50637863
梁灏
update DatePicker
|
1
|
@date-picker-prefix-cls: ~"@{css-prefix}date-picker";
|
c46f385a
梁灏
update DatePicker
|
2
|
@picker-prefix-cls: ~"@{css-prefix}picker";
|
50637863
梁灏
update DatePicker
|
3
4
5
6
7
|
.@{date-picker-prefix-cls} {
position: relative;
.@{select-dropdown-prefix-cls} {
width: auto;
|
c46f385a
梁灏
update DatePicker
|
8
|
padding: 0;
|
50637863
梁灏
update DatePicker
|
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
104
|
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;
}
}
}
}
}
|
c46f385a
梁灏
update DatePicker
|
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
|
&-cells-year,&-cells-month{
margin-top: 14px;
span{
width: 40px;
height: 28px;
line-height: 28px;
margin: 10px 12px;
border-radius: @btn-border-radius-small;
em{
width: 40px;
height: 28px;
line-height: 28px;
margin: 0;
}
}
}
&-header{
height: 32px;
line-height: 32px;
text-align: center;
border-bottom: 1px solid @border-color-split;
&-label{
cursor: pointer;
transition: color @transition-time @ease-in-out;
&:hover{
color: @primary-color;
}
}
}
&-prev-btn{
float: left;
&-arrow-double{
margin-left: 10px;
i:after{
content: "\F3D2";
}
}
}
&-next-btn{
float: right;
&-arrow-double{
margin-right: 10px;
i:after{
content: "\F3D3";
}
}
}
}
.@{picker-prefix-cls} {
&-panel{
&-icon-btn{
display: inline-block;
width: 20px;
height: 24px;
line-height: 26px;
margin-top: 4px;
text-align: center;
cursor: pointer;
color: @btn-disable-color;
transition: color @transition-time @ease-in-out;
&:hover{
color: @primary-color;
}
i{
font-size: 14px;
}
}
|
2533a192
梁灏
update DatePicker
|
175
176
177
178
179
180
181
182
183
184
185
|
&-body-wrapper&-with-sidebar{
padding-left: 92px;
}
&-sidebar{
width: 92px;
float: left;
margin-left: -92px;
position: absolute;
top: 0;
bottom: 0;
|
e55f00ff
梁灏
update DatePicker
|
186
187
|
background: @table-thead-bg;
border-right: 1px solid @border-color-split;
|
2533a192
梁灏
update DatePicker
|
188
|
border-radius: @border-radius-small 0 0 @border-radius-small;
|
e55f00ff
梁灏
update DatePicker
|
189
|
overflow: auto;
|
2533a192
梁灏
update DatePicker
|
190
191
|
}
&-shortcut{
|
e55f00ff
梁灏
update DatePicker
|
192
193
194
|
padding: @btn-padding-large;
transition: all @transition-time @ease-in-out;
cursor: pointer;
|
2533a192
梁灏
update DatePicker
|
195
|
|
e55f00ff
梁灏
update DatePicker
|
196
197
198
|
&:hover{
background: @border-color-split;
}
|
2533a192
梁灏
update DatePicker
|
199
200
201
202
|
}
&-body{
float: left;
}
|
c46f385a
梁灏
update DatePicker
|
203
|
}
|
50637863
梁灏
update DatePicker
|
204
|
}
|