@appscode/design-system 2.17.36 → 2.17.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/* ========== Variables ========== */
|
|
2
|
+
$cool-gray: #eff1f1;
|
|
3
|
+
$secondary-light-gray: #f7f9fa;
|
|
4
|
+
$scroll-highlight: darken($cool-gray, 10%);
|
|
5
|
+
|
|
6
|
+
/* ========== Mixins ========== */
|
|
7
|
+
@mixin hide-scrollbars {
|
|
8
|
+
-ms-overflow-style: none; // IE 10+
|
|
9
|
+
scrollbar-width: none; // Firefox
|
|
10
|
+
&::-webkit-scrollbar {
|
|
11
|
+
display: none;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* ========== Container ========== */
|
|
16
|
+
.picker-wrapper {
|
|
17
|
+
background: white;
|
|
18
|
+
box-shadow: 0 0.5vw 2vw -5px rgba(0, 0, 0, 0.2);
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
border-radius: 8px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* ========== Header ========== */
|
|
25
|
+
.duration-header {
|
|
26
|
+
background-color: $secondary-light-gray;
|
|
27
|
+
text-align: center;
|
|
28
|
+
height: 36px;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
|
|
33
|
+
h6 {
|
|
34
|
+
font-size: 13px;
|
|
35
|
+
margin: 0;
|
|
36
|
+
font-weight: 600;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* ========== Title Labels ========== */
|
|
41
|
+
.d-title {
|
|
42
|
+
display: inline-grid;
|
|
43
|
+
grid-template-columns: repeat(3, fit-content(100px));
|
|
44
|
+
justify-content: end;
|
|
45
|
+
gap: 0.5em;
|
|
46
|
+
font-weight: bold;
|
|
47
|
+
font-size: 11px;
|
|
48
|
+
padding: 8px 1rem 0;
|
|
49
|
+
|
|
50
|
+
span {
|
|
51
|
+
width: 40px;
|
|
52
|
+
text-align: center;
|
|
53
|
+
margin-right: 1em;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* ========== Picker Section ========== */
|
|
58
|
+
.picker {
|
|
59
|
+
position: relative;
|
|
60
|
+
display: inline-grid;
|
|
61
|
+
grid-template-columns: repeat(3, fit-content(80px));
|
|
62
|
+
justify-content: end;
|
|
63
|
+
padding: 0 1rem;
|
|
64
|
+
font-size: 13px;
|
|
65
|
+
font-weight: 500;
|
|
66
|
+
font-feature-settings: "tnum";
|
|
67
|
+
|
|
68
|
+
&::before,
|
|
69
|
+
&::after {
|
|
70
|
+
content: "";
|
|
71
|
+
position: absolute;
|
|
72
|
+
width: 100%;
|
|
73
|
+
pointer-events: none;
|
|
74
|
+
z-index: 1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&::before {
|
|
78
|
+
top: 0;
|
|
79
|
+
height: 50%;
|
|
80
|
+
background: linear-gradient(white, rgba(255, 255, 255, 0));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&::after {
|
|
84
|
+
bottom: 0;
|
|
85
|
+
height: 50%;
|
|
86
|
+
background: linear-gradient(rgba(255, 255, 255, 0), white);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
ul {
|
|
90
|
+
@include hide-scrollbars();
|
|
91
|
+
max-height: 190px;
|
|
92
|
+
overflow-y: scroll;
|
|
93
|
+
padding: 1.5em 0;
|
|
94
|
+
margin-right: 1em;
|
|
95
|
+
scroll-snap-type: y mandatory;
|
|
96
|
+
scroll-behavior: smooth;
|
|
97
|
+
|
|
98
|
+
li {
|
|
99
|
+
scroll-snap-align: center;
|
|
100
|
+
height: 2.35em;
|
|
101
|
+
width: 40px;
|
|
102
|
+
text-align: center;
|
|
103
|
+
user-select: none;
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
line-height: 2.35em;
|
|
106
|
+
border-radius: 4px;
|
|
107
|
+
|
|
108
|
+
&:hover {
|
|
109
|
+
background: #f0f0f0;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* ========== Highlight Window ========== */
|
|
116
|
+
.picker-window {
|
|
117
|
+
position: absolute;
|
|
118
|
+
top: 50%;
|
|
119
|
+
left: 0;
|
|
120
|
+
width: 100%;
|
|
121
|
+
height: 2.4em;
|
|
122
|
+
transform: translateY(-52%);
|
|
123
|
+
border-top: 1px solid $scroll-highlight;
|
|
124
|
+
border-bottom: 1px solid $scroll-highlight;
|
|
125
|
+
pointer-events: none;
|
|
126
|
+
z-index: 2;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* ========== Footer Buttons ========== */
|
|
130
|
+
.duration-footer {
|
|
131
|
+
padding: 0 1rem 1rem;
|
|
132
|
+
display: flex;
|
|
133
|
+
justify-content: flex-end;
|
|
134
|
+
gap: 0.5rem;
|
|
135
|
+
|
|
136
|
+
.buttons {
|
|
137
|
+
display: flex;
|
|
138
|
+
gap: 0.5rem;
|
|
139
|
+
}
|
|
140
|
+
}
|