This repository has been archived by the owner. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjquery.ejDate.css
More file actions
184 lines (159 loc) · 3.39 KB
/
jquery.ejDate.css
File metadata and controls
184 lines (159 loc) · 3.39 KB
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
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
175
176
177
178
179
180
181
182
183
184
/*!
* ejDate 1.0.1 alpha
* https://github.com/stackjie/ejDate.js
* @license MIT licensed
*
* A project by StackJIE
*/
.ejdate-wrap {
display: inline-block;
position: relative;
}
.ejdate-main {
width: 280px;
padding: 5px;
margin-top: 6px;
border: 1px solid #d5d5d5;
border-radius: 5px;
font-size: 14px;
background: #fff;
box-shadow: 3px 3px 8px #d5d5d5;
position: absolute;
}
/* 指向表单的箭头样式 */
.ejdate-main:after, .ejdate-main:before {
content: "";
display: block;
width: 0;
height: 0;
border: 10px solid transparent;
border-bottom: 8px solid #fff;
position: absolute;
top: -18px;
left: 8px;
}
.ejdate-main:before {
border-bottom: 8px solid #c4c4c4;
margin-top: -1px;
}
.ejdate-main table {
text-align: center;
table-layout: fixed;
overflow: hidden;
}
.ejdate-main table caption {
margin: 10px 0 10px 0;
overflow: hidden;
}
.ejdate-main .btn-cut{
display: block;
width: 28px;
height: 28px;
border: 1px solid #c4c4c4;
border-radius: 50%;
position: relative;
cursor: pointer;
transition: box-shadow .2s;
}
/* 切换按钮hover样式 */
.ejdate-main .btn-cut:hover {
box-shadow: 3px 3px 8px #d5d5d5;
}
/* 日期向前按钮样式 */
.ejdate-main .before-date {
float: left;
margin-left: 10px;
}
/* 左箭头 */
.ejdate-main .before-date:after, .ejdate-main .before-date:before {
content: "";
display: block;
width: 0;
height: 0;
margin: -10px 0 0 -15px;
border: 10px solid transparent;
border-right: 10px solid #fff;
position: absolute;
top: 50%;
left: 50%;
}
.ejdate-main .before-date:before {
border-right: 10px solid #c4c4c4;
margin-left: -16px;
}
/* 日期向后按钮样式 */
.ejdate-main .after-date {
float: right;
margin-right: 10px;
}
/* 右箭头 */
.ejdate-main .after-date:after, .ejdate-main .after-date:before {
content: "";
display: block;
width: 0;
height: 0;
margin: -10px 0 0 -5px;
border: 10px solid transparent;
border-left: 10px solid #fff;
position: absolute;
top: 50%;
left: 50%;
}
.ejdate-main .after-date:before {
border-left: 10px solid #c4c4c4;
margin-left: -4px;
}
.ejdate-main select {
display: inline-block;
width: 70px;
height: 30px;
border: 1px solid #c4c4c4;
border-radius: 5px;
vertical-align:middle;
outline: none;
cursor: pointer;
}
.ejdate-main .select-year {
margin-right: 5px;
}
.ejdate-main table {
width: 100%;
}
.ejdate-main thead th {
display: inline-block;
height: 35px;
width: 35px;
line-height: 35px;
font-size: 12px;
font-weight: normal;
cursor: pointer;
}
.ejdate-main tbody td {
display: inline-block;
height: 35px;
width: 35px;
border-radius: 50%;
line-height: 35px;
font-size: 14px;
cursor: pointer;
}
/* 天数的几种样式区分 */
/* 表示这个月的天数正常样式 */
.ejdate-main .day-normal {
color: #808080;
transition: background .4s;
}
.ejdate-main .day-normal:hover {
background: #e74f4d;
color: #fff;
}
/* 区分上月以及下月日期的样式 */
.ejdate-main .day-dimmed {
color: #ccc;
}
/* 被选中 */
.ejdate-main .active {
border-radius: 50%;
background: #e74f4d;
color: #fff;
}