@mtvh/mtvh-design-system 0.0.19 → 0.0.22

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/README.md CHANGED
@@ -5,6 +5,11 @@ View documentation for [MTVH Design System](https://mtvh-design-system.netlify.a
5
5
  This library is dependant on:
6
6
  - Bootstrap 5.*
7
7
 
8
+ ## Prerequisites
9
+ - Node.js — latest LTS version
10
+ - Hugo — latest extended version. Installation guide https://gohugo.io/installation/
11
+
12
+
8
13
  ## Development
9
14
 
10
15
  - `npm install` will download dependancies
@@ -1,38 +1,7 @@
1
1
  @import "mtvh";
2
2
 
3
3
  // 2. Include any default variable overrides here
4
- @import "common/colors";
5
- @import "common/variables-overrides";
6
- @import "common/variables-custom";
7
-
8
- // 8. Add additional custom code here, BS function not used in mtvh moved here, to minimise the css
9
-
10
-
11
- // 8. Add additional custom code here
12
- @import "common/global";
13
- @import "common/syntax";
14
- @import "common/dark";
15
- @import "components/alerts";
16
- @import "components/buttons";
17
- @import "components/callouts";
18
- @import "components/expressive-code";
19
- @import "components/code";
20
- @import "components/comments";
21
- @import "components/details";
22
- @import "components/forms";
23
- @import "components/images";
24
- @import "components/mermaid";
25
- @import "components/modals";
26
- @import "components/search";
27
- @import "components/section-nav";
28
- @import "components/tables";
29
- @import "components/tabs";
30
- @import "layouts/footer";
31
- @import "layouts/header";
32
- @import "layouts/pages";
33
- @import "layouts/posts";
34
- @import "layouts/sidebar";
35
-
4
+ @import "../../node_modules/@thulite/doks-core/assets/scss/app";
36
5
 
37
6
  // 9. Custom styles
38
7
  @import "common/custom";
@@ -31,8 +31,8 @@
31
31
 
32
32
  $icon: map-get( $icons, $icon );
33
33
  $placeholder: '%%COLOR%%';
34
-
35
34
  $data-uri: str-replace( url( $data-svg-prefix + $icon ), $placeholder, $color );
36
35
 
37
36
  @return str-replace( $data-uri, '#', '%23' );
38
37
  }
