@mtvh/mtvh-design-system 0.0.27 → 0.0.29

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.
@@ -32,6 +32,7 @@ $link-color: #0072bf;
32
32
  $link-hover-color: #005792;
33
33
  $body-color: #000;
34
34
  $font-family-sans-serif: Arial, sans-serif;
35
+ $font-family-paralucent: var(--mtvh-font), sans-serif;
35
36
 
36
37
  // MTVH Font
37
38
  $mtvh-base-font-size: $font-size-base;
@@ -101,13 +102,14 @@ $mtvh-spacing-8: 2.5rem;
101
102
  $mtvh-spacing-9: 3rem;
102
103
  $mtvh-spacing-10: 3.5rem;
103
104
  $mtvh-spacing-11: 3.75rem;
105
+ $mtvh-spacing-12: 5rem;
104
106
  // custom added bs spacing value
105
107
 
106
108
  $spacer: 1rem;
107
109
  $spacers: (
108
110
  0: 0,
109
111
  1: $spacer * 0.25,
110
- 2: $spacer * 0.5,
112
+ 2: $spacer * 0.375,
111
113
  3: $spacer,
112
114
  4: $spacer * 1.5,
113
115
  5: $spacer * 3,
@@ -119,6 +121,10 @@ $spacers: (
119
121
  16: $mtvh-spacing-6,
120
122
  17: $mtvh-spacing-7,
121
123
  18: $mtvh-spacing-8,
124
+ 19: $mtvh-spacing-9,
125
+ 20: $mtvh-spacing-10,
126
+ 21: $mtvh-spacing-11,
127
+ 22: $mtvh-spacing-12,
122
128
  );
123
129
 
124
130
  $icon-size-scale-xs: 16px !default;
@@ -248,6 +254,7 @@ $content-block-theme-colors: (
248
254
  "purple-01": var(--#{$prefix}purple-01),
249
255
  "purple-02": var(--#{$prefix}purple-02),
250
256
  "stone-02": var(--#{$prefix}stone-02),
257
+ "grey-02": var(--#{$prefix}grey-02),
251
258
  );
252
259
 
253
260
  $content-block-theme-border: (
@@ -322,6 +329,37 @@ $badge-themes: (
322
329
  ),
323
330
  );
324
331
 
332
+
333
+ $icon-color-themes: (
334
+ "green": (
335
+ "background": var(--#{$prefix}green-01),
336
+ "color": var(--#{$prefix}green-03),
337
+ ),
338
+ "red": (
339
+ "background": var(--#{$prefix}red-01),
340
+ "color": var(--#{$prefix}red-03),
341
+ ),
342
+ "grey": (
343
+ "background": var(--#{$prefix}grey-02),
344
+ "color": var(--#{$prefix}grey-05),
345
+ ),
346
+ "blue": (
347
+ "background": var(--#{$prefix}blue-01),
348
+ "color": var(--#{$prefix}blue-03),
349
+ ),
350
+ "purple": (
351
+ "background": var(--#{$prefix}purple-01),
352
+ "color": var(--#{$prefix}purple-03),
353
+ ),
354
+ "yellow": (
355
+ "background": var(--#{$prefix}yellow-01),
356
+ "color": var(--#{$prefix}yellow-03),
357
+ ),
358
+ "stone": (
359
+ "background": var(--#{$prefix}stone-01),
360
+ "color": var(--#{$prefix}stone-03),
361
+ ),
362
+ );
325
363
  $badge-border-radius: 0;
326
364
  $badge-padding-x: $mtvh-spacing-1;
327
365
  $badge-padding-y: 0;
@@ -333,11 +371,16 @@ $notification-text-color: var(--#{$prefix}white);
333
371
  $box-shadow: 0 0.125rem 0.225rem rgba(0, 0, 0, 0.12);
334
372
 
335
373
  /* pagination */
336
- $pagination-padding-x: 18px;
337
- $pagination-padding-y: 10px;
374
+ $pagination-padding-x: 0;
375
+ $pagination-padding-y: 8px;
338
376
  $pagination-border-radius: 4px;
377
+ $pagination-color: var(--#{$prefix}blue-04);
378
+ $pagination-hover-color: var(--#{$prefix}blue-05);
379
+ $pagination-hover-bg: var(--#{$prefix}white);
339
380
  $pagination-active-bg: var(--#{$prefix}purple-04);
340
381
  $pagination-active-color: var(--#{$prefix}white);
382
+ $pagination-focus-color: var(--#{$prefix}blue-04);
383
+ $pagination-focus-bg: transparent;
341
384
  $pagination-font-size: $font-size-sm;
342
385
  $pagination-focus-box-shadow: unset;
343
386
  $pagination-border-width: 0;
@@ -26,7 +26,7 @@
26
26
  @include hover-animate($position: "right");
27
27
  }
28
28
  }
29
- &.m-0 {
29
+ &.m-0, &.mtvh-icon--circle {
30
30
  &:after,
31
31
  &:before {
32
32
  margin-right: 0;
@@ -43,3 +43,17 @@
43
43
  }
44
44
  }
45
45
  }
46
+
47
+ .mtvh-icon--circle {
48
+ @include mtvh-icon-circle($icon-size-scale-md, var(--#{$prefix}icon-background), var(--#{$prefix}icon-colour));
49
+ }
50
+
51
+ @each $state, $variable in $icon-color-themes {
52
+ $bg-colour: map-get($variable, "background");
53
+ $color: map-get($variable, "color");
54
+
55
+ .mtvh-icon--circle-#{$state} {
56
+ --#{$prefix}icon-colour: #{$color};
57
+ --#{$prefix}icon-background: #{$bg-colour};
58
+ }
59
+ }
@@ -8,14 +8,15 @@ h4,
8
8
  h5,
9
9
  h6,
10
10
  .mtvh-h1,
11
- .mtvh-h2,
11
+ mtvh-child-title-h1,
12
+ mtvh-title-h1 .mtvh-h2,
12
13
  .mtvh-h3,
13
14
  .mtvh-h4,
14
15
  .mtvh-h5,
15
16
  .mtvh-h6 {
16
17
  margin: 0;
17
18
  padding: 0;
18
- font-family: var(--mtvh-font);
19
+ font-family: $font-family-paralucent;
19
20
  font-weight: $mtvh-font-weight-bold;
20
21
  }
21
22
 
@@ -56,18 +57,28 @@ p {
56
57
 
57
58
  %child-title-h1 {
58
59
  margin-bottom: $mtvh-spacing-5;
59
- margin-top: $mtvh-spacing-5;
60
- display: block;
61
- @include media-breakpoint-down("sm") {
62
- font-size: 2.125rem;
63
- line-height: 1.3;
60
+ margin-top: $mtvh-spacing-7;
61
+ font-size: 2.125rem;
62
+ line-height: 1.3;
63
+ font-weight: $mtvh-font-weight-semibold;
64
+ @include media-breakpoint-up("md") {
65
+ font-size: 2.5rem;
66
+ line-height: 1.2;
67
+ }
68
+ @include media-breakpoint-up("lg") {
69
+ margin-top: $mtvh-spacing-8;
64
70
  }
65
71
  }
66
72
 
67
73
  %parent-title-h1 {
68
- margin-top: $mtvh-spacing-5;
69
- @include media-breakpoint-up("md") {
74
+ margin-bottom: $mtvh-spacing-5;
75
+ margin-top: $mtvh-spacing-7;
76
+ @include media-breakpoint-up("sm") {
70
77
  font-size: 3.25rem;
78
+ line-height: 1.2;
79
+ }
80
+ @include media-breakpoint-up("lg") {
81
+ margin-top: $mtvh-spacing-8;
71
82
  }
72
83
  }
73
84
 
@@ -0,0 +1,16 @@
1
+ .credit-card-form {
2
+ background-color: var(--#{$prefix}white);
3
+ padding: $mtvh-spacing-6 $mtvh-spacing-5 $mtvh-spacing-6 $mtvh-spacing-5;
4
+ border-radius: $border-radius-lg;
5
+ @include media-breakpoint-up(sm) {
6
+ padding-left: $mtvh-spacing-6;
7
+ padding-right: $mtvh-spacing-6;
8
+ }
9
+
10
+ .form-group {
11
+ --#{$prefix}form-group-padding-y: #{$mtvh-spacing-9};
12
+ @include media-breakpoint-up(sm) {
13
+ --mtvh-form-group-padding-y: #{$mtvh-spacing-10};
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,21 @@
1
+ .formio-component-mtvhAddress {
2
+ label {
3
+ margin-bottom: $mtvh-spacing-3;
4
+ }
5
+
6
+ select,
7
+ textarea {
8
+ @include media-breakpoint-up(lg) {
9
+ max-width: $input-width-size-xl;
10
+ }
11
+ }
12
+
13
+ #postCodeSection {
14
+ .d-flex {
15
+ align-items: center;
16
+ > button {
17
+ margin-left: $mtvh-spacing-4;
18
+ }
19
+ }
20
+ }
21
+ }
@@ -2,7 +2,7 @@
2
2
  select,
3
3
  input {
4
4
  @include media-breakpoint-up(lg) {
5
- width: 50%;
5
+ max-width: $input-width-size-xl;
6
6
  }
7
7
  }
8
8
  }
@@ -2,7 +2,7 @@
2
2
  select,
3
3
  input {
4
4
  @include media-breakpoint-up(lg) {
5
- width: 50%;
5
+ max-width: $input-width-size-xl;
6
6
  }
7
7
  }
8
8
  }
@@ -0,0 +1,15 @@
1
+ // MTVHO Stripe styles for Card Elements
2
+ //
3
+ form.mtvh-form.new_payment {
4
+ .stripe-element-placeholder {
5
+ @extend .form-control;
6
+ }
7
+
8
+ .StripeElement--focus {
9
+ @include focus-style;
10
+ }
11
+
12
+ .StripeElement--invalid {
13
+ @extend .form-control, .is-invalid;
14
+ }
15
+ }
@@ -47,33 +47,28 @@
47
47
  }
48
48
  }
49
49
 
50
- @mixin button-circle() {
50
+ @mixin button-circle($padding: $mtvh-spacing-4, $hover-bg: rgba(0, 0, 0, 0.08), $active-bg: rgba(0, 0, 0, 0.16)) {
51
51
  border: 0;
52
52
  border-radius: 50%;
53
- -moz-border-radius: 50%;
54
- -webkit-border-radius: 50%;
55
- padding: $mtvh-spacing-4;
53
+ padding: $padding;
56
54
 
57
55
  &:focus-visible {
58
56
  box-shadow: none;
59
- outline: solid var(--#{$prefix}btn-outline-border)
60
- var(--#{$prefix}btn-close-focus-outline-color);
57
+ outline: solid var(--#{$prefix}btn-outline-border) var(--#{$prefix}btn-close-focus-outline-color);
61
58
  outline-offset: calc(var(--mtvh-btn-outline-border) * -2);
62
59
  text-decoration: none;
63
60
  -webkit-tap-highlight-color: unset;
64
61
  }
65
- &:focus:not(:focus-visible) {
62
+ &:focus:not(:focus-visible),
63
+ &:hover,
64
+ &:active:not(:disabled):not(.disabled) {
66
65
  outline: 0;
67
66
  }
68
67
  &:hover {
69
68
  cursor: pointer;
70
- outline: 0;
71
- }
72
- &:hover {
73
- background-color: rgba(0, 0, 0, 0.08);
69
+ background-color: $hover-bg;
74
70
  }
75
71
  &:active:not(:disabled):not(.disabled) {
76
- outline: 0;
77
- background-color: rgba(0, 0, 0, 0.16);
72
+ background-color: $active-bg;
78
73
  }
79
74
  }
@@ -12,7 +12,7 @@
12
12
  background-color: $danger;
13
13
  mask-repeat: no-repeat;
14
14
  -webkit-mask-repeat: no-repeat;
15
- padding-right: $mtvh-spacing-6;
15
+ padding-right: $mtvh-spacing-7;
16
16
  margin-top: $mtvh-spacing-1;
17
17
  vertical-align: top;
18
18
  }
@@ -42,5 +42,5 @@
42
42
  outline: solid var(--#{$prefix}btn-outline-border)
43
43
  var(--#{$prefix}primary-outline-color);
44
44
  outline-offset: var(--#{$prefix}btn-outline-border);
45
- color: $input-color;
45
+ color: inherit;
46
46
  }
@@ -126,3 +126,30 @@
126
126
  background-size: contain;
127
127
  }
128
128
  }
129
+
130
+
131
+ @mixin mtvh-icon-circle($size, $bg, $color) {
132
+ width: $size;
133
+ height: $size;
134
+ border-radius: 50%;
135
+ background-color: $bg;
136
+ display: flex;
137
+ align-items: center;
138
+ justify-content: center;
139
+ color: $color;
140
+
141
+ &.mtvh-icon {
142
+ &:before,
143
+ &:after {
144
+ margin: 0;
145
+ vertical-align: middle;
146
+ height: $icon-size-scale-xs;
147
+ width: $icon-size-scale-xs;
148
+ background-size: contain;
149
+ background-position: center;
150
+ background-repeat: no-repeat;
151
+ -webkit-mask-size: contain;
152
+ mask-size: contain;
153
+ }
154
+ }
155
+ }