@mtvh/mtvh-design-system 0.0.12 → 0.0.13

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.
@@ -8,3 +8,4 @@
8
8
  @import '_stepper';
9
9
  @import '_banner';
10
10
  @import '_status';
11
+ @import '_notification';
@@ -14,6 +14,9 @@
14
14
  font-size: $font-size-sm;
15
15
  padding: $mtvh-spacing-5 $mtvh-spacing-6;
16
16
  }
17
+ a {
18
+ color: inherit;
19
+ }
17
20
  }
18
21
  &--stretch {
19
22
  height: 100%;
@@ -26,28 +29,36 @@
26
29
  text-decoration: none;
27
30
  box-shadow: var(--#{$prefix}box-shadow);
28
31
  padding: $mtvh-spacing-5;
29
- &:hover {
30
- background-color: var(--#{$prefix}grey-02);
31
- }
32
32
 
33
33
  @include media-breakpoint-up(md) {
34
- padding: $mtvh-spacing-6;
34
+ padding: $mtvh-spacing-5 $mtvh-spacing-6;
35
35
  }
36
36
 
37
37
  @include media-breakpoint-up(lg) {
38
38
  min-height: 17rem;
39
+ padding: $mtvh-spacing-6;
40
+ }
41
+
42
+ &--unset {
43
+ min-height: unset;
39
44
  }
40
45
 
41
46
  &:focus-within {
42
47
  outline: solid var(--#{$prefix}btn-outline-border) var(--#{$prefix}btn-outline-color);
43
48
  outline-offset: $mtvh-spacing-3;
44
- background-color: var(--#{$prefix}grey-04);
49
+ background-color: var(--#{$prefix}white);
45
50
  }
46
-
47
51
  &:active, &:focus {
48
- background-color: var(--#{$prefix}grey-04);
52
+ background-color: var(--#{$prefix}white);
49
53
  outline: unset;
50
54
  }
55
+ &:hover {
56
+ outline: solid var(--#{$prefix}btn-outline-border) var(--#{$prefix}purple-03);
57
+ outline-offset: 0;
58
+ }
59
+ &:active{
60
+ background-color: var(--#{$prefix}purple-01);
61
+ }
51
62
 
52
63
  a {
53
64
  @extend %h3;
@@ -63,7 +74,6 @@
63
74
  z-index: 100;
64
75
  }
65
76
  &:active, &:focus {
66
- background-color: var(--#{$prefix}grey-04);
67
77
  outline: unset;
68
78
  }
69
79
 
@@ -75,12 +85,6 @@
75
85
  }
76
86
  }
77
87
 
78
- h2 {
79
- + .mtvh-btn, + .mtvh-link {
80
-
81
- }
82
- }
83
-
84
88
  h3 {
85
89
  + .mtvh-btn, + .mtvh-link {
86
90
  margin-top: 0.625rem;
@@ -108,12 +112,17 @@
108
112
  background-color: var(--#{$prefix}content-block-bg);
109
113
  }
110
114
 
115
+
111
116
  &-icon {
112
117
 
113
- padding-top: $mtvh-spacing-5;
118
+ &:not(.mtvh-content-block-link-card ) {
119
+ padding-top: $mtvh-spacing-5;
120
+ }
114
121
 
115
122
  .mtvh-icon {
116
123
  margin-bottom: $mtvh-spacing-3;
124
+ height: $icon-size-scale-xl;
125
+ display: block;
117
126
  }
118
127
 
119
128
  h3:has(+ p + p ), h3:has(+ p + p + p), h3:has(+ div){
@@ -0,0 +1,32 @@
1
+ .notification {
2
+
3
+ --#{$prefix}notification-text-color: var(--mtvh-white);
4
+ --#{$prefix}notification-bg-color: var(--mtvh-red-04);
5
+
6
+ margin-left: $mtvh-spacing-7;
7
+ margin-top: -$mtvh-spacing-5;
8
+
9
+ .mtvh-icon {
10
+ position: relative;
11
+ }
12
+
13
+ &-text {
14
+ position: absolute;
15
+ margin-top: 6px;
16
+ margin-left: -20px;
17
+ background-color: var(--#{$prefix}notification-bg-color);
18
+ color: var(--#{$prefix}notification-text-color);
19
+ border-radius: var(--#{$prefix}border-radius-pill);
20
+ font-size: $font-size-xxs;
21
+ font-weight: $mtvh-font-weight-bold;
22
+ padding: 2px 5px;
23
+ line-height: 1;
24
+ white-space: nowrap;
25
+ vertical-align: baseline;
26
+ }
27
+
28
+ .mtvh-icon-notification + .notification-text {
29
+ margin-left: -23px;
30
+ }
31
+
32
+ }
@@ -6,6 +6,7 @@ $asset-icon-path: "./images/icons/" !default;
6
6
 
7
7
  // Font
8
8
  $font-size-base: 1rem;
9
+ $font-size-xxs: $font-size-base * 0.625;
9
10
  $font-size-xs: $font-size-base;
10
11
  $font-size-sm: $font-size-base * 1.125;
11
12
  $font-size-md: $font-size-base * 1.375;
@@ -325,3 +326,7 @@ $badge-border-radius: 0;
325
326
  $badge-padding-x: $mtvh-spacing-1;
326
327
  $badge-padding-y: 0;
327
328
  $badge-font-size: $mtvh-base-font-size;
329
+
330
+ /* Notification */
331
+ $notification-bg-color: $danger;
332
+ $notification-text-color: var(--#{$prefix}white);