-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathvue-scroll-picker.css
78 lines (66 loc) · 1.48 KB
/
vue-scroll-picker.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
.vue-scroll-picker {
position: relative;
width: 100%;
height: 10em;
overflow: hidden;
}
.vue-scroll-picker-rotator {
position: absolute;
left: 0;
right: 0;
top: calc(50% - .6em);
}
.vue-scroll-picker-rotator-transition {
transition: top ease 150ms;
}
.vue-scroll-picker-item {
text-align: center;
line-height: 1.2em;
color: #333;
}
.vue-scroll-picker-item-selected {
color: #007bff;
}
.vue-scroll-picker-item-empty,
.vue-scroll-picker-item-placeholder,
.vue-scroll-picker-item-disabled {
color: #ccc;
}
.vue-scroll-picker-item-empty.vue-scroll-picker-item-selected,
.vue-scroll-picker-item-placeholder.vue-scroll-picker-item-selected,
.vue-scroll-picker-item-disabled.vue-scroll-picker-item-selected {
color: #aaa;
}
.vue-scroll-picker-layer {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
.vue-scroll-picker-layer-top,
.vue-scroll-picker-layer-selection,
.vue-scroll-picker-layer-bottom {
position: absolute;
left: 0;
right: 0;
}
.vue-scroll-picker-layer-top {
box-sizing: border-box;
border-bottom: 1px solid #c8c7cc;
background: linear-gradient(180deg,#fff 10%,rgba(255, 255, 255, .7));
top: 0;
height: calc(50% - 1em);
cursor: pointer;
}
.vue-scroll-picker-layer-selection {
top: calc(50% - 1em);
bottom: calc(50% - 1em);
}
.vue-scroll-picker-layer-bottom {
border-top: 1px solid #c8c7cc;
background: linear-gradient(0deg,#fff 10%,rgba(255, 255, 255, .7));
bottom: 0;
height: calc(50% - 1em);
cursor: pointer;
}