@mtvh/mtvh-design-system 0.0.19 → 0.0.21

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;
@@ -87,14 +89,12 @@
87
89
  --#{$prefix}form-max-width: 576px;
88
90
  }
89
91
  @include media-breakpoint-up("lg") {
90
-
91
92
  --#{$prefix}form-group-padding-y: #{$mtvh-spacing-7};
92
93
  --#{$prefix}form-max-width: 636px;
93
94
  }
94
95
  }
95
96
 
96
97
  max-width: var(--#{$prefix}form-max-width);
97
-
98
98
  @include media-breakpoint-up("md") {
99
99
  padding-left: 60px;
100
100
  padding-right: 60px;
@@ -113,4 +113,3 @@
113
113
  }
114
114
  }
115
115
  }
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: 50px;
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
42
  padding: 0 0 $mtvh-spacing-9 0;
30
43
  margin: $mtvh-spacing-6 0 $mtvh-spacing-5 0;
31
44
  justify-content: center;
32
45
  color: var(--#{$prefix}stepper-font-color);
33
46
  text-align: center;
47
+ position: relative;
48
+ padding-bottom: 0;
49
+ margin: $mtvh-spacing-8 0 $mtvh-spacing-5 0;
34
50
 
35
- @include media-breakpoint-up($stepper-breakpoint) {
36
- padding-bottom: 0;
37
- margin: $mtvh-spacing-8 0 $mtvh-spacing-5 0;
51
+ @include stepper-small-container {
52
+ padding: 0 0 $mtvh-spacing-9 0;
53
+ margin: $mtvh-spacing-6 0 $mtvh-spacing-5 0;
54
+ position: unset;
38
55
  }
39
56
 
40
57
  .mtvh-stepper-item {
@@ -45,11 +62,24 @@
45
62
  color: var(--#{$prefix}stepper-disabled-font-color);
46
63
  background-color: var(--#{$prefix}stepper-disabled-bg-color);
47
64
  font-size: var(--#{$prefix}stepper-font-size);
48
- padding: var(--#{$prefix}stepper-item-padding-x) var(--#{$prefix}stepper-item-padding-y);
65
+ padding: $mtvh-spacing-3 $mtvh-spacing-2;
66
+ position: relative;
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
+ }
78
+ }
79
+
80
+ &:focus-within {
81
+ outline: solid var(--#{$prefix}btn-outline-border) var(--#{$prefix}btn-outline-color);
82
+ outline-offset: var(--#{$prefix}btn-outline-border);
53
83
  }
54
84
 
55
85
  &:first-child {
@@ -58,24 +88,40 @@
58
88
  &:last-child {
59
89
  border-radius: 0 50px 50px 0;
60
90
  }
91
+
61
92
  &.active {
62
93
  background-color: var(--#{$prefix}stepper-active-bg-color);
63
94
  @include active-link-style;
64
-
95
+ &:hover {
96
+ background-color: var(--#{$prefix}stepper-active-bg-color);
97
+ }
65
98
  }
99
+
66
100
  &:before {
67
- counter-increment: count-1;
68
- content: counter(count);
69
- @include media-breakpoint-up($stepper-breakpoint) {
70
- content: counter(count) ".";
101
+ content: counter(count) ".";
102
+ @include media-breakpoint-down($stepper-breakpoint) {
103
+ @include stepper-small-count;
71
104
  }
72
-
73
105
  }
74
106
 
75
107
  a {
76
108
  text-decoration: none;
77
109
  color: var(--#{$prefix}stepper-font-color);
78
110
  font-size: var(--#{$prefix}stepper-font-size);
111
+
112
+ &:focus {
113
+ border:0;
114
+ outline: 0;
115
+ }
116
+ &:after {
117
+ bottom: 0;
118
+ content: "";
119
+ left: 0;
120
+ position: absolute;
121
+ right: 0;
122
+ top: 0;
123
+ z-index: 100;
124
+ }
79
125
  }
80
126
 
81
127
  &:has(a:not(.link-inactive)) {
@@ -100,16 +146,7 @@
100
146
 
101
147
  a, span {
102
148
  @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%;
149
+ @include stepper-small-position
113
150
  }
114
151
  }
115
152
 
@@ -118,6 +155,22 @@
118
155
  opacity: 1;
119
156
  @include active-link-style;
120
157
  }
158
+
159
+ }
160
+ }
161
+ }
162
+
163
+ .mtvh-stepper-small {
164
+ .mtvh-stepper-item {
165
+ --#{$prefix}stepper-font-color: #{$stepper-sm-font-color};
166
+ a, span {
167
+ @include stepper-small-position
168
+ }
169
+ &:before {
170
+ @include stepper-small-count;
171
+ }
172
+ &:before {
173
+ --#{$prefix}stepper-font-color: #{$stepper-font-color};
121
174
  }
122
175
  }
123
176
  }
@@ -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%;
@@ -7,7 +7,29 @@
7
7
  .form-check {
8
8
  padding: 0;
9
9
  margin: 0;
10
+
11
+ &.checkbox.radio-selected {
12
+ &:hover {
13
+ span {
14
+ position: relative;
15
+ &:after {
16
+ position: absolute;;
17
+ content: "";
18
+ background-image: get-icon( 'cancel' , white);
19
+ background-repeat: no-repeat;
20
+ right: 5px;
21
+ top: 12px;
22
+ background-size: $icon-size-scale-xs;
23
+ background-position: 50%;
24
+ width: $icon-size-scale-xs;
25
+ height: $icon-size-scale-xs;
26
+ }
27
+ }
28
+
29
+ }
30
+ }
10
31
  }
32
+
11
33
  .form-check-input {
12
34
  width: 5px;
13
35
  opacity: 0;
@@ -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,7 +1,5 @@
1
1
  .formio-component {
2
2
 
3
- margin-bottom: $mtvh-spacing-9;
4
-
5
3
  &.formio-hidden{
6
4
  margin-bottom:0;
7
5
  }
@@ -29,7 +27,7 @@
29
27
  }
30
28
 
31
29
  .formio-wizard-nav-container {
32
- display: block;
30
+ display: grid;
33
31
  }
34
32
 
35
33
  .formio-error-wrapper {
@@ -27,6 +27,7 @@
27
27
 
28
28
  .form-check-input {
29
29
  &.is-invalid {
30
+ border-color: var(--mtvh-form-invalid-border-color);
30
31
  &:checked {
31
32
  background-color: $form-check-input-checked-bg-color;
32
33
  }
@@ -4,9 +4,8 @@
4
4
  color: $form-feedback-invalid-color;
5
5
  font-size: $font-size-sm;
6
6
  font-weight: bold;
7
- padding-left: $mtvh-spacing-2;
8
7
  position: relative;
9
- display: flex !important;
8
+ display: flex;
10
9
  margin: $mtvh-spacing-3 0 0 0;
11
10
  &:before {
12
11
  content: '';
@@ -15,8 +14,7 @@
15
14
  background-color: $danger;
16
15
  mask-repeat: no-repeat;
17
16
  -webkit-mask-repeat: no-repeat;
18
- margin-left: $mtvh-spacing-1;
19
- padding-right: $mtvh-spacing-7;
17
+ padding-right: $mtvh-spacing-6;
20
18
  margin-top: $mtvh-spacing-1;
21
19
  }
22
20
 
@@ -95,3 +95,24 @@
95
95
  background-size: 100%;
96
96
  }
97
97
  }
98
+
99
+ @mixin mtvh-banner-icon() {
100
+
101
+ padding-top: #{$mtvh-spacing-3};
102
+ padding-bottom: #{$mtvh-spacing-3};
103
+ padding-left: (calc(#{$icon-size-scale-md} + #{$mtvh-spacing-5} ));
104
+ padding-right: #{$mtvh-spacing-4};
105
+ position: relative;
106
+
107
+ &:before {
108
+ content: "";
109
+ position: absolute;
110
+ left: 0;
111
+ flex-shrink: 0;
112
+ vertical-align: top;
113
+ appearance: none;
114
+ background-repeat: no-repeat;
115
+ background-position: center;
116
+ background-size: contain;
117
+ }
118
+ }
@@ -0,0 +1,10 @@
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);
6
+ }
7
+ &:before {
8
+ color: var(--#{$prefix}stepper-font-color);
9
+ }
10
+ }
@@ -14,7 +14,7 @@
14
14
  @import "mixins/icon";
15
15
  @import "mixins/form";
16
16
  @import "mixins/butttons";
17
- @import "mixins/banner";
17
+ @import "mixins/style";
18
18
 
19
19
  // 3. Include remainder of required Bootstrap stylesheets (including any separate color mode stylesheets)
20
20
  @import "bootstrap/scss/variables";