@mtvh/mtvh-design-system 0.0.8 → 0.0.10

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,55 @@
20
20
  }
21
21
  .mtvh-form-container {
22
22
 
23
- @include media-breakpoint-up("md") {
24
23
 
24
+ @include media-breakpoint-up("lg") {
25
+ max-width: 550px;
26
+ margin:0 auto;
25
27
  }
28
+
29
+ --#{$prefix}form-group-padding-y: #{$form-group-margin-bottom};
30
+
26
31
  @include media-breakpoint-up("lg") {
27
- padding-left: 10%;
28
- padding-right: 10%;
32
+ --#{$prefix}form-group-padding-y: #{$form-group-lg-margin-bottom};
29
33
  }
30
- @include media-breakpoint-up("xl") {
31
- padding-left: 285px;
32
- padding-right: 285px;
34
+
35
+ &--md {
36
+ --#{$prefix}form-group-padding-y: #{$mtvh-spacing-6};
37
+
38
+ @include media-breakpoint-up("lg") {
39
+ --#{$prefix}form-group-padding-y: #{$mtvh-spacing-7};
40
+ }
41
+
33
42
  }
34
43
 
35
44
  .form-group {
36
- margin-top: $form-group-margin-top;
45
+ margin-bottom: var(--#{$prefix}form-group-padding-y);
46
+
47
+ }
48
+
49
+ .field-required:after, .tab-error::after {
50
+ content: " *";
51
+ color: $form-feedback-invalid-color;
52
+ }
53
+
54
+ .form-text {
55
+ margin-top: $mtvh-spacing-3;
56
+ font-size: $font-size-sm;
57
+ margin-bottom: $mtvh-spacing-4;
58
+
59
+ &.text-right, &.pull-right {
60
+ float: none;
61
+ margin-bottom: 0;
62
+ text-align: left !important;
63
+ }
64
+ }
65
+
66
+ .mtvh-form-container-required {
67
+ font-size: $font-size-xs;
68
+ padding: $mtvh-spacing-4 0 $mtvh-spacing-6 0;
69
+ @include media-breakpoint-down('lg') {
70
+ padding-bottom: $mtvh-spacing-7;
71
+ }
37
72
  }
38
73
 
39
74
  }
@@ -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 {
@@ -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: (
@@ -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-lg-margin-bottom: 3.5rem;
133
+ $form-group-margin-bottom: 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,47 @@
4
4
 
5
5
  .form-check {
6
6
 
7
- position: relative;
7
+ display: flex;
8
+ align-items: center;
9
+ margin-bottom: $mtvh-spacing-5;
10
+
11
+ &:last-child {
12
+ margin-bottom: 0;
13
+ }
14
+
15
+
16
+ .form-check-label {
17
+ position: relative;
18
+ display: flex;
19
+ align-items: center;
20
+
21
+ input {
22
+ float: unset;
23
+ align-self: start;
24
+ @include field-focus();
25
+ }
8
26
 
9
- label, .form-check-input {
10
27
  &:hover {
11
28
  cursor: pointer;
12
-
13
- .form-check-input {
14
- cursor: pointer;
15
- }
16
29
  }
17
30
 
18
- @include field-focus();
19
- }
20
-
21
31
 
22
- label {
23
- span {
24
- display: inline-block;
25
- }
26
32
  }
33
+
27
34
  }
28
35
 
29
36
  .form-check-input {
30
37
 
31
- margin-right: $mtvh-spacing-3;
38
+ margin-top: 0;
39
+ margin-right: $mtvh-spacing-4;
40
+ float: unset;
41
+ align-self: start;
32
42
 
33
43
  &[type="checkbox"] {
34
44
  background-size: 50%;
35
45
  }
36
46
 
47
+ &:hover {
48
+ cursor: pointer;
49
+ }
37
50
  }
@@ -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;