@trilogy-ds/styles 0.0.1-beta-1
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/framework/src/_all.scss +8 -0
- package/framework/src/base/_all.scss +9 -0
- package/framework/src/base/_color.scss +58 -0
- package/framework/src/base/_elements.scss +34 -0
- package/framework/src/base/_fonts.scss +2 -0
- package/framework/src/base/_generic.scss +68 -0
- package/framework/src/base/_helpers.scss +880 -0
- package/framework/src/base/_loading.scss +102 -0
- package/framework/src/base/_reset.scss +138 -0
- package/framework/src/components/_accordion.scss +178 -0
- package/framework/src/components/_all.scss +30 -0
- package/framework/src/components/_autolayout2.scss +38 -0
- package/framework/src/components/_breadcrumb.scss +45 -0
- package/framework/src/components/_card.scss +298 -0
- package/framework/src/components/_countdown.scss +55 -0
- package/framework/src/components/_disclaimer.scss +84 -0
- package/framework/src/components/_divider.scss +18 -0
- package/framework/src/components/_dropdown.scss +128 -0
- package/framework/src/components/_fab.scss +60 -0
- package/framework/src/components/_level.scss +120 -0
- package/framework/src/components/_media.scss +64 -0
- package/framework/src/components/_menu.scss +213 -0
- package/framework/src/components/_modal.scss +201 -0
- package/framework/src/components/_otp.scss +92 -0
- package/framework/src/components/_pagination.scss +182 -0
- package/framework/src/components/_plus-symbol.scss +32 -0
- package/framework/src/components/_popover.scss +340 -0
- package/framework/src/components/_price.scss +209 -0
- package/framework/src/components/_product-tour.scss +131 -0
- package/framework/src/components/_progress-radial.scss +23 -0
- package/framework/src/components/_range.scss +84 -0
- package/framework/src/components/_scroll-view.scss +19 -0
- package/framework/src/components/_search-modal.scss +197 -0
- package/framework/src/components/_segmented-control.scss +60 -0
- package/framework/src/components/_slices.scss +316 -0
- package/framework/src/components/_slider.scss +92 -0
- package/framework/src/components/_stepper.scss +397 -0
- package/framework/src/components/_switch.scss +209 -0
- package/framework/src/components/_tabs.scss +212 -0
- package/framework/src/components/_timeline.scss +367 -0
- package/framework/src/elements/_alert.scss +91 -0
- package/framework/src/elements/_all.scss +35 -0
- package/framework/src/elements/_badge.scss +81 -0
- package/framework/src/elements/_box.scss +267 -0
- package/framework/src/elements/_button.scss +192 -0
- package/framework/src/elements/_checkbox.scss +39 -0
- package/framework/src/elements/_checkradio.scss +173 -0
- package/framework/src/elements/_chips.scss +100 -0
- package/framework/src/elements/_container.scss +108 -0
- package/framework/src/elements/_dot.scss +6 -0
- package/framework/src/elements/_entry.scss +109 -0
- package/framework/src/elements/_form.scss +593 -0
- package/framework/src/elements/_icon.scss +384 -0
- package/framework/src/elements/_image.scss +59 -0
- package/framework/src/elements/_input-gauge.scss +37 -0
- package/framework/src/elements/_input-icons.scss +41 -0
- package/framework/src/elements/_link.scss +79 -0
- package/framework/src/elements/_list.scss +61 -0
- package/framework/src/elements/_loader.scss +126 -0
- package/framework/src/elements/_notification.scss +151 -0
- package/framework/src/elements/_options.scss +146 -0
- package/framework/src/elements/_other.scss +44 -0
- package/framework/src/elements/_paragraph.scss +101 -0
- package/framework/src/elements/_progress.scss +212 -0
- package/framework/src/elements/_radio.scss +67 -0
- package/framework/src/elements/_select.scss +315 -0
- package/framework/src/elements/_sticker.scss +151 -0
- package/framework/src/elements/_switch.scss +108 -0
- package/framework/src/elements/_table.scss +298 -0
- package/framework/src/elements/_tag.scss +131 -0
- package/framework/src/elements/_textarea.scss +125 -0
- package/framework/src/elements/_timeline.scss +283 -0
- package/framework/src/elements/_title.scss +139 -0
- package/framework/src/elements/_toaster.scss +128 -0
- package/framework/src/grid/_all.scss +3 -0
- package/framework/src/grid/_columns.scss +952 -0
- package/framework/src/grid/_rows.scss +47 -0
- package/framework/src/grid/_tiles.scss +78 -0
- package/framework/src/layout/_all.scss +6 -0
- package/framework/src/layout/_hero.scss +268 -0
- package/framework/src/layout/_main.scss +36 -0
- package/framework/src/layout/_section.scss +65 -0
- package/framework/src/layout/_toolbar.scss +100 -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/_all.scss +9 -0
- package/framework/src/utilities/_animations.scss +71 -0
- package/framework/src/utilities/_controls.scss +67 -0
- package/framework/src/utilities/_derived-variables.scss +104 -0
- package/framework/src/utilities/_functions.scss +94 -0
- package/framework/src/utilities/_initial-variables.scss +150 -0
- package/framework/src/utilities/_mixins.scss +745 -0
- package/framework/src/utilities/_post.scss +6 -0
- package/framework/src/utilities/_pre.scss +5 -0
- package/framework/src/utilities/_spacing.scss +10 -0
- package/framework/src/utilities/_tools.scss +3 -0
- package/package.json +22 -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,209 @@
|
|
|
1
|
+
$price-levels: (
|
|
2
|
+
($text-64),
|
|
3
|
+
($text-56),
|
|
4
|
+
($text-44),
|
|
5
|
+
($text-32),
|
|
6
|
+
($text-28),
|
|
7
|
+
($text-24),
|
|
8
|
+
($text-20),
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
.price {
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
// flex-wrap: wrap;
|
|
15
|
+
&:not(.is-inlined){
|
|
16
|
+
font-size: 44px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@each $price-level in $price-levels {
|
|
21
|
+
$i: index($price-levels, $price-level);
|
|
22
|
+
$font-size: nth($price-level , 1);
|
|
23
|
+
|
|
24
|
+
&.is-level-#{$i} {
|
|
25
|
+
font-size: $font-size;
|
|
26
|
+
|
|
27
|
+
@if $i > 4 {
|
|
28
|
+
.price-details {
|
|
29
|
+
padding-left: 2px !important;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// the details : cents + period
|
|
35
|
+
|
|
36
|
+
.price-details {
|
|
37
|
+
padding-left: $spacing-1;
|
|
38
|
+
|
|
39
|
+
.cents,
|
|
40
|
+
.centimes,
|
|
41
|
+
.periode,
|
|
42
|
+
.period {
|
|
43
|
+
line-height: 1;
|
|
44
|
+
display: block;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.cents,
|
|
48
|
+
.centimes {
|
|
49
|
+
font-weight: 600;
|
|
50
|
+
font-size: 0.475em;
|
|
51
|
+
vertical-align: top;
|
|
52
|
+
text-align: left;
|
|
53
|
+
|
|
54
|
+
sup {
|
|
55
|
+
font-weight: $weight-medium;
|
|
56
|
+
padding-left: 2px;
|
|
57
|
+
top: -0.3em;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.period,
|
|
62
|
+
.periode {
|
|
63
|
+
font-size: 0.375em;
|
|
64
|
+
margin-top: 0;
|
|
65
|
+
padding-left: 0.1em;
|
|
66
|
+
text-align: left;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// FIXME : le nom de cette classe devrait être préfixé de "price-"
|
|
74
|
+
.main,
|
|
75
|
+
.price-main {
|
|
76
|
+
font-weight: $weight-semibold;
|
|
77
|
+
line-height: 0.8;
|
|
78
|
+
margin-bottom: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
// rendre les is-n deprecated dans 4 versions - v1.18.11 -
|
|
86
|
+
|
|
87
|
+
&.is-1 {
|
|
88
|
+
font-size: 56px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&.is-2 {
|
|
92
|
+
font-size: 44px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&.is-3 {
|
|
96
|
+
font-size: 32px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&.is-4 {
|
|
100
|
+
font-size: 29px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&.is-5 {
|
|
104
|
+
font-size: 23px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&.is-6 {
|
|
108
|
+
font-size: 14px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&.is-huge {
|
|
112
|
+
font-size: 62px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&.is-main-price {
|
|
116
|
+
color: getColor('alternate');
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&.is-inverted {
|
|
120
|
+
color: getColor('background');
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&.has-suptitle {
|
|
124
|
+
display: flex;
|
|
125
|
+
flex-wrap: wrap;
|
|
126
|
+
|
|
127
|
+
.price-suptitle {
|
|
128
|
+
flex-basis: 100%;
|
|
129
|
+
font-size: 0.375em;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&.has-description {
|
|
134
|
+
.cents,
|
|
135
|
+
.centimes {
|
|
136
|
+
align-items: flex-start;
|
|
137
|
+
display: flex;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.icon {
|
|
141
|
+
height: inherit;
|
|
142
|
+
width: inherit;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&.is-inlined {
|
|
147
|
+
.price-details {
|
|
148
|
+
display: inline-flex;
|
|
149
|
+
margin-left: 0;
|
|
150
|
+
padding-left: 0 !important;
|
|
151
|
+
.cents,
|
|
152
|
+
.centimes,
|
|
153
|
+
.periode,
|
|
154
|
+
.period {
|
|
155
|
+
font-size: inherit;
|
|
156
|
+
line-height: 0.8;
|
|
157
|
+
padding-left: 0;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&.is-striked {
|
|
162
|
+
&::before {
|
|
163
|
+
transform: rotate(-12deg);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&.is-striked {
|
|
169
|
+
position: relative;
|
|
170
|
+
color: getVariantColor('font', 2);
|
|
171
|
+
|
|
172
|
+
&::before {
|
|
173
|
+
position: absolute;
|
|
174
|
+
content: "";
|
|
175
|
+
left: 0;
|
|
176
|
+
top: 50%;
|
|
177
|
+
right: 0;
|
|
178
|
+
border-top: 2px solid;
|
|
179
|
+
border-color: getColor('font');
|
|
180
|
+
border-radius: 5px;
|
|
181
|
+
transform: rotate(-20deg);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
&.is-main-price {
|
|
185
|
+
color: getVariantColor('alternate', 2);
|
|
186
|
+
&::before {
|
|
187
|
+
border-color: getColor('alternate');
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&.is-inverted {
|
|
192
|
+
color: getVariantColor('background', 2);
|
|
193
|
+
|
|
194
|
+
&::before {
|
|
195
|
+
border-color: getColor('background');
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&.has-suptitle {
|
|
200
|
+
display: inline-flex;
|
|
201
|
+
margin-top: 0.55em;
|
|
202
|
+
|
|
203
|
+
.price-suptitle {
|
|
204
|
+
position: absolute;
|
|
205
|
+
top: -1.4em;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
$product-tour-target-outline: rgba(10,10,10,.86); // comes from Bulma's .modal-background defaults
|
|
2
|
+
|
|
3
|
+
.product-tour {
|
|
4
|
+
position: absolute;
|
|
5
|
+
z-index: zindex('modal');
|
|
6
|
+
visibility: hidden;
|
|
7
|
+
opacity: 0;
|
|
8
|
+
background-color: getColor('background');
|
|
9
|
+
border-radius: $radius;
|
|
10
|
+
box-shadow: $shadow;
|
|
11
|
+
width: 350px;
|
|
12
|
+
padding: $spacing-3 * 2;
|
|
13
|
+
|
|
14
|
+
@include mobile {
|
|
15
|
+
max-width: inherit;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.arrow {
|
|
19
|
+
position: absolute;
|
|
20
|
+
top: 0;
|
|
21
|
+
right: auto !important;
|
|
22
|
+
bottom: auto !important;
|
|
23
|
+
left: 50%;
|
|
24
|
+
margin-top: -4px;
|
|
25
|
+
margin-left: -4px;
|
|
26
|
+
border-width: 4px;
|
|
27
|
+
border-style: solid;
|
|
28
|
+
border-color: transparent transparent #fff #fff;
|
|
29
|
+
transform: rotate(135deg);
|
|
30
|
+
height: 0;
|
|
31
|
+
width: 0;
|
|
32
|
+
box-shadow: -1px 1px 2px rgba(10, 10, 10, 0.2);
|
|
33
|
+
transform-origin: center;
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
|
|
36
|
+
@include mobile {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.is-one-fifth { left: 20%; }
|
|
41
|
+
&.is-one-quarter { left: 25%; }
|
|
42
|
+
&.is-one-third { left: 33%; }
|
|
43
|
+
&.is-two-fifths { left: 40%; }
|
|
44
|
+
&.is-three-fifths { left: 60%; }
|
|
45
|
+
&.is-two-thirds { left: 66%; }
|
|
46
|
+
&.is-three-quarters { left: 75%; }
|
|
47
|
+
&.is-four-fifths { left: 80%; }
|
|
48
|
+
|
|
49
|
+
&.is-right {
|
|
50
|
+
top: 50% !important;
|
|
51
|
+
right: 0 !important;
|
|
52
|
+
bottom: auto !important;
|
|
53
|
+
left: 100% !important;
|
|
54
|
+
transform: rotate(-135deg);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.is-bottom {
|
|
58
|
+
top: 100% !important;
|
|
59
|
+
bottom: auto !important;
|
|
60
|
+
right: auto !important;
|
|
61
|
+
transform: rotate(-45deg);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.is-left {
|
|
65
|
+
top: 50% !important;
|
|
66
|
+
bottom: auto !important;
|
|
67
|
+
left: 0 !important;
|
|
68
|
+
right: 100% !important;
|
|
69
|
+
transform: rotate(45deg);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.is-left,
|
|
73
|
+
&.is-right {
|
|
74
|
+
&.is-one-fifth { top: 20% !important; }
|
|
75
|
+
&.is-one-quarter { top: 25% !important; }
|
|
76
|
+
&.is-one-third { top: 33% !important; }
|
|
77
|
+
&.is-two-fifths { top: 40% !important; }
|
|
78
|
+
&.is-three-fifths { top: 60% !important; }
|
|
79
|
+
&.is-two-thirds { top: 66% !important; }
|
|
80
|
+
&.is-three-quarters { top: 75% !important; }
|
|
81
|
+
&.is-four-fifths { top: 80% !important; }
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&.is-active {
|
|
86
|
+
opacity: 1;
|
|
87
|
+
visibility: visible;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.has-icon-left,
|
|
91
|
+
&.has-icon-right {
|
|
92
|
+
> .icon:not(.close) {
|
|
93
|
+
position: absolute;
|
|
94
|
+
top: 0;
|
|
95
|
+
left: 0;
|
|
96
|
+
background: white;
|
|
97
|
+
border-radius: 100%;
|
|
98
|
+
box-shadow: $shadow;
|
|
99
|
+
transform: translate(-50%, -50%);
|
|
100
|
+
|
|
101
|
+
@include mobile {
|
|
102
|
+
display: none;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
img {
|
|
106
|
+
flex-shrink: 0; // IE11 fix
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&.has-icon-right {
|
|
112
|
+
> .icon:not(.close) {
|
|
113
|
+
left: 100% !important;
|
|
114
|
+
right: 0;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.close {
|
|
119
|
+
position: absolute;
|
|
120
|
+
top: 0;
|
|
121
|
+
right: 0;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.product-tour-target {
|
|
126
|
+
&-active {
|
|
127
|
+
outline: 999em solid $product-tour-target-outline !important;
|
|
128
|
+
outline-offset: 10px !important;
|
|
129
|
+
z-index: zindex('modal');
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.progress-radial {
|
|
2
|
+
background: radial-gradient(white 58%, transparent 51%),
|
|
3
|
+
conic-gradient(gainsboro 0deg 360deg, gainsboro 0deg 360deg);
|
|
4
|
+
border-radius: 50%;
|
|
5
|
+
width: 124px;
|
|
6
|
+
height: 124px;
|
|
7
|
+
position: relative;
|
|
8
|
+
|
|
9
|
+
.progress-radial-content {
|
|
10
|
+
border: 1px solid white;
|
|
11
|
+
border-radius: 50%;
|
|
12
|
+
width: 102px;
|
|
13
|
+
height: 102px;
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: 50%;
|
|
16
|
+
left: 50%;
|
|
17
|
+
transform: translate(-50%, -50%);
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
align-items: center;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
.range-container {
|
|
2
|
+
@mixin appearence {
|
|
3
|
+
appearance: none;
|
|
4
|
+
height: 5px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@mixin slider-thumb {
|
|
8
|
+
appearance: none;
|
|
9
|
+
width: 20px;
|
|
10
|
+
height: 20px;
|
|
11
|
+
background-color: white;
|
|
12
|
+
pointer-events: auto;
|
|
13
|
+
border-radius: 50%;
|
|
14
|
+
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
|
|
15
|
+
outline: none;
|
|
16
|
+
border: none;
|
|
17
|
+
}
|
|
18
|
+
.range {
|
|
19
|
+
width: 100%;
|
|
20
|
+
position: relative;
|
|
21
|
+
margin-top: 18px;
|
|
22
|
+
margin-bottom: 20px;
|
|
23
|
+
|
|
24
|
+
.range-track {
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 8px;
|
|
27
|
+
border-radius: 8px;
|
|
28
|
+
position: absolute;
|
|
29
|
+
margin: auto;
|
|
30
|
+
top: 0;
|
|
31
|
+
bottom: 0;
|
|
32
|
+
color: getColor('alternate');
|
|
33
|
+
@include mobile {
|
|
34
|
+
height: 4px;
|
|
35
|
+
border-radius: 4px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.range-cursor {
|
|
40
|
+
appearance: none;
|
|
41
|
+
-webkit-appearance: none;
|
|
42
|
+
-moz-appearance: none;
|
|
43
|
+
width: 100%;
|
|
44
|
+
outline: none;
|
|
45
|
+
position: absolute;
|
|
46
|
+
margin: auto;
|
|
47
|
+
top: 0;
|
|
48
|
+
bottom: 0;
|
|
49
|
+
background-color: transparent;
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
|
|
52
|
+
&::-webkit-slider-runnable-track {
|
|
53
|
+
@include appearence;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&::-moz-range-track {
|
|
57
|
+
@include appearence;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&::-ms-track {
|
|
61
|
+
@include appearence;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&::-webkit-slider-thumb {
|
|
65
|
+
@include slider-thumb;
|
|
66
|
+
margin-top: -8px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&::-moz-range-thumb {
|
|
70
|
+
@include slider-thumb;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&::-ms-thumb {
|
|
74
|
+
@include slider-thumb;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
.range-values {
|
|
79
|
+
display: flex;
|
|
80
|
+
justify-content: space-between;
|
|
81
|
+
padding-top: 14px;
|
|
82
|
+
font-weight: bold;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.scroll-view {
|
|
2
|
+
overflow: auto;
|
|
3
|
+
|
|
4
|
+
&.scroll-horizontal {
|
|
5
|
+
overflow-x: scroll;
|
|
6
|
+
overflow-y: hidden;
|
|
7
|
+
&.scroll-snap {
|
|
8
|
+
scroll-snap-type: x mandatory;
|
|
9
|
+
>.div {
|
|
10
|
+
scroll-snap-align: start;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.scroll-vertical {
|
|
16
|
+
overflow-y: scroll;
|
|
17
|
+
overflow-x: hidden;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
$searchbar-height: 60px;
|
|
2
|
+
$searchbar-height-desktop: 80px;
|
|
3
|
+
|
|
4
|
+
.search-modal {
|
|
5
|
+
opacity: 0;
|
|
6
|
+
pointer-events: none;
|
|
7
|
+
|
|
8
|
+
&.is-active,
|
|
9
|
+
&.is-expanded { // TODO: deprecate .is-expanded (replacement: is-active)
|
|
10
|
+
opacity: 1;
|
|
11
|
+
pointer-events: all;
|
|
12
|
+
height: 100%;
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: -$searchbar-height;
|
|
15
|
+
right: 0;
|
|
16
|
+
bottom: 0;
|
|
17
|
+
left: 0;
|
|
18
|
+
|
|
19
|
+
@include tablet {
|
|
20
|
+
top: -$searchbar-height-desktop;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.search-bar {
|
|
24
|
+
height: $searchbar-height;
|
|
25
|
+
border-bottom: 1px solid getColor('grey-light');
|
|
26
|
+
opacity: 1;
|
|
27
|
+
|
|
28
|
+
@include desktop {
|
|
29
|
+
height:$searchbar-height-desktop;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.search-results {
|
|
34
|
+
opacity: 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.modal-background {
|
|
38
|
+
opacity: 1;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.modal-background {
|
|
43
|
+
opacity: 0;
|
|
44
|
+
position: fixed;
|
|
45
|
+
z-index: zindex('small');
|
|
46
|
+
|
|
47
|
+
@include mobile {
|
|
48
|
+
z-index: zindex('medium');
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.search-bar {
|
|
53
|
+
position: absolute;
|
|
54
|
+
z-index: zindex('large');
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
background-color: getColor('background');
|
|
58
|
+
top: 0;
|
|
59
|
+
left: 0;
|
|
60
|
+
right: 0;
|
|
61
|
+
height: 0;
|
|
62
|
+
opacity: 0;
|
|
63
|
+
|
|
64
|
+
@include mobile {
|
|
65
|
+
padding: 0 20px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@include tablet {
|
|
69
|
+
left: $logo-width-desktop;
|
|
70
|
+
padding-left: calc(25% - #{$logo-width-desktop});
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.field {
|
|
74
|
+
margin-top: 0;
|
|
75
|
+
margin-bottom: 0;
|
|
76
|
+
flex-grow: 1;
|
|
77
|
+
|
|
78
|
+
> .control {
|
|
79
|
+
> .input {
|
|
80
|
+
border: 0;
|
|
81
|
+
border-radius: 0;
|
|
82
|
+
background-color: getColor('background');
|
|
83
|
+
|
|
84
|
+
@include mobile {
|
|
85
|
+
background-color: getColor('grey-lighter');
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:hover {
|
|
89
|
+
border: 0;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.search-results {
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: $searchbar-height-desktop;
|
|
99
|
+
left: 25%;
|
|
100
|
+
right: 25%;
|
|
101
|
+
background-color: getColor('background');
|
|
102
|
+
z-index: zindex('large');
|
|
103
|
+
padding: 20px;
|
|
104
|
+
opacity: 0;
|
|
105
|
+
display: none;
|
|
106
|
+
|
|
107
|
+
@include tablet {
|
|
108
|
+
padding-left: 55px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@include mobile {
|
|
112
|
+
top: $searchbar-height;
|
|
113
|
+
left: 0;
|
|
114
|
+
right: 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&.is-active {
|
|
118
|
+
display: block;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
li {
|
|
122
|
+
a {
|
|
123
|
+
display: block;
|
|
124
|
+
margin-left: -55px;
|
|
125
|
+
margin-right: -20px;
|
|
126
|
+
padding: 5px 20px 5px 55px;
|
|
127
|
+
|
|
128
|
+
&:hover,
|
|
129
|
+
&.is-active {
|
|
130
|
+
color: getVariantColor('alternate',2);
|
|
131
|
+
background-color: getColor('grey-lighter');
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
span {
|
|
135
|
+
flex-grow: 1;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.search-autosuggest {
|
|
141
|
+
a {
|
|
142
|
+
span {
|
|
143
|
+
display: inline-block;
|
|
144
|
+
margin-left: 10px;
|
|
145
|
+
font-size: $text-10;
|
|
146
|
+
color: getColor('grey');
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.search-autocomplete {
|
|
152
|
+
a {
|
|
153
|
+
span {
|
|
154
|
+
color: getVariantColor('alternate',2);
|
|
155
|
+
font-weight: bold;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.search-no-modal {
|
|
163
|
+
.search-results {
|
|
164
|
+
li {
|
|
165
|
+
a {
|
|
166
|
+
display: block;
|
|
167
|
+
margin-left: -55px;
|
|
168
|
+
margin-right: -20px;
|
|
169
|
+
padding: 5px 20px 5px 55px;
|
|
170
|
+
|
|
171
|
+
span {
|
|
172
|
+
flex-grow: 1;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.search-autosuggest {
|
|
178
|
+
a {
|
|
179
|
+
span {
|
|
180
|
+
display: inline-block;
|
|
181
|
+
margin-left: 10px;
|
|
182
|
+
font-size: $text-10;
|
|
183
|
+
color: getColor('grey');
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.search-autocomplete {
|
|
189
|
+
a {
|
|
190
|
+
span {
|
|
191
|
+
color: getVariantColor('alternate',2);
|
|
192
|
+
font-weight: bold;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
.segmented-control {
|
|
2
|
+
border-radius: 6px;
|
|
3
|
+
padding: $spacing-1;
|
|
4
|
+
border: 1px solid getColor('grey-light');
|
|
5
|
+
background-color: getColor('grey-lighter');
|
|
6
|
+
display: inline-block;
|
|
7
|
+
margin: 16px 0;
|
|
8
|
+
|
|
9
|
+
@include mobile {
|
|
10
|
+
display: flex;
|
|
11
|
+
margin: 24px auto;
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.segmented-control-item {
|
|
16
|
+
padding: 0 $spacing-5;
|
|
17
|
+
border-radius: 4px;
|
|
18
|
+
font-size: 16px;
|
|
19
|
+
text-align: center;
|
|
20
|
+
border: 2px solid transparent;
|
|
21
|
+
height: 42px;
|
|
22
|
+
color: getColor('font');
|
|
23
|
+
background-color: getColor('grey-lighter');
|
|
24
|
+
font-family: $body-family;
|
|
25
|
+
|
|
26
|
+
&:not(:last-child) {
|
|
27
|
+
margin-right: 4px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@include mobile {
|
|
31
|
+
padding: 0 $spacing-4;
|
|
32
|
+
flex: 1 1 0;
|
|
33
|
+
width: 0;
|
|
34
|
+
text-overflow: ellipsis;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:hover {
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
background-color: transparent;
|
|
41
|
+
color: getColor('alternate');
|
|
42
|
+
border-color: currentColor;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.is-active {
|
|
46
|
+
background-color: getColor('alternate');
|
|
47
|
+
color: invertColor('alternate');
|
|
48
|
+
font-weight: 600;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&[disabled] {
|
|
52
|
+
background-color: getColor('grey-disabled');
|
|
53
|
+
border-color: getColor('grey-disabled');
|
|
54
|
+
color: getColor('grey-darker');
|
|
55
|
+
&:hover {
|
|
56
|
+
cursor: not-allowed;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|