@mirweb/mir-web-components 1.15.3 → 2.0.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 +2 -2
- package/dist/assets/index-Cl4fzBs2.js +17 -0
- package/dist/assets/scss/globals.scss +231 -0
- package/dist/assets/scss/index.scss +4 -0
- package/dist/assets/scss/normalize.scss +393 -0
- package/dist/assets/scss/reset.scss +102 -0
- package/dist/assets/scss/variables.scss +95 -0
- package/dist/components/atoms/button/button.vue +81 -0
- package/dist/components/atoms/checkbox/checkbox.vue +125 -0
- package/dist/components/atoms/chip/chip.vue +55 -0
- package/dist/components/atoms/dropdown/dropdown.vue +490 -0
- package/dist/components/atoms/image/image.vue +42 -0
- package/dist/components/atoms/label/label.vue +52 -0
- package/dist/components/atoms/link/link.vue +166 -0
- package/dist/components/atoms/radio-button/radio-button.vue +110 -0
- package/dist/components/atoms/select/select.vue +116 -0
- package/dist/components/atoms/select-multiple/select-multiple.vue +210 -0
- package/dist/components/atoms/slider/slider.vue +322 -0
- package/dist/components/atoms/text-field/text-field.vue +273 -0
- package/dist/components/atoms/textarea/textarea.vue +179 -0
- package/dist/components/atoms/video/video.vue +98 -0
- package/dist/components/blocks/accordion/accordion.vue +222 -0
- package/dist/components/blocks/card-display/card-display.vue +125 -0
- package/dist/components/blocks/column-grid/column-grid.vue +201 -0
- package/dist/components/blocks/facts/facts.vue +156 -0
- package/dist/components/blocks/features/features.vue +176 -0
- package/dist/components/blocks/flashcards/flashcards.vue +212 -0
- package/dist/components/blocks/form-script/form-script.vue +172 -0
- package/dist/components/blocks/frontpage-hero/frontpage-hero.vue +214 -0
- package/dist/components/blocks/headline/headline.vue +93 -0
- package/dist/components/blocks/hero/hero.vue +173 -0
- package/dist/components/blocks/image/image.vue +93 -0
- package/dist/components/blocks/image-gallery/image-gallery.vue +289 -0
- package/dist/components/blocks/logo-wall/logo-wall.vue +125 -0
- package/dist/components/blocks/micro-stories/micro-stories.vue +316 -0
- package/dist/components/blocks/pallet-jack/pallet-jack.vue +440 -0
- package/dist/components/blocks/policy/policy.vue +106 -0
- package/dist/components/blocks/product-hero/product-hero.vue +140 -0
- package/dist/components/blocks/promo/promo.vue +403 -0
- package/dist/components/blocks/quote/quote.vue +127 -0
- package/dist/components/blocks/rich-text/rich-text-columns.vue +159 -0
- package/dist/components/blocks/rich-text/rich-text.vue +296 -0
- package/dist/components/blocks/timeline/timeline.vue +232 -0
- package/dist/components/blocks/vimeo/vimeo.vue +52 -0
- package/dist/components/index.ts +51 -0
- package/dist/components/molecules/address/address.vue +123 -0
- package/dist/components/molecules/bullet-list/bullet-list.vue +99 -0
- package/dist/components/molecules/card/card.vue +302 -0
- package/dist/components/molecules/column-card/column-card.vue +178 -0
- package/dist/components/molecules/event-card/event-card.vue +111 -0
- package/dist/components/molecules/flashcard/flashcard.vue +293 -0
- package/dist/components/molecules/modal/modal.vue +113 -0
- package/dist/components/molecules/text-card/text-card.vue +74 -0
- package/dist/components/organisms/404/404.vue +79 -0
- package/dist/components/organisms/filter/filter.vue +89 -0
- package/dist/components/organisms/footer/footer.vue +356 -0
- package/dist/components/organisms/header/header.vue +754 -0
- package/dist/components/organisms/language-switcher/language-switcher.vue +68 -0
- package/dist/components/organisms/pagination/pagination.vue +85 -0
- package/dist/components/organisms/search/search.vue +153 -0
- package/dist/components/templates/404-error-page.vue +0 -0
- package/dist/directives/clickOutside.ts +15 -0
- package/dist/fonts/OpenSans-Light.woff2 +0 -0
- package/dist/fonts/OpenSans-Medium.woff2 +0 -0
- package/dist/fonts/OpenSans-Regular.woff2 +0 -0
- package/dist/fonts/OpenSans-SemiBold.woff2 +0 -0
- package/dist/fonts/Oscine_Bd.woff2 +0 -0
- package/dist/fonts/Oscine_Lt.woff2 +0 -0
- package/dist/fonts/Oscine_Rg.woff2 +0 -0
- package/dist/index.html +12 -0
- package/dist/main.css +1 -0
- package/package.json +8 -10
- package/dist/components/atoms/button/button.vue.d.ts +0 -5
- package/dist/components/atoms/button/button.vue.d.ts.map +0 -1
- package/dist/components/atoms/checkbox/checkbox.vue.d.ts +0 -5
- package/dist/components/atoms/checkbox/checkbox.vue.d.ts.map +0 -1
- package/dist/components/atoms/chip/chip.vue.d.ts +0 -5
- package/dist/components/atoms/chip/chip.vue.d.ts.map +0 -1
- package/dist/components/atoms/dropdown/dropdown.vue.d.ts +0 -5
- package/dist/components/atoms/dropdown/dropdown.vue.d.ts.map +0 -1
- package/dist/components/atoms/image/image.vue.d.ts +0 -5
- package/dist/components/atoms/image/image.vue.d.ts.map +0 -1
- package/dist/components/atoms/label/label.vue.d.ts +0 -5
- package/dist/components/atoms/label/label.vue.d.ts.map +0 -1
- package/dist/components/atoms/link/link.vue.d.ts +0 -5
- package/dist/components/atoms/link/link.vue.d.ts.map +0 -1
- package/dist/components/atoms/radio-button/radio-button.vue.d.ts +0 -5
- package/dist/components/atoms/radio-button/radio-button.vue.d.ts.map +0 -1
- package/dist/components/atoms/select/select.vue.d.ts +0 -5
- package/dist/components/atoms/select/select.vue.d.ts.map +0 -1
- package/dist/components/atoms/select-multiple/select-multiple.vue.d.ts +0 -5
- package/dist/components/atoms/select-multiple/select-multiple.vue.d.ts.map +0 -1
- package/dist/components/atoms/slider/slider.vue.d.ts +0 -5
- package/dist/components/atoms/slider/slider.vue.d.ts.map +0 -1
- package/dist/components/atoms/text-field/text-field.vue.d.ts +0 -5
- package/dist/components/atoms/text-field/text-field.vue.d.ts.map +0 -1
- package/dist/components/atoms/textarea/textarea.vue.d.ts +0 -5
- package/dist/components/atoms/textarea/textarea.vue.d.ts.map +0 -1
- package/dist/components/atoms/video/video.vue.d.ts +0 -5
- package/dist/components/atoms/video/video.vue.d.ts.map +0 -1
- package/dist/components/blocks/accordion/accordion.vue.d.ts +0 -5
- package/dist/components/blocks/accordion/accordion.vue.d.ts.map +0 -1
- package/dist/components/blocks/card-display/card-display.vue.d.ts +0 -6
- package/dist/components/blocks/card-display/card-display.vue.d.ts.map +0 -1
- package/dist/components/blocks/column-grid/column-grid.vue.d.ts +0 -5
- package/dist/components/blocks/column-grid/column-grid.vue.d.ts.map +0 -1
- package/dist/components/blocks/facts/facts.vue.d.ts +0 -5
- package/dist/components/blocks/facts/facts.vue.d.ts.map +0 -1
- package/dist/components/blocks/features/features.vue.d.ts +0 -5
- package/dist/components/blocks/features/features.vue.d.ts.map +0 -1
- package/dist/components/blocks/flashcards/flashcards.vue.d.ts +0 -5
- package/dist/components/blocks/flashcards/flashcards.vue.d.ts.map +0 -1
- package/dist/components/blocks/form-script/form-script.vue.d.ts +0 -5
- package/dist/components/blocks/form-script/form-script.vue.d.ts.map +0 -1
- package/dist/components/blocks/frontpage-hero/frontpage-hero.vue.d.ts +0 -5
- package/dist/components/blocks/frontpage-hero/frontpage-hero.vue.d.ts.map +0 -1
- package/dist/components/blocks/headline/headline.vue.d.ts +0 -5
- package/dist/components/blocks/headline/headline.vue.d.ts.map +0 -1
- package/dist/components/blocks/hero/hero.vue.d.ts +0 -5
- package/dist/components/blocks/hero/hero.vue.d.ts.map +0 -1
- package/dist/components/blocks/image/image.vue.d.ts +0 -5
- package/dist/components/blocks/image/image.vue.d.ts.map +0 -1
- package/dist/components/blocks/image-gallery/image-gallery.vue.d.ts +0 -5
- package/dist/components/blocks/image-gallery/image-gallery.vue.d.ts.map +0 -1
- package/dist/components/blocks/logo-wall/logo-wall.vue.d.ts +0 -5
- package/dist/components/blocks/logo-wall/logo-wall.vue.d.ts.map +0 -1
- package/dist/components/blocks/micro-stories/micro-stories.vue.d.ts +0 -5
- package/dist/components/blocks/micro-stories/micro-stories.vue.d.ts.map +0 -1
- package/dist/components/blocks/pallet-jack/pallet-jack.vue.d.ts +0 -5
- package/dist/components/blocks/pallet-jack/pallet-jack.vue.d.ts.map +0 -1
- package/dist/components/blocks/policy/policy.vue.d.ts +0 -4
- package/dist/components/blocks/policy/policy.vue.d.ts.map +0 -1
- package/dist/components/blocks/product-hero/product-hero.vue.d.ts +0 -5
- package/dist/components/blocks/product-hero/product-hero.vue.d.ts.map +0 -1
- package/dist/components/blocks/promo/promo.vue.d.ts +0 -5
- package/dist/components/blocks/promo/promo.vue.d.ts.map +0 -1
- package/dist/components/blocks/quote/quote.vue.d.ts +0 -5
- package/dist/components/blocks/quote/quote.vue.d.ts.map +0 -1
- package/dist/components/blocks/rich-text/rich-text-columns.vue.d.ts +0 -4
- package/dist/components/blocks/rich-text/rich-text-columns.vue.d.ts.map +0 -1
- package/dist/components/blocks/rich-text/rich-text.vue.d.ts +0 -5
- package/dist/components/blocks/rich-text/rich-text.vue.d.ts.map +0 -1
- package/dist/components/blocks/timeline/timeline.vue.d.ts +0 -5
- package/dist/components/blocks/timeline/timeline.vue.d.ts.map +0 -1
- package/dist/components/blocks/vimeo/vimeo.vue.d.ts +0 -5
- package/dist/components/blocks/vimeo/vimeo.vue.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -51
- package/dist/components/main.d.ts +0 -59
- package/dist/components/molecules/address/address.vue.d.ts +0 -5
- package/dist/components/molecules/address/address.vue.d.ts.map +0 -1
- package/dist/components/molecules/bullet-list/bullet-list.vue.d.ts +0 -5
- package/dist/components/molecules/bullet-list/bullet-list.vue.d.ts.map +0 -1
- package/dist/components/molecules/card/card.vue.d.ts +0 -5
- package/dist/components/molecules/card/card.vue.d.ts.map +0 -1
- package/dist/components/molecules/column-card/column-card.vue.d.ts +0 -5
- package/dist/components/molecules/column-card/column-card.vue.d.ts.map +0 -1
- package/dist/components/molecules/event-card/event-card.vue.d.ts +0 -5
- package/dist/components/molecules/event-card/event-card.vue.d.ts.map +0 -1
- package/dist/components/molecules/flashcard/flashcard.vue.d.ts +0 -5
- package/dist/components/molecules/flashcard/flashcard.vue.d.ts.map +0 -1
- package/dist/components/molecules/modal/modal.vue.d.ts +0 -5
- package/dist/components/molecules/modal/modal.vue.d.ts.map +0 -1
- package/dist/components/molecules/text-card/text-card.vue.d.ts +0 -5
- package/dist/components/molecules/text-card/text-card.vue.d.ts.map +0 -1
- package/dist/components/organisms/404/404.vue.d.ts +0 -5
- package/dist/components/organisms/404/404.vue.d.ts.map +0 -1
- package/dist/components/organisms/filter/filter.vue.d.ts +0 -5
- package/dist/components/organisms/filter/filter.vue.d.ts.map +0 -1
- package/dist/components/organisms/footer/footer.vue.d.ts +0 -5
- package/dist/components/organisms/footer/footer.vue.d.ts.map +0 -1
- package/dist/components/organisms/header/header.vue.d.ts +0 -6
- package/dist/components/organisms/header/header.vue.d.ts.map +0 -1
- package/dist/components/organisms/language-switcher/language-switcher.vue.d.ts +0 -5
- package/dist/components/organisms/language-switcher/language-switcher.vue.d.ts.map +0 -1
- package/dist/components/organisms/pagination/pagination.vue.d.ts +0 -5
- package/dist/components/organisms/pagination/pagination.vue.d.ts.map +0 -1
- package/dist/components/organisms/search/search.vue.d.ts +0 -4
- package/dist/components/organisms/search/search.vue.d.ts.map +0 -1
- package/dist/directives/clickOutside.d.ts +0 -3
- package/dist/main.d.ts +0 -1
- package/dist/mir-web-components.cjs.js +0 -1
- package/dist/mir-web-components.css +0 -1
- package/dist/mir-web-components.es.js +0 -3187
- package/dist/mir-web-components.umd.js +0 -2
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
@use "../../assets/scss/variables.scss" as *;
|
|
2
|
+
/**
|
|
3
|
+
* 1. Correct the line height in all browsers.
|
|
4
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
html {
|
|
8
|
+
line-height: 1.15; /* 1 */
|
|
9
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
10
|
+
font-size: 16px; // 1rem = 16px
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* Sections
|
|
14
|
+
========================================================================== */
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Remove the margin in all browsers.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
body {
|
|
21
|
+
margin: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Render the `main` element consistently in IE.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
main {
|
|
29
|
+
display: block;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
|
34
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
h1 {
|
|
38
|
+
//margin: 0.67em 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Grouping content
|
|
42
|
+
========================================================================== */
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* 1. Add the correct box sizing in Firefox.
|
|
46
|
+
* 2. Show the overflow in Edge and IE.
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
hr {
|
|
50
|
+
box-sizing: content-box; /* 1 */
|
|
51
|
+
height: 0; /* 1 */
|
|
52
|
+
overflow: visible; /* 2 */
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
57
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
pre {
|
|
61
|
+
font-family: monospace, monospace; /* 1 */
|
|
62
|
+
font-size: 1em; /* 2 */
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Text-level semantics
|
|
66
|
+
========================================================================== */
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Remove the gray background on active links in IE 10.
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
a {
|
|
73
|
+
background-color: transparent;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* 1. Remove the bottom border in Chrome 57-
|
|
78
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
abbr[title] {
|
|
82
|
+
border-bottom: none; /* 1 */
|
|
83
|
+
text-decoration: underline; /* 2 */
|
|
84
|
+
text-decoration: underline dotted; /* 2 */
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
b,
|
|
92
|
+
strong {
|
|
93
|
+
//font-weight: bolder;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
98
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
code,
|
|
102
|
+
kbd,
|
|
103
|
+
samp {
|
|
104
|
+
font-family: monospace, monospace; /* 1 */
|
|
105
|
+
font-size: 1em; /* 2 */
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
110
|
+
* all browsers.
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
sub,
|
|
114
|
+
sup {
|
|
115
|
+
font-size: 75%;
|
|
116
|
+
line-height: 0;
|
|
117
|
+
position: relative;
|
|
118
|
+
vertical-align: baseline;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
sub {
|
|
122
|
+
bottom: -0.25em;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
sup {
|
|
126
|
+
top: -0.5em;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* Embedded content
|
|
130
|
+
========================================================================== */
|
|
131
|
+
|
|
132
|
+
/* Forms
|
|
133
|
+
========================================================================== */
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* 1. Change the font styles in all browsers.
|
|
137
|
+
* 2. Remove the margin in Firefox and Safari.
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
button,
|
|
141
|
+
input,
|
|
142
|
+
optgroup,
|
|
143
|
+
select,
|
|
144
|
+
textarea {
|
|
145
|
+
font-family: inherit; /* 1 */
|
|
146
|
+
font-size: 100%; /* 1 */
|
|
147
|
+
line-height: 1.15; /* 1 */
|
|
148
|
+
margin: 0; /* 2 */
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Show the overflow in IE.
|
|
153
|
+
* 1. Show the overflow in Edge.
|
|
154
|
+
*/
|
|
155
|
+
|
|
156
|
+
button,
|
|
157
|
+
input {
|
|
158
|
+
/* 1 */
|
|
159
|
+
overflow: visible;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
164
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
|
165
|
+
*/
|
|
166
|
+
|
|
167
|
+
button,
|
|
168
|
+
select {
|
|
169
|
+
/* 1 */
|
|
170
|
+
text-transform: none;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
button,
|
|
178
|
+
[type="button"],
|
|
179
|
+
[type="reset"],
|
|
180
|
+
[type="submit"] {
|
|
181
|
+
-webkit-appearance: button;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Remove the inner border and padding in Firefox.
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
button::-moz-focus-inner,
|
|
189
|
+
[type="button"]::-moz-focus-inner,
|
|
190
|
+
[type="reset"]::-moz-focus-inner,
|
|
191
|
+
[type="submit"]::-moz-focus-inner {
|
|
192
|
+
border-style: none;
|
|
193
|
+
padding: 0;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Restore the focus styles unset by the previous rule.
|
|
198
|
+
*/
|
|
199
|
+
|
|
200
|
+
button:-moz-focusring,
|
|
201
|
+
[type="button"]:-moz-focusring,
|
|
202
|
+
[type="reset"]:-moz-focusring,
|
|
203
|
+
[type="submit"]:-moz-focusring {
|
|
204
|
+
outline: 1px dotted ButtonText;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Correct the padding in Firefox.
|
|
209
|
+
*/
|
|
210
|
+
|
|
211
|
+
fieldset {
|
|
212
|
+
padding: 0.35em 0.75em 0.625em;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* 1. Correct the text wrapping in Edge and IE.
|
|
217
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
218
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
|
219
|
+
* `fieldset` elements in all browsers.
|
|
220
|
+
*/
|
|
221
|
+
|
|
222
|
+
legend {
|
|
223
|
+
box-sizing: border-box; /* 1 */
|
|
224
|
+
color: inherit; /* 2 */
|
|
225
|
+
display: table; /* 1 */
|
|
226
|
+
max-width: 100%; /* 1 */
|
|
227
|
+
padding: 0; /* 3 */
|
|
228
|
+
white-space: normal; /* 1 */
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
233
|
+
*/
|
|
234
|
+
|
|
235
|
+
progress {
|
|
236
|
+
vertical-align: baseline;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Remove the default vertical scrollbar in IE 10+.
|
|
241
|
+
*/
|
|
242
|
+
|
|
243
|
+
textarea {
|
|
244
|
+
overflow: auto;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* 1. Add the correct box sizing in IE 10.
|
|
249
|
+
* 2. Remove the padding in IE 10.
|
|
250
|
+
*/
|
|
251
|
+
|
|
252
|
+
[type="checkbox"],
|
|
253
|
+
[type="radio"] {
|
|
254
|
+
box-sizing: border-box; /* 1 */
|
|
255
|
+
padding: 0; /* 2 */
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
260
|
+
*/
|
|
261
|
+
|
|
262
|
+
[type="number"]::-webkit-inner-spin-button,
|
|
263
|
+
[type="number"]::-webkit-outer-spin-button {
|
|
264
|
+
height: auto;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
|
269
|
+
* 2. Correct the outline style in Safari.
|
|
270
|
+
*/
|
|
271
|
+
|
|
272
|
+
[type="search"] {
|
|
273
|
+
-webkit-appearance: textfield; /* 1 */
|
|
274
|
+
outline-offset: -2px; /* 2 */
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
|
279
|
+
*/
|
|
280
|
+
|
|
281
|
+
[type="search"]::-webkit-search-decoration {
|
|
282
|
+
-webkit-appearance: none;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
287
|
+
* 2. Change font properties to `inherit` in Safari.
|
|
288
|
+
*/
|
|
289
|
+
|
|
290
|
+
::-webkit-file-upload-button {
|
|
291
|
+
-webkit-appearance: button; /* 1 */
|
|
292
|
+
font: inherit; /* 2 */
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/* Interactive
|
|
296
|
+
========================================================================== */
|
|
297
|
+
|
|
298
|
+
/*
|
|
299
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
|
300
|
+
*/
|
|
301
|
+
|
|
302
|
+
details {
|
|
303
|
+
display: block;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/*
|
|
307
|
+
* Add the correct display in all browsers.
|
|
308
|
+
*/
|
|
309
|
+
|
|
310
|
+
summary {
|
|
311
|
+
display: list-item;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/* Misc
|
|
315
|
+
========================================================================== */
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Add the correct display in IE 10+.
|
|
319
|
+
*/
|
|
320
|
+
|
|
321
|
+
template {
|
|
322
|
+
display: none;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Add the correct display in IE 10.
|
|
327
|
+
*/
|
|
328
|
+
|
|
329
|
+
[hidden] {
|
|
330
|
+
display: none;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
h1 {
|
|
334
|
+
font-size: 44px;
|
|
335
|
+
line-height: 52px;
|
|
336
|
+
font-family: $font-oscine;
|
|
337
|
+
font-weight: 300;
|
|
338
|
+
color: $blue-900;
|
|
339
|
+
|
|
340
|
+
@include sm {
|
|
341
|
+
font-size: $font-size-xlg;
|
|
342
|
+
line-height: $line-height-xlg;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
h2 {
|
|
346
|
+
font-size: $font-size-lg;
|
|
347
|
+
font-family: $font-oscine;
|
|
348
|
+
font-weight: 300;
|
|
349
|
+
line-height: $line-height-lg;
|
|
350
|
+
color: $blue-900;
|
|
351
|
+
}
|
|
352
|
+
h3 {
|
|
353
|
+
font-size: $font-size-md;
|
|
354
|
+
font-family: $font-oscine;
|
|
355
|
+
font-weight: 300;
|
|
356
|
+
line-height: $line-height-md;
|
|
357
|
+
color: $blue-900;
|
|
358
|
+
}
|
|
359
|
+
h4 {
|
|
360
|
+
font-size: $font-size-sm;
|
|
361
|
+
font-family: $font-opensans;
|
|
362
|
+
font-weight: 600;
|
|
363
|
+
line-height: $line-height-sm;
|
|
364
|
+
color: $blue-900;
|
|
365
|
+
}
|
|
366
|
+
p {
|
|
367
|
+
font-size: $font-size-sm;
|
|
368
|
+
font-family: $font-opensans;
|
|
369
|
+
font-weight: 300;
|
|
370
|
+
line-height: $line-height-sm;
|
|
371
|
+
color: $blue-900;
|
|
372
|
+
}
|
|
373
|
+
small {
|
|
374
|
+
font-size: $font-size-xsm;
|
|
375
|
+
font-family: $font-opensans;
|
|
376
|
+
font-weight: 300;
|
|
377
|
+
line-height: $line-height-xsm;
|
|
378
|
+
}
|
|
379
|
+
button {
|
|
380
|
+
font-size: $font-size-xsm;
|
|
381
|
+
font-family: $font-opensans;
|
|
382
|
+
font-weight: 600;
|
|
383
|
+
}
|
|
384
|
+
a {
|
|
385
|
+
font-size: inherit;
|
|
386
|
+
font-family: $font-opensans;
|
|
387
|
+
}
|
|
388
|
+
label {
|
|
389
|
+
font-size: $font-size-xsm;
|
|
390
|
+
font-family: $font-opensans;
|
|
391
|
+
font-weight: 300;
|
|
392
|
+
line-height: $line-height-xsm;
|
|
393
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/***
|
|
2
|
+
The new CSS reset - version 1.8.4 (last updated 14.2.2023)
|
|
3
|
+
GitHub page: https://github.com/elad2412/the-new-css-reset
|
|
4
|
+
***/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
|
|
8
|
+
- The "symbol *" part is to solve Firefox SVG sprite bug
|
|
9
|
+
*/
|
|
10
|
+
*:where(
|
|
11
|
+
:not(html, iframe, canvas, img, svg, video, audio, div.card):not(
|
|
12
|
+
svg *,
|
|
13
|
+
symbol *
|
|
14
|
+
)
|
|
15
|
+
) {
|
|
16
|
+
all: unset;
|
|
17
|
+
display: revert;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Preferred box-sizing value */
|
|
21
|
+
*,
|
|
22
|
+
*::before,
|
|
23
|
+
*::after {
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Reapply the pointer cursor for anchor tags */
|
|
28
|
+
a,
|
|
29
|
+
button {
|
|
30
|
+
cursor: revert;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Remove list styles (bullets/numbers) */
|
|
34
|
+
ol,
|
|
35
|
+
ul,
|
|
36
|
+
menu {
|
|
37
|
+
list-style: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* removes spacing between cells in tables */
|
|
41
|
+
table {
|
|
42
|
+
border-collapse: collapse;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Safari - solving issue when using user-select:none on the <body> text input doesn't working */
|
|
46
|
+
input,
|
|
47
|
+
textarea {
|
|
48
|
+
-webkit-user-select: auto;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* revert the 'white-space' property for textarea elements on Safari */
|
|
52
|
+
textarea {
|
|
53
|
+
white-space: revert;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* minimum style to allow to style meter element */
|
|
57
|
+
meter {
|
|
58
|
+
-webkit-appearance: revert;
|
|
59
|
+
appearance: revert;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* preformatted text - use only for this feature */
|
|
63
|
+
:where(pre) {
|
|
64
|
+
all: revert;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* reset default text opacity of input placeholder */
|
|
68
|
+
::placeholder {
|
|
69
|
+
color: unset;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* remove default dot (•) sign */
|
|
73
|
+
::marker {
|
|
74
|
+
content: initial;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* fix the feature of 'hidden' attribute.
|
|
78
|
+
display:revert; revert to element instead of attribute */
|
|
79
|
+
:where([hidden]) {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* revert for bug in Chromium browsers
|
|
84
|
+
- fix for the content editable attribute will work properly.
|
|
85
|
+
- webkit-user-select: auto; added for Safari in case of using user-select:none on wrapper element*/
|
|
86
|
+
:where([contenteditable]:not([contenteditable="false"])) {
|
|
87
|
+
-moz-user-modify: read-write;
|
|
88
|
+
-webkit-user-modify: read-write;
|
|
89
|
+
overflow-wrap: break-word;
|
|
90
|
+
-webkit-line-break: after-white-space;
|
|
91
|
+
-webkit-user-select: auto;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* apply back the draggable feature - exist only in Chromium and Safari */
|
|
95
|
+
:where([draggable="true"]) {
|
|
96
|
+
-webkit-user-drag: element;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* Revert Modal native behavior */
|
|
100
|
+
:where(dialog:modal) {
|
|
101
|
+
all: revert;
|
|
102
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// color variables
|
|
2
|
+
$white: #ffffff;
|
|
3
|
+
|
|
4
|
+
$grey-100: #f5f6f6;
|
|
5
|
+
$grey-200: #e4e6ea;
|
|
6
|
+
$grey-300: #dee2e6;
|
|
7
|
+
$grey-400: #ced4da;
|
|
8
|
+
$grey-500: #adafaf;
|
|
9
|
+
$grey-600: #626767;
|
|
10
|
+
$grey-700: #495057;
|
|
11
|
+
$grey-800: #343a40;
|
|
12
|
+
$grey-900: #212529;
|
|
13
|
+
|
|
14
|
+
$blue-000: #f9fdff;
|
|
15
|
+
$blue-100: #effafe;
|
|
16
|
+
$blue-200: #e2f5fc;
|
|
17
|
+
$blue-300: #cbeefa;
|
|
18
|
+
$blue-400: #72c7e7;
|
|
19
|
+
$blue-500: #56a0d3;
|
|
20
|
+
$blue-600: #1a76bc;
|
|
21
|
+
$blue-700: #105aa8;
|
|
22
|
+
$blue-800: #003087;
|
|
23
|
+
$blue-900: #0c0931;
|
|
24
|
+
|
|
25
|
+
$warning: #dd564d;
|
|
26
|
+
|
|
27
|
+
$font-oscine: "Oscine", sans-serif;
|
|
28
|
+
$font-opensans: "OpenSans", sans-serif;
|
|
29
|
+
// body variables
|
|
30
|
+
|
|
31
|
+
// typography
|
|
32
|
+
$font-size-xxsm: 0.75rem; // 12px
|
|
33
|
+
$font-size-xsm: 0.875rem; // 14px
|
|
34
|
+
$font-size-sm: 1rem; // 16px
|
|
35
|
+
$font-size-md: 1.375rem; // 22px
|
|
36
|
+
$font-size-lg: 1.875rem; // 30px
|
|
37
|
+
$font-size-xlg: 3.75rem; // 60px
|
|
38
|
+
|
|
39
|
+
// line height
|
|
40
|
+
$line-height-xsm: 20px;
|
|
41
|
+
$line-height-sm: 24px;
|
|
42
|
+
$line-height-md: 27px;
|
|
43
|
+
$line-height-lg: 36px;
|
|
44
|
+
$line-height-xlg: 66px;
|
|
45
|
+
|
|
46
|
+
// animation variables
|
|
47
|
+
$transition-box-shadow: box-shadow 0.3s ease;
|
|
48
|
+
$transition-color: color 0.3s ease;
|
|
49
|
+
$transition-border: border 0.3s ease;
|
|
50
|
+
$transition-background-color: background-color 0.3s ease;
|
|
51
|
+
$transition-width-height:
|
|
52
|
+
width 0.3s ease,
|
|
53
|
+
height 0.3s ease;
|
|
54
|
+
|
|
55
|
+
// border variables
|
|
56
|
+
$border-width: 1px;
|
|
57
|
+
$border-color: $blue-600;
|
|
58
|
+
$border-radius: 0.4rem; // 6px
|
|
59
|
+
|
|
60
|
+
// box shadow variables
|
|
61
|
+
$box-shadow: 0px 0px 15px $blue-300;
|
|
62
|
+
|
|
63
|
+
// content area width
|
|
64
|
+
|
|
65
|
+
$max-width: 984px;
|
|
66
|
+
|
|
67
|
+
// media breakpoints
|
|
68
|
+
$screen-md-min: 581px;
|
|
69
|
+
$screen-lg-min: 984px;
|
|
70
|
+
$screen-xl-min: 1312px; // 984px + 2 grids on each side
|
|
71
|
+
|
|
72
|
+
$padding-desktop: 60px 0px;
|
|
73
|
+
$padding-mobile: 30px 30px;
|
|
74
|
+
$extra-margin-desktop-bg: 60px 0px;
|
|
75
|
+
$extra-margin-mobile-bg: 30px 0px;
|
|
76
|
+
|
|
77
|
+
// media devices
|
|
78
|
+
|
|
79
|
+
@mixin sm {
|
|
80
|
+
@media screen and (min-width: #{$screen-md-min}) {
|
|
81
|
+
@content;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@mixin md {
|
|
86
|
+
@media screen and (min-width: #{$screen-lg-min}) {
|
|
87
|
+
@content;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@mixin lg {
|
|
92
|
+
@media screen and (min-width: #{$screen-xl-min}) {
|
|
93
|
+
@content;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<button
|
|
3
|
+
:class="['button', 'button--' + selectedVariant]"
|
|
4
|
+
:aria-label="ariaLabel"
|
|
5
|
+
>
|
|
6
|
+
{{ selectedVariant === "close" ? "" : buttonText }}
|
|
7
|
+
</button>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script setup lang="ts">
|
|
11
|
+
import { computed } from "vue";
|
|
12
|
+
|
|
13
|
+
const VARIANTS = {
|
|
14
|
+
primary: "primary",
|
|
15
|
+
primaryDark: "primary-dark",
|
|
16
|
+
secondary: "secondary",
|
|
17
|
+
close: "close",
|
|
18
|
+
next: "next",
|
|
19
|
+
previous: "previous",
|
|
20
|
+
} as const;
|
|
21
|
+
|
|
22
|
+
type Variant = keyof typeof VARIANTS;
|
|
23
|
+
|
|
24
|
+
export type Props = {
|
|
25
|
+
variant: Variant;
|
|
26
|
+
ariaLabel: string;
|
|
27
|
+
buttonText?: string;
|
|
28
|
+
};
|
|
29
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
30
|
+
variant: "primary",
|
|
31
|
+
ariaLabel: "Button",
|
|
32
|
+
buttonText: "",
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const selectedVariant = computed(() => VARIANTS[props.variant]);
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<style lang="scss" scoped>
|
|
39
|
+
@use "../../../assets/scss/variables.scss" as *;
|
|
40
|
+
.button {
|
|
41
|
+
&--close {
|
|
42
|
+
background-image: url("https://a.storyblok.com/f/230581/9x9/e4fb715dc9/close.svg?cv=1695125714598");
|
|
43
|
+
height: 16px;
|
|
44
|
+
width: 16px;
|
|
45
|
+
background-size: contain;
|
|
46
|
+
background-repeat: no-repeat;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&--next,
|
|
50
|
+
&--previous {
|
|
51
|
+
width: 30px;
|
|
52
|
+
height: 30px;
|
|
53
|
+
border-radius: 30px;
|
|
54
|
+
background-color: $blue-600;
|
|
55
|
+
background-repeat: no-repeat;
|
|
56
|
+
transition: $transition-background-color;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
|
|
59
|
+
&:disabled {
|
|
60
|
+
background-color: $blue-300;
|
|
61
|
+
cursor: auto;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:hover:enabled,
|
|
65
|
+
&:focus:enabled,
|
|
66
|
+
&:active:enabled {
|
|
67
|
+
background-color: $blue-700;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&--next {
|
|
72
|
+
background-image: url("https://a.storyblok.com/f/230581/21x21/7d4e94b064/direction-right.svg?cv=1695125714214");
|
|
73
|
+
background-position: 55%;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&--previous {
|
|
77
|
+
background-image: url("https://a.storyblok.com/f/230581/21x21/2078c0df8c/direction-left.svg?cv=1695125714250");
|
|
78
|
+
background-position: 45%;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
</style>
|