@miljodirektoratet/md-css 3.11.0 → 3.12.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/README.md CHANGED
@@ -21,4 +21,18 @@ const MyComponent = () => {
21
21
 
22
22
  **For HTML structure for each component, see the README.md for each css-file, located in /src, or the `Docs`-section in the [Storybook](https://miljodir.github.io/md-components/) for each component. This must be followed if stylesheets are used as standalone, without React components.**
23
23
 
24
+ ## Fonts
25
+
26
+ This package uses the fonts "Sofia Pro" and "Open Sans", and assumes that you use, or have access to, these fonts in your project. The font "Sofia Pro"can be downloaded from [here](https://github.com/miljodir/md-components/tree/main/assets/webfonts). "Open Sans" is accessible through [Google Fonts](https://fonts.google.com/specimen/Open+Sans).
27
+
28
+ ## DISCLAIMER
29
+
30
+ > All fonts included in this repository are provided solely for use as part of the Norwegian Environment agencys projects and its associated systems.
31
+ >
32
+ > It is strictly prohibited to redistribute, or reuse these fonts outside the scope of the Norwegian Environment agencys projects without obtaining proper authorization or licenses from their respective owners.
33
+ >
34
+ > Our organization does not hold the rights to these fonts and cannot be held liable for any unauthorized use, distribution, or legal consequences arising from such actions.
35
+ >
36
+ > Please refer to the applicable font licenses for detailed terms of use.
37
+
24
38
  _For React components, see [@miljodirektoratet/md-react](https://www.npmjs.com/package/@miljodirektoratet/md-react)_
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miljodirektoratet/md-css",
3
- "version": "3.11.0",
3
+ "version": "3.12.0",
4
4
  "description": "CSS for Miljødirektoratet",
5
5
  "author": "Miljødirektoratet",
6
6
  "main": "./src/index.css",
@@ -32,6 +32,10 @@
32
32
  width: 1rem;
33
33
  flex-shrink: 0;
34
34
  }
35
+ .md-button__topIcon .md-loading-spinner {
36
+ width: 1rem;
37
+ height: 1rem;
38
+ }
35
39
 
36
40
  .md-button__leftIcon {
37
41
  height: 1rem;
@@ -50,6 +54,10 @@
50
54
  flex-shrink: 0;
51
55
  margin-left: 1rem;
52
56
  }
57
+ .md-button__rightIcon .md-loading-spinner {
58
+ width: 1rem;
59
+ height: 1rem;
60
+ }
53
61
 
54
62
  .md-button--small > .md-button__rightIcon {
55
63
  margin-left: 0.5rem;
@@ -73,6 +81,10 @@
73
81
  color: var(--mdGreyColor60);
74
82
  cursor: not-allowed;
75
83
  }
84
+ .md-button:not(.md-button--secondary, .md-button--tertiary)[disabled] .md-loading-spinner,
85
+ .md-button:not(.md-button--secondary, .md-button--tertiary):disabled .md-loading-spinner {
86
+ filter: invert(0.3);
87
+ }
76
88
 
77
89
  .md-button--secondary {
78
90
  background-color: #ffffff;
@@ -17,6 +17,12 @@
17
17
  height: 1.25rem;
18
18
  width: 1.25rem;
19
19
  flex-shrink: 0;
20
+ display: flex;
21
+ justify-content: center;
22
+ }
23
+ .md-icon-button__icon .md-loading-spinner {
24
+ width: 1rem;
25
+ height: 1rem;
20
26
  }
21
27
 
22
28
  .md-icon-button:focus {
@@ -37,6 +43,10 @@
37
43
  color: var(--mdGreyColor60);
38
44
  cursor: not-allowed;
39
45
  }
46
+ .md-icon-button:not(.md-icon-button--plain)[disabled] .md-loading-spinner,
47
+ .md-icon-button:not(.md-icon-button--plain):disabled .md-loading-spinner {
48
+ filter: invert(0.3);
49
+ }
40
50
 
41
51
  .md-icon-button--border {
42
52
  background-color: #ffffff;
package/src/tile/tile.css CHANGED
@@ -79,6 +79,16 @@
79
79
  margin-right: 1rem;
80
80
  color: var(--mdPrimaryColor80);
81
81
  }
82
+ .md-tile__content-icon .md-loading-spinner__container {
83
+ height: 100%;
84
+ }
85
+ .md-tile__content-icon .md-loading-spinner {
86
+ height: 2rem;
87
+ width: 2rem;
88
+ }
89
+ .md-tile--disabled .md-loading-spinner {
90
+ filter: invert(0.3);
91
+ }
82
92
 
83
93
  .md-tile--disabled .md-tile__content-icon {
84
94
  color: var(--mdGreyColor60);
@@ -195,6 +205,17 @@
195
205
  color: var(--mdGreyColor60);
196
206
  }
197
207
 
208
+ .md-tile-vertical__content-icon .md-loading-spinner__container {
209
+ height: 100%;
210
+ }
211
+ .md-tile-vertical__content-icon .md-loading-spinner {
212
+ height: 3rem;
213
+ width: 3rem;
214
+ }
215
+ .md-tile-vertical--disabled .md-loading-spinner {
216
+ filter: invert(0.3);
217
+ }
218
+
198
219
  .md-tile-vertical__content-heading {
199
220
  font-size: 1.25rem;
200
221
  }