@miljodirektoratet/md-css 1.0.0 → 1.0.2

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
@@ -19,6 +19,8 @@ const MyComponent = () => {
19
19
  }
20
20
  ```
21
21
 
22
+ **For more documentation, please refer to the [Storybook](https://miljodir.github.io/md-components/)**
23
+
22
24
  **For HTML structure for each component, see the README.md for each css-file, located in /src. This must be followed if stylesheets are used as standalone, without React components.**
23
25
 
24
26
  _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": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "CSS for Miljødirektoratet",
5
5
  "author": "Miljødirektoratet",
6
6
  "main": "./src/index.css",
@@ -9,6 +9,7 @@
9
9
  font-size: 1rem;
10
10
  outline: 2px solid var(--mdPrimaryColor);
11
11
  padding: .65rem 1.5rem;
12
+ width: fit-content;
12
13
  }
13
14
 
14
15
  .md-button--small {
@@ -1,3 +1,17 @@
1
1
  .md-loading-spinner {
2
2
  animation: spinAnimation 1s linear infinite;
3
3
  }
4
+
5
+ .md-loading-spinner__container {
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ }
10
+
11
+ .md-loading-spinner__container--left {
12
+ justify-content: flex-start;
13
+ }
14
+
15
+ .md-loading-spinner__container--right {
16
+ justify-content: flex-end;
17
+ }
@@ -21,6 +21,7 @@
21
21
  background-color: var(--mdGreyColor);
22
22
  opacity: .4;
23
23
  overflow-y: auto;
24
+ z-index: 800;
24
25
  }
25
26
 
26
27
  .md-modal__content {
package/src/tile/tile.css CHANGED
@@ -113,6 +113,7 @@
113
113
  width: 100%;
114
114
  display: flex;
115
115
  flex-direction: column;
116
+ align-items: center;
116
117
  padding: 2em;
117
118
  }
118
119