@mtvh/mtvh-design-system 0.0.6 → 0.0.8

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.
@@ -14,30 +14,10 @@
14
14
  cursor: pointer;
15
15
  }
16
16
  }
17
- }
18
-
19
- &:has([type="checkbox"]) {
20
-
21
- }
22
- &:has([type="radio"]) {
23
-
24
-
25
- &:focus {
26
-
27
- }
28
-
29
- label {
30
- &:before {
31
- content: "";
32
- position: absolute;
33
- left: -30px;
34
- top: 0;
35
- width: 120%;
36
- height: 120%;
37
- }
38
- }
39
17
 
18
+ @include field-focus();
40
19
  }
20
+
41
21
 
42
22
  label {
43
23
  span {
@@ -54,25 +34,4 @@
54
34
  background-size: 50%;
55
35
  }
56
36
 
57
- &:hover {
58
-
59
- &[type="checkbox"] {
60
- @if $enable-gradients {
61
- --#{$prefix}form-check-bg-image: #{escape-svg($form-check-input-checked-bg-image)}, var(--#{$prefix}gradient);
62
- } @else {
63
- --#{$prefix}form-check-bg-image: #{escape-svg($form-check-input-checked-bg-image)};
64
- }
65
-
66
- }
67
-
68
- &[type="radio"] {
69
- @if $enable-gradients {
70
- --#{$prefix}form-check-bg-image: #{escape-svg($form-check-radio-checked-bg-image)}, var(--#{$prefix}gradient);
71
- } @else {
72
- --#{$prefix}form-check-bg-image: #{escape-svg($form-check-radio-checked-bg-image)};
73
- }
74
- background-color: $form-check-input-hover-bg-color;
75
- }
76
- }
77
-
78
37
  }
@@ -1,12 +1,7 @@
1
1
  .form-control {
2
2
  height: auto;
3
- &:focus {
4
- box-shadow: none;
5
- outline: solid var(--mtvh-btn-outline-border) var(--mtvh-btn-outline-color);
6
- outline-offset: 0;
7
- outline-offset: var(--mtvh-btn-outline-border);
8
- color: $input-color;
9
- }
3
+
4
+ @include field-focus();
10
5
 
11
6
  &.is-invalid {
12
7
  &:focus {
@@ -12,7 +12,7 @@
12
12
 
13
13
  &.has-message.has-error {
14
14
  .text-danger {
15
- color: var(--mtvh-red-04) !important;
15
+ color: var(--#{$prefix}red-04) !important;
16
16
  }
17
17
  }
18
18
 
@@ -8,14 +8,15 @@
8
8
  .invalid-feedback {
9
9
  font-weight: $mtvh-font-weight-bold;
10
10
  }
11
- .form-control {
11
+
12
+ .form-check-input {
12
13
  &.is-invalid {
13
- background-color: var(--mtvh-red-01);
14
- &[type="radio"] {
15
- border: 1px solid blue;
14
+ &:checked {
15
+ background-color:$form-check-input-checked-bg-color;
16
16
  }
17
17
  }
18
18
  }
19
+
19
20
  .form-text {
20
21
  font-size: $font-size-sm;
21
22
  margin-bottom: $mtvh-spacing-4;
@@ -27,13 +28,6 @@
27
28
  /* override radio validation style */
28
29
  .form-group {
29
30
  &.has-error {
30
- &:has([type="radio"]) {
31
31
 
32
- .form-check.radio {
33
- input {
34
- border: $form-check-input-border;
35
- }
36
- }
37
- }
38
32
  }
39
33
  }
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
3
  @mixin form-invalid-text() {
4
- color: var(--mtvh-red-04);
4
+ color: var(--#{$prefix}red-04);
5
5
  font-size: $font-size-sm;
6
6
  font-weight: bold;
7
7
  padding-left: $mtvh-spacing-6;
@@ -35,3 +35,15 @@
35
35
  }
36
36
 
37
37
  }
38
+
39
+
40
+ @mixin field-focus() {
41
+
42
+ &:focus {
43
+ box-shadow: none;
44
+ outline: solid var(--#{$prefix}btn-outline-border) var(--#{$prefix}primary-outline-color);
45
+ outline-offset: 0;
46
+ outline-offset: var(--#{$prefix}btn-outline-border);
47
+ color: $input-color;
48
+ }
49
+ }
@@ -50,18 +50,18 @@
50
50
  } @else { //position is left
51
51
 
52
52
  &:before{ ;
53
- @include animate-default;
54
- @include icon-transform('left');
55
- @if $svg-path {
56
- background-image: url($svg-path);
57
- } @else {
58
- -webkit-mask: get-icon($icon);
59
- mask: get-icon($icon);
60
- background-color: currentColor
61
- }
62
-
53
+ @include animate-default;
54
+ @include icon-transform('left');
55
+ @if $svg-path {
56
+ background-image: url($svg-path);
57
+ } @else {
58
+ -webkit-mask: get-icon($icon);
59
+ mask: get-icon($icon);
60
+ background-color: currentColor
63
61
  }
64
62
 
63
+ }
64
+
65
65
  @if $svg-path == '' {
66
66
  &:hover:not(.disabled) {
67
67
  &:before {
@@ -4,13 +4,14 @@
4
4
  @import "bootstrap/scss/functions";
5
5
 
6
6
  // 2. Include any default variable overrides here
7
+ @import 'config/palette';
7
8
  @import "config/variables";
8
9
  @import "config/font";
9
- @import 'config/palette';
10
10
  @import 'config/theme';
11
- @import "config/map-list";
11
+ @import "config/icon-list";
12
12
  @import 'base/all';
13
13
 
14
+ @import "mixins/icon";
14
15
  @import "mixins/form";
15
16
  @import "mixins/butttons";
16
17
  @import "mixins/banner";