@mtvh/mtvh-design-system 0.0.8 → 0.0.9
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/assets/scss/components/_form.scss +31 -9
- package/assets/scss/components/_stepper.scss +2 -1
- package/assets/scss/config/_variables.scss +5 -4
- package/assets/scss/forms/_form-check.scss +30 -14
- package/assets/scss/forms/_formio.scss +2 -12
- package/assets/scss/forms/_labels.scss +9 -1
- package/assets/scss/forms/_validation.scss +1 -9
- package/assets/scss/mixins/_form.scss +1 -1
- package/dist/mtvh.min.css +1 -1
- package/package.json +1 -1
|
@@ -20,20 +20,42 @@
|
|
|
20
20
|
}
|
|
21
21
|
.mtvh-form-container {
|
|
22
22
|
|
|
23
|
-
@include media-breakpoint-up("
|
|
23
|
+
@include media-breakpoint-up("lg") {
|
|
24
|
+
max-width: 550px;
|
|
25
|
+
margin:0 auto;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.form-group {
|
|
29
|
+
margin-bottom: $form-group-xs-margin-top;
|
|
24
30
|
|
|
31
|
+
@include media-breakpoint-up("lg") {
|
|
32
|
+
margin-bottom: $form-group-margin-top;
|
|
33
|
+
}
|
|
25
34
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
35
|
+
|
|
36
|
+
.field-required:after, .tab-error::after {
|
|
37
|
+
content: " *";
|
|
38
|
+
color: $form-feedback-invalid-color;
|
|
29
39
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
40
|
+
|
|
41
|
+
.form-text {
|
|
42
|
+
margin-top: $mtvh-spacing-3;
|
|
43
|
+
font-size: $font-size-sm;
|
|
44
|
+
margin-bottom: $mtvh-spacing-4;
|
|
45
|
+
|
|
46
|
+
&.text-right, &.pull-right {
|
|
47
|
+
float: none;
|
|
48
|
+
margin-bottom: 0;
|
|
49
|
+
text-align: left !important;
|
|
50
|
+
}
|
|
33
51
|
}
|
|
34
52
|
|
|
35
|
-
.form-
|
|
36
|
-
|
|
53
|
+
.mtvh-form-container-required {
|
|
54
|
+
font-size: $font-size-xs;
|
|
55
|
+
padding: $mtvh-spacing-4 0 $mtvh-spacing-6 0;
|
|
56
|
+
@include media-breakpoint-down('lg') {
|
|
57
|
+
padding-bottom: $mtvh-spacing-7;
|
|
58
|
+
}
|
|
37
59
|
}
|
|
38
60
|
|
|
39
61
|
}
|
|
@@ -17,13 +17,14 @@
|
|
|
17
17
|
position: relative;
|
|
18
18
|
width: 100%;
|
|
19
19
|
padding: 0 0 $mtvh-spacing-9 0;
|
|
20
|
-
margin:
|
|
20
|
+
margin: $mtvh-spacing-6 0 $mtvh-spacing-5 0;
|
|
21
21
|
justify-content: center;
|
|
22
22
|
color: var(--#{$prefix}stepper-font-color);
|
|
23
23
|
text-align: center;
|
|
24
24
|
|
|
25
25
|
@include media-breakpoint-up($stepper-breakpoint) {
|
|
26
26
|
padding-bottom: 0;
|
|
27
|
+
margin: $mtvh-spacing-9 0 $mtvh-spacing-5 0;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
.mtvh-stepper-item {
|
|
@@ -129,11 +129,12 @@ $breadcrumb-font-size: $font-size-xs;
|
|
|
129
129
|
$breadcrumb-active-color: var(--#{$prefix}black);
|
|
130
130
|
|
|
131
131
|
/* form */
|
|
132
|
-
$form-group-margin-top:
|
|
132
|
+
$form-group-margin-top: 3.5rem;
|
|
133
|
+
$form-group-xs-margin-top: 3rem;
|
|
134
|
+
$form-text-margin-top: 0;
|
|
133
135
|
$form-label-font-size : $font-size-md;
|
|
134
136
|
$form-label-font-weight: 700;
|
|
135
|
-
$form-label-color:
|
|
136
|
-
$form-text-font-size: $font-size-sm;
|
|
137
|
+
$form-label-color: var(--#{$prefix}black);
|
|
137
138
|
$form-label-margin-bottom: $mtvh-spacing-3;
|
|
138
139
|
$form-select-focus-border-color: var(--#{$prefix}grey-06);
|
|
139
140
|
$form-feedback-font-size: $font-size-sm;
|
|
@@ -148,7 +149,7 @@ $input-focus-color: var(--#{$prefix}blue-05);
|
|
|
148
149
|
$input-focus-border-color: var(--#{$prefix}grey-06);
|
|
149
150
|
$input-border-color: var(--#{$prefix}grey-06);
|
|
150
151
|
$input-border-radius: 0.25rem;
|
|
151
|
-
$input-color: $
|
|
152
|
+
$input-color: var(--#{$prefix}black);
|
|
152
153
|
$input-placeholder-color: var(--#{$prefix}grey-06);
|
|
153
154
|
|
|
154
155
|
$input-width-size-xxs : 64px;
|
|
@@ -4,34 +4,50 @@
|
|
|
4
4
|
|
|
5
5
|
.form-check {
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
margin-bottom: $mtvh-spacing-5;
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
&:last-child {
|
|
12
|
+
margin-bottom: 0;
|
|
13
|
+
}
|
|
12
14
|
|
|
13
|
-
.form-check-input {
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
.form-check-label {
|
|
17
|
+
position: relative;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
input {
|
|
22
|
+
float: unset;
|
|
23
|
+
align-self: start;
|
|
24
|
+
@include field-focus();
|
|
25
|
+
}
|
|
23
26
|
span {
|
|
24
|
-
|
|
27
|
+
align-self: center;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:hover {
|
|
31
|
+
cursor: pointer;
|
|
25
32
|
}
|
|
33
|
+
|
|
34
|
+
|
|
26
35
|
}
|
|
36
|
+
|
|
27
37
|
}
|
|
28
38
|
|
|
29
39
|
.form-check-input {
|
|
30
40
|
|
|
31
|
-
margin-
|
|
41
|
+
margin-top: 0;
|
|
42
|
+
margin-right: $mtvh-spacing-4;
|
|
43
|
+
float: unset;
|
|
44
|
+
align-self: start;
|
|
32
45
|
|
|
33
46
|
&[type="checkbox"] {
|
|
34
47
|
background-size: 50%;
|
|
35
48
|
}
|
|
36
49
|
|
|
50
|
+
&:hover {
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
}
|
|
37
53
|
}
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
&.has-message.has-error {
|
|
14
14
|
.text-danger {
|
|
15
|
-
color:
|
|
15
|
+
color: $form-feedback-invalid-color !important;
|
|
16
|
+
font-weight: bold;
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
|
|
@@ -20,17 +21,6 @@
|
|
|
20
21
|
div.formio-component-form{
|
|
21
22
|
& .formio-component:last-child {
|
|
22
23
|
margin-bottom:0!important;
|
|
23
|
-
border: 1px red solid;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
div[ref="element"] {
|
|
27
|
-
.form-text.text-right, .form-text.pull-right {
|
|
28
|
-
float: none;
|
|
29
|
-
margin-top: 12px;
|
|
30
|
-
margin-bottom: 0;
|
|
31
|
-
text-align: left !important;
|
|
32
|
-
}
|
|
33
24
|
}
|
|
34
25
|
}
|
|
35
|
-
|
|
36
26
|
}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
.col-form-label {
|
|
1
|
+
.col-form-label, .form-label {
|
|
2
2
|
font-size: $form-label-font-size;
|
|
3
3
|
font-weight: $form-label-font-weight;
|
|
4
|
+
padding: 0;
|
|
5
|
+
margin-bottom: $mtvh-spacing-3;
|
|
6
|
+
|
|
7
|
+
.optional-question {
|
|
8
|
+
font-weight: $mtvh-font-weight-normal;
|
|
9
|
+
font-size: $font-size-sm;
|
|
10
|
+
|
|
11
|
+
}
|
|
4
12
|
}
|
|
@@ -12,22 +12,14 @@
|
|
|
12
12
|
.form-check-input {
|
|
13
13
|
&.is-invalid {
|
|
14
14
|
&:checked {
|
|
15
|
-
background-color
|
|
15
|
+
background-color: $form-check-input-checked-bg-color;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.form-text {
|
|
21
|
-
font-size: $font-size-sm;
|
|
22
|
-
margin-bottom: $mtvh-spacing-4;
|
|
23
21
|
&.error {
|
|
24
22
|
@include form-invalid-text();
|
|
25
23
|
}
|
|
26
24
|
}
|
|
27
25
|
|
|
28
|
-
/* override radio validation style */
|
|
29
|
-
.form-group {
|
|
30
|
-
&.has-error {
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
}
|