-
-
Notifications
You must be signed in to change notification settings - Fork 259
/
_picker.scss
98 lines (70 loc) · 1.29 KB
/
_picker.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
//
// Picker
//
.picker {
@extend .dialog;
-ms-touch-action: none;
}
$label-height:25px;
.picker-slot {
position:relative;
top:0px;
$distance:-($label-height/2);
margin-top:$distance;
margin-bottom:-$distance;
@include border-radius(0.3em);
@include transition(all ease-in-out);
transition-duration:.2s;
}
.picker-slot:first-child:before {
content:"";
position:absolute;
width:2px;
top:-200%;
height:500%;
z-index:1000;
}
.picker-slot:first-child:after,.picker-slot:nth-child(n+1):after {
content:"";
position:absolute;
width:2px;
top:-200%;
right:0px;
height:500%;
z-index:1000;
}
.picker-label {
text-overflow: ellipsis;
white-space: nowrap;
font-size:1.2em;
padding-left:5px;
padding-right:5px;
height:$label-height;
}
.picker-container {
overflow:hidden;
position:relative;
@include border-radius(0.3em);
height:4*$label-height;
}
// Spinning Wheel Overlay Gradient
.picker-container:after {
pointer-events:none;
content:"";
width:100%;
height:100%;
z-index:1000;
position:absolute;
top:0px;
left:0px;
background-size:100% 4*$label-height;
}
// Selected Area Overlay
.picker-container:before {
pointer-events:none;
content:"";
position:absolute;
width:100%;
z-index:1000;
left:0px;
}