@newlogic-digital/ui 3.0.3 → 3.2.0
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/README.md +20 -22
- package/package.json +25 -14
- package/src/{main.json → data/main.json} +13 -11
- package/src/emails/email.css +3 -3
- package/src/emails/email.twig +1 -1
- package/src/icons.svg +32 -0
- package/src/scripts/Components/+.js +1 -2
- package/src/scripts/Components/CookieConsent.js +68 -64
- package/src/scripts/Layout/+.js +2 -1
- package/src/scripts/Layout/Header.js +18 -0
- package/src/scripts/Layout/Main.js +49 -45
- package/src/scripts/Libraries/+.js +13 -10
- package/src/scripts/Libraries/Anchor.js +18 -43
- package/src/scripts/Libraries/CookieConsent.js +42 -57
- package/src/scripts/Libraries/Dialog.js +56 -55
- package/src/scripts/Libraries/Drawer.js +23 -23
- package/src/scripts/Libraries/Form.js +37 -0
- package/src/scripts/Libraries/NativeSlider.js +86 -86
- package/src/scripts/Libraries/ReCaptcha.js +20 -18
- package/src/scripts/Libraries/Ripple.js +16 -32
- package/src/scripts/Libraries/Script.js +19 -0
- package/src/scripts/Libraries/Stimulus.js +30 -34
- package/src/scripts/Libraries/Swup.js +45 -55
- package/src/scripts/Libraries/Tabs.js +12 -18
- package/src/scripts/Libraries/Tippy.js +118 -0
- package/src/scripts/Ui/+.js +5 -3
- package/src/scripts/Ui/Checkbox.js +19 -0
- package/src/scripts/Ui/Input.js +188 -161
- package/src/scripts/Ui/Radio.js +23 -0
- package/src/scripts/Ui/Select.js +64 -37
- package/src/scripts/Ui/Text.js +25 -0
- package/src/scripts/Utils/+.js +3 -0
- package/src/scripts/Utils/Functions/+.js +6 -6
- package/src/scripts/Utils/Functions/dataValue.js +28 -25
- package/src/scripts/Utils/Functions/importScript.js +9 -11
- package/src/scripts/Utils/Functions/importStyle.js +18 -5
- package/src/scripts/Utils/Functions/inView.js +19 -21
- package/src/scripts/Utils/Functions/loadStimulus.js +22 -20
- package/src/scripts/Utils/Functions/replaceTag.js +12 -0
- package/src/scripts/Utils/cdn.js +6 -4
- package/src/scripts/Utils/global.js +10 -33
- package/src/scripts/main.js +6 -6
- package/src/styles/Components/CookieConsent.css +40 -179
- package/src/styles/Components/Dialog/Default.css +12 -15
- package/src/styles/Components/Form/CookieConsent.css +7 -12
- package/src/styles/Layout/+.css +2 -0
- package/src/styles/Layout/Header.css +54 -0
- package/src/styles/Layout/Main.css +28 -63
- package/src/styles/Layout/Nav.css +43 -0
- package/src/styles/Libraries/+.css +1 -1
- package/src/styles/Libraries/Datepicker.css +85 -39
- package/src/styles/Libraries/Dialog.css +6 -5
- package/src/styles/Libraries/Drawer.css +15 -14
- package/src/styles/Libraries/Hint.css +29 -23
- package/src/styles/Libraries/Lazysizes.css +2 -1
- package/src/styles/Libraries/NativeSlider.css +19 -18
- package/src/styles/Libraries/Ripple.css +8 -5
- package/src/styles/Libraries/Tabs.css +4 -4
- package/src/styles/Libraries/Tippy.css +87 -0
- package/src/styles/Ui/+.css +5 -1
- package/src/styles/Ui/Badge.css +33 -19
- package/src/styles/Ui/Btn.css +80 -53
- package/src/styles/Ui/Checkbox.css +80 -41
- package/src/styles/Ui/Dropdown.css +5 -0
- package/src/styles/Ui/Heading.css +12 -12
- package/src/styles/Ui/Icon.css +27 -8
- package/src/styles/Ui/Image.css +23 -0
- package/src/styles/Ui/Input.css +295 -220
- package/src/styles/Ui/Label.css +14 -0
- package/src/styles/Ui/Link.css +3 -3
- package/src/styles/Ui/Notice.css +14 -16
- package/src/styles/Ui/Progress.css +10 -21
- package/src/styles/Ui/Radio.css +3 -8
- package/src/styles/Ui/Select.css +63 -112
- package/src/styles/Ui/Switch.css +70 -0
- package/src/styles/Ui/{Wsw.css → Text.css} +61 -80
- package/src/styles/Ui/Title.css +8 -4
- package/src/styles/Utils/+.css +9 -0
- package/src/styles/Utils/default.css +75 -67
- package/src/styles/Utils/icons.css +9 -0
- package/src/styles/Utils/keyframes.css +182 -0
- package/src/styles/Utils/normalize.css +223 -0
- package/src/styles/Utils/print.css +1 -1
- package/src/styles/Utils/tailwind/+.css +2 -0
- package/src/styles/Utils/tailwind/base.css +15 -0
- package/src/styles/Utils/tailwind/gutters.css +264 -263
- package/src/styles/Utils/theme/+.css +1 -0
- package/src/styles/Utils/theme/main.css +24 -21
- package/src/styles/Utils/vars.css +58 -35
- package/src/styles/Utils/vendor.css +1 -2
- package/src/styles/main.css +8 -3
- package/src/templates/Components/CookieConsent.twig +30 -0
- package/src/templates/Components/Dialogs/Basic.twig +7 -3
- package/src/templates/Layout/Header.twig +42 -0
- package/src/templates/Layout/Main.twig +52 -67
- package/src/templates/Sections/Gdpr.twig +64 -0
- package/src/templates/Sections/Ui.twig +2093 -0
- package/src/views/dialog-basic.json.twig +3 -0
- package/src/views/gdpr.json +11 -0
- package/src/views/index.json +12 -0
- package/src/views/json-tippy.json.twig +16 -0
- package/src/views/ui.json +11 -0
- package/vite.config.js +6 -0
- package/CHANGELOG +0 -231
- package/gulpfile.js +0 -192
- package/src/icons/iconfont.css +0 -171
- package/src/icons/selection.json +0 -1
- package/src/icons/variables.css +0 -31
- package/src/scripts/Components/Form.js +0 -26
- package/src/scripts/Ui/Wsw.js +0 -25
- package/src/scripts/Utils/Functions/bodyLoaded.js +0 -12
- package/src/styles/Libraries/Animate.css +0 -184
- package/src/styles/Utils/reference.css +0 -2
- package/src/styles/Utils/tailwind/content.css +0 -24
- package/src/styles/Utils/theme/vars.css +0 -19
- package/src/styles/preload.css +0 -29
- package/src/styles/tailwind.css +0 -5
- package/src/templates/Sections/.gitkeep +0 -0
- package/src/templates/dialog-basic.twig +0 -3
- package/src/templates/index.json +0 -6
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
.datepicker-dropdown {
|
|
2
|
+
--color-current: var(--color-default);
|
|
3
|
+
|
|
2
4
|
z-index: 9999;
|
|
3
5
|
transition: var(--transition-opacity), var(--transition-transform);
|
|
4
6
|
will-change: transform;
|
|
7
|
+
color: rgb(var(--color-current));
|
|
5
8
|
|
|
6
9
|
@nest html:not(.no-pointer-events) & {
|
|
7
10
|
display: block;
|
|
8
11
|
}
|
|
9
12
|
|
|
10
13
|
& .datepicker-picker {
|
|
11
|
-
box-shadow: 0 .15em 1.5em 0
|
|
14
|
+
box-shadow: 0 0.15em 1.5em 0 rgb(var(--color-dark) / 0.05), 0 0 1em 0 rgb(var(--color-dark) / 0.05);
|
|
12
15
|
overflow: hidden;
|
|
13
16
|
display: block;
|
|
17
|
+
border-radius: var(--radius);
|
|
14
18
|
}
|
|
15
19
|
|
|
16
20
|
&.datepicker-orient-top {
|
|
17
21
|
padding-bottom: 0;
|
|
18
22
|
margin-top: -0.75rem;
|
|
19
23
|
|
|
20
|
-
|
|
24
|
+
&::after, &::before {
|
|
21
25
|
top: 100%;
|
|
22
|
-
left: 1.
|
|
26
|
+
left: 1.3125rem;
|
|
23
27
|
border: solid transparent;
|
|
24
28
|
content: "";
|
|
25
29
|
height: 0;
|
|
@@ -29,13 +33,13 @@
|
|
|
29
33
|
margin-top: -1px;
|
|
30
34
|
}
|
|
31
35
|
|
|
32
|
-
|
|
36
|
+
&::after {
|
|
33
37
|
border-top-color: #fff;
|
|
34
38
|
border-width: 0.375rem;
|
|
35
39
|
margin-left: -0.375rem;
|
|
36
40
|
}
|
|
37
41
|
|
|
38
|
-
|
|
42
|
+
&::before {
|
|
39
43
|
border-top-color: #eee;
|
|
40
44
|
border-width: 0.4375rem;
|
|
41
45
|
margin-left: -0.4375rem;
|
|
@@ -50,9 +54,9 @@
|
|
|
50
54
|
padding-top: 0;
|
|
51
55
|
margin-top: 0.75rem;
|
|
52
56
|
|
|
53
|
-
|
|
57
|
+
&::after, &::before {
|
|
54
58
|
bottom: 100%;
|
|
55
|
-
left: 1.
|
|
59
|
+
left: 1.3125rem;
|
|
56
60
|
border: solid transparent;
|
|
57
61
|
content: "";
|
|
58
62
|
height: 0;
|
|
@@ -61,13 +65,13 @@
|
|
|
61
65
|
pointer-events: none;
|
|
62
66
|
}
|
|
63
67
|
|
|
64
|
-
|
|
68
|
+
&::after {
|
|
65
69
|
border-bottom-color: #fff;
|
|
66
70
|
border-width: 0.375rem;
|
|
67
71
|
margin-left: -0.375rem;
|
|
68
72
|
}
|
|
69
73
|
|
|
70
|
-
|
|
74
|
+
&::before {
|
|
71
75
|
border-bottom-color: #eee;
|
|
72
76
|
border-width: 0.4375rem;
|
|
73
77
|
margin-left: -0.4375rem;
|
|
@@ -88,7 +92,7 @@
|
|
|
88
92
|
font-size: 0.75rem;
|
|
89
93
|
font-weight: var(--font-semibold);
|
|
90
94
|
text-transform: uppercase;
|
|
91
|
-
color: rgb(var(--color-
|
|
95
|
+
color: rgb(var(--color-accent));
|
|
92
96
|
}
|
|
93
97
|
|
|
94
98
|
.datepicker-cell {
|
|
@@ -96,34 +100,57 @@
|
|
|
96
100
|
}
|
|
97
101
|
|
|
98
102
|
.datepicker-cell.selected, .datepicker-cell.selected:hover {
|
|
99
|
-
background-color: rgb(var(--color-
|
|
103
|
+
background-color: rgb(var(--color-accent));
|
|
100
104
|
}
|
|
101
105
|
|
|
102
|
-
.datepicker-
|
|
103
|
-
padding: 0.5rem;
|
|
106
|
+
.datepicker-controls {
|
|
104
107
|
display: flex;
|
|
105
108
|
justify-content: center;
|
|
106
109
|
align-items: center;
|
|
110
|
+
padding: 0.125rem;
|
|
107
111
|
|
|
108
|
-
&
|
|
109
|
-
|
|
110
|
-
color: rgb(var(--color-
|
|
111
|
-
|
|
112
|
-
border: 0;
|
|
113
|
-
max-width: 4.375rem;
|
|
112
|
+
& .ok-btn {
|
|
113
|
+
background: rgb(var(--color-accent));
|
|
114
|
+
color: rgb(var(--color-light)) !important;
|
|
115
|
+
border-color: rgb(var(--color-accent)) !important;
|
|
114
116
|
font-weight: var(--font-medium);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
& :is(.button, input) {
|
|
120
|
+
margin-left: 0.125rem !important;
|
|
121
|
+
margin-right: 0.125rem !important;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
& input {
|
|
125
|
+
color: rgb(var(--color-current));
|
|
126
|
+
font-size: 0.8125rem;
|
|
127
|
+
min-width: 4.5rem;
|
|
128
|
+
max-width: 4.5rem;
|
|
129
|
+
font-weight: var(--font-normal);
|
|
115
130
|
background-color: transparent;
|
|
131
|
+
border: 1px solid #dbdbdb;
|
|
132
|
+
height: 1.6875rem;
|
|
133
|
+
border-radius: var(--radius) !important;
|
|
134
|
+
padding: 0 0.1875rem !important;
|
|
135
|
+
|
|
136
|
+
@nest .chrome & {
|
|
137
|
+
padding: 0 0.125rem 0 0.25rem !important;
|
|
138
|
+
min-width: 3.75rem;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@nest .safari & {
|
|
142
|
+
min-width: 3rem;
|
|
143
|
+
}
|
|
116
144
|
|
|
117
|
-
|
|
118
|
-
|
|
145
|
+
&::-webkit-calendar-picker-indicator {
|
|
146
|
+
padding: 0;
|
|
147
|
+
margin: 0;
|
|
119
148
|
}
|
|
120
149
|
}
|
|
121
150
|
}
|
|
122
151
|
|
|
123
|
-
.datepicker-
|
|
124
|
-
|
|
125
|
-
box-shadow: none;
|
|
126
|
-
border-top: 1px solid rgba(var(--color-default), 0.05);
|
|
152
|
+
.datepicker-input.in-edit:active, .datepicker-input.in-edit:focus {
|
|
153
|
+
box-shadow: inherit;
|
|
127
154
|
}
|
|
128
155
|
|
|
129
156
|
.button {
|
|
@@ -131,22 +158,25 @@
|
|
|
131
158
|
font-size: 0;
|
|
132
159
|
height: 2.25rem;
|
|
133
160
|
|
|
134
|
-
|
|
135
|
-
|
|
161
|
+
&::before {
|
|
162
|
+
width: 1em;
|
|
163
|
+
height: 1em;
|
|
136
164
|
font-size: 1rem;
|
|
137
165
|
display: block;
|
|
166
|
+
background-color: currentColor;
|
|
167
|
+
content: "";
|
|
138
168
|
}
|
|
139
169
|
}
|
|
140
170
|
|
|
141
171
|
&.prev-btn {
|
|
142
|
-
|
|
143
|
-
|
|
172
|
+
&::before {
|
|
173
|
+
mask: var(--icon-chevron-left);
|
|
144
174
|
}
|
|
145
175
|
}
|
|
146
176
|
|
|
147
177
|
&.next-btn {
|
|
148
|
-
|
|
149
|
-
|
|
178
|
+
&::before {
|
|
179
|
+
mask: var(--icon-chevron-right);
|
|
150
180
|
}
|
|
151
181
|
}
|
|
152
182
|
|
|
@@ -156,19 +186,35 @@
|
|
|
156
186
|
}
|
|
157
187
|
}
|
|
158
188
|
|
|
189
|
+
.datepicker-footer {
|
|
190
|
+
background-color: rgb(var(--color-background));
|
|
191
|
+
box-shadow: none;
|
|
192
|
+
border-top: 1px solid rgb(var(--color-current) / 0.05);
|
|
193
|
+
|
|
194
|
+
& .datepicker-controls {
|
|
195
|
+
& + .datepicker-time {
|
|
196
|
+
padding-top: 0.25rem;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
& .button {
|
|
201
|
+
border-radius: var(--radius) !important;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
159
205
|
.dark {
|
|
160
|
-
& .datepicker-picker,
|
|
206
|
+
& :is(.datepicker-picker, .datepicker-time) {
|
|
161
207
|
background-color: rgb(var(--color-background-100));
|
|
162
208
|
}
|
|
163
209
|
|
|
164
210
|
& .datepicker-dropdown.datepicker-orient-bottom {
|
|
165
|
-
|
|
211
|
+
&::before, &::after {
|
|
166
212
|
border-bottom-color: rgb(var(--color-background-100));
|
|
167
213
|
}
|
|
168
214
|
}
|
|
169
215
|
|
|
170
216
|
& .datepicker-dropdown.datepicker-orient-top {
|
|
171
|
-
|
|
217
|
+
&::before, &::after {
|
|
172
218
|
border-top-color: rgb(var(--color-background-100));
|
|
173
219
|
}
|
|
174
220
|
}
|
|
@@ -176,7 +222,7 @@
|
|
|
176
222
|
& .datepicker-controls .button {
|
|
177
223
|
border-color: transparent;
|
|
178
224
|
background-color: rgb(var(--color-background-100));
|
|
179
|
-
color: rgb(var(--color-
|
|
225
|
+
color: rgb(var(--color-current)) !important;
|
|
180
226
|
}
|
|
181
227
|
|
|
182
228
|
& .datepicker-header .datepicker-controls {
|
|
@@ -184,16 +230,16 @@
|
|
|
184
230
|
|
|
185
231
|
& .button {
|
|
186
232
|
&:hover {
|
|
187
|
-
background-color:
|
|
233
|
+
background-color: rgb(var(--color-light) / 0.1);
|
|
188
234
|
}
|
|
189
235
|
}
|
|
190
236
|
}
|
|
191
237
|
|
|
192
238
|
& .datepicker-cell:not(.disabled):hover {
|
|
193
|
-
background-color:
|
|
239
|
+
background-color: rgb(var(--color-light) / 0.1);
|
|
194
240
|
}
|
|
195
241
|
|
|
196
242
|
& .datepicker-cell.focused:not(.selected) {
|
|
197
|
-
background-color:
|
|
243
|
+
background-color: rgb(var(--color-light) / 0.2);
|
|
198
244
|
}
|
|
199
|
-
}
|
|
245
|
+
}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
.lib-dialog {
|
|
2
2
|
--lib-dialog-bg: var(--color-dark);
|
|
3
3
|
--lib-dialog-opacity: 0.8;
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
animation: 0.3s ease 0s backwards 1 fade-in;
|
|
5
6
|
inset: 0;
|
|
6
7
|
z-index: var(--z-30);
|
|
7
8
|
position: fixed;
|
|
8
9
|
display: none;
|
|
9
10
|
overflow: auto;
|
|
10
11
|
-webkit-overflow-scrolling: touch;
|
|
11
|
-
background-color:
|
|
12
|
+
background-color: rgb(var(--lib-dialog-bg) / var(--lib-dialog-opacity));
|
|
12
13
|
overscroll-behavior: contain;
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
animation: 0.3s ease 0s forwards 1
|
|
15
|
+
&:--state-hiding {
|
|
16
|
+
animation: 0.3s ease 0s forwards 1 fade-out;
|
|
16
17
|
pointer-events: none;
|
|
17
18
|
}
|
|
18
|
-
}
|
|
19
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.lib-drawer {
|
|
2
|
-
--
|
|
2
|
+
--lib-drawer-opacity: 0;
|
|
3
|
+
|
|
3
4
|
z-index: var(--z-30);
|
|
4
5
|
width: 100%;
|
|
5
6
|
height: 100%;
|
|
@@ -12,6 +13,10 @@
|
|
|
12
13
|
display: flex;
|
|
13
14
|
flex-direction: row;
|
|
14
15
|
|
|
16
|
+
& > div {
|
|
17
|
+
scroll-snap-align: end;
|
|
18
|
+
}
|
|
19
|
+
|
|
15
20
|
&[data-action*="scroll"] {
|
|
16
21
|
overflow-x: auto;
|
|
17
22
|
overflow-y: hidden;
|
|
@@ -20,7 +25,7 @@
|
|
|
20
25
|
scrollbar-width: none;
|
|
21
26
|
-ms-overflow-style: none;
|
|
22
27
|
|
|
23
|
-
|
|
28
|
+
&:--state-active {
|
|
24
29
|
scroll-snap-type: x mandatory;
|
|
25
30
|
}
|
|
26
31
|
|
|
@@ -30,46 +35,42 @@
|
|
|
30
35
|
}
|
|
31
36
|
}
|
|
32
37
|
|
|
33
|
-
|
|
38
|
+
&::before {
|
|
34
39
|
position: fixed;
|
|
35
40
|
top: 0;
|
|
36
41
|
bottom: 0;
|
|
37
42
|
right: 0;
|
|
38
43
|
left: 0;
|
|
39
44
|
z-index: -1;
|
|
40
|
-
background-color:
|
|
45
|
+
background-color: rgb(var(--color-dark) / 0.6);
|
|
41
46
|
content: "";
|
|
42
|
-
opacity: var(--
|
|
47
|
+
opacity: var(--lib-drawer-opacity);
|
|
43
48
|
|
|
44
49
|
@nest .is-opacity& {
|
|
45
50
|
transition: var(--transition-opacity);
|
|
46
51
|
}
|
|
47
52
|
|
|
48
|
-
@nest :not(
|
|
53
|
+
@nest :not(:--state-active)& {
|
|
49
54
|
opacity: 0;
|
|
50
55
|
}
|
|
51
56
|
}
|
|
52
57
|
|
|
53
|
-
&:not(
|
|
58
|
+
&:not(:--state-active) {
|
|
54
59
|
pointer-events: none;
|
|
55
60
|
|
|
56
61
|
& > div {
|
|
57
62
|
transform: translateX(-28.125rem);
|
|
58
63
|
|
|
59
|
-
@media (--media-
|
|
64
|
+
@media (--media-m) {
|
|
60
65
|
transform: translateX(-22.5rem);
|
|
61
66
|
}
|
|
62
67
|
}
|
|
63
68
|
}
|
|
64
69
|
|
|
65
|
-
|
|
70
|
+
&::after {
|
|
66
71
|
content: "";
|
|
67
72
|
display: block;
|
|
68
73
|
min-width: 100vw;
|
|
69
74
|
scroll-snap-align: end;
|
|
70
75
|
}
|
|
71
|
-
|
|
72
|
-
& > div {
|
|
73
|
-
scroll-snap-align: end;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
+
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
[class*="lib-hint-"] {
|
|
2
2
|
--lib-hint-bg: var(--color-dark);
|
|
3
3
|
--lib-hint-fg: var(--color-light);
|
|
4
|
+
|
|
4
5
|
position: relative;
|
|
6
|
+
text-align: center;
|
|
7
|
+
|
|
8
|
+
@nest .dark & {
|
|
9
|
+
--lib-hint-bg: var(--color-background-200);
|
|
10
|
+
}
|
|
5
11
|
|
|
6
12
|
&.lib-hint-light {
|
|
7
13
|
--lib-hint-bg: var(--color-light);
|
|
@@ -24,7 +30,7 @@
|
|
|
24
30
|
--lib-hint-bg: var(--color-success);
|
|
25
31
|
}
|
|
26
32
|
|
|
27
|
-
|
|
33
|
+
&::before, &::after {
|
|
28
34
|
position: absolute;
|
|
29
35
|
visibility: hidden;
|
|
30
36
|
opacity: 0;
|
|
@@ -35,15 +41,15 @@
|
|
|
35
41
|
will-change: transform;
|
|
36
42
|
backface-visibility: hidden;
|
|
37
43
|
|
|
38
|
-
@nest :hover& {
|
|
44
|
+
@nest :is(:hover, :focus)& {
|
|
39
45
|
visibility: visible;
|
|
40
46
|
opacity: 1;
|
|
41
47
|
transition-delay: 100ms;
|
|
42
48
|
}
|
|
43
49
|
}
|
|
44
50
|
|
|
45
|
-
|
|
46
|
-
content:
|
|
51
|
+
&::before {
|
|
52
|
+
content: "";
|
|
47
53
|
position: absolute;
|
|
48
54
|
background-color: transparent;
|
|
49
55
|
border: 0.375rem solid transparent;
|
|
@@ -66,7 +72,7 @@
|
|
|
66
72
|
}
|
|
67
73
|
}
|
|
68
74
|
|
|
69
|
-
|
|
75
|
+
&::after {
|
|
70
76
|
border-radius: var(--radius);
|
|
71
77
|
background-color: rgb(var(--lib-hint-bg));
|
|
72
78
|
color: rgb(var(--lib-hint-fg));
|
|
@@ -75,17 +81,17 @@
|
|
|
75
81
|
font-family: inherit;
|
|
76
82
|
line-height: 0.875rem;
|
|
77
83
|
white-space: nowrap;
|
|
78
|
-
box-shadow: 0.25rem 0.25rem 0.5rem
|
|
84
|
+
box-shadow: 0.25rem 0.25rem 0.5rem rgb(var(--lib-hint-bg) / 0.15);
|
|
79
85
|
|
|
80
86
|
@nest .lib-hint-light& {
|
|
81
|
-
box-shadow: 0.25rem 0.25rem 0.5rem
|
|
87
|
+
box-shadow: 0.25rem 0.25rem 0.5rem rgb(var(--color-dark) / 0.15);
|
|
82
88
|
}
|
|
83
89
|
|
|
84
90
|
@nest [aria-label]& {
|
|
85
91
|
content: attr(aria-label);
|
|
86
92
|
}
|
|
87
93
|
|
|
88
|
-
@nest .lib-hint-sm
|
|
94
|
+
@nest :is(.lib-hint-sm, .lib-hint-md, .lib-hint-lg)& {
|
|
89
95
|
white-space: normal;
|
|
90
96
|
line-height: 1.5;
|
|
91
97
|
word-wrap: break-word;
|
|
@@ -105,36 +111,36 @@
|
|
|
105
111
|
}
|
|
106
112
|
|
|
107
113
|
&.lib-hint-top {
|
|
108
|
-
|
|
114
|
+
&::before, &::after {
|
|
109
115
|
bottom: 100%;
|
|
110
116
|
left: 50%;
|
|
111
117
|
}
|
|
112
118
|
|
|
113
|
-
|
|
119
|
+
&::before {
|
|
114
120
|
left: calc(50% - 0.375rem);
|
|
115
121
|
margin-bottom: -0.6875rem;
|
|
116
122
|
|
|
117
|
-
@nest :hover& {
|
|
123
|
+
@nest :is(:hover, :focus)& {
|
|
118
124
|
transform: translateY(-0.5rem);
|
|
119
125
|
}
|
|
120
126
|
}
|
|
121
127
|
|
|
122
|
-
|
|
128
|
+
&::after {
|
|
123
129
|
transform: translateX(-50%);
|
|
124
130
|
|
|
125
|
-
@nest :hover& {
|
|
131
|
+
@nest :is(:hover, :focus)& {
|
|
126
132
|
transform: translateX(-50%) translateY(-0.5rem);
|
|
127
133
|
}
|
|
128
134
|
}
|
|
129
135
|
}
|
|
130
136
|
|
|
131
137
|
&.lib-hint-bottom {
|
|
132
|
-
|
|
138
|
+
&::before, &::after {
|
|
133
139
|
top: 100%;
|
|
134
140
|
left: 50%;
|
|
135
141
|
}
|
|
136
142
|
|
|
137
|
-
|
|
143
|
+
&::before {
|
|
138
144
|
left: calc(50% - 0.375rem);
|
|
139
145
|
margin-top: -0.6875rem;
|
|
140
146
|
|
|
@@ -143,7 +149,7 @@
|
|
|
143
149
|
}
|
|
144
150
|
}
|
|
145
151
|
|
|
146
|
-
|
|
152
|
+
&::after {
|
|
147
153
|
transform: translateX(-50%);
|
|
148
154
|
|
|
149
155
|
@nest :hover& {
|
|
@@ -153,7 +159,7 @@
|
|
|
153
159
|
}
|
|
154
160
|
|
|
155
161
|
&.lib-hint-right {
|
|
156
|
-
|
|
162
|
+
&::before, &::after {
|
|
157
163
|
left: 100%;
|
|
158
164
|
bottom: 50%;
|
|
159
165
|
|
|
@@ -162,18 +168,18 @@
|
|
|
162
168
|
}
|
|
163
169
|
}
|
|
164
170
|
|
|
165
|
-
|
|
171
|
+
&::before {
|
|
166
172
|
margin-left: -0.6875rem;
|
|
167
173
|
margin-bottom: -0.375rem;
|
|
168
174
|
}
|
|
169
175
|
|
|
170
|
-
|
|
176
|
+
&::after {
|
|
171
177
|
margin-bottom: -1.1875rem;
|
|
172
178
|
}
|
|
173
179
|
}
|
|
174
180
|
|
|
175
181
|
&.lib-hint-left {
|
|
176
|
-
|
|
182
|
+
&::before, &::after {
|
|
177
183
|
right: 100%;
|
|
178
184
|
bottom: 50%;
|
|
179
185
|
|
|
@@ -182,13 +188,13 @@
|
|
|
182
188
|
}
|
|
183
189
|
}
|
|
184
190
|
|
|
185
|
-
|
|
191
|
+
&::before {
|
|
186
192
|
margin-right: -0.6875rem;
|
|
187
193
|
margin-bottom: -0.375rem;
|
|
188
194
|
}
|
|
189
195
|
|
|
190
|
-
|
|
196
|
+
&::after {
|
|
191
197
|
margin-bottom: -1.1875rem;
|
|
192
198
|
}
|
|
193
199
|
}
|
|
194
|
-
}
|
|
200
|
+
}
|
|
@@ -6,11 +6,25 @@
|
|
|
6
6
|
scrollbar-width: none !important;
|
|
7
7
|
-ms-overflow-style: none;
|
|
8
8
|
|
|
9
|
+
& > * {
|
|
10
|
+
flex: 0 0 auto;
|
|
11
|
+
scroll-snap-align: start;
|
|
12
|
+
|
|
13
|
+
@nest .is-fade& {
|
|
14
|
+
opacity: 0;
|
|
15
|
+
transition: var(--transition-opacity);
|
|
16
|
+
|
|
17
|
+
&[data-state="active"] {
|
|
18
|
+
opacity: 1;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
9
23
|
&::-webkit-scrollbar {
|
|
10
24
|
display: none !important;
|
|
11
25
|
}
|
|
12
26
|
|
|
13
|
-
&:not(.is-fade
|
|
27
|
+
&:not(.is-fade, .is-grabbing) {
|
|
14
28
|
scroll-behavior: smooth;
|
|
15
29
|
scroll-snap-type: x mandatory;
|
|
16
30
|
}
|
|
@@ -19,33 +33,20 @@
|
|
|
19
33
|
&, & * {
|
|
20
34
|
cursor: grabbing;
|
|
21
35
|
}
|
|
36
|
+
|
|
22
37
|
& a {
|
|
23
38
|
pointer-events: none;
|
|
24
39
|
}
|
|
25
40
|
}
|
|
26
|
-
|
|
27
|
-
& > div, & > picture {
|
|
28
|
-
flex: 0 0 auto;
|
|
29
|
-
scroll-snap-align: start;
|
|
30
|
-
|
|
31
|
-
@nest .is-fade& {
|
|
32
|
-
opacity: 0;
|
|
33
|
-
transition: var(--transition-opacity);
|
|
34
|
-
|
|
35
|
-
&[data-state="active"] {
|
|
36
|
-
opacity: 1;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
[data-lib-ns-nav-item] {
|
|
43
44
|
width: 0.75rem;
|
|
44
45
|
height: 0.75rem;
|
|
45
|
-
border: 0.125rem solid rgb(var(--color-
|
|
46
|
+
border: 0.125rem solid rgb(var(--color-current));
|
|
46
47
|
border-radius: 50%;
|
|
47
48
|
|
|
48
49
|
&[data-state*="active"] {
|
|
49
|
-
background-color: rgb(var(--color-
|
|
50
|
+
background-color: rgb(var(--color-current));
|
|
50
51
|
}
|
|
51
|
-
}
|
|
52
|
+
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
[data-lib
|
|
1
|
+
[data-action*="lib#ripple"] {
|
|
2
|
+
--lib-ripple-bg: rgb(var(--color-background));
|
|
3
|
+
|
|
2
4
|
position: relative;
|
|
3
5
|
user-select: none;
|
|
4
6
|
}
|
|
5
7
|
|
|
6
|
-
.lib-ripple
|
|
8
|
+
.lib-ripple {
|
|
7
9
|
position: absolute;
|
|
8
|
-
background:
|
|
10
|
+
background: var(--lib-ripple-bg);
|
|
9
11
|
border-radius: 50%;
|
|
10
12
|
transform: scale(0);
|
|
11
13
|
opacity: 0.4;
|
|
12
|
-
animation-duration: 1s;
|
|
13
14
|
pointer-events: none;
|
|
14
15
|
|
|
15
16
|
@nest body > & {
|
|
@@ -22,5 +23,7 @@
|
|
|
22
23
|
|
|
23
24
|
&.animation {
|
|
24
25
|
animation-name: ripple;
|
|
26
|
+
animation-duration: 1s;
|
|
27
|
+
animation-fill-mode: both;
|
|
25
28
|
}
|
|
26
|
-
}
|
|
29
|
+
}
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
|
|
8
8
|
& [data-lib-tabs-area] {
|
|
9
9
|
& > [data-lib-tabs-item] {
|
|
10
|
-
animation: 0.3s ease 0s backwards 1
|
|
10
|
+
animation: 0.3s ease 0s backwards 1 fade-out;
|
|
11
11
|
display: none;
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
animation: 0.3s ease 0s backwards 1
|
|
13
|
+
&:--state-active {
|
|
14
|
+
animation: 0.3s ease 0s backwards 1 fade-in;
|
|
15
15
|
display: block;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
}
|
|
19
|
+
}
|