@navikt/ds-css 6.12.0 → 6.13.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @navikt/ds-css
2
2
 
3
+ ## 6.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Modal: New prop `placement` for anchoring the modal to the top of the viewport. ([#3033](https://github.com/navikt/aksel/pull/3033))
8
+
3
9
  ## 6.12.0
4
10
 
5
11
  ### Minor Changes
@@ -1,10 +1,10 @@
1
1
  @charset "UTF-8";
2
2
  /**
3
3
  * Do not edit directly
4
- * Generated on Tue, 25 Jun 2024 13:41:38 GMT
4
+ * Generated on Fri, 28 Jun 2024 10:43:43 GMT
5
5
  */
6
6
  :root, :host {
7
- --a-version: "6.12.0";
7
+ --a-version: "6.13.0";
8
8
  --a-spacing-1-alt: 0.375rem;
9
9
  --a-spacing-05: 0.125rem;
10
10
  --a-spacing-32: 8rem;
@@ -4829,16 +4829,21 @@ button.navds-internalheader__title:active,
4829
4829
  }
4830
4830
  @media (min-width: 480px) {
4831
4831
  .navds-modal {
4832
- max-width: calc(100% - 6px - 2em);
4832
+ max-width: calc(100% - 2em);
4833
4833
  }
4834
4834
 
4835
4835
  .navds-modal--autowidth {
4836
- max-width: min(700px, calc(100% - 6px - 2em));
4836
+ max-width: min(700px, calc(100% - 2em));
4837
4837
  }
4838
4838
  }
4839
4839
  @media (min-height: 480px) {
4840
4840
  .navds-modal {
4841
- max-height: calc(100% - 6px - 2em);
4841
+ max-height: calc(100% - 2em);
4842
+ }
4843
+
4844
+ .navds-modal--top {
4845
+ margin-top: 2em;
4846
+ max-height: calc(100% - 4em);
4842
4847
  }
4843
4848
  }
4844
4849
  .navds-modal::backdrop {