38
+
@@ -1,22 +1,23 @@
1
- .mtvh-formio {
1
+ @import "../forms/form-control";
2
+ @import "../forms/form-select";
3
+ @import "../forms/form-check";
4
+ @import "../forms/labels";
5
+ @import "../forms/form-chip";
6
+ @import "../forms/form-date-input";
7
+ @import "../forms/input-group";
8
+ @import "../forms/validation";
9
+
10
+
11
+ .formio-form {
2
12
  @import "../forms/formio";
3
13
  @import "../forms/mtvho_contact_phone";
4
14
  @import "../forms/mtvho_contact_email";
5
15
  }
6
- .mtvh-form, .mtvh-formio {
7
-
8
- @import "../forms/form-control";
9
- @import "../forms/form-check";
10
- @import "../forms/labels";
11
- @import "../forms/form-chip";
12
- @import "../forms/form-date-input";
13
- @import "../forms/input-group";
14
- @import "../forms/validation";
15
16
 
17
+ .mtvh-form, .mtvh-formio, formio {
16
18
 
17
19
  &:has(.mtvh-form-container), &:has(.formio-form) {
18
20
 
19
- background-color: var(--#{$prefix}white);
20
21
  --#{$prefix}form-padding-y: #{$mtvh-spacing-7};
21
22
  --#{$prefix}form-padding-x: #{$mtvh-spacing-4};
22
23
  --#{$prefix}form-group-padding-y: #{$form-group-margin-bottom};
@@ -26,6 +27,7 @@
26
27
  --#{$prefix}form-padding-x: #{$mtvh-spacing-11};
27
28
  }
28
29
 
30
+ background-color: var(--#{$prefix}white);
29
31
  margin: 0 calc(var(--#{$prefix}form-padding-x) * -1);
30
32
  padding: var(--#{$prefix}form-padding-y) var(--#{$prefix}form-padding-x);
31
33
  overflow: hidden;
@@ -35,10 +37,16 @@
35
37
  }
36
38
  }
37
39
 
38
- .form-group {
39
- margin-bottom: var(--#{$prefix}form-group-padding-y);
40
+ .form-group, .formio-form-group.mb-2 {
41
+ margin-bottom: var(--#{$prefix}form-group-padding-y) !important;
42
+
40
43
  .formio-choices.choices {
41
- margin-bottom: 0;
44
+ --#{$prefix}form-group-padding-y: 0;
45
+ }
46
+
47
+ &:empty {
48
+ display: none;
49
+ --#{$prefix}form-group-padding-y: 0;
42
50
  }
43
51
  }
44
52
 
@@ -87,14 +95,12 @@
87
95
  --#{$prefix}form-max-width: 576px;
88
96
  }
89
97
  @include media-breakpoint-up("lg") {
90
-
91
98
  --#{$prefix}form-group-padding-y: #{$mtvh-spacing-7};
92
99
  --#{$prefix}form-max-width: 636px;
93
100
  }
94
101
  }
95
102
 
96
103
  max-width: var(--#{$prefix}form-max-width);
97
-
98
104
  @include media-breakpoint-up("md") {
99
105
  padding-left: 60px;
100
106
  padding-right: 60px;
@@ -113,4 +119,3 @@
113
119
  }
114
120
  }
115
121
  }
116
-
@@ -1,13 +1,29 @@
1
- @mixin active-link-style {
2
- font-weight: $mtvh-font-weight-bold;
3
- color: var(--#{$prefix}stepper-sm-font-color);
4
- @include media-breakpoint-up($stepper-breakpoint) {
5
- color: var(--#{$prefix}stepper-font-color);
1
+
2
+ @mixin stepper-small-container {
3
+ &.mtvh-stepper-small {
4
+ @content;
6
5
  }
7
- &:before {
8
- color: var(--#{$prefix}stepper-font-color);
6
+ @include media-breakpoint-down($stepper-breakpoint) {
7
+ @content;
9
8
  }
10
9
  }
10
+ @mixin stepper-small-count {
11
+ counter-increment: count-1;
12
+ content: counter(count);
13
+ }
14
+ @mixin stepper-small-position {
15
+
16
+ opacity: 0;
17
+ position: absolute;
18
+ top: 80px;
19
+ left: 0;
20
+ margin-left: auto;
21
+ text-align: center;
22
+ color: var(--#{$prefix}stepper-sm-font-color);
23
+ width:100%;
24
+ }
25
+
26
+
11
27
  .mtvh-stepper {
12
28
 
13
29
  --#{$prefix}stepper-font-color: #{$stepper-font-color};
@@ -17,24 +33,25 @@
17
33
  --#{$prefix}stepper-active-bg-color: #{$stepper-active-bg-color};
18
34
  --#{$prefix}stepper-disabled-bg-color: #{$stepper-disabled-bg-color};
19
35
  --#{$prefix}stepper-disabled-font-color: #{$stepper-disabled-font-color};
20
- --#{$prefix}stepper-item-padding-x: #{$stepper-item-padding-x};
21
- --#{$prefix}stepper-item-padding-y: #{$stepper-item-padding-y};
22
36
  --#{$prefix}stepper-breakpoint: #{$stepper-breakpoint};
23
37
 
24
38
  display: flex;
25
39
  flex-wrap: nowrap;
26
40
  list-style: none;
27
- position: relative;
28
41
  width: 100%;
29
- padding: 0 0 $mtvh-spacing-9 0;
30
- margin: $mtvh-spacing-6 0 $mtvh-spacing-5 0;
42
+ padding: $mtvh-spacing-8 0 $mtvh-spacing-5 0;
43
+ margin: 0;
31
44
  justify-content: center;
32
45
  color: var(--#{$prefix}stepper-font-color);
33
46
  text-align: center;
47
+ position: relative;
34
48
 
35
- @include media-breakpoint-up($stepper-breakpoint) {
36
- padding-bottom: 0;
37
- margin: $mtvh-spacing-8 0 $mtvh-spacing-5 0;
49
+ @include stepper-small-container {
50
+ padding: $mtvh-spacing-7 0 $mtvh-spacing-4 0;
51
+ min-height: 120px;
52
+ .mtvh-stepper-item {
53
+ height: 40px;
54
+ }
38
55
  }
39
56
 
40
57
  .mtvh-stepper-item {
@@ -42,14 +59,28 @@
42
59
  counter-increment: count;
43
60
  flex-basis: 100%;
44
61
  margin-right: 1px;
62
+ margin-bottom: 0;
45
63
  color: var(--#{$prefix}stepper-disabled-font-color);
46
64
  background-color: var(--#{$prefix}stepper-disabled-bg-color);
47
65
  font-size: var(--#{$prefix}stepper-font-size);
48
- padding: var(--#{$prefix}stepper-item-padding-x) var(--#{$prefix}stepper-item-padding-y);
66
+ padding: $mtvh-spacing-3 $mtvh-spacing-2;
49
67
 
50
- &:has( a + span), &:has( span + a ) {
68
+ &:has( a + span), &:has( span + a ), &.completed {
51
69
  background-color: var(--#{$prefix}stepper-bg-color);
52
- color: var(--#{$prefix}stepper-font-color);
70
+ color: inherit;
71
+ font-weight: bold;
72
+ }
73
+
74
+ &:has(a) {
75
+ &:hover {
76
+ background-color: var(--#{$prefix}blue-04);
77
+ cursor: pointer;
78
+ }
79
+ }
80
+
81
+ &:focus-within {
82
+ outline: solid var(--#{$prefix}btn-outline-border) var(--#{$prefix}btn-outline-color);
83
+ outline-offset: var(--#{$prefix}btn-outline-border);
53
84
  }
54
85
 
55
86
  &:first-child {
@@ -58,24 +89,40 @@
58
89
  &:last-child {
59
90
  border-radius: 0 50px 50px 0;
60
91
  }
92
+
61
93
  &.active {
62
94
  background-color: var(--#{$prefix}stepper-active-bg-color);
63
95
  @include active-link-style;
64
-
96
+ &:hover {
97
+ background-color: var(--#{$prefix}stepper-active-bg-color);
98
+ }
65
99
  }
100
+
66
101
  &:before {
67
- counter-increment: count-1;
68
- content: counter(count);
69
- @include media-breakpoint-up($stepper-breakpoint) {
70
- content: counter(count) ".";
102
+ content: counter(count) ".";
103
+ @include media-breakpoint-down($stepper-breakpoint) {
104
+ @include stepper-small-count;
71
105
  }
72
-
73
106
  }
74
107
 
75
108
  a {
76
109
  text-decoration: none;
77
110
  color: var(--#{$prefix}stepper-font-color);
78
111
  font-size: var(--#{$prefix}stepper-font-size);
112
+
113
+ &:focus {
114
+ border:0;
115
+ outline: 0;
116
+ }
117
+ &:after {
118
+ bottom: 0;
119
+ content: "";
120
+ left: 0;
121
+ position: absolute;
122
+ right: 0;
123
+ top: 0;
124
+ z-index: 100;
125
+ }
79
126
  }
80
127
 
81
128
  &:has(a:not(.link-inactive)) {
@@ -87,7 +134,7 @@
87
134
  &:has(a.link-inactive) {
88
135
  color: var(--#{$prefix}stepper-disabled-font-color);
89
136
  background-color: var(--#{$prefix}stepper-disabled-bg-color);
90
-
137
+ font-weight: normal;
91
138
  a {
92
139
  color: var(--#{$prefix}stepper-disabled-font-color);
93
140
  background-color: var(--#{$prefix}stepper-disabled-bg-color);
@@ -100,16 +147,7 @@
100
147
 
101
148
  a, span {
102
149
  @include media-breakpoint-down($stepper-breakpoint) {
103
-
104
- opacity: 0;
105
- position: absolute;
106
- top: 80%;
107
- left: 50%;
108
- margin-left: auto;
109
- text-align: center;
110
- transform: translate(-50%, -50%);
111
- color: var(--#{$prefix}stepper-sm-font-color);
112
- width:100%;
150
+ @include stepper-small-position
113
151
  }
114
152
  }
115
153
 
@@ -118,6 +156,22 @@
118
156
  opacity: 1;
119
157
  @include active-link-style;
120
158
  }
159
+
160
+ }
161
+ }
162
+ }
163
+
164
+ .mtvh-stepper-small {
165
+ .mtvh-stepper-item {
166
+ --#{$prefix}stepper-font-color: #{$stepper-sm-font-color};
167
+ a, span {
168
+ @include stepper-small-position
169
+ }
170
+ &:before {
171
+ @include stepper-small-count;
172
+ }
173
+ &:before {
174
+ --#{$prefix}stepper-font-color: #{$stepper-font-color};
121
175
  }
122
176
  }
123
177
  }
@@ -18,7 +18,7 @@ $icons: (
18
18
  ,'generic-doc' : '<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.95 20c-.528 0-.981-.188-1.358-.565a1.852 1.852 0 0 1-.565-1.358V1.923c0-.529.189-.982.565-1.358C2.97.188 3.422 0 3.95 0h7.308c.255 0 .499.047.73.141.231.094.438.232.62.413l4.8 4.79a1.925 1.925 0 0 1 .568 1.361v11.372c0 .529-.188.981-.565 1.358-.376.377-.83.565-1.358.565H3.95Zm7.154-14.09V1.923H3.95v16.154h12.103V6.872h-3.987a.926.926 0 0 1-.68-.282.926.926 0 0 1-.282-.68Z" fill="#000"/></svg>'
19
19
  ,'presentation' : '<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18.182 17.727V3.182H1.818v6.363a.88.88 0 0 1-.261.648.88.88 0 0 1-.648.262.88.88 0 0 1-.648-.262A.88.88 0 0 1 0 9.545V3.182c0-.5.178-.928.534-1.284a1.75 1.75 0 0 1 1.284-.534h16.364c.5 0 .928.178 1.284.534.356.356.534.784.534 1.284v12.727c0 .5-.178.928-.534 1.284a1.75 1.75 0 0 1-1.284.534Zm-10.91-6.363c-1 0-1.855-.356-2.567-1.069-.713-.712-1.069-1.568-1.069-2.568s.356-1.856 1.069-2.568c.712-.712 1.568-1.068 2.568-1.068s1.856.356 2.568 1.068c.712.712 1.068 1.568 1.068 2.568s-.356 1.856-1.068 2.569c-.712.712-1.568 1.068-2.568 1.068Zm0-1.819c.5 0 .929-.178 1.285-.534a1.75 1.75 0 0 0 .534-1.284c0-.5-.178-.928-.534-1.284a1.75 1.75 0 0 0-1.284-.534c-.5 0-.928.178-1.284.534a1.75 1.75 0 0 0-.534 1.284c0 .5.178.928.534 1.284a1.75 1.75 0 0 0 1.284.534Zm-5.454 9.091c-.5 0-.928-.178-1.284-.534A1.75 1.75 0 0 1 0 16.818v-.727c0-.515.133-.989.398-1.42a2.65 2.65 0 0 1 1.057-.99 13.52 13.52 0 0 1 2.863-1.056 12.51 12.51 0 0 1 2.955-.352c1 0 1.985.117 2.954.352.97.235 1.925.587 2.864 1.057.44.227.792.557 1.057.989.265.431.398.905.398 1.42v.727c0 .5-.179.928-.535 1.284a1.751 1.751 0 0 1-1.284.534H1.818Zm0-1.818h10.91v-.727a.885.885 0 0 0-.455-.773 11.853 11.853 0 0 0-2.478-.92 10.548 10.548 0 0 0-5.045 0c-.833.204-1.66.511-2.477.92a.885.885 0 0 0-.455.773v.727Z" fill="#000"/></svg>'
20
20
  ,'error' : '<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.1 19.212A9.738 9.738 0 0 0 10 20a9.738 9.738 0 0 0 3.9-.788 10.098 10.098 0 0 0 3.175-2.137c.9-.9 1.613-1.958 2.137-3.175A9.738 9.738 0 0 0 20 10a9.738 9.738 0 0 0-.788-3.9 10.099 10.099 0 0 0-2.137-3.175c-.9-.9-1.958-1.612-3.175-2.137A9.738 9.738 0 0 0 10 0a9.738 9.738 0 0 0-3.9.787 10.099 10.099 0 0 0-3.175 2.138c-.9.9-1.612 1.958-2.137 3.175A9.738 9.738 0 0 0 0 10c0 1.383.263 2.683.787 3.9a10.098 10.098 0 0 0 2.138 3.175c.9.9 1.958 1.613 3.175 2.137Zm9.575-3.537C14.125 17.225 12.233 18 10 18c-2.233 0-4.125-.775-5.675-2.325C2.775 14.125 2 12.233 2 10c0-2.233.775-4.125 2.325-5.675C5.875 2.775 7.767 2 10 2c2.233 0 4.125.775 5.675 2.325C17.225 5.875 18 7.767 18 10c0 2.233-.775 4.125-2.325 5.675Z" fill="#000"/><path d="M10 15.952c-.393 0-.73-.134-1.009-.404a1.3 1.3 0 0 1-.42-.971c0-.379.14-.702.42-.972.28-.27.616-.404 1.009-.404.393 0 .73.135 1.009.404.28.27.42.593.42.972a1.3 1.3 0 0 1-.42.971c-.28.27-.616.404-1.009.404Zm0-4.127c-.393 0-.73-.134-1.009-.404a1.3 1.3 0 0 1-.42-.971V4.947c0-.378.14-.702.42-.971.28-.27.616-.405 1.009-.405.393 0 .73.135 1.009.405.28.269.42.593.42.971v5.503a1.3 1.3 0 0 1-.42.971c-.28.27-.616.404-1.009.404Z" fill="#000"/></svg>'
21
- ,'cancel': '<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.992 11.816 4.18 17.627c-.26.26-.555.384-.886.372-.33-.012-.626-.147-.886-.407a1.24 1.24 0 0 1 0-1.807l5.776-5.777-5.811-5.811A1.179 1.179 0 0 1 2 3.293c.012-.342.147-.643.407-.903a1.24 1.24 0 0 1 1.807 0L9.992 8.2l5.811-5.811a1.24 1.24 0 0 1 1.807 0 1.24 1.24 0 0 1 0 1.807L11.8 10.008l5.811 5.812c.26.26.39.555.39.886 0 .33-.13.626-.39.886a1.24 1.24 0 0 1-1.807 0l-5.811-5.776Z" fill="#DD080D"/></svg>'
21
+ ,'cancel': '<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.992 11.816 4.18 17.627c-.26.26-.555.384-.886.372-.33-.012-.626-.147-.886-.407a1.24 1.24 0 0 1 0-1.807l5.776-5.777-5.811-5.811A1.179 1.179 0 0 1 2 3.293c.012-.342.147-.643.407-.903a1.24 1.24 0 0 1 1.807 0L9.992 8.2l5.811-5.811a1.24 1.24 0 0 1 1.807 0 1.24 1.24 0 0 1 0 1.807L11.8 10.008l5.811 5.812c.26.26.39.555.39.886 0 .33-.13.626-.39.886a1.24 1.24 0 0 1-1.807 0l-5.811-5.776Z" fill="%%COLOR%%" /></svg>'
22
22
  ,'upload': '<svg width="21" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.39 12.825V16c0 .283.096.52.288.712.192.192.43.288.713.288s.52-.096.712-.288a.968.968 0 0 0 .288-.712v-3.175l.9.9c.1.1.212.175.337.225.125.05.25.07.375.063a1.038 1.038 0 0 0 .688-.313c.183-.2.279-.433.287-.7a.916.916 0 0 0-.287-.7l-2.6-2.6a.877.877 0 0 0-.325-.212 1.106 1.106 0 0 0-.375-.063c-.134 0-.259.02-.375.063a.877.877 0 0 0-.325.212l-2.6 2.6c-.2.2-.296.433-.288.7.008.267.113.5.313.7.2.183.433.28.7.288.266.008.5-.088.7-.288l.875-.875ZM4.39 20c-.55 0-1.02-.196-1.412-.587A1.926 1.926 0 0 1 2.391 18V2c0-.55.195-1.02.587-1.413A1.926 1.926 0 0 1 4.391 0h7.175a1.974 1.974 0 0 1 1.4.575l4.85 4.85a1.975 1.975 0 0 1 .575 1.4V18c0 .55-.196 1.02-.588 1.413a1.926 1.926 0 0 1-1.412.587h-12Zm7-14V2h-7v16h12V7h-4a.968.968 0 0 1-.712-.287.968.968 0 0 1-.287-.713Z" fill="#000"/></svg>'
23
23
  ,'delete': '<svg width="21" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.242 19c-.55 0-1.02-.196-1.412-.587A1.926 1.926 0 0 1 3.242 17V4a.968.968 0 0 1-.712-.288A.968.968 0 0 1 2.242 3c0-.283.096-.52.288-.712A.968.968 0 0 1 3.242 2h4c0-.283.096-.52.288-.712A.968.968 0 0 1 8.242 1h4c.283 0 .521.096.713.288.191.191.287.429.287.712h4c.284 0 .521.096.713.288.191.191.287.429.287.712s-.096.52-.287.712a.968.968 0 0 1-.713.288v13c0 .55-.196 1.02-.587 1.413a1.926 1.926 0 0 1-1.413.587h-10Zm10-15h-10v13h10V4Zm-7 11c.284 0 .521-.096.713-.287A.968.968 0 0 0 9.242 14V7a.968.968 0 0 0-.287-.713A.968.968 0 0 0 8.242 6a.968.968 0 0 0-.712.287.968.968 0 0 0-.288.713v7c0 .283.096.52.288.713.191.191.429.287.712.287Zm4 0c.283 0 .521-.096.713-.287a.968.968 0 0 0 .287-.713V7a.967.967 0 0 0-.287-.713.968.968 0 0 0-.713-.287.968.968 0 0 0-.712.287.967.967 0 0 0-.288.713v7c0 .283.096.52.288.713.191.191.429.287.712.287Z" fill="#0072BF"/></svg>'
24
24
  ,'update' : '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 28 28"><path fill="#000" d="M19.72 2.069a.905.905 0 0 1 .716.053.897.897 0 0 1 .467.537l1.383 4.202c.099.301.078.593-.064.875a1.106 1.106 0 0 1-.666.57l-4.2 1.383a.892.892 0 0 1-.713-.056.91.91 0 0 1-.465-.542.908.908 0 0 1 .052-.712.893.893 0 0 1 .542-.469l2.361-.778a10.064 10.064 0 0 0-3.887-1.452 8.762 8.762 0 0 0-4.11.35c-2.456.809-4.26 2.349-5.41 4.62-1.152 2.27-1.324 4.633-.517 7.087.805 2.443 2.343 4.239 4.614 5.386 2.27 1.148 4.631 1.319 7.08.512 2.044-.673 3.65-1.9 4.815-3.682 1.166-1.781 1.664-3.728 1.493-5.841-.01-.269.061-.5.213-.692a.993.993 0 0 1 .608-.363.874.874 0 0 1 .722.165c.21.16.322.375.333.64.235 2.562-.35 4.923-1.752 7.082-1.402 2.159-3.351 3.649-5.846 4.47-1.466.483-2.93.657-4.395.524a11.3 11.3 0 0 1-4.102-1.161 11.301 11.301 0 0 1-3.371-2.609c-.978-1.098-1.708-2.38-2.19-3.846-.484-1.467-.658-2.933-.524-4.398.133-1.464.52-2.831 1.16-4.101a11.268 11.268 0 0 1 2.62-3.375c1.105-.98 2.392-1.711 3.86-2.195a10.794 10.794 0 0 1 4.747-.473c1.607.197 3.115.72 4.522 1.568l-.691-2.1a.904.904 0 0 1 .052-.71.895.895 0 0 1 .542-.47Z"/><path fill="#000" d="M13.933 9.282c.26 0 .482.092.665.276a.899.899 0 0 1 .274.657v5.244l3.638 3.639a.94.94 0 0 1 0 1.333.907.907 0 0 1-1.329-.003l-3.845-3.872a1.128 1.128 0 0 1-.254-.374 1.133 1.133 0 0 1-.083-.43v-5.537c0-.254.092-.473.273-.657a.895.895 0 0 1 .661-.276Z"/></svg>'
@@ -151,10 +151,9 @@ $form-label-font-size : $font-size-md;
151
151
  $form-label-font-weight: 700;
152
152
  $form-label-color: var(--#{$prefix}black);
153
153
  $form-label-margin-bottom: $mtvh-spacing-3;
154
- $form-select-focus-border-color: var(--#{$prefix}grey-06);
155
154
  $form-feedback-font-size: $font-size-sm;
156
155
  $form-feedback-invalid-color: $danger;
157
- $form-feedback-icon-invalid: '';
156
+
158
157
  $form-feedback-margin-top: $mtvh-spacing-4;
159
158
  $input-line-height: 1.5;
160
159
  $input-font-size: $font-size-sm;
@@ -162,6 +161,7 @@ $input-padding-y: $mtvh-spacing-4;
162
161
  $input-padding-x: $mtvh-spacing-5;
163
162
  $input-focus-color: var(--#{$prefix}blue-05);
164
163
  $input-focus-border-color: var(--#{$prefix}grey-06);
164
+
165
165
  $input-border-color: var(--#{$prefix}grey-06);
166
166
  $input-border-radius: 0.25rem;
167
167
  $input-color: var(--#{$prefix}black);
@@ -197,7 +197,6 @@ $form-check-wrapper-radio-invalid-border: 1px solid var(--#{$prefix}red-01);
197
197
  $form-select-indicator-color: var(--#{$prefix}black);
198
198
  $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>");
199
199
 
200
-
201
200
  /* list group */
202
201
  $list-group-item-padding-x: 0;
203
202
  $list-group-bg: inherit;
@@ -225,8 +224,6 @@ $stepper-disabled-bg-color: var(--#{$prefix}grey-03);
225
224
  $stepper-disabled-font-color: var(--#{$prefix}black);
226
225
  $stepper-font-size: $font-size-xs;
227
226
  $stepper-font-color: var(--#{$prefix}white);
228
- $stepper-item-padding-x: $mtvh-spacing-3;
229
- $stepper-item-padding-y: $mtvh-spacing-2;
230
227
  $stepper-breakpoint: "lg";
231
228
 
232
229
  $alert-border-radius: 8px;
@@ -1,7 +1,7 @@
1
1
  body {
2
2
  @include font-size($font-size-sm);
3
3
  }
4
- h1, h2, h3, h4, h5, h6, dt,
4
+ h1, h2, h3, h4, h5, h6,
5
5
  .mtvh-h1,
6
6
  .mtvh-h2,
7
7
  .mtvh-h3,
@@ -11,7 +11,6 @@
11
11
  margin-bottom: 0;
12
12
  }
13
13
 
14
-
15
14
  .form-check-label {
16
15
  position: relative;
17
16
  display: flex;
@@ -33,6 +32,12 @@
33
32
  margin-right: $mtvh-spacing-4;
34
33
  float: unset;
35
34
  align-self: start;
35
+ border: var(--#{$prefix}border-width) solid var(--#{$prefix}grey-06);
36
+
37
+ &:checked {
38
+ background-color: var( --#{$prefix}form-check-input-checked-bg-color);
39
+ border-color: var( --#{$prefix}form-check-input-checked-bg-color);
40
+ }
36
41
 
37
42
  &[type="checkbox"] {
38
43
  background-size: 50%;
@@ -50,4 +55,8 @@
50
55
  }
51
56
  }
52
57
 
58
+ &:checked {
59
+ border-color: $form-check-input-checked-border-color;
60
+ background-color: $form-check-input-focus-bg-color;
61
+ }
53
62
  }
@@ -8,31 +8,67 @@
8
8
  padding: 0;
9
9
  margin: 0;
10
10
  }
11
+
11
12
  .form-check-input {
12
13
  width: 5px;
13
14
  opacity: 0;
14
15
  position: absolute;
16
+
17
+ &:focus {
18
+ + label {
19
+ @include focus-style();
20
+ color: inherit;
21
+ }
22
+ }
23
+ &:checked {
24
+ + label {
25
+ background-color: $form-check-input-checked-bg-color;
26
+ color: $form-check-input-checked-color;
27
+ }
28
+ &:focus {
29
+ + label {
30
+ color: $form-check-input-checked-color;
31
+ }
32
+ }
33
+ }
34
+
35
+ &[type="checkbox"] {
36
+
37
+ &:checked + label {
38
+ &:hover {
39
+ position: relative;
40
+ &:after {
41
+ position: absolute;;
42
+ content: "";
43
+ background-image: get-icon( 'cancel' , white);
44
+ background-repeat: no-repeat;
45
+ right: 5px;
46
+ top: 12px;
47
+ background-size: $icon-size-scale-xs;
48
+ background-position: 50%;
49
+ width: $icon-size-scale-xs;
50
+ height: $icon-size-scale-xs;
51
+ }
52
+ }
53
+ }
54
+ }
55
+
15
56
  }
57
+
16
58
  .form-check-label {
17
- span {
59
+
18
60
  padding: $mtvh-spacing-3 $mtvh-spacing-6;
19
61
  border: 1px solid var(--mtvh-grey-06);
20
62
  border-radius: 0.5rem;
21
63
  background-color: var(--mtvh-grey-01);
22
- }
23
- }
24
-
25
- .form-check-input {
26
-
27
- &:checked + span {
28
- background-color: $form-check-input-checked-bg-color;
29
- color: $form-check-input-checked-color;
30
- }
64
+
31
65
  }
32
66
 
33
67
  &--fullwidth {
34
-
35
- .radio, label, .form-check-label span {
68
+ .form-check {
69
+ width: 100%;
70
+ }
71
+ .form-check-label, .form-check-label span {
36
72
  width: 100%;
37
73
  }
38
74
  }
@@ -1,13 +1,14 @@
1
1
  .form-control {
2
2
 
3
+
3
4
  @include field-focus();
4
5
 
5
6
  &.is-invalid {
6
7
  &:focus {
7
- border-color: $input-border-color;
8
8
  box-shadow: none;
9
9
  }
10
- background-color: var(--mtvh-red-01);
10
+
11
+ background-color: var(--#{$prefix}red-01);
11
12
  background-image: none;
12
13
  }
13
14
 
@@ -32,16 +33,3 @@
32
33
  }
33
34
 
34
35
  }
35
-
36
- select {
37
- padding-right: 50px;
38
- max-width: unset;
39
- -o-appearance: none;
40
- -webkit-appearance: none;
41
- -moz-appearance: none;
42
- appearance: none;
43
- 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");
44
- background-position: calc(100% - 12px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px), calc(100% - .5em) .5em;
45
- background-repeat: no-repeat;
46
- background-size: 1rem;
47
- }
@@ -1,6 +1,7 @@
1
1
  .form-date-wrapper {
2
2
  @include textfield-no-arrow;
3
3
  display: flex;
4
+ flex-wrap: wrap;
4
5
  gap: 1rem;
5
6
  }
6
7
 
@@ -9,6 +10,7 @@
9
10
 
10
11
  &:has(select) {
11
12
  width: auto;
13
+
12
14
  }
13
15
 
14
16
  &--large {
@@ -0,0 +1,16 @@
1
+
2
+ .form-select, select {
3
+
4
+ color: $form-select-color;
5
+ max-width: unset;
6
+ -o-appearance: none;
7
+ -webkit-appearance: none;
8
+ -moz-appearance: none;
9
+ appearance: none;
10
+ 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");
11
+ background-repeat: no-repeat;
12
+ background-size: 1rem;
13
+ background-position: right .75rem center;
14
+ @include field-focus();
15
+
16
+ }
@@ -1,9 +1,8 @@
1
1
  .formio-component {
2
2
 
3
- margin-bottom: $mtvh-spacing-9;
4
-
5
3
  &.formio-hidden{
6
- margin-bottom:0;
4
+ margin-bottom: 0;
5
+ --#{$prefix}form-group-padding-y: 0;
7
6
  }
8
7
 
9
8
  &.formio-component-button:has(> button[type="submit"]),&.formio-component-form,&.formio-component-fieldset,&.formio-component-columns,&.formio-component-mtvhLogicSet{
@@ -29,13 +28,14 @@
29
28
  }
30
29
 
31
30
  .formio-wizard-nav-container {
32
- display: block;
31
+ display: grid;
33
32
  }
34
33
 
35
34
  .formio-error-wrapper {
36
35
  background: unset;
36
+ padding: 0;
37
37
  }
38
38
 
39
- .formio-error-wrapper {
40
- padding: 0;
39
+ .choices__item.choices__item--selectable {
40
+ padding-right: 30px;
41
41
  }
@@ -7,7 +7,8 @@
7
7
  .was-validated .form-control:invalid, .form-control.is-invalid {
8
8
  padding-right: $input-padding-x;
9
9
  }
10
- .invalid-feedback, .formio-component.has-error .invalid-feedback {
10
+
11
+ .invalid-feedback, .formio-component.has-error.has-message .invalid-feedback {
11
12
  font-weight: $mtvh-font-weight-bold;
12
13
  &:has(.error.form-text) {
13
14
  .form-text {
@@ -16,6 +17,7 @@
16
17
  font-size: $font-size-sm;
17
18
  font-weight: bold;
18
19
  margin: 0;
20
+ display: inline-block;
19
21
  }
20
22
  }
21
23
  }
@@ -25,8 +27,20 @@
25
27
  }
26
28
  }
27
29
 
30
+ .mtvh-chips {
31
+ &.has-error, &.has-message {
32
+ .form-check-label {
33
+ color: $form-label-color;
34
+ span {
35
+ border-color: $form-feedback-invalid-color;
36
+ }
37
+ }
38
+ }
39
+ }
40
+
28
41
  .form-check-input {
29
42
  &.is-invalid {
43
+ border-color: var(--mtvh-form-invalid-border-color);
30
44
  &:checked {
31
45
  background-color: $form-check-input-checked-bg-color;
32
46
  }