@miljodirektoratet/md-css 3.12.0 → 4.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miljodirektoratet/md-css",
3
- "version": "3.12.0",
3
+ "version": "4.0.0",
4
4
  "description": "CSS for Miljødirektoratet",
5
5
  "author": "Miljødirektoratet",
6
6
  "main": "./src/index.css",
@@ -24,12 +24,12 @@
24
24
  border: 1px solid var(--mdPrimaryColor20);
25
25
  }
26
26
 
27
- .md-accordion-item:not(.md-accordion-item--expanded):hover {
27
+ .md-accordion-item:not(.md-accordion-item--expanded, .md-accordion-item--disabled):hover {
28
28
  transition: all 0.2s linear;
29
29
  background-color: var(--mdPrimaryColor20);
30
30
  }
31
31
 
32
- .md-accordion-item.md-accordion-item--secondary:not(.md-accordion-item--expanded):hover {
32
+ .md-accordion-item.md-accordion-item--secondary:not(.md-accordion-item--expanded, .md-accordion-item--disabled):hover {
33
33
  transition: all 0.2s linear;
34
34
  background-color: var(--mdSecondaryColor);
35
35
  }
@@ -106,7 +106,7 @@
106
106
  font-size: 1.25rem;
107
107
  margin-left: 1em;
108
108
  }
109
- .md-accordion-item__header:hover .md-accordion-item__header-label {
109
+ .md-accordion-item:not(.md-accordion-item--disabled) .md-accordion-item__header:hover .md-accordion-item__header-label {
110
110
  text-decoration: underline;
111
111
  }
112
112
 
@@ -28,8 +28,8 @@
28
28
  }
29
29
 
30
30
  .md-button__topIcon {
31
- height: 1rem;
32
- width: 1rem;
31
+ height: 1.25rem;
32
+ width: 1.25rem;
33
33
  flex-shrink: 0;
34
34
  }
35
35
  .md-button__topIcon .md-loading-spinner {
@@ -38,8 +38,8 @@
38
38
  }
39
39
 
40
40
  .md-button__leftIcon {
41
- height: 1rem;
42
- width: 1rem;
41
+ height: 1.25rem;
42
+ width: 1.25rem;
43
43
  flex-shrink: 0;
44
44
  margin-right: 1rem;
45
45
  }
@@ -49,8 +49,8 @@
49
49
  }
50
50
 
51
51
  .md-button__rightIcon {
52
- height: 1rem;
53
- width: 1rem;
52
+ height: 1.25rem;
53
+ width: 1.25rem;
54
54
  flex-shrink: 0;
55
55
  margin-left: 1rem;
56
56
  }
@@ -10,7 +10,7 @@
10
10
  font-weight: 400;
11
11
  font-family: 'Open sans';
12
12
  font-size: 1rem;
13
- line-height: 1.375rem;
13
+ line-height: 1.5rem;
14
14
  padding: 0.5rem 1rem;
15
15
  cursor: pointer;
16
16
  text-align: left;
@@ -59,8 +59,8 @@
59
59
 
60
60
  .md-chip__left-icon {
61
61
  display: flex;
62
- width: 1rem;
63
- height: 1rem;
62
+ width: 1.25rem;
63
+ height: 1.25rem;
64
64
  margin-right: 0.66rem;
65
65
  }
66
66
 
@@ -70,7 +70,7 @@
70
70
 
71
71
  .md-chip__right-icon {
72
72
  display: flex;
73
- width: 1rem;
74
- height: 1rem;
73
+ width: 1.25rem;
74
+ height: 1.25rem;
75
75
  margin-left: 0.8rem;
76
76
  }
@@ -80,8 +80,8 @@
80
80
  .md-multiselect__button-icon {
81
81
  display: flex;
82
82
  flex-shrink: 0;
83
- width: 0.9375rem;
84
- height: 0.9375rem;
83
+ width: 1.25rem;
84
+ height: 1.25rem;
85
85
  rotate: 90deg;
86
86
  color: var(--mdGreyColor);
87
87
  }
@@ -89,8 +89,8 @@
89
89
  .md-select__button-icon {
90
90
  display: flex;
91
91
  flex-shrink: 0;
92
- width: 0.9375rem;
93
- height: 0.9375rem;
92
+ width: 1.25rem;
93
+ height: 1.25rem;
94
94
  rotate: 90deg;
95
95
  color: var(--mdGreyColor);
96
96
  }
@@ -151,8 +151,8 @@
151
151
  .md-select__dropdown-item-clear {
152
152
  display: flex;
153
153
  flex-shrink: 0;
154
- height: 0.75rem;
155
- width: 0.75rem;
154
+ height: 1.25rem;
155
+ width: 1.25rem;
156
156
  color: var(--mdPrimaryColor);
157
157
  }
158
158
 
package/src/link/link.css CHANGED
@@ -14,8 +14,8 @@
14
14
  }
15
15
 
16
16
  .md-link__icon {
17
- height: 1rem;
18
- width: 1rem;
17
+ height: 1.25rem;
18
+ width: 1.25rem;
19
19
  }
20
20
 
21
21
  .md-link:hover {