@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.
@@ -20,20 +20,42 @@
20
20
  }
21
21
  .mtvh-form-container {
22
22
 
23
- @include media-breakpoint-up("md") {
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
- @include media-breakpoint-up("lg") {
27
- padding-left: 10%;
28
- padding-right: 10%;
35
+
36
+ .field-required:after, .tab-error::after {
37
+ content: " *";
38
+ color: $form-feedback-invalid-color;
29
39
  }
30
- @include media-breakpoint-up("xl") {
31
- padding-left: 285px;
32
- padding-right: 285px;
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-group {
36
- margin-top: $form-group-margin-top;
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: 0 0 0 0;
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: 4rem;
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: #000000;
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: $body-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
- position: relative;
7
+ display: flex;
8
+ align-items: center;
9
+ margin-bottom: $mtvh-spacing-5;
8
10
 
9
- label, .form-check-input {
10
- &:hover {
11
- cursor: pointer;
11
+ &:last-child {
12
+ margin-bottom: 0;
13
+ }
12
14
 
13
- .form-check-input {
14
- cursor: pointer;
15
- }
16
- }
17
15
 
18
- @include field-focus();
19
- }
20
-
16
+ .form-check-label {
17
+ position: relative;
18
+ display: flex;
19
+ align-items: center;
21
20
 
22
- label {
21
+ input {
22
+ float: unset;
23
+ align-self: start;
24
+ @include field-focus();
25
+ }
23
26
  span {
24
- display: inline-block;
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-right: $mtvh-spacing-3;
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: var(--#{$prefix}red-04) !important;
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:$form-check-input-checked-bg-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
- }
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
3
  @mixin form-invalid-text() {
4
- color: var(--#{$prefix}red-04);
4
+ color: $form-feedback-invalid-color;
5
5
  font-size: $font-size-sm;
6
6
  font-weight: bold;
7
7
  padding-left: $mtvh-spacing-6;