-
Notifications
You must be signed in to change notification settings - Fork 137
/
nodep-date-input-polyfill.scss
84 lines (75 loc) · 1.28 KB
/
nodep-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
@mixin reset() {
background: #fff;
color: #000;
text-shadow: none;
border: 0;
padding: 0;
height: auto;
width: auto;
line-height: normal;
border-radius: 0;
font-family: sans-serif;
font-size: 14px;
}
date-input-polyfill {
@include reset();
position: absolute !important;
text-align: center;
box-shadow:
0 7px 8px -4px rgba(0,0,0,.2),
0 12px 17px 2px rgba(0,0,0,.14),
0 5px 22px 4px rgba(0,0,0,.12);
cursor: default;
z-index: 1;
&[data-open="false"] {
display: none;
}
&[data-open="true"] {
display: block;
}
select, table, th, td {
@include reset();
box-shadow: none;
}
select, button {
border: 0;
border-bottom: 1px solid #E0E0E0;
height: 24px;
vertical-align: top;
}
select {
width: 50%;
&:first-of-type {
border-right: 1px solid #E0E0E0;
width: 30%;
}
}
button {
padding: 0;
width: 20%;
background: #E0E0E0;
}
table {
border-collapse: collapse;
}
th, td {
width: 32px;
padding: 4px;
text-align: center;
}
td[data-day] {
cursor: pointer;
&:hover {
background: #E0E0E0;
}
}
[data-selected] {
font-weight: bold;
background: #D8EAF6;
}
}
input[data-has-picker] {
&::-ms-clear {
display: none;
}
}