@navikt/ds-css 7.39.1 → 8.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/CHANGELOG.md +8 -0
- package/config/{bundle.darkside.ts → bundle.ts} +42 -36
- package/dist/component/accordion.css +136 -170
- package/dist/component/accordion.min.css +1 -1
- package/dist/component/actionmenu.css +148 -190
- package/dist/component/actionmenu.min.css +1 -1
- package/dist/component/alert.css +135 -301
- package/dist/component/alert.min.css +1 -1
- package/dist/component/button.css +172 -485
- package/dist/component/button.min.css +1 -3
- package/dist/component/chat.css +88 -98
- package/dist/component/chat.min.css +1 -1
- package/dist/component/chips.css +116 -201
- package/dist/component/chips.min.css +1 -1
- package/dist/component/copybutton.css +18 -220
- package/dist/component/copybutton.min.css +1 -1
- package/dist/component/date.css +218 -283
- package/dist/component/date.min.css +1 -1
- package/dist/component/dialog.css +159 -184
- package/dist/component/dialog.min.css +1 -1
- package/dist/component/dropdown.css +70 -75
- package/dist/component/dropdown.min.css +1 -1
- package/dist/component/expansioncard.css +135 -209
- package/dist/component/expansioncard.min.css +1 -3
- package/dist/component/form.css +1746 -1841
- package/dist/component/form.min.css +1 -3
- package/dist/component/guidepanel.css +96 -71
- package/dist/component/guidepanel.min.css +1 -1
- package/dist/component/helptext.css +42 -70
- package/dist/component/helptext.min.css +1 -1
- package/dist/component/inlinemessage.css +13 -37
- package/dist/component/inlinemessage.min.css +1 -1
- package/dist/component/internalheader.css +86 -87
- package/dist/component/internalheader.min.css +1 -1
- package/dist/component/link.css +44 -66
- package/dist/component/link.min.css +1 -1
- package/dist/component/linkanchor.css +44 -41
- package/dist/component/linkanchor.min.css +1 -1
- package/dist/component/linkcard.css +128 -127
- package/dist/component/linkcard.min.css +1 -1
- package/dist/component/linkpanel.css +33 -38
- package/dist/component/linkpanel.min.css +1 -1
- package/dist/component/list.css +59 -70
- package/dist/component/list.min.css +1 -1
- package/dist/component/loader.css +90 -99
- package/dist/component/loader.min.css +1 -1
- package/dist/component/modal.css +172 -182
- package/dist/component/modal.min.css +1 -1
- package/dist/component/pagination.css +32 -63
- package/dist/component/pagination.min.css +1 -1
- package/dist/component/panel.css +14 -8
- package/dist/component/panel.min.css +1 -1
- package/dist/component/popover.css +20 -77
- package/dist/component/popover.min.css +1 -1
- package/dist/component/primitives.css +1048 -1094
- package/dist/component/primitives.min.css +1 -1
- package/dist/component/process.css +136 -140
- package/dist/component/process.min.css +1 -1
- package/dist/component/progressbar.css +90 -89
- package/dist/component/progressbar.min.css +1 -1
- package/dist/component/readmore.css +78 -75
- package/dist/component/readmore.min.css +1 -1
- package/dist/component/skeleton.css +53 -50
- package/dist/component/skeleton.min.css +1 -1
- package/dist/component/stepper.css +186 -271
- package/dist/component/stepper.min.css +1 -1
- package/dist/component/table.css +224 -297
- package/dist/component/table.min.css +1 -1
- package/dist/component/tabs.css +113 -125
- package/dist/component/tabs.min.css +1 -1
- package/dist/component/tag.css +68 -187
- package/dist/component/tag.min.css +1 -1
- package/dist/component/theme.css +13 -0
- package/dist/component/theme.min.css +1 -0
- package/dist/component/timeline.css +223 -394
- package/dist/component/timeline.min.css +1 -1
- package/dist/component/togglegroup.css +87 -157
- package/dist/component/togglegroup.min.css +1 -1
- package/dist/component/tooltip.css +113 -62
- package/dist/component/tooltip.min.css +1 -1
- package/dist/component/typography.css +228 -217
- package/dist/component/typography.min.css +1 -1
- package/dist/components.css +6228 -8577
- package/dist/components.min.css +1 -7
- package/dist/global/baseline.css +47 -133
- package/dist/global/baseline.min.css +1 -1
- package/dist/global/fonts.css +112 -116
- package/dist/global/fonts.min.css +1 -1
- package/dist/global/print.css +54 -73
- package/dist/global/print.min.css +1 -1
- package/dist/global/reset.css +95 -294
- package/dist/global/reset.min.css +1 -1
- package/dist/global/tokens.css +862 -336
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +7341 -9509
- package/dist/index.min.css +1 -9
- package/package.json +5 -16
- package/src/README.md +23 -0
- package/{darkside/action-menu.darkside.css → src/action-menu.css} +2 -2
- package/{darkside/baseline/baseline.darkside.css → src/baseline/baseline.css} +11 -0
- package/{darkside/baseline/fonts.darkside.css → src/baseline/fonts.css} +0 -0
- package/src/baseline/tokens.css +1 -0
- package/{darkside/button.darkside.css → src/button.css} +33 -10
- package/{darkside/form/combobox.darkside.css → src/form/combobox.css} +1 -1
- package/{darkside/form/file-upload.darkside.css → src/form/file-upload.css} +17 -7
- package/src/form/index.css +14 -0
- package/{darkside/form/search.darkside.css → src/form/search.css} +2 -2
- package/src/index.css +64 -0
- package/{darkside/link-card.darkside.css → src/link-card.css} +2 -2
- package/{darkside/link.darkside.css → src/link.css} +0 -4
- package/{darkside/modal.darkside.css → src/modal.css} +2 -3
- package/src/primitives/index.css +7 -0
- package/{darkside/progress-bar.darkside.css → src/progress-bar.css} +5 -6
- package/{darkside/table.darkside.css → src/table.css} +4 -4
- package/{darkside/theme.darkside.css → src/theme.css} +0 -8
- package/{darkside/typography.darkside.css → src/typography.css} +8 -0
- package/accordion.css +0 -198
- package/action-menu.css +0 -227
- package/alert.css +0 -380
- package/baseline/_inline-reset.css +0 -54
- package/baseline/_utilities.css +0 -62
- package/baseline/baseline.css +0 -27
- package/baseline/fonts.css +0 -129
- package/baseline/index.css +0 -5
- package/baseline/reset.css +0 -294
- package/baseline/tokens.css +0 -1
- package/button.css +0 -548
- package/chat.css +0 -117
- package/chips.css +0 -234
- package/config/tests/bundle.test.ts +0 -51
- package/copybutton.css +0 -226
- package/darkside/README.md +0 -25
- package/darkside/baseline/print.darkside.css +0 -75
- package/darkside/baseline/tokens.darkside.css +0 -1
- package/darkside/form/index.css +0 -14
- package/darkside/index.css +0 -64
- package/darkside/primitives/index.css +0 -7
- package/date.css +0 -334
- package/dialog.css +0 -253
- package/dist/darkside/component/accordion.css +0 -164
- package/dist/darkside/component/accordion.min.css +0 -1
- package/dist/darkside/component/actionmenu.css +0 -182
- package/dist/darkside/component/actionmenu.min.css +0 -1
- package/dist/darkside/component/alert.css +0 -181
- package/dist/darkside/component/alert.min.css +0 -1
- package/dist/darkside/component/button.css +0 -208
- package/dist/darkside/component/button.min.css +0 -1
- package/dist/darkside/component/chat.css +0 -103
- package/dist/darkside/component/chat.min.css +0 -1
- package/dist/darkside/component/chips.css +0 -146
- package/dist/darkside/component/chips.min.css +0 -1
- package/dist/darkside/component/copybutton.css +0 -23
- package/dist/darkside/component/copybutton.min.css +0 -1
- package/dist/darkside/component/date.css +0 -268
- package/dist/darkside/component/date.min.css +0 -1
- package/dist/darkside/component/dialog.css +0 -232
- package/dist/darkside/component/dialog.min.css +0 -1
- package/dist/darkside/component/dropdown.css +0 -82
- package/dist/darkside/component/dropdown.min.css +0 -1
- package/dist/darkside/component/expansioncard.css +0 -164
- package/dist/darkside/component/expansioncard.min.css +0 -1
- package/dist/darkside/component/form.css +0 -1875
- package/dist/darkside/component/form.min.css +0 -1
- package/dist/darkside/component/guidepanel.css +0 -117
- package/dist/darkside/component/guidepanel.min.css +0 -1
- package/dist/darkside/component/helptext.css +0 -53
- package/dist/darkside/component/helptext.min.css +0 -1
- package/dist/darkside/component/inlinemessage.css +0 -17
- package/dist/darkside/component/inlinemessage.min.css +0 -1
- package/dist/darkside/component/internalheader.css +0 -100
- package/dist/darkside/component/internalheader.min.css +0 -1
- package/dist/darkside/component/link.css +0 -57
- package/dist/darkside/component/link.min.css +0 -1
- package/dist/darkside/component/linkanchor.css +0 -52
- package/dist/darkside/component/linkanchor.min.css +0 -1
- package/dist/darkside/component/linkcard.css +0 -124
- package/dist/darkside/component/linkcard.min.css +0 -1
- package/dist/darkside/component/linkpanel.css +0 -38
- package/dist/darkside/component/linkpanel.min.css +0 -1
- package/dist/darkside/component/list.css +0 -75
- package/dist/darkside/component/list.min.css +0 -1
- package/dist/darkside/component/loader.css +0 -107
- package/dist/darkside/component/loader.min.css +0 -1
- package/dist/darkside/component/modal.css +0 -188
- package/dist/darkside/component/modal.min.css +0 -1
- package/dist/darkside/component/pagination.css +0 -38
- package/dist/darkside/component/pagination.min.css +0 -1
- package/dist/darkside/component/panel.css +0 -12
- package/dist/darkside/component/panel.min.css +0 -1
- package/dist/darkside/component/popover.css +0 -24
- package/dist/darkside/component/popover.min.css +0 -1
- package/dist/darkside/component/primitives.css +0 -1293
- package/dist/darkside/component/primitives.min.css +0 -1
- package/dist/darkside/component/process.css +0 -192
- package/dist/darkside/component/process.min.css +0 -1
- package/dist/darkside/component/progressbar.css +0 -106
- package/dist/darkside/component/progressbar.min.css +0 -1
- package/dist/darkside/component/readmore.css +0 -94
- package/dist/darkside/component/readmore.min.css +0 -1
- package/dist/darkside/component/skeleton.css +0 -66
- package/dist/darkside/component/skeleton.min.css +0 -1
- package/dist/darkside/component/stepper.css +0 -226
- package/dist/darkside/component/stepper.min.css +0 -1
- package/dist/darkside/component/table.css +0 -289
- package/dist/darkside/component/table.min.css +0 -1
- package/dist/darkside/component/tabs.css +0 -138
- package/dist/darkside/component/tabs.min.css +0 -1
- package/dist/darkside/component/tag.css +0 -77
- package/dist/darkside/component/tag.min.css +0 -1
- package/dist/darkside/component/theme.css +0 -17
- package/dist/darkside/component/theme.min.css +0 -1
- package/dist/darkside/component/timeline.css +0 -275
- package/dist/darkside/component/timeline.min.css +0 -1
- package/dist/darkside/component/togglegroup.css +0 -107
- package/dist/darkside/component/togglegroup.min.css +0 -1
- package/dist/darkside/component/tooltip.css +0 -128
- package/dist/darkside/component/tooltip.min.css +0 -1
- package/dist/darkside/component/typography.css +0 -273
- package/dist/darkside/component/typography.min.css +0 -1
- package/dist/darkside/components.css +0 -7876
- package/dist/darkside/components.min.css +0 -1
- package/dist/darkside/global/baseline.css +0 -43
- package/dist/darkside/global/baseline.min.css +0 -1
- package/dist/darkside/global/fonts.css +0 -109
- package/dist/darkside/global/fonts.min.css +0 -1
- package/dist/darkside/global/print.css +0 -52
- package/dist/darkside/global/print.min.css +0 -1
- package/dist/darkside/global/reset.css +0 -93
- package/dist/darkside/global/reset.min.css +0 -1
- package/dist/darkside/global/tokens.css +0 -864
- package/dist/darkside/global/tokens.min.css +0 -1
- package/dist/darkside/index.css +0 -9040
- package/dist/darkside/index.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/accordion.css +0 -164
- package/dist/darkside/version/7.39.1/component/accordion.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/actionmenu.css +0 -182
- package/dist/darkside/version/7.39.1/component/actionmenu.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/alert.css +0 -181
- package/dist/darkside/version/7.39.1/component/alert.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/button.css +0 -208
- package/dist/darkside/version/7.39.1/component/button.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/chat.css +0 -103
- package/dist/darkside/version/7.39.1/component/chat.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/chips.css +0 -146
- package/dist/darkside/version/7.39.1/component/chips.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/copybutton.css +0 -23
- package/dist/darkside/version/7.39.1/component/copybutton.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/date.css +0 -268
- package/dist/darkside/version/7.39.1/component/date.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/dialog.css +0 -232
- package/dist/darkside/version/7.39.1/component/dialog.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/dropdown.css +0 -82
- package/dist/darkside/version/7.39.1/component/dropdown.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/expansioncard.css +0 -164
- package/dist/darkside/version/7.39.1/component/expansioncard.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/form.css +0 -1875
- package/dist/darkside/version/7.39.1/component/form.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/guidepanel.css +0 -117
- package/dist/darkside/version/7.39.1/component/guidepanel.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/helptext.css +0 -53
- package/dist/darkside/version/7.39.1/component/helptext.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/inlinemessage.css +0 -17
- package/dist/darkside/version/7.39.1/component/inlinemessage.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/internalheader.css +0 -100
- package/dist/darkside/version/7.39.1/component/internalheader.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/link.css +0 -57
- package/dist/darkside/version/7.39.1/component/link.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/linkanchor.css +0 -52
- package/dist/darkside/version/7.39.1/component/linkanchor.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/linkcard.css +0 -124
- package/dist/darkside/version/7.39.1/component/linkcard.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/linkpanel.css +0 -38
- package/dist/darkside/version/7.39.1/component/linkpanel.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/list.css +0 -75
- package/dist/darkside/version/7.39.1/component/list.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/loader.css +0 -107
- package/dist/darkside/version/7.39.1/component/loader.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/modal.css +0 -188
- package/dist/darkside/version/7.39.1/component/modal.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/pagination.css +0 -38
- package/dist/darkside/version/7.39.1/component/pagination.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/panel.css +0 -12
- package/dist/darkside/version/7.39.1/component/panel.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/popover.css +0 -24
- package/dist/darkside/version/7.39.1/component/popover.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/primitives.css +0 -1293
- package/dist/darkside/version/7.39.1/component/primitives.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/process.css +0 -192
- package/dist/darkside/version/7.39.1/component/process.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/progressbar.css +0 -106
- package/dist/darkside/version/7.39.1/component/progressbar.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/readmore.css +0 -94
- package/dist/darkside/version/7.39.1/component/readmore.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/skeleton.css +0 -66
- package/dist/darkside/version/7.39.1/component/skeleton.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/stepper.css +0 -226
- package/dist/darkside/version/7.39.1/component/stepper.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/table.css +0 -289
- package/dist/darkside/version/7.39.1/component/table.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/tabs.css +0 -138
- package/dist/darkside/version/7.39.1/component/tabs.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/tag.css +0 -77
- package/dist/darkside/version/7.39.1/component/tag.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/theme.css +0 -17
- package/dist/darkside/version/7.39.1/component/theme.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/timeline.css +0 -275
- package/dist/darkside/version/7.39.1/component/timeline.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/togglegroup.css +0 -107
- package/dist/darkside/version/7.39.1/component/togglegroup.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/tooltip.css +0 -128
- package/dist/darkside/version/7.39.1/component/tooltip.min.css +0 -1
- package/dist/darkside/version/7.39.1/component/typography.css +0 -273
- package/dist/darkside/version/7.39.1/component/typography.min.css +0 -1
- package/dist/darkside/version/7.39.1/components.css +0 -7876
- package/dist/darkside/version/7.39.1/components.min.css +0 -1
- package/dist/darkside/version/7.39.1/global/baseline.css +0 -43
- package/dist/darkside/version/7.39.1/global/baseline.min.css +0 -1
- package/dist/darkside/version/7.39.1/global/fonts.css +0 -109
- package/dist/darkside/version/7.39.1/global/fonts.min.css +0 -1
- package/dist/darkside/version/7.39.1/global/print.css +0 -52
- package/dist/darkside/version/7.39.1/global/print.min.css +0 -1
- package/dist/darkside/version/7.39.1/global/reset.css +0 -93
- package/dist/darkside/version/7.39.1/global/reset.min.css +0 -1
- package/dist/darkside/version/7.39.1/global/tokens.css +0 -864
- package/dist/darkside/version/7.39.1/global/tokens.min.css +0 -1
- package/dist/darkside/version/7.39.1/index.css +0 -9040
- package/dist/darkside/version/7.39.1/index.min.css +0 -1
- package/dropdown.css +0 -91
- package/expansioncard.css +0 -239
- package/form/combobox.css +0 -431
- package/form/confirmation-panel.css +0 -53
- package/form/error-summary.css +0 -55
- package/form/fieldset.css +0 -51
- package/form/file-upload.css +0 -224
- package/form/form-progress.css +0 -53
- package/form/form-summary.css +0 -90
- package/form/form.css +0 -52
- package/form/index.css +0 -17
- package/form/radio-checkbox.css +0 -397
- package/form/search.css +0 -228
- package/form/select.css +0 -113
- package/form/switch.css +0 -304
- package/form/text-field.css +0 -113
- package/form/textarea.css +0 -143
- package/guide-panel.css +0 -96
- package/help-text.css +0 -85
- package/index.css +0 -42
- package/inline-message.css +0 -45
- package/internalheader.css +0 -105
- package/link-anchor.css +0 -53
- package/link-card.css +0 -127
- package/link-panel.css +0 -47
- package/link.css +0 -79
- package/list.css +0 -88
- package/loader.css +0 -120
- package/modal.css +0 -228
- package/pagination.css +0 -73
- package/panel.css +0 -10
- package/popover.css +0 -84
- package/primitives/base.css +0 -809
- package/primitives/bleed.css +0 -103
- package/primitives/box.css +0 -66
- package/primitives/hgrid.css +0 -80
- package/primitives/index.css +0 -7
- package/primitives/page.css +0 -62
- package/primitives/responsive.css +0 -59
- package/primitives/stack.css +0 -155
- package/process.css +0 -201
- package/progress-bar.css +0 -108
- package/read-more.css +0 -95
- package/skeleton.css +0 -67
- package/stepper.css +0 -312
- package/table.css +0 -366
- package/tabs.css +0 -154
- package/tag.css +0 -200
- package/timeline.css +0 -450
- package/toggle-group.css +0 -181
- package/tokens.json +0 -485
- package/tooltip.css +0 -81
- package/typography.css +0 -268
- package/vitest.config.ts +0 -5
- /package/{darkside/accordion.darkside.css → src/accordion.css} +0 -0
- /package/{darkside/alert.darkside.css → src/alert.css} +0 -0
- /package/{baseline → src/baseline}/print.css +0 -0
- /package/{darkside/baseline/reset.darkside.css → src/baseline/reset.css} +0 -0
- /package/{darkside/chat.darkside.css → src/chat.css} +0 -0
- /package/{darkside/chips.darkside.css → src/chips.css} +0 -0
- /package/{darkside/copybutton.darkside.css → src/copybutton.css} +0 -0
- /package/{darkside/date.darkside.css → src/date.css} +0 -0
- /package/{darkside/dialog.darkside.css → src/dialog.css} +0 -0
- /package/{darkside/dropdown.darkside.css → src/dropdown.css} +0 -0
- /package/{darkside/expansioncard.darkside.css → src/expansioncard.css} +0 -0
- /package/{darkside/form/confirmation-panel.darkside.css → src/form/confirmation-panel.css} +0 -0
- /package/{darkside/form/error-summary.darkside.css → src/form/error-summary.css} +0 -0
- /package/{darkside/form/fieldset.darkside.css → src/form/fieldset.css} +0 -0
- /package/{darkside/form/form-progress.darkside.css → src/form/form-progress.css} +0 -0
- /package/{darkside/form/form-summary.darkside.css → src/form/form-summary.css} +0 -0
- /package/{darkside/form/form.darkside.css → src/form/form.css} +0 -0
- /package/{darkside/form/radio-checkbox.darkside.css → src/form/radio-checkbox.css} +0 -0
- /package/{darkside/form/select.darkside.css → src/form/select.css} +0 -0
- /package/{darkside/form/switch.darkside.css → src/form/switch.css} +0 -0
- /package/{darkside/form/text-field.darkside.css → src/form/text-field.css} +0 -0
- /package/{darkside/form/textarea.darkside.css → src/form/textarea.css} +0 -0
- /package/{darkside/guide-panel.darkside.css → src/guide-panel.css} +0 -0
- /package/{darkside/help-text.darkside.css → src/help-text.css} +0 -0
- /package/{darkside/inline-message.darkside.css → src/inline-message.css} +0 -0
- /package/{darkside/internalheader.darkside.css → src/internalheader.css} +0 -0
- /package/{darkside/link-anchor.darkside.css → src/link-anchor.css} +0 -0
- /package/{darkside/link-panel.darkside.css → src/link-panel.css} +0 -0
- /package/{darkside/list.darkside.css → src/list.css} +0 -0
- /package/{darkside/loader.darkside.css → src/loader.css} +0 -0
- /package/{darkside/pagination.darkside.css → src/pagination.css} +0 -0
- /package/{darkside/panel.darkside.css → src/panel.css} +0 -0
- /package/{darkside/popover.darkside.css → src/popover.css} +0 -0
- /package/{darkside/primitives/base.darkside.css → src/primitives/base.css} +0 -0
- /package/{darkside/primitives/bleed.darkside.css → src/primitives/bleed.css} +0 -0
- /package/{darkside/primitives/box.darkside.css → src/primitives/box.css} +0 -0
- /package/{darkside/primitives/hgrid.darkside.css → src/primitives/hgrid.css} +0 -0
- /package/{darkside/primitives/page.darkside.css → src/primitives/page.css} +0 -0
- /package/{darkside/primitives/responsive.darkside.css → src/primitives/responsive.css} +0 -0
- /package/{darkside/primitives/stack.darkside.css → src/primitives/stack.css} +0 -0
- /package/{darkside/process.darkside.css → src/process.css} +0 -0
- /package/{darkside/read-more.darkside.css → src/read-more.css} +0 -0
- /package/{darkside/skeleton.darkside.css → src/skeleton.css} +0 -0
- /package/{darkside/stepper.darkside.css → src/stepper.css} +0 -0
- /package/{darkside/tabs.darkside.css → src/tabs.css} +0 -0
- /package/{darkside/tag.darkside.css → src/tag.css} +0 -0
- /package/{darkside/timeline.darkside.css → src/timeline.css} +0 -0
- /package/{darkside/toggle-group.darkside.css → src/toggle-group.css} +0 -0
- /package/{darkside/tooltip.darkside.css → src/tooltip.css} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-css",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "CSS for Nav Designsystem",
|
|
5
5
|
"author": "Aksel | Nav designsystem team",
|
|
6
6
|
"keywords": [
|
|
@@ -26,27 +26,17 @@
|
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://aksel.nav.no/designsystemet/",
|
|
28
28
|
"scripts": {
|
|
29
|
-
"build": "
|
|
30
|
-
"css:get-version": "node config/get-version.js"
|
|
31
|
-
"build:darkside": "tsx ./config/bundle.darkside.ts",
|
|
32
|
-
"test": "yarn build && vitest run"
|
|
29
|
+
"build": "tsx ./config/bundle.ts",
|
|
30
|
+
"css:get-version": "node config/get-version.js"
|
|
33
31
|
},
|
|
34
32
|
"devDependencies": {
|
|
35
|
-
"@navikt/ds-tokens": "^
|
|
36
|
-
"autoprefixer": "^10.4.20",
|
|
33
|
+
"@navikt/ds-tokens": "^8.0.0",
|
|
37
34
|
"browserslist": "^4.25.0",
|
|
38
|
-
"cssnano": "7.1.1",
|
|
39
35
|
"esbuild": "^0.25.11",
|
|
40
36
|
"fast-glob": "3.2.11",
|
|
41
37
|
"lightningcss": "^1.30.1",
|
|
42
|
-
"lodash": "4.17.21",
|
|
43
38
|
"normalize.css": "^8.0.1",
|
|
44
|
-
"
|
|
45
|
-
"postcss-combine-duplicated-selectors": "10.0.3",
|
|
46
|
-
"postcss-import": "^16.1.1",
|
|
47
|
-
"postcss-nesting": "13.0.2",
|
|
48
|
-
"tsx": "^4.20.6",
|
|
49
|
-
"vitest": "^3.2.4"
|
|
39
|
+
"tsx": "^4.20.6"
|
|
50
40
|
},
|
|
51
41
|
"browserslist": [
|
|
52
42
|
">0.2%",
|
|
@@ -58,7 +48,6 @@
|
|
|
58
48
|
"exports": {
|
|
59
49
|
".": "./dist/index.css",
|
|
60
50
|
"./dist/*": "./dist/*",
|
|
61
|
-
"./darkside": "./dist/darkside/index.css",
|
|
62
51
|
"./tokens.json": "./tokens.json",
|
|
63
52
|
"./config/_mappings": "./config/_mappings.js"
|
|
64
53
|
}
|
package/src/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Template for writing new CSS
|
|
2
|
+
|
|
3
|
+
## File setup
|
|
4
|
+
|
|
5
|
+
1. Create new CSS-file for component: "alert.css", "button.css" etc.
|
|
6
|
+
2. Import file in "index.css": `@import "./alert.css`
|
|
7
|
+
3. Add correct "layer" to import.
|
|
8
|
+
|
|
9
|
+
## Development
|
|
10
|
+
|
|
11
|
+
1. Write new CSS for component. Use prefix `.aksel`.
|
|
12
|
+
2. Run storybook: You are now developing new CSS 🎉
|
|
13
|
+
|
|
14
|
+
## Checklist
|
|
15
|
+
|
|
16
|
+
- Add new CSS-files under `core/css/src/`.
|
|
17
|
+
- Import new CSS-files in `core/css/src/index.css`
|
|
18
|
+
- New CSS-selectors should have `.aksel` as prefix.
|
|
19
|
+
- Use outline + outline-offset 3px for focus-markings.
|
|
20
|
+
- Use `:focus-visible` where possible.
|
|
21
|
+
- Check forced colors (high-contrast)
|
|
22
|
+
- Check print
|
|
23
|
+
- Test changes in Storybook.
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
min-width: 128px;
|
|
45
45
|
max-width: min(95vw, 640px);
|
|
46
46
|
/* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */
|
|
47
|
-
transform-origin: var(--
|
|
47
|
+
transform-origin: var(--__axc-action-menu-content-transform-origin);
|
|
48
48
|
animation-duration: 160ms;
|
|
49
49
|
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
50
50
|
padding: var(--__axc-action-menu-content-p);
|
|
51
51
|
overflow: auto;
|
|
52
52
|
/* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */
|
|
53
|
-
max-height: var(--
|
|
53
|
+
max-height: var(--__axc-action-menu-content-available-height);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/* ----------------------------- ActionMenu Item ---------------------------- */
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
/* ------------------------- Global typo-definitions ------------------------ */
|
|
2
2
|
|
|
3
|
+
:root,
|
|
4
|
+
:host,
|
|
5
|
+
.light {
|
|
6
|
+
color: var(--ax-text-neutral);
|
|
7
|
+
color-scheme: light;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.dark {
|
|
11
|
+
color-scheme: dark;
|
|
12
|
+
}
|
|
13
|
+
|
|
3
14
|
body,
|
|
4
15
|
:host {
|
|
5
16
|
font-family: var(--ax-font-family, "Source Sans 3", "Source Sans Pro", Arial, sans-serif);
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "../../../tokens/dist/tokens.css";
|
|
@@ -175,8 +175,7 @@
|
|
|
175
175
|
stroke: currentColor;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
.aksel-button
|
|
179
|
-
.aksel-button--danger .aksel-loader .aksel-loader__background {
|
|
178
|
+
.aksel-button[data-variant="primary"] .aksel-loader .aksel-loader__background {
|
|
180
179
|
stroke: rgb(255 255 255 / 0.3);
|
|
181
180
|
}
|
|
182
181
|
|
|
@@ -194,13 +193,38 @@
|
|
|
194
193
|
border: 1px solid transparent;
|
|
195
194
|
color: ButtonText;
|
|
196
195
|
background-color: ButtonFace;
|
|
197
|
-
}
|
|
198
196
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
197
|
+
&[data-variant="primary"]:not(:disabled) {
|
|
198
|
+
background-color: Highlight;
|
|
199
|
+
color: highlighttext;
|
|
200
|
+
|
|
201
|
+
& span {
|
|
202
|
+
forced-color-adjust: none;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&:where(a) {
|
|
206
|
+
background-color: LinkText;
|
|
207
|
+
color: highlighttext;
|
|
208
|
+
|
|
209
|
+
& span {
|
|
210
|
+
forced-color-adjust: none;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
&:hover {
|
|
215
|
+
background-color: highlighttext;
|
|
216
|
+
border-color: highlight;
|
|
217
|
+
color: highlight;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&:hover:not(:disabled),
|
|
222
|
+
&[data-variant="primary"]:where(a):hover:not(:disabled) {
|
|
223
|
+
background-color: highlighttext;
|
|
224
|
+
border-color: highlight;
|
|
225
|
+
color: highlight;
|
|
226
|
+
box-shadow: none;
|
|
227
|
+
}
|
|
204
228
|
}
|
|
205
229
|
|
|
206
230
|
.aksel-button:not(:disabled):hover span {
|
|
@@ -211,8 +235,7 @@
|
|
|
211
235
|
stroke: canvas;
|
|
212
236
|
}
|
|
213
237
|
|
|
214
|
-
.aksel-button
|
|
215
|
-
.aksel-button--danger .aksel-loader .aksel-loader__background {
|
|
238
|
+
.aksel-button[data-variant="primary"] .aksel-loader .aksel-loader__background {
|
|
216
239
|
stroke: canvastext;
|
|
217
240
|
}
|
|
218
241
|
}
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
|
|
239
239
|
.aksel-combobox__list {
|
|
240
240
|
/* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */
|
|
241
|
-
width: var(--
|
|
241
|
+
width: var(--__axc-floating-anchor-width);
|
|
242
242
|
overflow: clip;
|
|
243
243
|
border: 1px solid var(--ax-border-neutral-subtleA);
|
|
244
244
|
display: flex;
|
|
@@ -168,20 +168,27 @@ li.aksel-file-item {
|
|
|
168
168
|
align-items: flex-start;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
+
.aksel-file-item__link {
|
|
172
|
+
display: flex;
|
|
173
|
+
align-items: flex-start;
|
|
174
|
+
gap: var(--ax-space-2);
|
|
175
|
+
width: fit-content;
|
|
176
|
+
|
|
177
|
+
&:is(a) {
|
|
178
|
+
color: var(--ax-text-subtle);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
171
182
|
.aksel-file-item--error > .aksel-file-item__inner {
|
|
172
183
|
outline: 2px solid var(--ax-border-danger-strong);
|
|
173
184
|
}
|
|
174
185
|
|
|
175
186
|
.aksel-file-item__icon {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
min-height: 2.5rem;
|
|
180
|
-
min-width: 2.5rem;
|
|
181
|
-
margin-top: var(--ax-space-2);
|
|
187
|
+
min-height: 1.5rem;
|
|
188
|
+
min-width: 1.5rem;
|
|
189
|
+
margin: var(--ax-space-2) 0;
|
|
182
190
|
display: grid;
|
|
183
191
|
place-content: center;
|
|
184
|
-
transition: background-color 250ms cubic-bezier(0, 0.3, 0.15, 1);
|
|
185
192
|
|
|
186
193
|
& > svg {
|
|
187
194
|
height: 1.5rem;
|
|
@@ -191,6 +198,9 @@ li.aksel-file-item {
|
|
|
191
198
|
|
|
192
199
|
.aksel-file-item__icon--loading {
|
|
193
200
|
background-color: transparent;
|
|
201
|
+
display: grid;
|
|
202
|
+
place-content: center;
|
|
203
|
+
padding: var(--ax-space-12);
|
|
194
204
|
}
|
|
195
205
|
|
|
196
206
|
.aksel-file-item__file-info {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@import "./fieldset.css";
|
|
2
|
+
@import "./file-upload.css";
|
|
3
|
+
@import "./form.css";
|
|
4
|
+
@import "./error-summary.css";
|
|
5
|
+
@import "./confirmation-panel.css";
|
|
6
|
+
@import "./radio-checkbox.css";
|
|
7
|
+
@import "./select.css";
|
|
8
|
+
@import "./switch.css";
|
|
9
|
+
@import "./text-field.css";
|
|
10
|
+
@import "./textarea.css";
|
|
11
|
+
@import "./search.css";
|
|
12
|
+
@import "./combobox.css";
|
|
13
|
+
@import "./form-summary.css";
|
|
14
|
+
@import "./form-progress.css";
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
border-bottom-right-radius: var(--ax-radius-8);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
.aksel-search__button-search
|
|
105
|
+
.aksel-search__button-search[data-variant="secondary"] {
|
|
106
106
|
--__axc-button-border-width: 1px;
|
|
107
107
|
--__axc-button-border-color: var(--ax-border-neutral);
|
|
108
108
|
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
/* Special-case where we hover/focus input, and want the secondary-button to match input-border */
|
|
119
119
|
.aksel-search:not(.aksel-search--error, .aksel-search--disabled)
|
|
120
120
|
.aksel-search__wrapper:has(.aksel-search__input:is(:hover, :focus-visible))
|
|
121
|
-
.aksel-search__button-search
|
|
121
|
+
.aksel-search__button-search[data-variant="secondary"]:not(:hover, :active) {
|
|
122
122
|
--__axc-button-border-color: var(--ax-border-strong);
|
|
123
123
|
}
|
|
124
124
|
|
package/src/index.css
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
|
|
3
|
+
/* CSS is ordered by specificity, so that browsers without layers fall backs to good defaults */
|
|
4
|
+
@layer aksel.reset, aksel.theming, aksel.baseline, aksel.print, aksel.typography, aksel.components.core, aksel.components.core.loader, aksel.components.core.button, aksel.components.form, aksel.components.modules, aksel.layout;
|
|
5
|
+
|
|
6
|
+
/* ----------------------------- CSS foundations ---------------------------- */
|
|
7
|
+
@import "./baseline/fonts.css" layer(aksel.typography);
|
|
8
|
+
@import "./baseline/reset.css" layer(aksel.reset);
|
|
9
|
+
@import "./baseline/tokens.css" layer(aksel.theming);
|
|
10
|
+
@import "./baseline/baseline.css" layer(aksel.baseline);
|
|
11
|
+
@import "./baseline/print.css" layer(aksel.print);
|
|
12
|
+
|
|
13
|
+
/* ------------------------------- Components ------------------------------- */
|
|
14
|
+
@import "./theme.css" layer(aksel.components.core);
|
|
15
|
+
@import "./typography.css" layer(aksel.components.core);
|
|
16
|
+
@import "./chips.css" layer(aksel.components.core);
|
|
17
|
+
@import "./loader.css" layer(aksel.components.core.loader);
|
|
18
|
+
@import "./button.css" layer(aksel.components.core.button);
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Most components depend on typo-styles, so we import them first.
|
|
22
|
+
*
|
|
23
|
+
* `./form/index.css` edits the following components:
|
|
24
|
+
* - Button
|
|
25
|
+
* - Chips
|
|
26
|
+
* To avoid specificity conflicts, we import those components before form.
|
|
27
|
+
*/
|
|
28
|
+
@import "./form/index.css" layer(aksel.components.form);
|
|
29
|
+
@import "./accordion.css" layer(aksel.components.modules);
|
|
30
|
+
@import "./alert.css" layer(aksel.components.modules);
|
|
31
|
+
@import "./chat.css" layer(aksel.components.modules);
|
|
32
|
+
@import "./copybutton.css" layer(aksel.components.modules);
|
|
33
|
+
@import "./date.css" layer(aksel.components.modules);
|
|
34
|
+
@import "./dialog.css" layer(aksel.components.modules);
|
|
35
|
+
@import "./dropdown.css" layer(aksel.components.modules);
|
|
36
|
+
@import "./action-menu.css" layer(aksel.components.modules);
|
|
37
|
+
@import "./expansioncard.css" layer(aksel.components.modules);
|
|
38
|
+
@import "./guide-panel.css" layer(aksel.components.modules);
|
|
39
|
+
@import "./help-text.css" layer(aksel.components.modules);
|
|
40
|
+
@import "./inline-message.css" layer(aksel.components.modules);
|
|
41
|
+
@import "./internalheader.css" layer(aksel.components.modules);
|
|
42
|
+
@import "./link.css" layer(aksel.components.modules);
|
|
43
|
+
@import "./link-panel.css" layer(aksel.components.modules);
|
|
44
|
+
@import "./link-anchor.css" layer(aksel.components.modules);
|
|
45
|
+
@import "./link-card.css" layer(aksel.components.modules);
|
|
46
|
+
@import "./modal.css" layer(aksel.components.modules);
|
|
47
|
+
@import "./pagination.css" layer(aksel.components.modules);
|
|
48
|
+
@import "./popover.css" layer(aksel.components.modules);
|
|
49
|
+
@import "./tag.css" layer(aksel.components.modules);
|
|
50
|
+
@import "./timeline.css" layer(aksel.components.modules);
|
|
51
|
+
@import "./tooltip.css" layer(aksel.components.modules);
|
|
52
|
+
@import "./toggle-group.css" layer(aksel.components.modules);
|
|
53
|
+
@import "./panel.css" layer(aksel.components.modules);
|
|
54
|
+
@import "./read-more.css" layer(aksel.components.modules);
|
|
55
|
+
@import "./progress-bar.css" layer(aksel.components.modules);
|
|
56
|
+
@import "./skeleton.css" layer(aksel.components.modules);
|
|
57
|
+
@import "./process.css" layer(aksel.components.modules);
|
|
58
|
+
@import "./stepper.css" layer(aksel.components.modules);
|
|
59
|
+
@import "./table.css" layer(aksel.components.modules);
|
|
60
|
+
@import "./tabs.css" layer(aksel.components.modules);
|
|
61
|
+
@import "./list.css" layer(aksel.components.modules);
|
|
62
|
+
|
|
63
|
+
/* --------------------------------- Layout --------------------------------- */
|
|
64
|
+
@import "./primitives/index.css" layer(aksel.layout);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
--__axc-link-card-padding-block: var(--ax-space-16);
|
|
3
3
|
--__axc-link-card-padding-inline: var(--ax-space-20);
|
|
4
4
|
|
|
5
|
-
border-radius: var(--ax-
|
|
5
|
+
border-radius: var(--ax-radius-12);
|
|
6
6
|
text-decoration: none;
|
|
7
7
|
color: var(--ax-text-neutral);
|
|
8
8
|
transition-property: border-color, box-shadow, transform, background-color;
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
grid-area: image;
|
|
104
104
|
margin-block: calc(var(--__axc-link-card-padding-block) * -1) var(--__axc-link-card-padding-block);
|
|
105
105
|
margin-inline: calc(var(--__axc-link-card-padding-inline) * 1 * -1);
|
|
106
|
-
border-radius: calc(var(--ax-
|
|
106
|
+
border-radius: calc(var(--ax-radius-12) - 1px);
|
|
107
107
|
border-bottom-left-radius: 0;
|
|
108
108
|
border-bottom-right-radius: 0;
|
|
109
109
|
position: relative;
|
|
@@ -95,14 +95,13 @@
|
|
|
95
95
|
/*
|
|
96
96
|
* Cannot use --ax-bg-overlay because ::backdrop does not inherit from anything but itself.
|
|
97
97
|
* TODO: Consider adding `::backdrop` to global token definitions.
|
|
98
|
-
* TODO: Check that overlay-color is correct after the new colors is set in stone.
|
|
99
98
|
*/
|
|
100
|
-
background:
|
|
99
|
+
background: rgba(12 22 39 / 0.659);
|
|
101
100
|
animation: akselModalBackdropFadeIn 0.7s cubic-bezier(0.15, 1, 0.3, 1);
|
|
102
101
|
}
|
|
103
102
|
|
|
104
103
|
.aksel-modal--polyfilled + .backdrop /* Cannot be combined with ::backdrop selector */ {
|
|
105
|
-
background:
|
|
104
|
+
background: rgba(12 22 39 / 0.659);
|
|
106
105
|
|
|
107
106
|
/* From polyfill: */
|
|
108
107
|
position: fixed;
|
|
@@ -22,10 +22,9 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.aksel-progress-bar__foreground {
|
|
25
|
-
|
|
26
|
-
--__ac-progress-bar-translate: initial;
|
|
25
|
+
--__axc-progress-bar-translate: initial;
|
|
27
26
|
|
|
28
|
-
transform: translateX(var(--
|
|
27
|
+
transform: translateX(var(--__axc-progress-bar-translate));
|
|
29
28
|
background: var(--ax-bg-strong);
|
|
30
29
|
transform-origin: left;
|
|
31
30
|
position: absolute;
|
|
@@ -38,14 +37,14 @@
|
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
.aksel-progress-bar__foreground--indeterminate {
|
|
41
|
-
--
|
|
40
|
+
--__axc-progress-bar-simulated: initial;
|
|
42
41
|
|
|
43
42
|
animation-name: aksel-progress-bar-indeterminate-grow, aksel-progress-bar-indeterminate;
|
|
44
43
|
animation-timing-function: ease-in-out, ease-in-out;
|
|
45
|
-
animation-duration: var(--
|
|
44
|
+
animation-duration: var(--__axc-progress-bar-simulated), 2500ms;
|
|
46
45
|
animation-fill-mode: forwards, none;
|
|
47
46
|
animation-iteration-count: 1, infinite;
|
|
48
|
-
animation-delay: 0s, var(--
|
|
47
|
+
animation-delay: 0s, var(--__axc-progress-bar-simulated);
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
/* aksel-progress-bar-indeterminate wave animation */
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
.aksel-table__expanded-row-content {
|
|
294
|
-
--
|
|
294
|
+
--__axc-table-expanded-row-pi: calc(var(--ax-space-8) + 3rem);
|
|
295
295
|
|
|
296
296
|
padding-block: var(--ax-space-16);
|
|
297
297
|
}
|
|
@@ -301,15 +301,15 @@
|
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
.aksel-table__expanded-row-content--gutter-both {
|
|
304
|
-
padding-inline: var(--
|
|
304
|
+
padding-inline: var(--__axc-table-expanded-row-pi);
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
.aksel-table__expanded-row-content--gutter-left {
|
|
308
|
-
padding-inline: var(--
|
|
308
|
+
padding-inline: var(--__axc-table-expanded-row-pi) var(--ax-space-8);
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
.aksel-table__expanded-row-content--gutter-right {
|
|
312
|
-
padding-inline: var(--ax-space-8) var(--
|
|
312
|
+
padding-inline: var(--ax-space-8) var(--__axc-table-expanded-row-pi);
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
.aksel-table__expanded-row-content--gutter-none {
|
package/accordion.css
DELETED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
.navds-accordion {
|
|
2
|
-
--__ac-accordion-header-shadow-color: var(--ac-accordion-header-border, var(--a-border-divider));
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
/*************************
|
|
6
|
-
* Header *
|
|
7
|
-
*************************/
|
|
8
|
-
.navds-accordion__header {
|
|
9
|
-
--__ac-accordion-header-shadow: inset 2px 0 0 0 var(--a-transparent), inset -2px 0 0 0 var(--a-transparent),
|
|
10
|
-
inset 0 2px 0 0 var(--__ac-accordion-header-shadow-color);
|
|
11
|
-
|
|
12
|
-
width: 100%;
|
|
13
|
-
display: flex;
|
|
14
|
-
justify-content: flex-start;
|
|
15
|
-
align-items: flex-start;
|
|
16
|
-
gap: var(--a-spacing-2);
|
|
17
|
-
padding: var(--a-spacing-3);
|
|
18
|
-
margin: 0;
|
|
19
|
-
text-align: left;
|
|
20
|
-
background: var(--ac-accordion-header-bg, var(--a-surface-transparent));
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
border: none;
|
|
23
|
-
position: relative;
|
|
24
|
-
box-shadow: var(--__ac-accordion-header-shadow);
|
|
25
|
-
z-index: 1;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.navds-accordion__header:hover {
|
|
29
|
-
background-color: var(--ac-accordion-header-bg-hover, var(--a-surface-hover));
|
|
30
|
-
text-decoration: underline;
|
|
31
|
-
color: var(--ac-accordion-header-text-hover, inherit);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.navds-accordion--small .navds-accordion__header {
|
|
35
|
-
padding: var(--a-spacing-2) var(--a-spacing-3);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.navds-accordion--medium .navds-accordion__header {
|
|
39
|
-
padding: var(--a-spacing-3);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.navds-accordion--large .navds-accordion__header {
|
|
43
|
-
padding: var(--a-spacing-4) var(--a-spacing-3);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.navds-accordion__item:last-child > :where(.navds-accordion__header) {
|
|
47
|
-
box-shadow:
|
|
48
|
-
var(--__ac-accordion-header-shadow),
|
|
49
|
-
inset 0 -2px 0 0 var(--__ac-accordion-header-shadow-color);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.navds-accordion__item:last-child:where(.navds-accordion__item--open) :where(.navds-accordion__header) {
|
|
53
|
-
box-shadow:
|
|
54
|
-
inset 2px 0 0 0 var(--a-transparent),
|
|
55
|
-
inset -2px 0 0 0 var(--a-transparent),
|
|
56
|
-
inset 0 2px 0 0 var(--a-transparent),
|
|
57
|
-
inset 0 2px 0 0 var(--__ac-accordion-header-shadow-color);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.navds-accordion__item:last-child:where(.navds-accordion__item--open) {
|
|
61
|
-
box-shadow:
|
|
62
|
-
inset 2px 0 0 0 var(--a-transparent),
|
|
63
|
-
inset -2px 0 0 0 var(--a-transparent),
|
|
64
|
-
inset 0 2px 0 0 var(--a-transparent),
|
|
65
|
-
inset 0 -2px 0 0 var(--__ac-accordion-header-shadow-color);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.navds-accordion__item--open > :where(.navds-accordion__header) {
|
|
69
|
-
box-shadow: var(--__ac-accordion-header-shadow);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.navds-accordion__header:focus-visible {
|
|
73
|
-
outline: 2px solid transparent;
|
|
74
|
-
outline-offset: 3px;
|
|
75
|
-
box-shadow: var(--a-shadow-focus);
|
|
76
|
-
border-radius: var(--a-border-radius-large);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
@supports not selector(:focus-visible) {
|
|
80
|
-
.navds-accordion__header:focus {
|
|
81
|
-
outline: none;
|
|
82
|
-
box-shadow: var(--a-shadow-focus);
|
|
83
|
-
border-radius: var(--a-border-radius-large);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.navds-accordion__header-content {
|
|
88
|
-
overflow: hidden;
|
|
89
|
-
text-overflow: ellipsis;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/*************************
|
|
93
|
-
* Icon *
|
|
94
|
-
*************************/
|
|
95
|
-
.navds-accordion__icon-wrapper {
|
|
96
|
-
display: grid;
|
|
97
|
-
place-content: center;
|
|
98
|
-
border-radius: var(--a-border-radius-medium);
|
|
99
|
-
height: var(--a-spacing-6);
|
|
100
|
-
width: var(--a-spacing-6);
|
|
101
|
-
align-self: center;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.navds-accordion__header:hover > .navds-accordion__icon-wrapper {
|
|
105
|
-
background-color: var(--ac-accordion-header-icon-bg-hover, var(--a-surface-neutral-subtle-hover));
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.navds-accordion__header-chevron {
|
|
109
|
-
border-radius: var(--a-border-radius-medium);
|
|
110
|
-
font-size: 1.5rem;
|
|
111
|
-
height: 1.75rem;
|
|
112
|
-
flex-shrink: 0;
|
|
113
|
-
transition: transform 150ms ease-in-out;
|
|
114
|
-
align-self: center;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
:where(.navds-accordion__header):hover > :where(.navds-accordion__icon-wrapper) > :where(.navds-accordion__header-chevron) {
|
|
118
|
-
transform: translateY(1px);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.navds-accordion__item--open
|
|
122
|
-
> :where(.navds-accordion__header)
|
|
123
|
-
> :where(.navds-accordion__icon-wrapper)
|
|
124
|
-
> :where(.navds-accordion__header-chevron) {
|
|
125
|
-
transform: translateY(0) rotate(-180deg);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.navds-accordion__item--open
|
|
129
|
-
> :where(.navds-accordion__header):hover
|
|
130
|
-
> :where(.navds-accordion__icon-wrapper)
|
|
131
|
-
> :where(.navds-accordion__header-chevron) {
|
|
132
|
-
transform: translateY(-1px) rotate(-180deg);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/*************************
|
|
136
|
-
* Variant/Default *
|
|
137
|
-
*************************/
|
|
138
|
-
.navds-accordion__item--open {
|
|
139
|
-
background-color: var(--ac-accordion-item-bg-open, var(--a-transparent));
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/*************************
|
|
143
|
-
* Variant/Neutral *
|
|
144
|
-
*************************/
|
|
145
|
-
.navds-accordion__item--open.navds-accordion__item--neutral {
|
|
146
|
-
background-color: var(--ac-accordion-neutral-item-bg-open, var(--a-surface-neutral-subtle));
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/*************************
|
|
150
|
-
* Content *
|
|
151
|
-
*************************/
|
|
152
|
-
|
|
153
|
-
.navds-accordion__content {
|
|
154
|
-
padding: var(--a-spacing-1) var(--a-spacing-3) var(--a-spacing-5);
|
|
155
|
-
animation: fadeAccordionContent 250ms ease;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.navds-accordion--indent > :where(.navds-accordion__item) > :where(.navds-accordion__content) {
|
|
159
|
-
padding: var(--a-spacing-1) var(--a-spacing-3) var(--a-spacing-5) var(--a-spacing-11);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.navds-accordion__content--closed {
|
|
163
|
-
display: none;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.navds-accordion__item--no-animation :where(.navds-accordion__content) {
|
|
167
|
-
animation: none;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
@keyframes fadeAccordionContent {
|
|
171
|
-
0% {
|
|
172
|
-
opacity: 0.25;
|
|
173
|
-
transform: translateY(-8px);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
40% {
|
|
177
|
-
opacity: 0.7;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
100% {
|
|
181
|
-
opacity: 1;
|
|
182
|
-
transform: translateY(0);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
@media (forced-colors: active) {
|
|
187
|
-
.navds-accordion__header {
|
|
188
|
-
border: 1px solid buttonborder;
|
|
189
|
-
background-color: canvas;
|
|
190
|
-
color: canvastext;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.navds-accordion__header:hover {
|
|
194
|
-
background-color: canvas;
|
|
195
|
-
border: 1px solid highlight;
|
|
196
|
-
color: highlight;
|
|
197
|
-
}
|
|
198
|
-
}
|