@mtvh/mtvh-design-system 0.0.9 → 0.0.11

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.
@@ -8,10 +8,11 @@
8
8
  margin-bottom: .5rem;
9
9
  }
10
10
  &--text-only {
11
- padding: $mtvh-spacing-5 $mtvh-spacing-5;
12
- font-size: 1rem;
11
+ padding: $mtvh-spacing-4 $mtvh-spacing-5;
12
+ font-size: $font-size-xs;
13
13
  @include media-breakpoint-up(md) {
14
- font-size: 1.125rem;
14
+ font-size: $font-size-sm;
15
+ padding: $mtvh-spacing-5 $mtvh-spacing-6;
15
16
  }
16
17
  }
17
18
  &--stretch {
@@ -32,6 +33,7 @@
32
33
  @include media-breakpoint-up(md) {
33
34
  padding: $mtvh-spacing-6;
34
35
  }
36
+
35
37
  @include media-breakpoint-up(lg) {
36
38
  min-height: 17rem;
37
39
  }
@@ -107,6 +109,9 @@
107
109
  }
108
110
 
109
111
  &-icon {
112
+
113
+ padding-top: $mtvh-spacing-5;
114
+
110
115
  .mtvh-icon {
111
116
  margin-bottom: $mtvh-spacing-3;
112
117
  }
@@ -5,32 +5,27 @@
5
5
  @import "../forms/labels";
6
6
  @import "../forms/validation";
7
7
  @import "../forms/formio";
8
- @import "../forms/form-date-input";
8
+ @import "../forms/form-date-input";
9
9
 
10
+ --#{$prefix}form-padding-y: #{$mtvh-spacing-7};
11
+ --#{$prefix}form-padding-x: #{$mtvh-spacing-4};
12
+
13
+ @include media-breakpoint-up("lg") {
14
+ --#{$prefix}form-padding-y: #{$mtvh-spacing-8};
15
+ --#{$prefix}form-padding-x: #{$mtvh-spacing-11};
16
+ }
10
17
 
11
18
  background-color: var(--#{$prefix}white);
12
- margin: 0 calc(var(--#{$prefix}gutter-x)* -0.5);
13
- padding: var(--#{$prefix}gutter-x);
19
+ margin: 0 calc(var(--#{$prefix}form-padding-x) * -1);
20
+ padding: var(--#{$prefix}form-padding-y) var(--#{$prefix}form-padding-x);
14
21
  overflow: hidden;
15
22
 
16
23
  @include media-breakpoint-up("md") {
17
- padding: $mtvh-spacing-5 $mtvh-spacing-11 $mtvh-spacing-5 $mtvh-spacing-11;
18
- }
19
-
20
- }
21
- .mtvh-form-container {
22
-
23
- @include media-breakpoint-up("lg") {
24
- max-width: 550px;
25
- margin:0 auto;
24
+ margin: 0;
26
25
  }
27
26
 
28
27
  .form-group {
29
- margin-bottom: $form-group-xs-margin-top;
30
-
31
- @include media-breakpoint-up("lg") {
32
- margin-bottom: $form-group-margin-top;
33
- }
28
+ margin-bottom: var(--#{$prefix}form-group-padding-y);
34
29
  }
35
30
 
36
31
  .field-required:after, .tab-error::after {
@@ -50,6 +45,51 @@
50
45
  }
51
46
  }
52
47
 
48
+
49
+ }
50
+ .mtvh-form-container {
51
+
52
+ --#{$prefix}form-max-width: unset;
53
+ --#{$prefix}form-group-padding-y: #{$form-group-margin-bottom};
54
+ --#{$prefix}form-control-input-width: #{$input-width-size-lg};
55
+
56
+ @include media-breakpoint-up("md") {
57
+ --#{$prefix}form-max-width: 576px;
58
+ }
59
+ @include media-breakpoint-up("lg") {
60
+ --#{$prefix}form-group-padding-y: #{$form-group-lg-margin-bottom};
61
+ --#{$prefix}form-max-width: 550px;
62
+ }
63
+
64
+ &--md {
65
+
66
+ --#{$prefix}form-control-input-width: #{$input-width-size-l};
67
+ --#{$prefix}form-group-padding-y: #{$mtvh-spacing-6};
68
+ --#{$prefix}form-max-width: unset;
69
+
70
+ @include media-breakpoint-up("md") {
71
+ --#{$prefix}form-max-width: 576px;
72
+ }
73
+ @include media-breakpoint-up("lg") {
74
+
75
+ --#{$prefix}form-group-padding-y: #{$mtvh-spacing-7};
76
+ --#{$prefix}form-max-width: 636px;
77
+ }
78
+ }
79
+
80
+ max-width: var(--#{$prefix}form-max-width);
81
+
82
+ @include media-breakpoint-up("md") {
83
+ padding-left: 60px;
84
+ padding-right: 60px;
85
+ }
86
+
87
+ @include media-breakpoint-up("lg") {
88
+ margin:0 auto;
89
+ padding: 0;
90
+ }
91
+
92
+
53
93
  .mtvh-form-container-required {
54
94
  font-size: $font-size-xs;
55
95
  padding: $mtvh-spacing-4 0 $mtvh-spacing-6 0;
@@ -57,5 +97,4 @@
57
97
  padding-bottom: $mtvh-spacing-7;
58
98
  }
59
99
  }
60
-
61
100
  }
@@ -23,8 +23,8 @@
23
23
  text-align: center;
24
24
 
25
25
  @include media-breakpoint-up($stepper-breakpoint) {
26
- padding-bottom: 0;
27
- margin: $mtvh-spacing-9 0 $mtvh-spacing-5 0;
26
+ padding-bottom: 0;
27
+ margin: $mtvh-spacing-8 0 $mtvh-spacing-5 0;
28
28
  }
29
29
 
30
30
  .mtvh-stepper-item {
@@ -48,7 +48,7 @@ $danger: #DD080D;
48
48
  $primary: #0072BF;
49
49
  $dark: #000000;
50
50
  $secondary: #9A9A9A;
51
- $light: #0072BF;
51
+ $light: #ffffff;
52
52
  $stone: #F9F2EA;
53
53
 
54
54
  $theme-colors: (
@@ -104,7 +104,18 @@ $spacers: (
104
104
  3: $spacer,
105
105
  4: $spacer * 1.5,
106
106
  5: $spacer * 3,
107
- 6: $mtvh-spacing-8
107
+ 6: $mtvh-spacing-8,
108
+ 11: $mtvh-spacing-1,
109
+ 12: $mtvh-spacing-2,
110
+ 13: $mtvh-spacing-3,
111
+ 14: $mtvh-spacing-4,
112
+ 15: $mtvh-spacing-5,
113
+ 16: $mtvh-spacing-6,
114
+ 17: $mtvh-spacing-7,
115
+ 18: $mtvh-spacing-8,
116
+ 19: $mtvh-spacing-9,
117
+ 20: $mtvh-spacing-10,
118
+ 21: $mtvh-spacing-11
108
119
  );
109
120
 
110
121
  $icon-size-scale-xs : 16px !default;
@@ -129,8 +140,8 @@ $breadcrumb-font-size: $font-size-xs;
129
140
  $breadcrumb-active-color: var(--#{$prefix}black);
130
141
 
131
142
  /* form */
132
- $form-group-margin-top: 3.5rem;
133
- $form-group-xs-margin-top: 3rem;
143
+ $form-group-lg-margin-bottom: 3.5rem;
144
+ $form-group-margin-bottom: 3rem;
134
145
  $form-text-margin-top: 0;
135
146
  $form-label-font-size : $font-size-md;
136
147
  $form-label-font-weight: 700;
@@ -155,9 +166,10 @@ $input-placeholder-color: var(--#{$prefix}grey-06);
155
166
  $input-width-size-xxs : 64px;
156
167
  $input-width-size-xs : 80px;
157
168
  $input-width-size-sm : 96px;
158
- $input-width-size-md : 160px;
169
+ $input-width-size-md : 130px;
159
170
  $input-width-size-lg : 336px;
160
- $input-width-size-xl : 451px;
171
+ $input-width-size-xl : 450px;
172
+ $input-width-size-l : 420px;
161
173
 
162
174
  /* form check */
163
175
  $form-check-bg-color: unset;
@@ -168,14 +180,19 @@ $form-check-min-height: 2.75rem;
168
180
  $form-check-margin-bottom: $mtvh-spacing-5;
169
181
  $form-check-input-checked-color: #fff;
170
182
  $form-check-padding-start: $form-check-input-width + 1rem;
171
- $form-check-input-checked-bg-color: var(--#{$prefix}purple-05);
183
+ $form-check-input-checked-bg-color: var(--#{$prefix}purple-04);
172
184
  $form-check-input-hover-bg-color: var(--#{$prefix}purple-04);
173
- $form-check-input-checked-border-color: var(--#{$prefix}purple-05);
185
+ $form-check-input-checked-border-color: var(--#{$prefix}purple-04);
186
+ $form-check-input-focus-border: var(--#{$prefix}purple-05);
187
+ $form-check-input-focus-bg-color: var(--#{$prefix}purple-05);
174
188
  $form-check-input-checked-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><path d='m6.813 13.492 9.9-9.848c.274-.275.587-.406.937-.393.35.012.663.156.938.43.274.275.412.587.412.937 0 .35-.137.661-.413.936l-10.8 10.784a1.313 1.313 0 0 1-1.912 0l-4.463-4.456c-.274-.274-.412-.587-.412-.936 0-.35.137-.662.413-.936.274-.275.587-.412.937-.412.35 0 .663.137.938.412l3.525 3.482Z' fill='#{$form-check-input-checked-color}'/></svg>");
175
189
  $form-check-radio-checked-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='2' fill='#{$form-check-input-checked-color}'/></svg>");
176
190
  $form-check-input-focus-box-shadow: "";
177
191
  $form-check-input-border: $border-width-xs solid var(--#{$prefix}grey-06);
178
192
  $form-check-wrapper-radio-invalid-border: 1px solid var(--#{$prefix}red-01);
193
+ $form-select-indicator-color: "#000";
194
+ $form-select-indicator: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='#{$form-select-indicator-color}' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/></svg>");
195
+
179
196
 
180
197
  /* list group */
181
198
  $list-group-item-padding-x: 0;
@@ -219,11 +236,15 @@ $banner-theme-colors: (
219
236
 
220
237
  $content-block-theme-colors: (
221
238
  "yellow-01": var(--#{$prefix}yellow-01),
239
+ "yellow-02": var(--#{$prefix}yellow-02),
222
240
  "red-01": var(--#{$prefix}red-01),
241
+ "red-02": var(--#{$prefix}red-02),
223
242
  "green-01": var(--#{$prefix}green-01),
243
+ "green-02": var(--#{$prefix}green-02),
224
244
  "grey-01": var(--#{$prefix}grey-01),
225
245
  "white": var(--#{$prefix}white),
226
246
  "purple-01": var(--#{$prefix}purple-01),
247
+ "purple-02": var(--#{$prefix}purple-02),
227
248
  "stone-02": var(--#{$prefix}stone-02)
228
249
  );
229
250
 
@@ -5,7 +5,6 @@
5
5
  .form-check {
6
6
 
7
7
  display: flex;
8
- align-items: center;
9
8
  margin-bottom: $mtvh-spacing-5;
10
9
 
11
10
  &:last-child {
@@ -17,14 +16,10 @@
17
16
  position: relative;
18
17
  display: flex;
19
18
  align-items: center;
20
-
19
+ @include field-focus();
21
20
  input {
22
21
  float: unset;
23
22
  align-self: start;
24
- @include field-focus();
25
- }
26
- span {
27
- align-self: center;
28
23
  }
29
24
 
30
25
  &:hover {
@@ -50,4 +45,13 @@
50
45
  &:hover {
51
46
  cursor: pointer;
52
47
  }
48
+ &:focus {
49
+ border-color: $form-check-input-focus-border;
50
+ @include field-focus();
51
+
52
+ &:checked {
53
+ background-color: $form-check-input-focus-bg-color;
54
+ }
55
+ }
56
+
53
57
  }
@@ -1,5 +1,4 @@
1
1
  .form-control {
2
- height: auto;
3
2
 
4
3
  @include field-focus();
5
4
 
@@ -13,23 +12,38 @@
13
12
  }
14
13
 
15
14
  span[ref|="charcount"], .text-muted {
16
- color : var(--mtvh-grey-06) !important;
15
+ color: var(--mtvh-grey-06) !important;
17
16
  }
18
- }
19
17
 
18
+ &:not(textarea, select) {
19
+ max-width: var(--#{$prefix}form-control-input-width);
20
+ }
20
21
 
21
- textarea {
22
- &.form-control {
23
- max-height: 496px;
24
- @include media-breakpoint-up(md) {
25
- max-height: 608px;
26
- }
22
+ &[ref|="postCode"], &[inputmode|="decimal"], &[autocomplete|="tel"] {
23
+ max-width: $input-width-size-md;
27
24
  }
28
- }
29
25
 
30
- select {
31
- &.form-control {
32
- height: auto;
26
+ &textarea {
27
+
28
+ max-height: 496px;
29
+ @include media-breakpoint-up(md) {
30
+ max-height: 608px;
31
+ }
33
32
  }
33
+
34
34
  }
35
35
 
36
+ select.form-control {
37
+
38
+ padding-right: 50px;
39
+
40
+ max-width: unset;
41
+ -o-appearance: none;
42
+ -webkit-appearance: none;
43
+ -moz-appearance: none;
44
+ appearance: none;
45
+ background-image: url("data:image/svg+xml,%3Csvg width='20' height='21' viewBox='0 0 20 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.99024 13.8513L18.4014 5.44069C18.5717 5.27035 18.7789 5.17873 19.0228 5.1658C19.267 5.15321 19.4885 5.24434 19.6874 5.4392C19.8862 5.63439 19.9898 5.84863 19.998 6.08193C20.0063 6.31489 19.911 6.53726 19.7122 6.74901L11.0779 15.3829C10.9085 15.5396 10.7375 15.6573 10.5649 15.7358C10.3922 15.814 10.2007 15.8531 9.99024 15.8531C9.77981 15.8531 9.58761 15.8137 9.41363 15.7348C9.23998 15.6559 9.07412 15.5376 8.91605 15.3799L0.290642 6.752C0.102411 6.56377 0.00614352 6.34671 0.00183483 6.10082C-0.00280383 5.85492 0.0942936 5.63438 0.293127 5.4392C0.491961 5.24434 0.707031 5.14691 0.938341 5.14691C1.16965 5.14691 1.38323 5.24484 1.57908 5.44069L9.99024 13.8513Z' fill='black'/%3E%3C/svg%3E%0A");
46
+ background-position: calc(100% - 12px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px), calc(100% - .5em) .5em;
47
+ background-repeat: no-repeat;
48
+ background-size: 1rem;
49
+ }
@@ -24,3 +24,8 @@
24
24
  }
25
25
  }
26
26
  }
27
+
28
+ .formio-wizard-nav-container {
29
+ display: block;
30
+ }
31
+
@@ -0,0 +1,8 @@
1
+ .formio-component-mtvhoContactEmail {
2
+ select,
3
+ input {
4
+ @include media-breakpoint-up(lg) {
5
+ width: 50%;
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ .formio-component-mtvhoContactPhone {
2
+ select, input {
3
+
4
+ @include media-breakpoint-up(lg) {
5
+ width: 50%;
6
+ }
7
+ }
8
+ }