@energie360/ui-library 0.1.15 → 0.1.17
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/components/card-info/card-info.scss +40 -0
- package/components/card-info/u-card-info.vue +35 -0
- package/components/index.js +1 -0
- package/components/inline-edit/inline-edit.scss +5 -1
- package/components/inline-edit/u-inline-edit.vue +21 -12
- package/components/navigation-panel-tile/navigation-panel-tile.scss +1 -1
- package/components/navigation-panel-tile/u-navigation-panel-tile.vue +17 -13
- package/components/richtext/_wizard.scss +26 -0
- package/components/richtext/richtext.scss +11 -3
- package/components/richtext/u-richtext.vue +3 -1
- package/dist/elements/form.css +170 -0
- package/dist/elements/form.css.map +1 -0
- package/dist/layout/form-grid.css +184 -0
- package/dist/layout/form-grid.css.map +1 -0
- package/elements/checkbox/checkbox.scss +150 -0
- package/elements/checkbox/u-checkbox.vue +42 -0
- package/elements/form/form.scss +1 -1
- package/elements/form-field/form-field-prefix-suffix.scss +5 -0
- package/elements/index.js +3 -0
- package/elements/radio/radio.scss +91 -2
- package/elements/radio/u-radio.vue +6 -3
- package/elements/radio-group/radio-group.scss +28 -0
- package/elements/radio-group/u-radio-group.vue +23 -3
- package/elements/select-chip/select-chip.scss +1 -0
- package/elements/select-chip/u-select-chip.vue +2 -2
- package/elements/select-chips/select-chips.scss +18 -0
- package/elements/select-chips/u-select-chips.vue +16 -3
- package/elements/select-tile/select-tile.scss +205 -0
- package/elements/select-tile/u-select-tile.vue +53 -0
- package/elements/select-tiles/select-tiles.scss +32 -0
- package/elements/select-tiles/u-select-tiles.vue +31 -0
- package/elements/text-field/u-text-field.vue +22 -5
- package/elements/toggle-switch/toggle-switch.scss +14 -4
- package/elements/toggle-switch/u-toggle-switch.vue +23 -20
- package/layout/index.js +2 -0
- package/layout/portal/portal.scss +35 -0
- package/layout/portal/u-portal.vue +22 -0
- package/layout/settings/settings.scss +33 -0
- package/layout/settings/u-settings-layout.vue +19 -0
- package/modules/dialog/_animations.scss +49 -0
- package/modules/dialog/dialog.scss +168 -0
- package/modules/dialog/u-dialog.vue +134 -0
- package/modules/index.js +4 -0
- package/modules/inline-edit-group/u-inline-edit-group.vue +2 -0
- package/modules/navigation-panel/navigation-panel.scss +1 -0
- package/modules/progress-indicator/progress-indicator.scss +84 -0
- package/modules/progress-indicator/u-progress-indicator.vue +34 -0
- package/modules/toast/toast-message.scss +67 -0
- package/modules/toast/toast.scss +14 -0
- package/modules/toast/u-toast-message.vue +46 -0
- package/modules/toast/u-toast.vue +26 -0
- package/modules/toast/useToast.ts +40 -0
- package/package.json +2 -1
- package/utility/elements/form.scss +1 -0
- package/utility/layout/form-grid.scss +1 -0
- package/wizard/index.js +1 -0
- package/wizard/wizard-outro/u-wizard-outro.vue +49 -0
- package/wizard/wizard-outro/wizard-outro.scss +56 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@use '../../base/abstracts' as a;
|
|
2
|
+
|
|
3
|
+
.card-info {
|
|
4
|
+
padding: var(--e-space-6);
|
|
5
|
+
border: 1px solid var(--e-c-mono-200);
|
|
6
|
+
border-top-left-radius: var(--e-brd-radius-2);
|
|
7
|
+
border-top-right-radius: var(--e-brd-radius-2);
|
|
8
|
+
|
|
9
|
+
&:last-of-type {
|
|
10
|
+
border-bottom-left-radius: var(--e-brd-radius-2);
|
|
11
|
+
border-bottom-right-radius: var(--e-brd-radius-2);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.card-info__image {
|
|
16
|
+
width: a.rem(80);
|
|
17
|
+
height: a.rem(80);
|
|
18
|
+
|
|
19
|
+
+ .card-info__title {
|
|
20
|
+
margin-top: var(--e-space-4);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.card-info__title {
|
|
25
|
+
@include a.type(300, strong);
|
|
26
|
+
|
|
27
|
+
+ .card-info__description {
|
|
28
|
+
margin-top: var(--e-space-1);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.card-info__description {
|
|
33
|
+
@include a.type(200);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.card-info + .card-info {
|
|
37
|
+
border-top: none;
|
|
38
|
+
border-top-left-radius: 0;
|
|
39
|
+
border-top-right-radius: 0;
|
|
40
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { Image } from '../../elements/types'
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
image?: Image
|
|
6
|
+
title?: string
|
|
7
|
+
description?: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
defineProps<Props>()
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<section class="card-info">
|
|
15
|
+
<div class="card-info__image">
|
|
16
|
+
<slot name="image">
|
|
17
|
+
<img v-bind="image" />
|
|
18
|
+
</slot>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<h2 class="card-info__title">
|
|
22
|
+
<slot name="title">
|
|
23
|
+
{{ title }}
|
|
24
|
+
</slot>
|
|
25
|
+
</h2>
|
|
26
|
+
|
|
27
|
+
<p class="card-info__description">
|
|
28
|
+
<slot name="description">
|
|
29
|
+
{{ description }}
|
|
30
|
+
</slot>
|
|
31
|
+
</p>
|
|
32
|
+
</section>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<style scoped lang="scss" src="./card-info.scss"></style>
|
package/components/index.js
CHANGED
|
@@ -51,3 +51,4 @@ export { default as UProgressAvatar } from './progress-avatar/u-progress-avatar.
|
|
|
51
51
|
export { default as UWelcome } from './welcome/u-welcome.vue'
|
|
52
52
|
export { default as UHint } from './hint/u-hint.vue'
|
|
53
53
|
export { default as UNavigationPanelTile } from './navigation-panel-tile/u-navigation-panel-tile.vue'
|
|
54
|
+
export { default as UCardInfo } from './card-info/u-card-info.vue'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
@use '../../base/abstracts
|
|
1
|
+
@use '../../base/abstracts' as a;
|
|
2
|
+
@use '../richtext/richtext' as r;
|
|
2
3
|
|
|
3
4
|
.inline-edit {
|
|
4
5
|
border-bottom: 1px solid var(--e-c-mono-200);
|
|
@@ -36,6 +37,9 @@
|
|
|
36
37
|
.inline-edit__summary {
|
|
37
38
|
@include a.type(300);
|
|
38
39
|
|
|
40
|
+
// We don't need a full richtext implementation. The spacings are enough.
|
|
41
|
+
@include r.richtext-spacing-rules;
|
|
42
|
+
|
|
39
43
|
color: var(--e-c-mono-700);
|
|
40
44
|
}
|
|
41
45
|
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { ref, inject, useId, watch, useTemplateRef } from 'vue'
|
|
3
|
-
import UButton from '../../elements
|
|
3
|
+
import { UButton } from '../../elements'
|
|
4
|
+
import { URichtext } from '../../components'
|
|
4
5
|
import { getTranslation } from '../../utils/translations/translate'
|
|
5
6
|
|
|
6
7
|
interface Props {
|
|
7
|
-
title
|
|
8
|
-
summary
|
|
9
|
-
description
|
|
8
|
+
title?: string
|
|
9
|
+
summary?: string
|
|
10
|
+
description?: string
|
|
11
|
+
nonEditable?: boolean
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
defineProps<Props>()
|
|
@@ -69,25 +71,32 @@ defineExpose({ collapse })
|
|
|
69
71
|
</script>
|
|
70
72
|
|
|
71
73
|
<template>
|
|
72
|
-
<div ref="root" class="inline-edit" :class="{ expanded, disabled }">
|
|
74
|
+
<div ref="root" class="inline-edit" :class="{ expanded, disabled, 'non-editable': nonEditable }">
|
|
73
75
|
<div class="inline-edit__heading">
|
|
74
76
|
<div class="inline-edit__heading-col">
|
|
75
|
-
<p :id="headingId" class="inline-edit__title">
|
|
76
|
-
|
|
77
|
-
<p class="inline-edit__summary">
|
|
78
|
-
<slot name="summary">{{ summary }}</slot>
|
|
77
|
+
<p :id="headingId" class="inline-edit__title">
|
|
78
|
+
<slot name="title">{{ title }}</slot>
|
|
79
79
|
</p>
|
|
80
|
-
|
|
80
|
+
|
|
81
|
+
<div class="inline-edit__summary">
|
|
82
|
+
<slot name="summary"><div v-html="summary" /></slot>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<div class="inline-edit__description">
|
|
86
|
+
<slot name="description"><div v-html="description" /></slot>
|
|
87
|
+
</div>
|
|
81
88
|
</div>
|
|
82
|
-
|
|
89
|
+
|
|
90
|
+
<div v-if="!nonEditable" class="inline-edit__heading-cta-col">
|
|
83
91
|
<UButton
|
|
84
92
|
variant="plain-spaceless"
|
|
85
93
|
:disabled
|
|
86
94
|
:aria-controls="panelId"
|
|
87
95
|
:aria-expanded="expanded"
|
|
88
96
|
@click="onEditToggle"
|
|
89
|
-
>{{ getTranslation(expanded ? 'cancel' : 'edit') }}</UButton
|
|
90
97
|
>
|
|
98
|
+
{{ getTranslation(expanded ? 'cancel' : 'edit') }}
|
|
99
|
+
</UButton>
|
|
91
100
|
</div>
|
|
92
101
|
</div>
|
|
93
102
|
|
|
@@ -2,20 +2,18 @@
|
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
import { UIcon } from '../../elements'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
Inactive = 'inactive',
|
|
7
|
-
}
|
|
5
|
+
type IconBadge = 'inactive'
|
|
8
6
|
|
|
9
7
|
interface Props {
|
|
10
|
-
title: string
|
|
11
|
-
description: string
|
|
12
|
-
icon: string
|
|
13
|
-
iconBadge?: IconBadge
|
|
14
|
-
href?: string
|
|
15
|
-
target?: string
|
|
16
8
|
active?: boolean
|
|
17
|
-
|
|
9
|
+
description?: string
|
|
18
10
|
disabled?: boolean
|
|
11
|
+
greyed?: boolean
|
|
12
|
+
href?: string
|
|
13
|
+
icon?: string
|
|
14
|
+
iconBadge?: IconBadge
|
|
15
|
+
target?: string
|
|
16
|
+
title?: string
|
|
19
17
|
}
|
|
20
18
|
|
|
21
19
|
const {
|
|
@@ -38,13 +36,19 @@ const tag = computed(() => (href ? 'a' : 'div'))
|
|
|
38
36
|
>
|
|
39
37
|
<div class="navigation-panel-tile__text-column">
|
|
40
38
|
<div class="navigation-panel-tile__title">
|
|
41
|
-
|
|
39
|
+
<slot name="title">
|
|
40
|
+
{{ title }}
|
|
41
|
+
</slot>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="navigation-panel-tile__description">
|
|
44
|
+
<slot name="description">
|
|
45
|
+
<div v-if="description" v-html="description" />
|
|
46
|
+
</slot>
|
|
42
47
|
</div>
|
|
43
|
-
<div class="navigation-panel-tile__description" v-html="description" />
|
|
44
48
|
</div>
|
|
45
49
|
|
|
46
50
|
<div class="navigation-panel-tile__icon-column">
|
|
47
|
-
<div class="navigation-panel-tile__icon-wrapper">
|
|
51
|
+
<div v-if="icon" class="navigation-panel-tile__icon-wrapper">
|
|
48
52
|
<span v-if="iconBadge" :class="['badge', iconBadge]" />
|
|
49
53
|
|
|
50
54
|
<UIcon :name="icon" />
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@use '../../base/abstracts' as a;
|
|
2
|
+
|
|
3
|
+
.richtext.richtext--wizard {
|
|
4
|
+
// Spacing rules
|
|
5
|
+
* + * {
|
|
6
|
+
margin-top: var(--e-spac-2);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
* + h2,
|
|
10
|
+
* + h3,
|
|
11
|
+
* + .richtext__title-large,
|
|
12
|
+
* + .richtext__title-small {
|
|
13
|
+
margin-top: var(--e-space-6);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
h2,
|
|
17
|
+
.richtext__title-large {
|
|
18
|
+
@include a.type(300, strong);
|
|
19
|
+
|
|
20
|
+
color: var(--e-c-mono-900);
|
|
21
|
+
|
|
22
|
+
@include a.bp(lg) {
|
|
23
|
+
@include a.type(200, strong);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@use '../../base/abstracts
|
|
1
|
+
@use '../../base/abstracts' as a;
|
|
2
|
+
@use './wizard';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
// Spacing rules
|
|
4
|
+
@mixin richtext-spacing-rules {
|
|
5
5
|
* + * {
|
|
6
6
|
margin-top: var(--e-space-3);
|
|
7
7
|
}
|
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
* + ol {
|
|
23
23
|
margin-top: var(--e-space-6);
|
|
24
24
|
}
|
|
25
|
+
}
|
|
25
26
|
|
|
27
|
+
@mixin richtext-spacing-rules-mobile {
|
|
26
28
|
@include a.bp(lg) {
|
|
27
29
|
* + * {
|
|
28
30
|
margin-top: var(--e-space-2);
|
|
@@ -40,6 +42,12 @@
|
|
|
40
42
|
margin-top: var(--e-space-10);
|
|
41
43
|
}
|
|
42
44
|
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.richtext {
|
|
48
|
+
// Spacing rules
|
|
49
|
+
@include richtext-spacing-rules;
|
|
50
|
+
@include richtext-spacing-rules-mobile;
|
|
43
51
|
|
|
44
52
|
// Element styles
|
|
45
53
|
h2,
|
|
@@ -13,7 +13,9 @@ const classes = ['richtext', { 'richtext--small': small, 'richtext--inverted': i
|
|
|
13
13
|
<template>
|
|
14
14
|
<div v-if="text" :class="classes" v-html="text"></div>
|
|
15
15
|
|
|
16
|
-
<div v-else :class="classes"
|
|
16
|
+
<div v-else :class="classes">
|
|
17
|
+
<slot />
|
|
18
|
+
</div>
|
|
17
19
|
</template>
|
|
18
20
|
|
|
19
21
|
<style lang="scss" src="./richtext.scss"></style>
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/* easeOutCubic */
|
|
2
|
+
/* prettier-ignore */
|
|
3
|
+
.form .form__messages {
|
|
4
|
+
display: none;
|
|
5
|
+
}
|
|
6
|
+
.form .form__title {
|
|
7
|
+
font-size: var(--e-type-size-800);
|
|
8
|
+
line-height: var(--e-type-line-height-800);
|
|
9
|
+
letter-spacing: 0.025rem;
|
|
10
|
+
font-weight: var(--e-type-weight-strong);
|
|
11
|
+
-webkit-font-smoothing: antialiased;
|
|
12
|
+
-moz-osx-font-smoothing: grayscale;
|
|
13
|
+
color: var(--e-c-primary-01-500);
|
|
14
|
+
}
|
|
15
|
+
@media (max-width: 1020px) {
|
|
16
|
+
.form .form__title {
|
|
17
|
+
font-size: var(--e-type-size-700);
|
|
18
|
+
line-height: var(--e-type-line-height-700);
|
|
19
|
+
letter-spacing: 0.025rem;
|
|
20
|
+
font-weight: var(--e-type-weight-strong);
|
|
21
|
+
-webkit-font-smoothing: antialiased;
|
|
22
|
+
-moz-osx-font-smoothing: grayscale;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
.form .form__lead {
|
|
26
|
+
font-size: var(--e-type-size-200);
|
|
27
|
+
line-height: var(--e-type-line-height-200);
|
|
28
|
+
letter-spacing: 0.01875rem;
|
|
29
|
+
font-weight: var(--e-type-weight-weak);
|
|
30
|
+
}
|
|
31
|
+
.form .form__lead .form__subtitle-info {
|
|
32
|
+
color: var(--e-c-secondary-01-900);
|
|
33
|
+
margin-left: var(--e-space-1);
|
|
34
|
+
}
|
|
35
|
+
.form .form__lead .form__subtitle-info e-icon {
|
|
36
|
+
display: inline-block;
|
|
37
|
+
vertical-align: middle;
|
|
38
|
+
}
|
|
39
|
+
.form .form__title + .form__lead {
|
|
40
|
+
font-size: var(--e-type-size-300);
|
|
41
|
+
line-height: var(--e-type-line-height-300);
|
|
42
|
+
letter-spacing: 0.01875rem;
|
|
43
|
+
}
|
|
44
|
+
@media (max-width: 1020px) {
|
|
45
|
+
.form .form__title + .form__lead {
|
|
46
|
+
font-size: var(--e-type-size-200);
|
|
47
|
+
line-height: var(--e-type-line-height-200);
|
|
48
|
+
letter-spacing: 0.01875rem;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
.form .form__subtitle {
|
|
52
|
+
font-size: var(--e-type-size-300);
|
|
53
|
+
line-height: var(--e-type-line-height-300);
|
|
54
|
+
letter-spacing: 0.01875rem;
|
|
55
|
+
font-weight: var(--e-type-weight-strong);
|
|
56
|
+
-webkit-font-smoothing: antialiased;
|
|
57
|
+
-moz-osx-font-smoothing: grayscale;
|
|
58
|
+
color: var(--e-c-primary-01-500);
|
|
59
|
+
}
|
|
60
|
+
.form .form__subtitle .form__subtitle-info {
|
|
61
|
+
color: var(--e-c-secondary-01-900);
|
|
62
|
+
margin-left: var(--e-space-1);
|
|
63
|
+
}
|
|
64
|
+
.form .form__subtitle .form__subtitle-info e-icon {
|
|
65
|
+
display: inline-block;
|
|
66
|
+
vertical-align: middle;
|
|
67
|
+
}
|
|
68
|
+
.form .form__cta-group {
|
|
69
|
+
display: flex;
|
|
70
|
+
grid-gap: var(--e-space-5);
|
|
71
|
+
}
|
|
72
|
+
@media (max-width: 740px) {
|
|
73
|
+
.form .form__cta-group {
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.form .form__title + .form__lead,
|
|
78
|
+
.form .form__subtitle + .form__lead {
|
|
79
|
+
margin-top: var(--e-space-3);
|
|
80
|
+
}
|
|
81
|
+
@media (max-width: 1020px) {
|
|
82
|
+
.form .form__title + .form__lead,
|
|
83
|
+
.form .form__subtitle + .form__lead {
|
|
84
|
+
margin-top: var(--e-space-1_5);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
.form .form__lead-row + * {
|
|
88
|
+
margin-top: var(--e-space-5);
|
|
89
|
+
}
|
|
90
|
+
@media (max-width: 1020px) {
|
|
91
|
+
.form .form__lead-row + * {
|
|
92
|
+
margin-top: var(--e-space-3);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
.form .form__subtitle-row + *,
|
|
96
|
+
.form .form__lead-row.form__subtitle-row + * {
|
|
97
|
+
margin-top: var(--e-space-6);
|
|
98
|
+
}
|
|
99
|
+
@media (max-width: 1020px) {
|
|
100
|
+
.form .form__subtitle-row + *,
|
|
101
|
+
.form .form__lead-row.form__subtitle-row + * {
|
|
102
|
+
margin-top: var(--e-space-3);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
.form .form__input-row + .form__input-row,
|
|
106
|
+
.form .form__title-row + *,
|
|
107
|
+
.form *:not(legend) + .form__lead-row {
|
|
108
|
+
margin-top: var(--e-space-10);
|
|
109
|
+
}
|
|
110
|
+
@media (max-width: 1020px) {
|
|
111
|
+
.form .form__input-row + .form__input-row,
|
|
112
|
+
.form .form__title-row + *,
|
|
113
|
+
.form *:not(legend) + .form__lead-row {
|
|
114
|
+
margin-top: var(--e-space-6);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
.form .form__input-row.form__input-row--compact + .form__input-row.form__input-row--compact {
|
|
118
|
+
margin-top: var(--e-space-6);
|
|
119
|
+
}
|
|
120
|
+
.form *:not(legend) + .form__title-row,
|
|
121
|
+
.form *:not(legend) + .form__cta-row,
|
|
122
|
+
.form *:not(legend) + .form__subtitle-row {
|
|
123
|
+
margin-top: var(--e-space-16);
|
|
124
|
+
}
|
|
125
|
+
@media (max-width: 1020px) {
|
|
126
|
+
.form *:not(legend) + .form__title-row,
|
|
127
|
+
.form *:not(legend) + .form__cta-row,
|
|
128
|
+
.form *:not(legend) + .form__subtitle-row {
|
|
129
|
+
margin-top: var(--e-space-10);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
@media (max-width: 1020px) {
|
|
133
|
+
.form .form__input-col + .form__input-col {
|
|
134
|
+
margin-top: var(--e-space-6);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
.form .form__messages-row {
|
|
138
|
+
display: none;
|
|
139
|
+
margin-top: var(--e-space-10);
|
|
140
|
+
}
|
|
141
|
+
.form .form__cookiebot-message {
|
|
142
|
+
margin-bottom: var(--e-space-6);
|
|
143
|
+
}
|
|
144
|
+
.form.form--has-general-error .form__messages-row,
|
|
145
|
+
.form.form--has-general-error .form__messages {
|
|
146
|
+
display: block;
|
|
147
|
+
}
|
|
148
|
+
.form.form--hide-form-elements > *:not(.success-screen) {
|
|
149
|
+
display: none;
|
|
150
|
+
}
|
|
151
|
+
.form.form--is-submitting .form-row:not(.form__cta-row) {
|
|
152
|
+
opacity: 0.6;
|
|
153
|
+
pointer-events: none;
|
|
154
|
+
}
|
|
155
|
+
.form .form__recaptcha {
|
|
156
|
+
font-size: 0.625rem;
|
|
157
|
+
line-height: 1.5;
|
|
158
|
+
margin-top: var(--e-space-6);
|
|
159
|
+
color: var(--e-c-mono-700);
|
|
160
|
+
}
|
|
161
|
+
.form .form__recaptcha a {
|
|
162
|
+
color: var(--e-c-primary-01-700);
|
|
163
|
+
text-underline-offset: var(--e-space-1);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.grecaptcha-badge {
|
|
167
|
+
visibility: hidden;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/*# sourceMappingURL=form.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../base/abstracts/_variables.scss","../../base/abstracts/_functions.scss","../../elements/form/form.scss","../../base/abstracts/_mixins.scss"],"names":[],"mappings":"AAqCiF;AChCjF;ACFE;EACE;;AAGF;ECoCA;EACA;EAGE;EAMA;EAKE;EACA;EDjDF;;ACWF;EDdA;ICoCA;IACA;IAGE;IAMA;IAKE;IACA;;;AD1CJ;EC0BA;EACA;EAKE;EAIA;;ADjCA;EACE;EACA;;AAEA;EACE;EACA;;AAKN;ECYA;EACA;EAKE;;AA5BF;EDUA;ICYA;IACA;IAKE;;;ADVF;ECIA;EACA;EAGE;EAMA;EAKE;EACA;EDjBF;;AAEA;EACE;EACA;;AAEA;EACE;EACA;;AAKN;EACE;EACA;;ACpCF;EDkCA;IAKI;;;AAKJ;AAAA;EAEE;;AC9CF;ED4CA;AAAA;IAKI;;;AAQJ;EACE;;AC1DF;EDyDA;IAII;;;AAIJ;AAAA;EAEE;;ACnEF;EDiEA;AAAA;IAKI;;;AAIJ;AAAA;AAAA;EAGE;;AC7EF;ED0EA;AAAA;AAAA;IAMI;;;AAIJ;EACE;;AAGF;AAAA;AAAA;EAGE;;AC3FF;EDwFA;AAAA;AAAA;IAMI;;;AC9FJ;EDkGA;IAEI;;;AAIJ;EACE;EACA;;AAGF;EACE;;AASA;AAAA;EAEE;;AAKF;EACE;;AAKF;EACE;EACA;;AAIJ;EACE;EACA;EACA;EACA;;AAEA;EACE;EACA;;;AAKN;EACE","file":"form.css"}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/* easeOutCubic */
|
|
2
|
+
/* prettier-ignore */
|
|
3
|
+
/**
|
|
4
|
+
Helper to colculate col width in %.
|
|
5
|
+
Looks complicated because we use grid-gap on the row, which takes away from available width.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
Mixin to create a grid column cell.
|
|
9
|
+
|
|
10
|
+
$cols: Column width of cell.
|
|
11
|
+
$columns: Grid size (in columns). Default is set by global variable $grid-columns (defined via design token).
|
|
12
|
+
*/
|
|
13
|
+
.form-grid {
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.form-row {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-wrap: wrap;
|
|
20
|
+
grid-gap: 2.6315789474%;
|
|
21
|
+
}
|
|
22
|
+
@media (max-width: 1020px) {
|
|
23
|
+
.form-row {
|
|
24
|
+
grid-gap: 2.5531914894%;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
@media (max-width: 740px) {
|
|
28
|
+
.form-row {
|
|
29
|
+
grid-gap: 3.6363636364%;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
@media (max-width: 520px) {
|
|
33
|
+
.form-row {
|
|
34
|
+
grid-gap: 4.1666666667%;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.form-row .form-col {
|
|
38
|
+
flex: 0 0 48.6842105263%;
|
|
39
|
+
max-width: 48.6842105263%;
|
|
40
|
+
}
|
|
41
|
+
@media (max-width: 1020px) {
|
|
42
|
+
.form-row .form-col {
|
|
43
|
+
flex: 0 0 48.7234042553%;
|
|
44
|
+
max-width: 48.7234042553%;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
@media (max-width: 740px) {
|
|
48
|
+
.form-row .form-col {
|
|
49
|
+
flex: 0 0 48.1818181818%;
|
|
50
|
+
max-width: 48.1818181818%;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
@media (max-width: 520px) {
|
|
54
|
+
.form-row .form-col {
|
|
55
|
+
flex: 0 0 47.9166666667%;
|
|
56
|
+
max-width: 47.9166666667%;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
.form-row .form-col-1\/4 {
|
|
60
|
+
flex: 0 0 23.0263157895%;
|
|
61
|
+
max-width: 23.0263157895%;
|
|
62
|
+
}
|
|
63
|
+
@media (max-width: 1020px) {
|
|
64
|
+
.form-row .form-col-1\/4 {
|
|
65
|
+
flex: 0 0 23.085106383%;
|
|
66
|
+
max-width: 23.085106383%;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
@media (max-width: 740px) {
|
|
70
|
+
.form-row .form-col-1\/4 {
|
|
71
|
+
flex: 0 0 22.2727272727%;
|
|
72
|
+
max-width: 22.2727272727%;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
@media (max-width: 520px) {
|
|
76
|
+
.form-row .form-col-1\/4 {
|
|
77
|
+
flex: 0 0 21.875%;
|
|
78
|
+
max-width: 21.875%;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
.form-row .form-col-2\/4 {
|
|
82
|
+
flex: 0 0 48.6842105263%;
|
|
83
|
+
max-width: 48.6842105263%;
|
|
84
|
+
}
|
|
85
|
+
@media (max-width: 1020px) {
|
|
86
|
+
.form-row .form-col-2\/4 {
|
|
87
|
+
flex: 0 0 48.7234042553%;
|
|
88
|
+
max-width: 48.7234042553%;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
@media (max-width: 740px) {
|
|
92
|
+
.form-row .form-col-2\/4 {
|
|
93
|
+
flex: 0 0 48.1818181818%;
|
|
94
|
+
max-width: 48.1818181818%;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
@media (max-width: 520px) {
|
|
98
|
+
.form-row .form-col-2\/4 {
|
|
99
|
+
flex: 0 0 47.9166666667%;
|
|
100
|
+
max-width: 47.9166666667%;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
.form-row .form-col-3\/4 {
|
|
104
|
+
flex: 0 0 74.3421052632%;
|
|
105
|
+
max-width: 74.3421052632%;
|
|
106
|
+
}
|
|
107
|
+
@media (max-width: 1020px) {
|
|
108
|
+
.form-row .form-col-3\/4 {
|
|
109
|
+
flex: 0 0 74.3617021277%;
|
|
110
|
+
max-width: 74.3617021277%;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
@media (max-width: 740px) {
|
|
114
|
+
.form-row .form-col-3\/4 {
|
|
115
|
+
flex: 0 0 74.0909090909%;
|
|
116
|
+
max-width: 74.0909090909%;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
@media (max-width: 520px) {
|
|
120
|
+
.form-row .form-col-3\/4 {
|
|
121
|
+
flex: 0 0 73.9583333333%;
|
|
122
|
+
max-width: 73.9583333333%;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
.form-row .form-col-4\/4 {
|
|
126
|
+
flex: 0 0 100%;
|
|
127
|
+
max-width: 100%;
|
|
128
|
+
}
|
|
129
|
+
@media (max-width: 1020px) {
|
|
130
|
+
.form-row .form-col-4\/4 {
|
|
131
|
+
flex: 0 0 100%;
|
|
132
|
+
max-width: 100%;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
@media (max-width: 740px) {
|
|
136
|
+
.form-row .form-col-4\/4 {
|
|
137
|
+
flex: 0 0 100%;
|
|
138
|
+
max-width: 100%;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
@media (max-width: 520px) {
|
|
142
|
+
.form-row .form-col-4\/4 {
|
|
143
|
+
flex: 0 0 100%;
|
|
144
|
+
max-width: 100%;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
@media (max-width: 1020px) {
|
|
148
|
+
.form-row .form-col,
|
|
149
|
+
.form-row .form-col-1\/4,
|
|
150
|
+
.form-row .form-col-2\/4,
|
|
151
|
+
.form-row .form-col-3\/4 {
|
|
152
|
+
flex: 0 0 100%;
|
|
153
|
+
max-width: 100%;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
@media (max-width: 1020px) and (max-width: 1020px) {
|
|
157
|
+
.form-row .form-col,
|
|
158
|
+
.form-row .form-col-1\/4,
|
|
159
|
+
.form-row .form-col-2\/4,
|
|
160
|
+
.form-row .form-col-3\/4 {
|
|
161
|
+
flex: 0 0 100%;
|
|
162
|
+
max-width: 100%;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
@media (max-width: 1020px) and (max-width: 740px) {
|
|
166
|
+
.form-row .form-col,
|
|
167
|
+
.form-row .form-col-1\/4,
|
|
168
|
+
.form-row .form-col-2\/4,
|
|
169
|
+
.form-row .form-col-3\/4 {
|
|
170
|
+
flex: 0 0 100%;
|
|
171
|
+
max-width: 100%;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
@media (max-width: 1020px) and (max-width: 520px) {
|
|
175
|
+
.form-row .form-col,
|
|
176
|
+
.form-row .form-col-1\/4,
|
|
177
|
+
.form-row .form-col-2\/4,
|
|
178
|
+
.form-row .form-col-3\/4 {
|
|
179
|
+
flex: 0 0 100%;
|
|
180
|
+
max-width: 100%;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/*# sourceMappingURL=form-grid.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../base/abstracts/_variables.scss","../../base/abstracts/_functions.scss","../../layout/grid/grid.mixin.scss","../../layout/form-grid/form-grid.scss","../../base/abstracts/_mixins.scss"],"names":[],"mappings":"AAqCiF;AChCjF;ACFA;AAAA;AAAA;AAAA;AA0BA;AAAA;;AAAA;AAAA;AAAA;ACzBA;EACE;;;AAGF;EDIE;EACA;EACA,UFgBgB;;AIThB;EDbF;IDSI,UFca;;;AIVf;EDbF;IDaI,UFWY;;;AIXd;EDbF;IDiBI,UFQY;;;AGtBd;ED2BA;EACA,WAHY;;AEfZ;EDVA;IDiCE;IACA,WAHW;;;AErBb;EDVA;IDwCE;IACA,WAHU;;;AE5BZ;EDVA;ID+CE;IACA,WAHU;;;ACxCZ;EDsBA;EACA,WAHY;;AEfZ;EDLA;ID4BE;IACA,WAHW;;;AErBb;EDLA;IDmCE;IACA,WAHU;;;AE5BZ;EDLA;ID0CE;IACA,WAHU;;;ACpCZ;EDkBA;EACA,WAHY;;AEfZ;EDDA;IDwBE;IACA,WAHW;;;AErBb;EDDA;ID+BE;IACA,WAHU;;;AE5BZ;EDDA;IDsCE;IACA,WAHU;;;AC/BZ;EDaA;EACA,WAHY;;AEfZ;EDIA;IDmBE;IACA,WAHW;;;AErBb;EDIA;ID0BE;IACA,WAHU;;;AE5BZ;EDIA;IDiCE;IACA,WAHU;;;AC3BZ;EDSA;EACA,WAHY;;AEfZ;EDQA;IDeE;IACA,WAHW;;;AErBb;EDQA;IDsBE;IACA,WAHU;;;AE5BZ;EDQA;ID6BE;IACA,WAHU;;;AEnCZ;EDYA;AAAA;AAAA;AAAA;IDKA;IACA,WAHY;;;AEfZ;EDYA;AAAA;AAAA;AAAA;IDWE;IACA,WAHW;;;AErBb;EDYA;AAAA;AAAA;AAAA;IDkBE;IACA,WAHU;;;AE5BZ;EDYA;AAAA;AAAA;AAAA;IDyBE;IACA,WAHU","file":"form-grid.css"}
|