-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatepicker.less
127 lines (127 loc) · 2.52 KB
/
datepicker.less
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
@theme-color:#ff8fb5;
@theme-text-color:#dc4651;
@default-color:#555;
@disable-color:#aaa;
.calendar{
font-family: arial, "宋体", sans-serif;
box-sizing: border-box;
border: solid 1px desaturate(@theme-color, 30%);
background-color: #fff;
width: 230px;
font-size: 14px;
color: @default-color;
&:before{
content: '';
display: block;
position: absolute;
border-top: none;
border-bottom: solid 8px desaturate(@theme-color, 30%);
border-left: solid 8px transparent;
border-right: solid 8px transparent;
z-index: 10;
left: 5px;
top: -8px;
}
&:after{
content: '';
display: block;
position: absolute;
border-top: none;
border-bottom: solid 8px #ff8fb5;
border-left: solid 8px transparent;
border-right: solid 8px transparent;
z-index: 100;
left: 5px;
top: -7px;
}
table{
width: 100%;
}
.cal-header{
text-align: center;
overflow: hidden;
height: 50px;
font-size: 20px;
background-color: @theme-color;
color: @theme-text-color;
.cal-prev,.cal-next{
display: block;
cursor: pointer;
font-weight: bold;
width: 45px;
line-height: 50px;
}
.cal-prev{
float: left;
}
.cal-next{
float: right;
}
.cal-date-text{
display: block;
cursor: pointer;
margin: 0 45px;
line-height: 50px;
}
}
.cal-header-day,.cal-header-weekend{
text-align: center;
background-color: #fff;
font-weight: bold;
height: 26px;
line-height: 26px;
}
.cal-day, .cal-month{
padding: 6px;
text-align: center;
background-color: #fff;
cursor: pointer;
border-radius: 5px;
&:hover,&.cal-selected{
background-color: @theme-color;
color: #fff;
&.cal-disabled{
color: @disable-color;
cursor: not-allowed;
background-color: #fff;
}
}
&.cal-today{
background-color: lighten(@theme-color, 5%);
color: #fff;
&.cal-selected{
background-color: @theme-color;
color: #fff;
}
}
&.cal-disabled{
&:hover{
color: @disable-color;
cursor: not-allowed;
}
&.cal-today{
color: @disable-color;
cursor: not-allowed;
}
color: @disable-color;
cursor: not-allowed;
}
}
.cal-hours{
text-align: center;
padding: 5px;
background-color: @theme-color;
color: @theme-text-color;
.underline-editor{
display: inline-block;
width: 30px;
text-align: center;
border-bottom: solid 1px @theme-text-color;
&:focus, &:active{
outline: none;
border: none;
border-bottom: solid 1px @theme-text-color;
}
}
}
}