forked from yodasw16/date-picker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
199 lines (167 loc) · 3.76 KB
/
main.css
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
@font-face {
font-family: 'museo-slab';
src: url('type/Museo_Slab_500-webfont.eot');
src: url('type/Museo_Slab_500-webfont.eot?#iefix') format('embedded-opentype'),
url('type/Museo_Slab_500-webfont.woff') format('woff'),
url('type/Museo_Slab_500-webfont.ttf') format('truetype'),
url('type/Museo_Slab_500-webfont.svg#webfontyumMOUTD') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'icons';
src: url('icons/icons.svg#datepickericons') format('svg');
}
html {
font: 100% museo-slab;
}
footer {
margin-top: 2em;
}
.wrapper, form {
width: 300px;
}
.dp_choice::selection, .dp_choice ol::selection, .dp_choice ol li::selection, .dp_choice span::selection {
background-color: transparent;
}
ol {
list-style-type: none;
margin: 0;
padding: 0;
display: inline-block;
}
.dp_choice {
margin: 5px 0 15px;
}
.dp_years, .dp_months {
box-shadow: 0 0 1px rgba(0,0,0,.5);
}
.dp_choice li {
float: left;
text-align: center;
font-family: museo-slab;
font-size: 20px;
background-color: #f7f7f7;
padding: 15px 0;
color: #555;
display: block;
cursor: pointer;
}
.dp_years li, .dp_months li {
width: 33.333333%;
}
.dp_years li:nth-child(2n+2), .dp_months li:nth-child(2n+2) {
background-color: #dedede;
}
.dp_yearNav {
text-indent: -9999px;
display: block;
background: #DE4E43 url(icons/icons.png) no-repeat 0 0;
height: 30px;
padding: 10px 0;
text-decoration: none;
cursor: pointer;
}
.dp_pastYears {
background-position: 50% 0;
}
.dp_futureYears {
background-position: 50% -40px;
}
.dp_days {
position: relative;
zoom: 1;
vertical-align: top;
text-align: left;
}
.dp_days table {
width: 100%;
table-layout: fixed;
text-align: center;
border-spacing: 0;
border-collapse: collapse;
font-family: museo-slab;
font-size: 18px;
}
.dp_days th {
background-color: #DE4E43;
color: #fff;
}
.dp_days th, .dp_days td {
border: 1px solid #dedede;
padding: 10px;
font-weight: normal;
}
.dp_days td {
cursor: pointer;
}
td.dp_current, li.dp_current {
background:#B1D1E0;
}
.dp_days th {
pointer-events: none;
}
.dp_empty_day {
background-color: #dedede;
pointer-events: none;
}
.dp_years li:hover, .dp_months li:hover, .dp_days td:hover {
background-color: #C9DFEA;
}
.dp_tagBox {
width: 96%;
background: -webkit-gradient(linear,left top,left bottom,color-stop(0.0,white),color-stop(1.0,#EAEAEA));
background: -moz-linear-gradient(top,white,#EAEAEA);
background: -webkit-gradient(linear,left top,left bottom,color-stop(0.0,white),color-stop(1.0,#EAEAEA));
border: 1px solid #CACACA;
color: #444;
float: left;
font-size: 1.4em;
padding: 2%;
cursor: text;
margin-bottom: 5px;
}
.dp_tagBox input {
border: none;
width: 10%;
background-color: transparent;
font-size: .8em;
}
.dp_tagBox input:focus {
outline: none;
}
input[type="submit"] {
background: -webkit-gradient(linear,left top,left bottom,color-stop(0.0,white),color-stop(1.0,#DEDEDE));
background: -moz-linear-gradient(top,white,#EAEAEA);
background: -webkit-gradient(linear,left top,left bottom,color-stop(0.0,white),color-stop(1.0,#DEDEDE));
border: 1px solid #dedede;
border-radius: 10px;
float: right;
font-size: 1em;
padding: 2% 3%;
margin: 0;
cursor: pointer;
}
.dp_tag {
margin-right: 2%;
padding: 1% 2%;
float: left;
cursor: pointer;
background: #B1D1E0;
font-size: 1.1em;
}
.dp_tag:hover {
background: #c9dfea;
}
/* clearfix */
.group:before,
.group:after {
content: "";
display: table;
}
.group:after {
clear: both;
}
.group {
zoom: 1;
}