@trilogy-ds/styles 0.0.1-alpha-prompt
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 +47 -0
- package/dist/default/assets/icons/all/alert.svg +1 -0
- package/dist/default/assets/icons/all/arrow-down.svg +1 -0
- package/dist/default/assets/icons/all/arrow-left.svg +1 -0
- package/dist/default/assets/icons/all/arrow-right.svg +1 -0
- package/dist/default/assets/icons/all/arrow-up.svg +1 -0
- package/dist/default/assets/icons/all/attachment.svg +1 -0
- package/dist/default/assets/icons/all/bell.svg +1 -0
- package/dist/default/assets/icons/all/calendar.svg +1 -0
- package/dist/default/assets/icons/all/check-circle.svg +1 -0
- package/dist/default/assets/icons/all/check.svg +1 -0
- package/dist/default/assets/icons/all/exclamation-circle.svg +1 -0
- package/dist/default/assets/icons/all/eye-slash.svg +1 -0
- package/dist/default/assets/icons/all/eye.svg +1 -0
- package/dist/default/assets/icons/all/file-attached.svg +1 -0
- package/dist/default/assets/icons/all/infos-circle.svg +1 -0
- package/dist/default/assets/icons/all/micro.svg +1 -0
- package/dist/default/assets/icons/all/search.svg +1 -0
- package/dist/default/assets/icons/all/times.svg +1 -0
- package/dist/default/assets/icons/all/trash.svg +1 -0
- package/dist/default/trilogy-mangled.css +1 -0
- package/dist/default/trilogy-partials.css +1 -0
- package/dist/default/trilogy.css +1 -0
- package/framework/src/_all.scss +8 -0
- package/framework/src/base/_all.scss +9 -0
- package/framework/src/base/_color.scss +7 -0
- package/framework/src/base/_elements.scss +34 -0
- package/framework/src/base/_fonts.scss +2 -0
- package/framework/src/base/_generic.scss +76 -0
- package/framework/src/base/_helpers.scss +875 -0
- package/framework/src/base/_loading.scss +109 -0
- package/framework/src/base/_reset.scss +148 -0
- package/framework/src/components/_accordion.scss +144 -0
- package/framework/src/components/_autocomplete.scss +38 -0
- package/framework/src/components/_autolayout.scss +332 -0
- package/framework/src/components/_badge.scss +87 -0
- package/framework/src/components/_box.scss +168 -0
- package/framework/src/components/_breadcrumb.scss +36 -0
- package/framework/src/components/_button.scss +79 -0
- package/framework/src/components/_calendar.scss +129 -0
- package/framework/src/components/_card.scss +244 -0
- package/framework/src/components/_checkbox.scss +71 -0
- package/framework/src/components/_chips.scss +84 -0
- package/framework/src/components/_container.scss +69 -0
- package/framework/src/components/_countdown.scss +57 -0
- package/framework/src/components/_date-picker.scss +58 -0
- package/framework/src/components/_divider.scss +52 -0
- package/framework/src/components/_dropdown.scss +195 -0
- package/framework/src/components/_fab.scss +47 -0
- package/framework/src/components/_flex-box.scss +994 -0
- package/framework/src/components/_icon.scss +384 -0
- package/framework/src/components/_image.scss +69 -0
- package/framework/src/components/_index.scss +51 -0
- package/framework/src/components/_link.scss +58 -0
- package/framework/src/components/_list.scss +66 -0
- package/framework/src/components/_loader.scss +126 -0
- package/framework/src/components/_modal.scss +232 -0
- package/framework/src/components/_otp.scss +73 -0
- package/framework/src/components/_pagination.scss +83 -0
- package/framework/src/components/_popover.scss +340 -0
- package/framework/src/components/_price.scss +184 -0
- package/framework/src/components/_product-tour.scss +129 -0
- package/framework/src/components/_prompt.scss +125 -0
- package/framework/src/components/_radio.scss +82 -0
- package/framework/src/components/_range.scss +85 -0
- package/framework/src/components/_scroll-view.scss +19 -0
- package/framework/src/components/_segmented-control.scss +62 -0
- package/framework/src/components/_select.scss +131 -0
- package/framework/src/components/_stepper.scss +217 -0
- package/framework/src/components/_sticker.scss +148 -0
- package/framework/src/components/_switch.scss +115 -0
- package/framework/src/components/_table.scss +244 -0
- package/framework/src/components/_tabs.scss +228 -0
- package/framework/src/components/_tag.scss +114 -0
- package/framework/src/components/_text.scss +55 -0
- package/framework/src/components/_textarea.scss +46 -0
- package/framework/src/components/_timeline.scss +282 -0
- package/framework/src/components/_title.scss +151 -0
- package/framework/src/components/alert/_alert.scss +94 -0
- package/framework/src/components/alert/_index.scss +2 -0
- package/framework/src/components/alert/_toaster.scss +124 -0
- package/framework/src/components/input/_entry.scss +135 -0
- package/framework/src/components/input/_form.scss +602 -0
- package/framework/src/components/input/_index.scss +4 -0
- package/framework/src/components/input/_input-gauge.scss +44 -0
- package/framework/src/components/input/_input-icons.scss +55 -0
- package/framework/src/components/progress/_index.scss +2 -0
- package/framework/src/components/progress/_progress-radial.scss +28 -0
- package/framework/src/components/progress/_progress.scss +223 -0
- package/framework/src/elements/_index.scss +5 -0
- package/framework/src/elements/_other.scss +3 -0
- package/framework/src/elements/_plus-symbol.scss +32 -0
- package/framework/src/grid/_all.scss +3 -0
- package/framework/src/grid/_columns.scss +467 -0
- package/framework/src/grid/_rows.scss +54 -0
- package/framework/src/grid/_tiles.scss +78 -0
- package/framework/src/layout/_all.scss +5 -0
- package/framework/src/layout/_hero.scss +146 -0
- package/framework/src/layout/_main.scss +36 -0
- package/framework/src/layout/_section.scss +46 -0
- package/framework/src/theming/_all.scss +3 -0
- package/framework/src/theming/buttons_partial.scss +32 -0
- package/framework/src/theming/common_partials.scss +10 -0
- package/framework/src/theming/links_partial.scss +20 -0
- package/framework/src/trilogy-core.scss +16 -0
- package/framework/src/trilogy-mangled.scss +14 -0
- package/framework/src/trilogy-namespaced.scss +14 -0
- package/framework/src/trilogy.scss +8 -0
- package/framework/src/utilities/_a11y.scss +13 -0
- package/framework/src/utilities/_all.scss +13 -0
- package/framework/src/utilities/_animations.scss +71 -0
- package/framework/src/utilities/_background.scss +21 -0
- package/framework/src/utilities/_controls.scss +56 -0
- package/framework/src/utilities/_derived-variables.scss +1 -0
- package/framework/src/utilities/_functions.scss +94 -0
- package/framework/src/utilities/_initial-variables.scss +10 -0
- package/framework/src/utilities/_post.scss +6 -0
- package/framework/src/utilities/_pre.scss +8 -0
- package/framework/src/utilities/_spacing.scss +10 -0
- package/framework/src/utilities/_tools.scss +3 -0
- package/framework/src/utilities/mixins/_arrow.scss +21 -0
- package/framework/src/utilities/mixins/_delete.scss +86 -0
- package/framework/src/utilities/mixins/_index.scss +11 -0
- package/framework/src/utilities/mixins/_markup-group.scss +27 -0
- package/framework/src/utilities/mixins/_mixins.scss +294 -0
- package/framework/src/utilities/mixins/_overlay.scss +7 -0
- package/framework/src/utilities/mixins/_pattern.scss +10 -0
- package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
- package/framework/src/utilities/mixins/_spinner.scss +12 -0
- package/framework/src/utilities/mixins/_state.scss +25 -0
- package/framework/src/utilities/mixins/_unselectable.scss +10 -0
- package/framework/src/utilities/mixins/_utils.scss +24 -0
- package/framework/src/utilities/variables/_animation.scss +2 -0
- package/framework/src/utilities/variables/_color.scss +85 -0
- package/framework/src/utilities/variables/_font.scss +97 -0
- package/framework/src/utilities/variables/_index.scss +6 -0
- package/framework/src/utilities/variables/_responsiveness.scss +7 -0
- package/framework/src/utilities/variables/_shadow.scss +3 -0
- package/framework/src/utilities/variables/_zindex.scss +14 -0
- package/package.json +28 -0
- package/themes/default/src/_all.scss +1 -0
- package/themes/default/src/assets.scss +11 -0
- package/themes/default/src/utilities/_all.scss +0 -0
- package/themes/default/src/utilities/_post.scss +0 -0
- package/themes/default/src/utilities/_pre.scss +3 -0
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
@mixin position-top {
|
|
2
|
+
top: auto;
|
|
3
|
+
bottom: 100%;
|
|
4
|
+
left: 50%;
|
|
5
|
+
right: auto;
|
|
6
|
+
transform: translate(-50%, 2.5px);
|
|
7
|
+
|
|
8
|
+
&::before {
|
|
9
|
+
bottom: auto;
|
|
10
|
+
right: auto;
|
|
11
|
+
top: 100%;
|
|
12
|
+
left: 50%;
|
|
13
|
+
transform: rotate(-45deg);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@mixin position-right {
|
|
18
|
+
top: auto;
|
|
19
|
+
bottom: 50%;
|
|
20
|
+
left: 100%;
|
|
21
|
+
right: auto;
|
|
22
|
+
transform: translate(7px, 50%);
|
|
23
|
+
|
|
24
|
+
// flèche sur le contour de la popover
|
|
25
|
+
&::before {
|
|
26
|
+
top: 50%;
|
|
27
|
+
bottom: auto;
|
|
28
|
+
left: 0;
|
|
29
|
+
right: auto;
|
|
30
|
+
transform: rotate(45deg);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@mixin position-bottom {
|
|
35
|
+
top: 100%;
|
|
36
|
+
bottom: auto;
|
|
37
|
+
left: 50%;
|
|
38
|
+
right: auto;
|
|
39
|
+
transform: translate(-50%, 7px);
|
|
40
|
+
|
|
41
|
+
// flèche sur le contour de la popover
|
|
42
|
+
&::before {
|
|
43
|
+
top: 0;
|
|
44
|
+
bottom: auto;
|
|
45
|
+
right: auto;
|
|
46
|
+
left: 50%;
|
|
47
|
+
transform: rotate(135deg);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@mixin position-left {
|
|
52
|
+
top: auto;
|
|
53
|
+
bottom: 50%;
|
|
54
|
+
left: auto;
|
|
55
|
+
right: 100%;
|
|
56
|
+
transform: translate(-7px, 50%);
|
|
57
|
+
|
|
58
|
+
// flèche sur le contour de la popover
|
|
59
|
+
&::before {
|
|
60
|
+
top: 50%;
|
|
61
|
+
bottom: auto;
|
|
62
|
+
left: 100%;
|
|
63
|
+
right: auto;
|
|
64
|
+
transform: rotate(-135deg);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.popover {
|
|
69
|
+
position: relative;
|
|
70
|
+
display: inline-flex;
|
|
71
|
+
|
|
72
|
+
.popover-content {
|
|
73
|
+
@include position-top();
|
|
74
|
+
|
|
75
|
+
background-color: getColor('font');
|
|
76
|
+
border-radius: var(--radius-small);
|
|
77
|
+
box-shadow: $shadow;
|
|
78
|
+
color: getColor('background');
|
|
79
|
+
display: inline-block;
|
|
80
|
+
font-size: 12px;
|
|
81
|
+
visibility: hidden;
|
|
82
|
+
padding: $spacing-2;
|
|
83
|
+
font-weight: 500;
|
|
84
|
+
position: absolute;
|
|
85
|
+
text-align: center;
|
|
86
|
+
max-width: 210px;
|
|
87
|
+
width: max-content;
|
|
88
|
+
z-index: zindex('popover');
|
|
89
|
+
|
|
90
|
+
ul {
|
|
91
|
+
padding-left: 14px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// dessine la flèche sur le contour de la popover
|
|
95
|
+
&::before {
|
|
96
|
+
content: '';
|
|
97
|
+
border-color: transparent;
|
|
98
|
+
border-bottom-color: getColor('font');
|
|
99
|
+
border-left-color: getColor('font');
|
|
100
|
+
border-style: solid;
|
|
101
|
+
border-width: 4px;
|
|
102
|
+
pointer-events: none;
|
|
103
|
+
position: absolute;
|
|
104
|
+
margin-left: -4px;
|
|
105
|
+
margin-top: -4px;
|
|
106
|
+
transform-origin: center;
|
|
107
|
+
height: 0;
|
|
108
|
+
width: 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.title,
|
|
112
|
+
.suptitle,
|
|
113
|
+
.paragraph,
|
|
114
|
+
.text,
|
|
115
|
+
p {
|
|
116
|
+
color: getColor('background');
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&:not(.is-popover-right):not(.is-popover-left):not(.is-popover-bottom) .popover-content {
|
|
121
|
+
margin-bottom: 8px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&.is-popover-right .popover-content {
|
|
125
|
+
@include position-right();
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&.is-popover-bottom .popover-content {
|
|
129
|
+
@include position-bottom();
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&.is-popover-left .popover-content {
|
|
133
|
+
@include position-left();
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@include mobile {
|
|
137
|
+
&.is-popover-top-mobile .popover-content {
|
|
138
|
+
@include position-top();
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&.is-popover-right-mobile .popover-content {
|
|
142
|
+
@include position-right();
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&.is-popover-bottom-mobile .popover-content {
|
|
146
|
+
@include position-bottom();
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&.is-popover-left-mobile .popover-content {
|
|
150
|
+
@include position-left();
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@include tablet {
|
|
155
|
+
&.is-popover-top-tablet .popover-content {
|
|
156
|
+
@include position-top();
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&.is-popover-right-tablet .popover-content {
|
|
160
|
+
@include position-right();
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&.is-popover-bottom-tablet .popover-content {
|
|
164
|
+
@include position-bottom();
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&.is-popover-left-tablet .popover-content {
|
|
168
|
+
@include position-left();
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
@include tablet-only {
|
|
173
|
+
&.is-popover-top-tablet-only .popover-content {
|
|
174
|
+
@include position-top();
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&.is-popover-right-tablet-only .popover-content {
|
|
178
|
+
@include position-right();
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&.is-popover-bottom-tablet-only .popover-content {
|
|
182
|
+
@include position-bottom();
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&.is-popover-left-tablet-only .popover-content {
|
|
186
|
+
@include position-left();
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@include touch {
|
|
191
|
+
&.is-popover-top-touch .popover-content {
|
|
192
|
+
@include position-top();
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&.is-popover-right-touch .popover-content {
|
|
196
|
+
@include position-right();
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&.is-popover-bottom-touch .popover-content {
|
|
200
|
+
@include position-bottom();
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
&.is-popover-left-touch .popover-content {
|
|
204
|
+
@include position-left();
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
@include desktop {
|
|
209
|
+
&.is-popover-top-desktop .popover-content {
|
|
210
|
+
@include position-top();
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
&.is-popover-right-desktop .popover-content {
|
|
214
|
+
@include position-right();
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&.is-popover-bottom-desktop .popover-content {
|
|
218
|
+
@include position-bottom();
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&.is-popover-left-desktop .popover-content {
|
|
222
|
+
@include position-left();
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@include desktop-only {
|
|
227
|
+
&.is-popover-top-desktop-only .popover-content {
|
|
228
|
+
@include position-top();
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
&.is-popover-right-desktop-only .popover-content {
|
|
232
|
+
@include position-right();
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
&.is-popover-bottom-desktop-only .popover-content {
|
|
236
|
+
@include position-bottom();
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
&.is-popover-left-desktop-only .popover-content {
|
|
240
|
+
@include position-left();
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
@include widescreen {
|
|
245
|
+
&.is-popover-top-widescreen .popover-content {
|
|
246
|
+
@include position-top();
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
&.is-popover-right-widescreen .popover-content {
|
|
250
|
+
@include position-right();
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
&.is-popover-bottom-widescreen .popover-content {
|
|
254
|
+
@include position-bottom();
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
&.is-popover-left-widescreen .popover-content {
|
|
258
|
+
@include position-left();
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
@include widescreen-only {
|
|
263
|
+
&.is-popover-top-widescreen-only .popover-content {
|
|
264
|
+
@include position-top();
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
&.is-popover-right-widescreen-only .popover-content {
|
|
268
|
+
@include position-right();
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
&.is-popover-bottom-widescreen-only .popover-content {
|
|
272
|
+
@include position-bottom();
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
&.is-popover-left-widescreen-only .popover-content {
|
|
276
|
+
@include position-left();
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
@include fullhd {
|
|
281
|
+
&.is-popover-top-fullhd .popover-content {
|
|
282
|
+
@include position-top();
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
&.is-popover-right-fullhd .popover-content {
|
|
286
|
+
@include position-right();
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
&.is-popover-bottom-fullhd .popover-content {
|
|
290
|
+
@include position-bottom();
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
&.is-popover-left-fullhd .popover-content {
|
|
294
|
+
@include position-left();
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
// ajustement des flèches en fonction de la position
|
|
299
|
+
&.is-popover-right,
|
|
300
|
+
&.is-popover-left {
|
|
301
|
+
&.is-arrow-start .popover-content::before {
|
|
302
|
+
top: 20%;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
&.is-arrow-end .popover-content::before {
|
|
306
|
+
top: 80%;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
&.is-popover-right {
|
|
311
|
+
&.is-arrow-start .popover-content::before,
|
|
312
|
+
&.is-arrow-end .popover-content::before {
|
|
313
|
+
left: 0;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
&.is-popover-left {
|
|
318
|
+
&.is-arrow-start .popover-content::before,
|
|
319
|
+
&.is-arrow-end .popover-content::before {
|
|
320
|
+
left: 100%;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
&.is-arrow-start .popover-content::before {
|
|
325
|
+
left: 10%;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
&.is-arrow-end .popover-content::before {
|
|
329
|
+
left: 90%;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
&.is-popover-active .popover-content,
|
|
333
|
+
&:hover .popover-content {
|
|
334
|
+
visibility: visible;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.popover-trigger:focus ~ .popover-content {
|
|
338
|
+
visibility: visible;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
$price-levels: (
|
|
2
|
+
[$text-64, $text-44, $text-28, $text-16],
|
|
3
|
+
[$text-56, $text-32, $text-22, $text-16],
|
|
4
|
+
[$text-48, $text-28, $text-16, $text-16],
|
|
5
|
+
[$text-40, $text-24, $text-10, $text-10],
|
|
6
|
+
[$text-36, $text-20, $text-10, $text-10],
|
|
7
|
+
[$text-24, $text-20, $text-10, $text-10],
|
|
8
|
+
[$text-20, $text-20, $text-10, $text-10],
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
.price-container {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: baseline;
|
|
14
|
+
column-gap: 12px;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
--font-size: #{$text-64};
|
|
17
|
+
|
|
18
|
+
@each $price-level in $price-levels {
|
|
19
|
+
$i: index($price-levels, $price-level);
|
|
20
|
+
$font-size: nth($price-level, 1);
|
|
21
|
+
$strike-font-size: nth($price-level, 2);
|
|
22
|
+
|
|
23
|
+
&.is-level-#{$i} {
|
|
24
|
+
--font-size: #{$font-size};
|
|
25
|
+
--strike-font-size: #{$strike-font-size};
|
|
26
|
+
|
|
27
|
+
@if $i > 4 {
|
|
28
|
+
.price-details {
|
|
29
|
+
padding-left: 2px;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.overline {
|
|
36
|
+
width: 100%;
|
|
37
|
+
flex: none;
|
|
38
|
+
margin: 0;
|
|
39
|
+
font-size: calc(var(--font-size) * 0.4);
|
|
40
|
+
font-weight: 400;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.price {
|
|
44
|
+
font-size: var(--font-size);
|
|
45
|
+
|
|
46
|
+
&.strike {
|
|
47
|
+
font-size: var(--strike-font-size);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.price {
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
font-weight: $weight-semibold;
|
|
56
|
+
line-height: 0.8;
|
|
57
|
+
margin-bottom: 0;
|
|
58
|
+
font-size: var(--font-size);
|
|
59
|
+
|
|
60
|
+
&.strike {
|
|
61
|
+
font-size: var(--strike-font-size);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
@each $price-level in $price-levels {
|
|
66
|
+
$i: index($price-levels, $price-level);
|
|
67
|
+
$font-size: nth($price-level, 1);
|
|
68
|
+
$strike-font-size: nth($price-level, 2);
|
|
69
|
+
|
|
70
|
+
&.is-level-#{$i} {
|
|
71
|
+
--font-size: #{$font-size};
|
|
72
|
+
--strike-font-size: #{$strike-font-size};
|
|
73
|
+
|
|
74
|
+
@if $i > 4 {
|
|
75
|
+
.price-details {
|
|
76
|
+
padding-left: 2px;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
// the details : cents + period
|
|
84
|
+
|
|
85
|
+
.price-details {
|
|
86
|
+
padding-left: $spacing-1;
|
|
87
|
+
|
|
88
|
+
.cents,
|
|
89
|
+
.centimes,
|
|
90
|
+
.periode,
|
|
91
|
+
.period {
|
|
92
|
+
line-height: 1;
|
|
93
|
+
display: block;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.cents,
|
|
97
|
+
.centimes {
|
|
98
|
+
font-weight: 600;
|
|
99
|
+
font-size: 0.475em;
|
|
100
|
+
vertical-align: top;
|
|
101
|
+
text-align: left;
|
|
102
|
+
|
|
103
|
+
sup {
|
|
104
|
+
font-weight: $weight-medium;
|
|
105
|
+
padding-left: 2px;
|
|
106
|
+
top: -0.3em;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.period,
|
|
111
|
+
.periode {
|
|
112
|
+
font-size: 0.375em;
|
|
113
|
+
margin-top: 0;
|
|
114
|
+
padding-left: 0.1em;
|
|
115
|
+
text-align: left;
|
|
116
|
+
font-weight: $weight-normal;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&.is-inverted {
|
|
121
|
+
color: getColor('background');
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&.has-description {
|
|
125
|
+
.cents,
|
|
126
|
+
.centimes {
|
|
127
|
+
align-items: flex-start;
|
|
128
|
+
display: flex;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.icon {
|
|
132
|
+
height: inherit;
|
|
133
|
+
width: inherit;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&.is-inlined {
|
|
138
|
+
.price-details {
|
|
139
|
+
display: inline-flex;
|
|
140
|
+
margin-left: 0;
|
|
141
|
+
padding-left: 0 !important;
|
|
142
|
+
|
|
143
|
+
.cents,
|
|
144
|
+
.centimes,
|
|
145
|
+
.periode,
|
|
146
|
+
.period {
|
|
147
|
+
font-size: inherit;
|
|
148
|
+
line-height: 0.8;
|
|
149
|
+
padding-left: 0;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&.strike {
|
|
154
|
+
&::before {
|
|
155
|
+
transform: rotate(-12deg);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&.strike {
|
|
161
|
+
position: relative;
|
|
162
|
+
color: getColor('font-placeholder');
|
|
163
|
+
|
|
164
|
+
&::before {
|
|
165
|
+
position: absolute;
|
|
166
|
+
content: "";
|
|
167
|
+
left: 0;
|
|
168
|
+
top: 50%;
|
|
169
|
+
right: 0;
|
|
170
|
+
border-top: 2px solid;
|
|
171
|
+
border-color: getColor('font-placeholder');
|
|
172
|
+
border-radius: 5px;
|
|
173
|
+
transform: rotate(-20deg);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&.is-inverted {
|
|
177
|
+
color: getColor('background');
|
|
178
|
+
|
|
179
|
+
&::before {
|
|
180
|
+
border-color: getColor('background');
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
.product-tour {
|
|
2
|
+
position: absolute;
|
|
3
|
+
z-index: zindex('modal');
|
|
4
|
+
visibility: hidden;
|
|
5
|
+
opacity: 0;
|
|
6
|
+
background-color: getColor('background');
|
|
7
|
+
border-radius: $radius;
|
|
8
|
+
box-shadow: $shadow;
|
|
9
|
+
width: 350px;
|
|
10
|
+
padding: $spacing-3 * 2;
|
|
11
|
+
|
|
12
|
+
@include mobile {
|
|
13
|
+
max-width: inherit;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.arrow {
|
|
17
|
+
position: absolute;
|
|
18
|
+
top: 0;
|
|
19
|
+
right: auto !important;
|
|
20
|
+
bottom: auto !important;
|
|
21
|
+
left: 50%;
|
|
22
|
+
margin-top: -4px;
|
|
23
|
+
margin-left: -4px;
|
|
24
|
+
border-width: 4px;
|
|
25
|
+
border-style: solid;
|
|
26
|
+
border-color: transparent transparent #fff #fff;
|
|
27
|
+
transform: rotate(135deg);
|
|
28
|
+
height: 0;
|
|
29
|
+
width: 0;
|
|
30
|
+
box-shadow: -1px 1px 2px rgba(10, 10, 10, 0.2);
|
|
31
|
+
transform-origin: center;
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
|
|
34
|
+
@include mobile {
|
|
35
|
+
display: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.is-one-fifth { left: 20%; }
|
|
39
|
+
&.is-one-quarter { left: 25%; }
|
|
40
|
+
&.is-one-third { left: 33%; }
|
|
41
|
+
&.is-two-fifths { left: 40%; }
|
|
42
|
+
&.is-three-fifths { left: 60%; }
|
|
43
|
+
&.is-two-thirds { left: 66%; }
|
|
44
|
+
&.is-three-quarters { left: 75%; }
|
|
45
|
+
&.is-four-fifths { left: 80%; }
|
|
46
|
+
|
|
47
|
+
&.is-right {
|
|
48
|
+
top: 50% !important;
|
|
49
|
+
right: 0 !important;
|
|
50
|
+
bottom: auto !important;
|
|
51
|
+
left: 100% !important;
|
|
52
|
+
transform: rotate(-135deg);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.is-bottom {
|
|
56
|
+
top: 100% !important;
|
|
57
|
+
bottom: auto !important;
|
|
58
|
+
right: auto !important;
|
|
59
|
+
transform: rotate(-45deg);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.is-left {
|
|
63
|
+
top: 50% !important;
|
|
64
|
+
bottom: auto !important;
|
|
65
|
+
left: 0 !important;
|
|
66
|
+
right: 100% !important;
|
|
67
|
+
transform: rotate(45deg);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&.is-left,
|
|
71
|
+
&.is-right {
|
|
72
|
+
&.is-one-fifth { top: 20% !important; }
|
|
73
|
+
&.is-one-quarter { top: 25% !important; }
|
|
74
|
+
&.is-one-third { top: 33% !important; }
|
|
75
|
+
&.is-two-fifths { top: 40% !important; }
|
|
76
|
+
&.is-three-fifths { top: 60% !important; }
|
|
77
|
+
&.is-two-thirds { top: 66% !important; }
|
|
78
|
+
&.is-three-quarters { top: 75% !important; }
|
|
79
|
+
&.is-four-fifths { top: 80% !important; }
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&.is-active {
|
|
84
|
+
opacity: 1;
|
|
85
|
+
visibility: visible;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&.has-icon-left,
|
|
89
|
+
&.has-icon-right {
|
|
90
|
+
> .icon:not(.close) {
|
|
91
|
+
position: absolute;
|
|
92
|
+
top: 0;
|
|
93
|
+
left: 0;
|
|
94
|
+
background: white;
|
|
95
|
+
border-radius: 9999px;
|
|
96
|
+
box-shadow: $shadow;
|
|
97
|
+
transform: translate(-50%, -50%);
|
|
98
|
+
|
|
99
|
+
@include mobile {
|
|
100
|
+
display: none;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
img {
|
|
104
|
+
flex-shrink: 0; // IE11 fix
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&.has-icon-right {
|
|
110
|
+
> .icon:not(.close) {
|
|
111
|
+
left: 100% !important;
|
|
112
|
+
right: 0;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.close {
|
|
117
|
+
position: absolute;
|
|
118
|
+
top: 0;
|
|
119
|
+
right: 0;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.product-tour-target {
|
|
124
|
+
&-active {
|
|
125
|
+
outline: 999em solid getColor('main') !important;
|
|
126
|
+
outline-offset: 10px !important;
|
|
127
|
+
z-index: zindex('modal');
|
|
128
|
+
}
|
|
129
|
+
}
|