@navikt/ds-css 7.17.2 → 7.17.4
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 +12 -0
- package/config/bundle.darkside.ts +17 -12
- package/darkside/alert.darkside.css +2 -2
- package/darkside/chat.darkside.css +2 -2
- package/darkside/date.darkside.css +3 -3
- package/darkside/form/error-summary.darkside.css +2 -2
- package/darkside/form/file-upload.darkside.css +2 -2
- package/darkside/form/form-progress.darkside.css +2 -2
- package/darkside/form/form-summary.darkside.css +1 -1
- package/darkside/guide-panel.darkside.css +2 -2
- package/darkside/modal.darkside.css +16 -12
- package/dist/component/modal.css +10 -6
- package/dist/component/modal.min.css +1 -1
- package/dist/components.css +10 -6
- package/dist/components.min.css +1 -1
- package/dist/darkside/component/accordion.min.css +1 -1
- package/dist/darkside/component/actionmenu.min.css +1 -1
- package/dist/darkside/component/alert.css +2 -2
- package/dist/darkside/component/alert.min.css +1 -1
- package/dist/darkside/component/button.min.css +1 -1
- package/dist/darkside/component/chat.css +2 -2
- package/dist/darkside/component/chat.min.css +1 -1
- package/dist/darkside/component/chips.min.css +1 -1
- package/dist/darkside/component/copybutton.min.css +1 -1
- package/dist/darkside/component/date.css +3 -7
- package/dist/darkside/component/date.min.css +1 -1
- package/dist/darkside/component/dropdown.min.css +1 -1
- package/dist/darkside/component/expansioncard.min.css +1 -1
- package/dist/darkside/component/form.css +7 -7
- package/dist/darkside/component/form.min.css +1 -1
- package/dist/darkside/component/guidepanel.css +2 -2
- package/dist/darkside/component/guidepanel.min.css +1 -1
- package/dist/darkside/component/helptext.min.css +1 -1
- package/dist/darkside/component/internalheader.min.css +1 -1
- package/dist/darkside/component/link.min.css +1 -1
- package/dist/darkside/component/linkpanel.min.css +1 -1
- package/dist/darkside/component/list.min.css +1 -1
- package/dist/darkside/component/loader.min.css +1 -1
- package/dist/darkside/component/modal.css +23 -11
- package/dist/darkside/component/modal.min.css +1 -1
- package/dist/darkside/component/pagination.min.css +1 -1
- package/dist/darkside/component/panel.min.css +1 -1
- package/dist/darkside/component/popover.min.css +1 -1
- package/dist/darkside/component/primitives.min.css +1 -1
- package/dist/darkside/component/progressbar.min.css +1 -1
- package/dist/darkside/component/readmore.min.css +1 -1
- package/dist/darkside/component/skeleton.min.css +1 -1
- package/dist/darkside/component/stepper.min.css +1 -1
- package/dist/darkside/component/table.min.css +1 -1
- package/dist/darkside/component/tabs.min.css +1 -1
- package/dist/darkside/component/tag.min.css +1 -1
- package/dist/darkside/component/theme.min.css +1 -1
- package/dist/darkside/component/timeline.min.css +1 -1
- package/dist/darkside/component/togglegroup.min.css +1 -1
- package/dist/darkside/component/tooltip.min.css +1 -1
- package/dist/darkside/component/typography.min.css +1 -1
- package/dist/darkside/components.css +39 -31
- package/dist/darkside/components.min.css +1 -1
- package/dist/darkside/global/baseline.min.css +1 -1
- package/dist/darkside/global/fonts.min.css +1 -1
- package/dist/darkside/global/print.min.css +1 -1
- package/dist/darkside/global/reset.min.css +1 -1
- package/dist/darkside/global/tokens.css +3 -3
- package/dist/darkside/global/tokens.min.css +1 -1
- package/dist/darkside/index.css +42 -34
- package/dist/darkside/index.min.css +1 -1
- package/dist/darkside/version/7.17.4/component/accordion.min.css +1 -0
- package/dist/darkside/version/7.17.4/component/actionmenu.min.css +1 -0
- package/dist/darkside/version/{7.17.2 → 7.17.4}/component/alert.css +2 -2
- package/dist/darkside/version/7.17.4/component/alert.min.css +1 -0
- package/dist/darkside/version/7.17.4/component/button.min.css +1 -0
- package/dist/darkside/version/{7.17.2 → 7.17.4}/component/chat.css +2 -2
- package/dist/darkside/version/7.17.4/component/chat.min.css +1 -0
- package/dist/darkside/version/{7.17.2 → 7.17.4}/component/chips.min.css +1 -1
- package/dist/darkside/version/{7.17.2 → 7.17.4}/component/copybutton.min.css +1 -1
- package/dist/darkside/version/{7.17.2 → 7.17.4}/component/date.css +3 -7
- package/dist/darkside/version/7.17.4/component/date.min.css +1 -0
- package/dist/darkside/version/{7.17.2 → 7.17.4}/component/dropdown.min.css +1 -1
- package/dist/darkside/version/7.17.4/component/expansioncard.min.css +1 -0
- package/dist/darkside/version/{7.17.2 → 7.17.4}/component/form.css +7 -7
- package/dist/darkside/version/7.17.4/component/form.min.css +1 -0
- package/dist/darkside/version/{7.17.2 → 7.17.4}/component/guidepanel.css +2 -2
- package/dist/darkside/version/7.17.4/component/guidepanel.min.css +1 -0
- package/dist/darkside/version/7.17.4/component/helptext.min.css +1 -0
- package/dist/darkside/version/7.17.4/component/internalheader.min.css +1 -0
- package/dist/darkside/version/{7.17.2 → 7.17.4}/component/link.min.css +1 -1
- package/dist/darkside/version/{7.17.2 → 7.17.4}/component/linkpanel.min.css +1 -1
- package/dist/darkside/version/{7.17.2 → 7.17.4}/component/list.min.css +1 -1
- package/dist/darkside/version/7.17.4/component/loader.min.css +1 -0
- package/dist/darkside/version/{7.17.2 → 7.17.4}/component/modal.css +23 -11
- package/dist/darkside/version/7.17.4/component/modal.min.css +1 -0
- package/dist/darkside/version/{7.17.2 → 7.17.4}/component/pagination.min.css +1 -1
- package/dist/darkside/version/{7.17.2 → 7.17.4}/component/panel.min.css +1 -1
- package/dist/darkside/version/{7.17.2 → 7.17.4}/component/popover.min.css +1 -1
- package/dist/darkside/version/7.17.4/component/primitives.min.css +1 -0
- package/dist/darkside/version/7.17.4/component/progressbar.min.css +1 -0
- package/dist/darkside/version/7.17.4/component/readmore.min.css +1 -0
- package/dist/darkside/version/7.17.4/component/skeleton.min.css +1 -0
- package/dist/darkside/version/7.17.4/component/stepper.min.css +1 -0
- package/dist/darkside/version/7.17.4/component/table.min.css +1 -0
- package/dist/darkside/version/7.17.4/component/tabs.min.css +1 -0
- package/dist/darkside/version/7.17.4/component/tag.min.css +1 -0
- package/dist/darkside/version/{7.17.2 → 7.17.4}/component/theme.min.css +1 -1
- package/dist/darkside/version/{7.17.2 → 7.17.4}/component/timeline.min.css +1 -1
- package/dist/darkside/version/7.17.4/component/togglegroup.min.css +1 -0
- package/dist/darkside/version/7.17.4/component/tooltip.min.css +1 -0
- package/dist/darkside/version/7.17.4/component/typography.min.css +1 -0
- package/dist/darkside/version/{7.17.2 → 7.17.4}/components.css +39 -31
- package/dist/darkside/version/7.17.4/components.min.css +1 -0
- package/dist/darkside/version/7.17.4/global/baseline.min.css +1 -0
- package/dist/darkside/version/7.17.4/global/fonts.min.css +1 -0
- package/dist/darkside/version/{7.17.2 → 7.17.4}/global/print.min.css +1 -1
- package/dist/darkside/version/{7.17.2 → 7.17.4}/global/reset.min.css +1 -1
- package/dist/darkside/version/{7.17.2 → 7.17.4}/global/tokens.css +3 -3
- package/dist/darkside/version/7.17.4/global/tokens.min.css +1 -0
- package/dist/darkside/version/{7.17.2 → 7.17.4}/index.css +42 -34
- package/dist/darkside/version/7.17.4/index.min.css +1 -0
- package/dist/global/tokens.css +1 -1
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +11 -7
- package/dist/index.min.css +2 -2
- package/modal.css +10 -6
- package/package.json +3 -4
- package/dist/darkside/version/7.17.2/component/accordion.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/actionmenu.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/alert.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/button.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/chat.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/date.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/expansioncard.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/form.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/guidepanel.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/helptext.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/internalheader.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/loader.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/modal.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/primitives.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/progressbar.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/readmore.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/skeleton.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/stepper.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/table.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/tabs.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/tag.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/togglegroup.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/tooltip.min.css +0 -1
- package/dist/darkside/version/7.17.2/component/typography.min.css +0 -1
- package/dist/darkside/version/7.17.2/components.min.css +0 -1
- package/dist/darkside/version/7.17.2/global/baseline.min.css +0 -1
- package/dist/darkside/version/7.17.2/global/fonts.min.css +0 -1
- package/dist/darkside/version/7.17.2/global/tokens.min.css +0 -1
- package/dist/darkside/version/7.17.2/index.min.css +0 -1
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/accordion.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/actionmenu.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/button.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/chips.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/copybutton.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/dropdown.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/expansioncard.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/helptext.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/internalheader.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/link.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/linkpanel.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/list.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/loader.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/pagination.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/panel.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/popover.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/primitives.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/progressbar.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/readmore.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/skeleton.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/stepper.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/table.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/tabs.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/tag.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/theme.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/timeline.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/togglegroup.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/tooltip.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/component/typography.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/global/baseline.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/global/fonts.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/global/print.css +0 -0
- /package/dist/darkside/version/{7.17.2 → 7.17.4}/global/reset.css +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @navikt/ds-css
|
|
2
2
|
|
|
3
|
+
## 7.17.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Modal: Updated animations for reduced movement. ([#3671](https://github.com/navikt/aksel/pull/3671))
|
|
8
|
+
|
|
9
|
+
## 7.17.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Darkside: Synced padding with Figma. ([#3651](https://github.com/navikt/aksel/pull/3651))
|
|
14
|
+
|
|
3
15
|
## 7.17.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import browserslist from "browserslist";
|
|
2
|
-
import
|
|
2
|
+
import esbuild from "esbuild";
|
|
3
3
|
import fastglob from "fast-glob";
|
|
4
4
|
import fs from "fs";
|
|
5
5
|
import { Features, browserslistToTargets, bundleAsync } from "lightningcss";
|
|
@@ -76,25 +76,30 @@ async function bundleDarkside() {
|
|
|
76
76
|
* @param filePath: Path to the file in the build directory
|
|
77
77
|
*/
|
|
78
78
|
function writeFile({ file, filePath }: { file: string; filePath: string }) {
|
|
79
|
-
|
|
79
|
+
const buildPath = `${buildDir}/${filePath}`;
|
|
80
|
+
fs.writeFileSync(buildPath, file);
|
|
80
81
|
|
|
81
82
|
/**
|
|
82
|
-
* We use
|
|
83
|
+
* We use Esbuild package here since we only want it to optimize filesize, not transform any CSS like LightningCSS minifier does.
|
|
83
84
|
* This is because we want to keep the CSS as close to the original as possible.
|
|
84
|
-
* Since CleanCSS is not part of the PostCSS ecosystem, we use it in replacement for cssnano.
|
|
85
85
|
*/
|
|
86
|
-
const
|
|
86
|
+
const result = esbuild.buildSync({
|
|
87
|
+
entryPoints: [buildPath],
|
|
88
|
+
outfile: buildPath.replace(".css", ".min.css"),
|
|
89
|
+
minify: true, // Enable minification
|
|
90
|
+
bundle: false,
|
|
91
|
+
write: true,
|
|
92
|
+
format: "iife",
|
|
93
|
+
loader: {
|
|
94
|
+
".css": "css",
|
|
95
|
+
},
|
|
96
|
+
});
|
|
87
97
|
|
|
88
|
-
if (
|
|
98
|
+
if (result.errors.length > 0) {
|
|
89
99
|
throw new Error(
|
|
90
|
-
`Errors found when minifying for ${filePath} CSS. Stopped bundling\n${
|
|
100
|
+
`Errors found when minifying for ${filePath} CSS. Stopped bundling\n${result.errors}`,
|
|
91
101
|
);
|
|
92
102
|
}
|
|
93
|
-
|
|
94
|
-
fs.writeFileSync(
|
|
95
|
-
`${buildDir}/${filePath.replace(".css", ".min.css")}`,
|
|
96
|
-
minifiedCss.styles,
|
|
97
|
-
);
|
|
98
103
|
}
|
|
99
104
|
|
|
100
105
|
/* ----------------------------- index.css build ---------------------------- */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.aksel-alert {
|
|
2
2
|
border-radius: var(--ax-border-radius-xlarge);
|
|
3
3
|
border: 1px solid;
|
|
4
|
-
padding: var(--ax-space-
|
|
4
|
+
padding: var(--ax-space-20);
|
|
5
5
|
display: flex;
|
|
6
6
|
gap: var(--ax-space-12);
|
|
7
7
|
align-items: center;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.aksel-alert--small {
|
|
28
|
-
padding: var(--ax-space-
|
|
28
|
+
padding: var(--ax-space-16);
|
|
29
29
|
gap: var(--ax-space-8);
|
|
30
30
|
|
|
31
31
|
> .aksel-alert__icon {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.aksel-chat__bubble {
|
|
57
|
-
padding: var(--ax-space-
|
|
57
|
+
padding: var(--ax-space-20);
|
|
58
58
|
width: fit-content;
|
|
59
59
|
background-color: var(--ax-bg-raised);
|
|
60
60
|
display: flex;
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.aksel-chat--small .aksel-chat__bubble {
|
|
69
|
-
padding: var(--ax-space-
|
|
69
|
+
padding: var(--ax-space-16);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
/* -------------------------- Chat bubble variants -------------------------- */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.aksel-date {
|
|
2
|
-
padding: var(--ax-space-16)
|
|
2
|
+
padding: var(--ax-space-16);
|
|
3
3
|
|
|
4
4
|
.rdp-day_range_middle {
|
|
5
5
|
&.rdp-day_disabled {
|
|
@@ -258,11 +258,11 @@
|
|
|
258
258
|
|
|
259
259
|
@media (min-width: 480px) {
|
|
260
260
|
.aksel-date {
|
|
261
|
-
padding: var(--ax-space-20)
|
|
261
|
+
padding: var(--ax-space-20);
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
.aksel-date__modal-body {
|
|
265
|
-
padding: var(--ax-space-
|
|
265
|
+
padding: var(--ax-space-20);
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
.aksel-date__caption {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.aksel-error-summary {
|
|
2
2
|
background-color: var(--ax-bg-default);
|
|
3
|
-
padding: var(--ax-space-
|
|
3
|
+
padding: var(--ax-space-20);
|
|
4
4
|
border: 4px solid var(--ax-border-danger);
|
|
5
5
|
border-radius: var(--ax-border-radius-xlarge);
|
|
6
6
|
outline-offset: 3px;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.aksel-error-summary--small {
|
|
21
|
-
padding: var(--ax-space-
|
|
21
|
+
padding: var(--ax-space-16);
|
|
22
22
|
|
|
23
23
|
& .aksel-error-summary__heading {
|
|
24
24
|
scroll-margin-top: var(--ax-space-16);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
flex-direction: column;
|
|
15
15
|
gap: var(--ax-space-16);
|
|
16
16
|
text-align: center;
|
|
17
|
-
padding: var(--ax-space-
|
|
17
|
+
padding: var(--ax-space-20);
|
|
18
18
|
border: 1px dashed var(--ax-border-neutral);
|
|
19
19
|
border-radius: var(--ax-border-radius-xlarge);
|
|
20
20
|
background-color: var(--__axc-dropzone-background);
|
|
@@ -162,7 +162,7 @@ li.aksel-file-item {
|
|
|
162
162
|
outline-offset: -1px;
|
|
163
163
|
transition: outline-color 250ms cubic-bezier(0, 0.3, 0.15, 1);
|
|
164
164
|
border-radius: var(--ax-border-radius-xlarge);
|
|
165
|
-
padding: var(--ax-space-
|
|
165
|
+
padding: var(--ax-space-20);
|
|
166
166
|
display: flex;
|
|
167
167
|
gap: var(--ax-space-12);
|
|
168
168
|
align-items: flex-start;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
padding-inline: var(--ax-space-20);
|
|
30
30
|
padding-block: 0;
|
|
31
31
|
opacity: 0.001;
|
|
32
|
-
transition-duration:
|
|
32
|
+
transition-duration: 0.3s;
|
|
33
33
|
transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
|
|
34
34
|
transition-property: margin-top, opacity, visibility, padding-block-start, grid-template-rows;
|
|
35
35
|
grid-template-rows: 0fr;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
margin-top: var(--ax-space-4);
|
|
46
46
|
grid-template-rows: 1fr;
|
|
47
47
|
visibility: visible;
|
|
48
|
-
padding-block: var(--ax-space-
|
|
48
|
+
padding-block: var(--ax-space-20);
|
|
49
49
|
opacity: 1;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
.aksel-form-summary__value .aksel-form-summary__answers {
|
|
74
74
|
margin-top: var(--ax-space-8);
|
|
75
|
-
padding: var(--ax-space-16)
|
|
75
|
+
padding: var(--ax-space-16);
|
|
76
76
|
background: var(--ax-bg-info-moderateA);
|
|
77
77
|
border-radius: var(--ax-border-radius-large);
|
|
78
78
|
border: 1px solid var(--ax-border-info-subtleA);
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.aksel-guide-panel__content-inner {
|
|
74
|
-
padding: var(--ax-space-
|
|
74
|
+
padding: var(--ax-space-16);
|
|
75
75
|
border-radius: var(--ax-border-radius-xlarge);
|
|
76
76
|
background-color: var(--ax-bg-raised);
|
|
77
77
|
position: relative;
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
|
|
84
84
|
@media (min-width: 480px) {
|
|
85
85
|
& {
|
|
86
|
-
padding: var(--ax-space-
|
|
86
|
+
padding: var(--ax-space-20);
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
.aksel-guide-panel[data-responsive="true"] & {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
&[open] {
|
|
20
20
|
display: flex;
|
|
21
21
|
flex-direction: column;
|
|
22
|
-
animation: akselModalFadeIn 0.
|
|
22
|
+
animation: akselModalFadeIn 0.7s cubic-bezier(0.15, 1, 0.3, 1);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
width: 450px;
|
|
62
62
|
|
|
63
63
|
& .aksel-modal__header {
|
|
64
|
-
padding: var(--ax-space-
|
|
64
|
+
padding: var(--ax-space-16);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
& .aksel-modal__body {
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
& .aksel-modal__footer {
|
|
72
|
-
padding: var(--ax-space-
|
|
72
|
+
padding: var(--ax-space-16);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -100,12 +100,12 @@
|
|
|
100
100
|
* TODO: Consider adding `::backdrop` to global token definitions.
|
|
101
101
|
* TODO: Check that overlay-color is correct after the new colors is set in stone.
|
|
102
102
|
*/
|
|
103
|
-
background:
|
|
104
|
-
animation: akselModalBackdropFadeIn 0.
|
|
103
|
+
background: rgb(2 20 49 /0.8);
|
|
104
|
+
animation: akselModalBackdropFadeIn 0.7s cubic-bezier(0.15, 1, 0.3, 1);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.aksel-modal--polyfilled + .backdrop /* Cannot be combined with ::backdrop selector */ {
|
|
108
|
-
background:
|
|
108
|
+
background: rgb(2 20 49 /0.8);
|
|
109
109
|
|
|
110
110
|
/* From polyfill: */
|
|
111
111
|
position: fixed;
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
.aksel-modal__header {
|
|
125
|
-
padding: var(--ax-space-
|
|
125
|
+
padding: var(--ax-space-20);
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
.aksel-modal__header-icon {
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
display: flex;
|
|
166
166
|
flex-flow: row-reverse wrap;
|
|
167
167
|
gap: var(--ax-space-16);
|
|
168
|
-
padding: var(--ax-space-
|
|
168
|
+
padding: var(--ax-space-20);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
.aksel-modal__footer :nth-of-type(2) {
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
@keyframes akselModalFadeIn {
|
|
184
184
|
0% {
|
|
185
185
|
opacity: 0.0001; /* Safari will not set focus inside the modal when it opens if we set this to 0 */
|
|
186
|
-
transform: translate3d(0,
|
|
186
|
+
transform: translate3d(0, 4px, 0);
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
50% {
|
|
@@ -196,11 +196,15 @@
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
@keyframes akselModalBackdropFadeIn {
|
|
199
|
-
|
|
200
|
-
opacity: 0;
|
|
199
|
+
0% {
|
|
200
|
+
opacity: 0.0001;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
|
|
203
|
+
50% {
|
|
204
|
+
opacity: 1;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
100% {
|
|
204
208
|
opacity: 1;
|
|
205
209
|
}
|
|
206
210
|
}
|
package/dist/component/modal.css
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
.navds-modal[open] {
|
|
25
25
|
display: flex;
|
|
26
26
|
flex-direction: column;
|
|
27
|
-
animation: akselModalFadeIn 0.
|
|
27
|
+
animation: akselModalFadeIn 0.7s cubic-bezier(0.15, 1, 0.3, 1);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.navds-modal--polyfilled {
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
* We can add ::backdrop to tokens.css when we remove the polyfill.
|
|
95
95
|
*/
|
|
96
96
|
background: var(--ac-modal-backdrop, rgb(2 20 49 / 0.49));
|
|
97
|
-
animation: akselModalBackdropFadeIn 0.
|
|
97
|
+
animation: akselModalBackdropFadeIn 0.7s cubic-bezier(0.15, 1, 0.3, 1);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.navds-modal--polyfilled + .backdrop /* Cannot be combined with ::backdrop selector */ {
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
@keyframes akselModalFadeIn {
|
|
191
191
|
0% {
|
|
192
192
|
opacity: 0.0001; /* Safari will not set focus inside the modal when it opens if we set this to 0 */
|
|
193
|
-
transform: translate3d(0,
|
|
193
|
+
transform: translate3d(0, 4px, 0);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
50% {
|
|
@@ -203,11 +203,15 @@
|
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
@keyframes akselModalBackdropFadeIn {
|
|
206
|
-
|
|
207
|
-
opacity: 0;
|
|
206
|
+
0% {
|
|
207
|
+
opacity: 0.0001;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
50% {
|
|
211
|
+
opacity: 1;
|
|
208
212
|
}
|
|
209
213
|
|
|
210
|
-
|
|
214
|
+
100% {
|
|
211
215
|
opacity: 1;
|
|
212
216
|
}
|
|
213
217
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.navds-modal__document-body{overflow:hidden}.navds-modal{--__ac-modal-bg:var(--ac-modal-bg,var(--a-surface-default));background-color:var(--__ac-modal-bg);border:none;border-radius:var(--a-border-radius-large);box-shadow:var(--a-shadow-xlarge);color:var(--a-text-default);inset:0;margin:auto;max-height:100%;max-width:100%;padding:0;position:fixed;z-index:9999}.navds-modal[open]{animation:akselModalFadeIn .
|
|
1
|
+
.navds-modal__document-body{overflow:hidden}.navds-modal{--__ac-modal-bg:var(--ac-modal-bg,var(--a-surface-default));background-color:var(--__ac-modal-bg);border:none;border-radius:var(--a-border-radius-large);box-shadow:var(--a-shadow-xlarge);color:var(--a-text-default);inset:0;margin:auto;max-height:100%;max-width:100%;padding:0;position:fixed;z-index:9999}.navds-modal[open]{animation:akselModalFadeIn .7s cubic-bezier(.15,1,.3,1);display:flex;flex-direction:column}.navds-modal--polyfilled{bottom:unset;height:fit-content;left:0;margin:auto;right:0;top:50%;transform:translateY(-50%);width:fit-content}.navds-modal--polyfilled .navds-modal--polyfilled{overflow:auto}.navds-modal--polyfilled:not([open]){display:none}._dialog_overlay{bottom:0;left:0;position:fixed;right:0;top:0}.navds-modal--small{width:var(--ac-modal-width-small,450px)}.navds-modal--medium{width:var(--ac-modal-width-medium,700px)}@media (min-width:480px){.navds-modal{max-width:calc(100% - 2em)}.navds-modal--autowidth{max-width:min(700px,calc(100% - 2em))}}@media (min-height:480px){.navds-modal{max-height:calc(100% - 2em)}.navds-modal--top{margin-top:2em;max-height:calc(100% - 4em)}}.navds-modal::backdrop{animation:akselModalBackdropFadeIn .7s cubic-bezier(.15,1,.3,1);background:var(--ac-modal-backdrop,#0214317d)}.navds-modal--polyfilled+.backdrop{background:var(--ac-modal-backdrop,#0214317d);bottom:0;left:0;position:fixed;right:0;top:0}.navds-modal__button{float:right;margin-left:var(--a-spacing-4)}.navds-modal__header{padding:var(--a-spacing-6) var(--a-spacing-6) var(--a-spacing-4) var(--a-spacing-6)}.navds-modal--small .navds-modal__header{padding:var(--a-spacing-4) var(--a-spacing-4) var(--a-spacing-3) var(--a-spacing-4)}.navds-modal__header-icon svg{display:inline;margin-right:var(--a-spacing-1);vertical-align:-.25rem}.navds-modal__label{color:var(--a-text-subtle);font-weight:600}.navds-modal__body{overflow:auto;overscroll-behavior:contain;padding:var(--a-spacing-6);position:relative}.navds-modal:not(.navds-modal--polyfilled) .navds-modal__body{background:linear-gradient(var(--__ac-modal-bg) 30%,#0000) top,linear-gradient(#0000,var(--__ac-modal-bg) 60%) bottom,radial-gradient(farthest-side at 50% 0,#0000004d,#0000) top,radial-gradient(farthest-side at 50% 100%,#0000004d,#0000) bottom;background-attachment:local,local,scroll,scroll;background-repeat:no-repeat;background-size:100% 40px,100% 50px,100% 16px,100% 16px}.navds-modal--small .navds-modal__body{padding:var(--a-spacing-2) var(--a-spacing-4) var(--a-spacing-4)}.navds-modal__header+.navds-modal__body{padding-top:var(--a-spacing-0)}.navds-modal__footer{display:flex;flex-flow:row-reverse wrap;gap:var(--a-spacing-4);padding:var(--a-spacing-4) var(--a-spacing-6) var(--a-spacing-6) var(--a-spacing-6)}.navds-modal--small .navds-modal__footer{padding:var(--a-spacing-4)}.navds-modal__footer :nth-of-type(2){margin-left:auto}.navds-modal--polyfilled .navds-modal--polyfilled.navds-date__nested-modal{animation:none;max-height:100vh;max-width:100vw;min-width:fit-content}@keyframes akselModalFadeIn{0%{opacity:.0001;transform:translate3d(0,4px,0)}50%{opacity:1}to{transform:none}}@keyframes akselModalBackdropFadeIn{0%{opacity:.0001}50%{opacity:1}to{opacity:1}}@media (forced-colors:active){.navds-modal{outline:2px solid #0000}}
|
package/dist/components.css
CHANGED
|
@@ -5044,7 +5044,7 @@ button.navds-internalheader__title:active,
|
|
|
5044
5044
|
.navds-modal[open] {
|
|
5045
5045
|
display: flex;
|
|
5046
5046
|
flex-direction: column;
|
|
5047
|
-
animation: akselModalFadeIn 0.
|
|
5047
|
+
animation: akselModalFadeIn 0.7s cubic-bezier(0.15, 1, 0.3, 1);
|
|
5048
5048
|
}
|
|
5049
5049
|
|
|
5050
5050
|
.navds-modal--polyfilled {
|
|
@@ -5114,7 +5114,7 @@ button.navds-internalheader__title:active,
|
|
|
5114
5114
|
* We can add ::backdrop to tokens.css when we remove the polyfill.
|
|
5115
5115
|
*/
|
|
5116
5116
|
background: var(--ac-modal-backdrop, rgb(2 20 49 / 0.49));
|
|
5117
|
-
animation: akselModalBackdropFadeIn 0.
|
|
5117
|
+
animation: akselModalBackdropFadeIn 0.7s cubic-bezier(0.15, 1, 0.3, 1);
|
|
5118
5118
|
}
|
|
5119
5119
|
|
|
5120
5120
|
.navds-modal--polyfilled + .backdrop /* Cannot be combined with ::backdrop selector */ {
|
|
@@ -5210,7 +5210,7 @@ button.navds-internalheader__title:active,
|
|
|
5210
5210
|
@keyframes akselModalFadeIn {
|
|
5211
5211
|
0% {
|
|
5212
5212
|
opacity: 0.0001; /* Safari will not set focus inside the modal when it opens if we set this to 0 */
|
|
5213
|
-
transform: translate3d(0,
|
|
5213
|
+
transform: translate3d(0, 4px, 0);
|
|
5214
5214
|
}
|
|
5215
5215
|
|
|
5216
5216
|
50% {
|
|
@@ -5223,11 +5223,15 @@ button.navds-internalheader__title:active,
|
|
|
5223
5223
|
}
|
|
5224
5224
|
|
|
5225
5225
|
@keyframes akselModalBackdropFadeIn {
|
|
5226
|
-
|
|
5227
|
-
opacity: 0;
|
|
5226
|
+
0% {
|
|
5227
|
+
opacity: 0.0001;
|
|
5228
5228
|
}
|
|
5229
5229
|
|
|
5230
|
-
|
|
5230
|
+
50% {
|
|
5231
|
+
opacity: 1;
|
|
5232
|
+
}
|
|
5233
|
+
|
|
5234
|
+
100% {
|
|
5231
5235
|
opacity: 1;
|
|
5232
5236
|
}
|
|
5233
5237
|
}
|