forked from brianblakely/nodep-date-input-polyfill
-
Notifications
You must be signed in to change notification settings - Fork 66
/
date-input-polyfill.scss
112 lines (99 loc) · 1.99 KB
/
date-input-polyfill.scss
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
@mixin reset() {
background: #fff;
color: #000;
text-shadow: none;
border: 0;
padding: 0;
height: auto;
width: auto;
line-height: normal;
font-family: sans-serif;
font-size: 14px;
}
date-input-polyfill {
@include reset();
position: absolute !important;
text-align: center;
box-shadow: 0px 3px 10px 1px rgba(0,0,0,0.22);
cursor: default;
z-index: 1;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
overflow: hidden;
display: block;
&[data-open="false"] {
visibility: hidden;
z-index: -100 !important;
top: 0;
}
&[data-open="true"] {
visibility: visible;
}
select, table, th, td {
@include reset();
box-shadow: none;
font-family: 'Lato', Helvetica, Arial, sans-serif;
}
select, button {
border: 0;
border-radius: 0;
border-bottom: 1px solid #DADFE1;
height: 24px;
vertical-align: top;
-webkit-appearance: none;
-moz-appearance: none;
}
.monthSelect-wrapper {
width: 55%;
display: inline-block;
}
.yearSelect-wrapper {
width: 25%;
display: inline-block;
}
select {
width: 100%;
&:first-of-type {
border-right: 1px solid #DADFE1;
border-radius: 5px 0 0 0;
-moz-border-radius: 5px 0 0 0;
-webkit-border-radius: 5px 0 0 0;
}
}
button {
width: 20%;
background: #DADFE1;
border-radius: 0 5px 0 0;
-moz-border-radius: 0 5px 0 0;
-webkit-border-radius: 0 5px 0 0;
&:hover {
background: #eee;
}
}
table {
border-collapse: separate !important;
border-radius: 0 0 5px 5px;
-moz-border-radius: 0 0 5px 5px;
-webkit-border-radius: 0 0 5px 5px;
overflow: hidden;
max-width: 280px;
width: 280px;
}
th, td {
width: 32px;
padding: 4px;
text-align: center;
box-sizing: content-box;
}
td[data-day] {
cursor: pointer;
&:hover {
background: #DADFE1;
}
}
[data-selected] {
font-weight: bold;
background: #D8EAF6;
}
}