@dnb/eufemia 9.46.1 → 9.47.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 +22 -0
- package/cjs/components/breadcrumb/style/_breadcrumb.scss +0 -1
- package/cjs/components/breadcrumb/style/dnb-breadcrumb.css +0 -1
- package/cjs/components/breadcrumb/style/dnb-breadcrumb.min.css +1 -1
- package/cjs/components/table/TableContainer.d.ts +3 -3
- package/cjs/components/table/TableContainer.js +20 -1
- package/cjs/components/table/TableStickyHeader.js +1 -2
- package/cjs/components/table/TableTh.js +2 -2
- package/cjs/components/table/style/_table-accordion.scss +52 -8
- package/cjs/components/table/style/_table-container.scss +20 -2
- package/cjs/components/table/style/_table-td.scss +35 -69
- package/cjs/components/table/style/_table-th.scss +41 -34
- package/cjs/components/table/style/_table.scss +12 -13
- package/cjs/components/table/style/dnb-table-mixins.css +0 -0
- package/cjs/components/table/style/dnb-table-mixins.min.css +0 -0
- package/cjs/components/table/style/dnb-table-mixins.scss +11 -0
- package/cjs/components/table/style/dnb-table.css +124 -138
- package/cjs/components/table/style/dnb-table.min.css +8 -7
- package/cjs/components/table/style/themes/dnb-table-theme-ui.css +7 -3
- package/cjs/components/table/style/themes/dnb-table-theme-ui.min.css +1 -1
- package/cjs/components/table/style/themes/dnb-table-theme-ui.scss +6 -12
- package/cjs/shared/Eufemia.js +1 -1
- package/cjs/style/dnb-ui-components.css +124 -139
- package/cjs/style/dnb-ui-components.min.css +9 -8
- package/cjs/style/themes/theme-eiendom/dnb-theme-eiendom.css +7 -3
- package/cjs/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +1 -1
- package/cjs/style/themes/theme-ui/dnb-theme-ui.css +7 -3
- package/cjs/style/themes/theme-ui/dnb-theme-ui.min.css +1 -1
- package/components/breadcrumb/style/_breadcrumb.scss +0 -1
- package/components/breadcrumb/style/dnb-breadcrumb.css +0 -1
- package/components/breadcrumb/style/dnb-breadcrumb.min.css +1 -1
- package/components/table/TableContainer.d.ts +3 -3
- package/components/table/TableContainer.js +21 -1
- package/components/table/TableStickyHeader.js +1 -2
- package/components/table/TableTh.js +2 -2
- package/components/table/style/_table-accordion.scss +52 -8
- package/components/table/style/_table-container.scss +20 -2
- package/components/table/style/_table-td.scss +35 -69
- package/components/table/style/_table-th.scss +41 -34
- package/components/table/style/_table.scss +12 -13
- package/components/table/style/dnb-table-mixins.css +0 -0
- package/components/table/style/dnb-table-mixins.min.css +0 -0
- package/components/table/style/dnb-table-mixins.scss +11 -0
- package/components/table/style/dnb-table.css +124 -138
- package/components/table/style/dnb-table.min.css +8 -7
- package/components/table/style/themes/dnb-table-theme-ui.css +7 -3
- package/components/table/style/themes/dnb-table-theme-ui.min.css +1 -1
- package/components/table/style/themes/dnb-table-theme-ui.scss +6 -12
- package/es/components/breadcrumb/style/_breadcrumb.scss +0 -1
- package/es/components/breadcrumb/style/dnb-breadcrumb.css +0 -1
- package/es/components/breadcrumb/style/dnb-breadcrumb.min.css +1 -1
- package/es/components/table/TableContainer.d.ts +3 -3
- package/es/components/table/TableContainer.js +21 -1
- package/es/components/table/TableStickyHeader.js +1 -2
- package/es/components/table/TableTh.js +2 -2
- package/es/components/table/style/_table-accordion.scss +52 -8
- package/es/components/table/style/_table-container.scss +20 -2
- package/es/components/table/style/_table-td.scss +35 -69
- package/es/components/table/style/_table-th.scss +41 -34
- package/es/components/table/style/_table.scss +12 -13
- package/es/components/table/style/dnb-table-mixins.css +0 -0
- package/es/components/table/style/dnb-table-mixins.min.css +0 -0
- package/es/components/table/style/dnb-table-mixins.scss +11 -0
- package/es/components/table/style/dnb-table.css +124 -138
- package/es/components/table/style/dnb-table.min.css +8 -7
- package/es/components/table/style/themes/dnb-table-theme-ui.css +7 -3
- package/es/components/table/style/themes/dnb-table-theme-ui.min.css +1 -1
- package/es/components/table/style/themes/dnb-table-theme-ui.scss +6 -12
- package/es/shared/Eufemia.js +1 -1
- package/es/style/dnb-ui-components.css +124 -139
- package/es/style/dnb-ui-components.min.css +9 -8
- package/es/style/themes/theme-eiendom/dnb-theme-eiendom.css +7 -3
- package/es/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +1 -1
- package/es/style/themes/theme-ui/dnb-theme-ui.css +7 -3
- package/es/style/themes/theme-ui/dnb-theme-ui.min.css +1 -1
- package/esm/dnb-ui-basis.min.mjs +1 -1
- package/esm/dnb-ui-components.min.mjs +1 -1
- package/esm/dnb-ui-elements.min.mjs +2 -2
- package/esm/dnb-ui-extensions.min.mjs +1 -1
- package/esm/dnb-ui-lib.min.mjs +2 -2
- package/esm/dnb-ui-web-components.min.mjs +2 -2
- package/package.json +1 -1
- package/shared/Eufemia.js +1 -1
- package/style/dnb-ui-components.css +124 -139
- package/style/dnb-ui-components.min.css +9 -8
- package/style/themes/theme-eiendom/dnb-theme-eiendom.css +7 -3
- package/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +1 -1
- package/style/themes/theme-ui/dnb-theme-ui.css +7 -3
- package/style/themes/theme-ui/dnb-theme-ui.min.css +1 -1
- package/umd/dnb-ui-basis.min.js +1 -1
- package/umd/dnb-ui-components.min.js +1 -1
- package/umd/dnb-ui-elements.min.js +2 -2
- package/umd/dnb-ui-extensions.min.js +1 -1
- package/umd/dnb-ui-lib.min.js +2 -2
- package/umd/dnb-ui-web-components.min.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to @dnb/eufemia will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [9.47.0](https://github.com/dnbexperience/eufemia/compare/v9.46.2...v9.47.0) (2023-02-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **TableContainer:** enhance handling of empty head and foot area ([#1970](https://github.com/dnbexperience/eufemia/issues/1970)) ([762c667](https://github.com/dnbexperience/eufemia/commit/762c667f48c3039d23dd9c66901fe0776bd77f57))
|
|
12
|
+
* **TableContainer:** ensure bottom border on all tables ([#1969](https://github.com/dnbexperience/eufemia/issues/1969)) ([4583ba8](https://github.com/dnbexperience/eufemia/commit/4583ba83f1ff8144851770219333a74d535efbce))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **Table:** add support for row scope only header ([#1971](https://github.com/dnbexperience/eufemia/issues/1971)) ([aff2e40](https://github.com/dnbexperience/eufemia/commit/aff2e403b991c8ec53d4eccfbed9a92234c47e13))
|
|
18
|
+
|
|
19
|
+
## [9.46.2](https://github.com/dnbexperience/eufemia/compare/v9.46.1...v9.46.2) (2023-01-29)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* **Breadcrumb:** ensure focus state is not partially hidden ([#1949](https://github.com/dnbexperience/eufemia/issues/1949)) ([954d570](https://github.com/dnbexperience/eufemia/commit/954d570bc58a3b26a4a7cacba3a32f05a547d12a)), closes [#1860](https://github.com/dnbexperience/eufemia/issues/1860)
|
|
25
|
+
* **Table:** fix fist border on rowSpan={2} is used in first column ([#1956](https://github.com/dnbexperience/eufemia/issues/1956)) ([48ff543](https://github.com/dnbexperience/eufemia/commit/48ff543b468e6c697e1ab6ce0bd34cf27a55accf))
|
|
26
|
+
* **Table:** fix sticky table when in iFrame ([#1954](https://github.com/dnbexperience/eufemia/issues/1954)) ([ac4f254](https://github.com/dnbexperience/eufemia/commit/ac4f254973a517faced6edbcb3bf01ca5e672d52))
|
|
27
|
+
|
|
6
28
|
## [9.46.1](https://github.com/dnbexperience/eufemia/compare/v9.46.0...v9.46.1) (2023-01-20)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -1041,7 +1041,6 @@ button.dnb-button::-moz-focus-inner {
|
|
|
1041
1041
|
-webkit-box-direction: normal;
|
|
1042
1042
|
-ms-flex-direction: column;
|
|
1043
1043
|
flex-direction: column;
|
|
1044
|
-
overflow: hidden;
|
|
1045
1044
|
-webkit-transition: height 400ms cubic-bezier(0.42, 0, 0, 1);
|
|
1046
1045
|
transition: height 400ms cubic-bezier(0.42, 0, 0, 1);
|
|
1047
1046
|
-webkit-transition: height 400ms var(--easing-default);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.dnb-icon{color:inherit;display:inline-block;font-size:1rem;height:1em;line-height:1rem;vertical-align:middle;width:1em}.dnb-icon img,.dnb-icon svg{shape-rendering:geometricPrecision;height:inherit;vertical-align:top;width:inherit}.dnb-icon svg[width="100%"]{width:inherit}.dnb-icon svg[height="100%"]{height:inherit}.dnb-icon--inherit-color svg:not([fill]),.dnb-icon--inherit-color svg [fill]{fill:currentColor}.dnb-icon--inherit-color svg [stroke]{stroke:currentColor}.dnb-icon--small{font-size:.75rem}.dnb-icon--default{font-size:1rem}.dnb-icon--medium{font-size:1.5rem}.dnb-icon--large{font-size:2rem}.dnb-icon--x-large{font-size:2.5rem}.dnb-icon--xx-large{font-size:3rem}.dnb-icon--custom-size{height:auto;width:auto}.dnb-icon--auto{font-size:1em}.dnb-icon--auto>.dnb-icon--wrapper{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;justify-content:center}h1 .dnb-icon,h2 .dnb-icon,h3 .dnb-icon,h4 .dnb-icon,h5 .dnb-icon,h6 .dnb-icon{vertical-align:middle}.dnb-icon.dnb-skeleton{color:#ebebeb!important;color:var(--skeleton-color)!important}.dnb-icon.dnb-skeleton:after,.dnb-icon.dnb-skeleton:before{content:none!important}@media screen and (-ms-high-contrast:none){.dnb-icon{-webkit-box-flex:0;-ms-flex:none;flex:none}}.dnb-tooltip{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#333;color:var(--color-black-80,#333);font-family:DNB,sans-serif;font-family:var(--font-family-default);font-size:1rem;font-size:var(--font-size-small);font-style:normal;font-weight:400;font-weight:var(--font-weight-basis);line-height:1.5rem;line-height:var(--line-height-basis);margin:0;padding:0;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-break:break-word}.dnb-tooltip *,.dnb-tooltip :after,.dnb-tooltip :before{background-repeat:no-repeat;-webkit-box-sizing:border-box;box-sizing:border-box}.dnb-tooltip :after,.dnb-tooltip :before{text-decoration:inherit;vertical-align:inherit}.dnb-tooltip{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;justify-content:center;opacity:0;padding:0 1rem;position:absolute;-webkit-transition:opacity .2s cubic-bezier(.42,0,0,1);transition:opacity .2s cubic-bezier(.42,0,0,1);-webkit-transition:opacity .2s var(--easing-default);transition:opacity .2s var(--easing-default);visibility:hidden;z-index:3100}.dnb-tooltip--large{padding:.25rem 1rem}.dnb-tooltip--animate_position{-webkit-transition:all .2s cubic-bezier(.42,0,0,1),opacity .2s cubic-bezier(.42,0,0,1);transition:all .2s cubic-bezier(.42,0,0,1),opacity .2s cubic-bezier(.42,0,0,1);-webkit-transition:all .2s var(--easing-default),opacity .2s var(--easing-default);transition:all .2s var(--easing-default),opacity .2s var(--easing-default)}.dnb-tooltip--active{-webkit-animation:show-tooltip .2s cubic-bezier(.42,0,0,1) forwards;animation:show-tooltip .2s cubic-bezier(.42,0,0,1) forwards;-webkit-animation:show-tooltip .2s var(--easing-default) forwards;animation:show-tooltip .2s var(--easing-default) forwards;visibility:visible}.dnb-tooltip--active.dnb-tooltip--no-animation,html[data-visual-test] .dnb-tooltip--active{-webkit-animation:show-tooltip 1ms cubic-bezier(.42,0,0,1) forwards;animation:show-tooltip 1ms cubic-bezier(.42,0,0,1) forwards;-webkit-animation:show-tooltip 1ms var(--easing-default) forwards;animation:show-tooltip 1ms var(--easing-default) forwards}.dnb-tooltip--hide{-webkit-animation:hide-tooltip .2s cubic-bezier(.42,0,0,1) forwards;animation:hide-tooltip .2s cubic-bezier(.42,0,0,1) forwards;-webkit-animation:hide-tooltip .2s var(--easing-default) forwards;animation:hide-tooltip .2s var(--easing-default) forwards;visibility:visible}.dnb-tooltip--hide.dnb-tooltip--no-animation{-webkit-animation:hide-tooltip 1ms linear forwards;animation:hide-tooltip 1ms linear forwards}.dnb-tooltip--fixed{position:fixed}html[data-visual-test] .dnb-tooltip--hide{-webkit-animation:hide-tooltip 1ms linear 1s forwards;animation:hide-tooltip 1ms linear 1s forwards}.dnb-tooltip__portal{left:0;position:absolute;right:0;top:0}.dnb-tooltip__content{min-height:1.5rem;min-width:2rem;padding:0}.dnb-tooltip__arrow{height:.5rem;margin:0;overflow:hidden;pointer-events:none;position:absolute;width:1rem}.dnb-tooltip__arrow:before{bottom:0;content:"";height:1rem;left:0;position:absolute;-webkit-transform:translateY(70%) rotate(45deg);transform:translateY(70%) rotate(45deg);width:1rem}.dnb-tooltip__arrow__position--bottom{top:-.5rem}.dnb-tooltip__arrow__position--top{bottom:-.5rem;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.dnb-tooltip__arrow__position--left{margin-right:3px;right:-.75rem;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.dnb-tooltip__arrow__position--right{left:-.75rem;margin-left:3px;-webkit-transform:rotate(270deg);transform:rotate(270deg)}.dnb-tooltip__arrow__arrow--left{-ms-flex-item-align:start;align-self:flex-start}.dnb-tooltip__arrow__arrow--right{-ms-flex-item-align:end;align-self:flex-end}@-webkit-keyframes show-tooltip{0%{opacity:0}to{opacity:1}}@keyframes show-tooltip{0%{opacity:0}to{opacity:1}}@-webkit-keyframes hide-tooltip{0%{opacity:1}to{opacity:0;visibility:hidden}}@keyframes hide-tooltip{0%{opacity:1}to{opacity:0;visibility:hidden}}.dnb-form-status{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#333;color:var(--color-black-80,#333);font-family:DNB,sans-serif;font-family:var(--font-family-default);font-size:1rem;font-size:var(--font-size-small);font-style:normal;font-weight:400;font-weight:var(--font-weight-basis);line-height:1.5rem;line-height:var(--line-height-basis);margin:0;padding:0;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-break:break-word}.dnb-form-status *,.dnb-form-status :after,.dnb-form-status :before{background-repeat:no-repeat;-webkit-box-sizing:border-box;box-sizing:border-box}.dnb-form-status :after,.dnb-form-status :before{text-decoration:inherit;vertical-align:inherit}:root{--form-status-radius:0.25rem}.dnb-form-status{display:-webkit-box;display:-ms-flexbox;display:flex;opacity:1;-webkit-transition:height .4s cubic-bezier(.42,0,0,1),opacity .4s cubic-bezier(.42,0,0,1),margin .4s cubic-bezier(.42,0,0,1),padding .4s cubic-bezier(.42,0,0,1);transition:height .4s cubic-bezier(.42,0,0,1),opacity .4s cubic-bezier(.42,0,0,1),margin .4s cubic-bezier(.42,0,0,1),padding .4s cubic-bezier(.42,0,0,1);-webkit-transition:height .4s var(--easing-default),opacity .4s var(--easing-default),margin .4s var(--easing-default),padding .4s var(--easing-default);transition:height .4s var(--easing-default),opacity .4s var(--easing-default),margin .4s var(--easing-default),padding .4s var(--easing-default)}.dnb-form-status--hidden{height:0;opacity:0;width:0;will-change:height,opacity,margin,padding}.dnb-form-status--is-animating{overflow:hidden;width:auto}.dnb-form-status--disappear,.dnb-form-status--hidden{margin:0!important;padding:0!important}.dnb-form-status__shell{-webkit-box-pack:start;-ms-flex-pack:start;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;border-radius:.25rem;border-radius:var(--form-status-radius);display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:flex-start;min-width:inherit}.dnb-form-status__text{color:inherit;cursor:text;font-size:1rem;font-size:var(--font-size-small);line-height:1.25rem;line-height:var(--line-height-small);padding:.625rem 1rem;white-space:normal}button .dnb-form-status__text{cursor:inherit}.dnb-form-status__text .dnb-anchor{font-size:inherit}.dnb-icon+.dnb-form-status__text{padding-left:.5rem}.dnb-form-status__shell>.dnb-icon{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center;margin:.3333333em .3333333em .3333333em .6666666em}.dnb-form-status__size--large .dnb-form-status__text{padding-bottom:1.125rem;padding-top:1.125rem}.dnb-form-status__size--large .dnb-form-status__shell>.dnb-icon{margin-bottom:.6666666em;margin-top:.6666666em}.dnb-form-status--stretch{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.dnb-form-status--stretch .dnb-form-status__shell{width:100%}.dnb-form-status--stretch .dnb-form-status__text{max-width:47rem}.dnb-form-status[hidden]{display:none}.dnb-form-status--no-animation,html[data-visual-test] .dnb-form-status{-webkit-transition-duration:1ms!important;transition-duration:1ms!important}@media screen and (-ms-high-contrast:none){.dnb-form-status__shell>.dnb-icon{border-width:1px}}.dnb-button{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#333;color:var(--color-black-80,#333);font-family:DNB,sans-serif;font-family:var(--font-family-default);font-style:normal;font-weight:400;font-weight:var(--font-weight-basis);line-height:1.5rem;line-height:var(--line-height-basis);margin:0;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-break:break-word}.dnb-button *,.dnb-button :after,.dnb-button :before{background-repeat:no-repeat;-webkit-box-sizing:border-box;box-sizing:border-box}.dnb-button :after,.dnb-button :before{text-decoration:inherit;vertical-align:inherit}:root{--button-font-size:var(--font-size-basis);--button-font-size-small:var(--font-size-small);--button-width:2.5rem;--button-height:2.5rem;--button-width--small:1.5rem;--button-height--small:1.5rem;--button-width--medium:2rem;--button-height--medium:2rem;--button-width--large:3rem;--button-height--large:3rem;--button-icon-size:1rem;--button-border-width:0.0625rem;--button-border-width--hover:0.1875rem;--button-border-radius:calc(var(--button-height)/2);--button-border-radius--small:calc(var(--button-height--small)/2);--button-border-radius--medium:calc(var(--button-height--medium)/2);--button-border-radius--large:calc(var(--button-height--large)/2)}.dnb-button{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;border:.0625rem solid transparent;border:var(--button-border-width) solid transparent;border-radius:1.25rem;border-radius:var(--button-border-radius);cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:1rem;font-size:var(--font-size-small);height:auto;justify-content:center;padding:0;position:relative;text-decoration:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none;white-space:nowrap;width:2.5rem;width:var(--button-width)}.dnb-button--wrap{word-wrap:break-word;white-space:normal}.dnb-button,.dnb-core-style .dnb-button{line-height:2.5rem;line-height:var(--button-height)}.dnb-button__text{color:inherit;font-size:1.125rem;font-size:var(--button-font-size);line-height:1.5rem;line-height:var(--line-height-basis);margin:.5rem 0;-webkit-transform:translateY(-.03125rem);transform:translateY(-.03125rem)}.dnb-button__text [data-os=linux]{-webkit-transform:translateY(-.035rem);transform:translateY(-.035rem)}.dnb-button__alignment{display:inline-block;width:0}.dnb-button__bounding{background-color:transparent;border-radius:1.25rem;border-radius:var(--button-border-radius);bottom:0;left:0;position:absolute;right:0;top:0;-webkit-transform:scale(1.1,1.4);transform:scale(1.1,1.4)}.dnb-button--has-text{padding-left:1.5rem;padding-right:1.5rem}.dnb-button--size-small{border-radius:.75rem;border-radius:var(--button-border-radius--small);font-size:1rem;font-size:var(--button-font-size-small);width:1.5rem;width:var(--button-width--small)}.dnb-button--size-small,.dnb-core-style .dnb-button--size-small{line-height:1.5rem;line-height:var(--button-height--small)}.dnb-button--size-small .dnb-button__text{margin:0}.dnb-button--has-text.dnb-button--size-small{padding-left:1rem;padding-right:1rem}.dnb-button--has-text.dnb-button--icon-position-left.dnb-button--size-small{padding-left:.5rem}.dnb-button--has-text.dnb-button--icon-position-right.dnb-button--size-small{padding-right:.5rem}.dnb-button--size-medium{border-radius:1rem;border-radius:var(--button-border-radius--medium);width:2rem;width:var(--button-width--medium)}.dnb-button--size-medium,.dnb-core-style .dnb-button--size-medium{line-height:2rem;line-height:var(--button-height--medium)}.dnb-button--size-medium .dnb-button__text{margin:0}.dnb-button--has-text.dnb-button--size-medium{padding-left:1rem;padding-right:1rem}.dnb-button--has-text.dnb-button--icon-position-left.dnb-button--size-medium{padding-left:.5rem}.dnb-button--has-text.dnb-button--icon-position-right.dnb-button--size-medium{padding-right:.5rem}.dnb-button--size-large{border-radius:1.5rem;border-radius:var(--button-border-radius--large);width:3rem;width:var(--button-width--large)}.dnb-button--size-large,.dnb-core-style .dnb-button--size-large{line-height:3rem;line-height:var(--button-height--large)}.dnb-button--has-text.dnb-button--size-large{padding-left:2rem;padding-right:2rem}.dnb-button--has-text.dnb-button--icon-position-left.dnb-button--size-large{padding-left:1rem}.dnb-button--has-text.dnb-button--icon-position-right.dnb-button--size-large{padding-right:1rem}.dnb-button--has-text{width:auto}.dnb-button--has-text .dnb-button__icon{margin:0 .5rem;margin:0 calc(var(--button-icon-size)/2)}.dnb-button--has-text.dnb-button--icon-position-left{padding-left:.5rem}.dnb-button--has-text.dnb-button--icon-position-right{padding-right:.5rem}.dnb-button--has-text.dnb-button--has-icon .dnb-button__icon{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.dnb-button--has-text.dnb-button--has-icon .dnb-button__text{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.dnb-button:not(.dnb-button--has-text) .dnb-button__icon{width:inherit}.dnb-button__icon.dnb-icon svg:not([width]):not([height]){height:1rem;height:var(--button-icon-size);width:1rem;width:var(--button-icon-size)}[href]>.dnb-button__icon.dnb-icon{line-height:1.125rem;line-height:var(--button-font-size)}.dnb-button--has-text.dnb-button--has-icon.dnb-button--icon-position-left .dnb-button__icon,.dnb-button--has-text.dnb-button--has-icon.dnb-button--icon-position-top .dnb-button__icon{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.dnb-button--has-text.dnb-button--has-icon.dnb-button--icon-position-left .dnb-button__text,.dnb-button--has-text.dnb-button--has-icon.dnb-button--icon-position-left>*,.dnb-button--has-text.dnb-button--has-icon.dnb-button--icon-position-top .dnb-button__text,.dnb-button--has-text.dnb-button--has-icon.dnb-button--icon-position-top>*{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.dnb-button--stretch{width:100%}.dnb-button--reset{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;color:inherit;font:inherit;height:auto;line-height:inherit;margin:0;overflow:visible;padding:0;text-align:inherit;width:auto}html:not([data-whatintent=touch]) .dnb-button--reset:hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-button--reset:hover:not([disabled]){border:none;-webkit-box-shadow:none;box-shadow:none}.dnb-button--reset:not([disabled]):active,.dnb-button--reset:not([disabled]):focus{outline:none}html[data-whatinput=keyboard] .dnb-button--reset:not([disabled]):active,html[data-whatinput=keyboard] .dnb-button--reset:not([disabled]):focus{--border-color:var(--color-emerald-green);border-color:transparent;-webkit-box-shadow:0 0 0 .125rem var(--border-color);box-shadow:0 0 0 .125rem var(--border-color)}@media screen and (-ms-high-contrast:none){html[data-whatinput=keyboard] .dnb-button--reset:not([disabled]):active,html[data-whatinput=keyboard] .dnb-button--reset:not([disabled]):focus{-webkit-box-shadow:0 0 0 .125rem #14555a;box-shadow:0 0 0 .125rem #14555a;-webkit-box-shadow:0 0 0 .125rem var(--color-emerald-green);box-shadow:0 0 0 .125rem var(--color-emerald-green)}}html[data-whatinput=mouse] .dnb-button--reset:not([disabled]):active,html[data-whatinput=mouse] .dnb-button--reset:not([disabled]):focus{border:none;-webkit-box-shadow:none;box-shadow:none;color:inherit}.dnb-button[type=button],.dnb-button[type=reset],.dnb-button[type=submit]{appearance:none;-moz-appearance:none;-webkit-appearance:none}.dnb-button[disabled]{cursor:not-allowed;outline:none}.dnb-form-row--vertical .dnb-form-row__content>.dnb-button{-ms-flex-item-align:start;align-self:flex-start}.dnb-form-row--horizontal .dnb-form-row__content .dnb-button__text{white-space:nowrap}.dnb-button+.dnb-form-status{margin-top:.5rem}@media screen and (-ms-high-contrast:none){.dnb-button{-webkit-box-flex:0;-ms-flex:none;flex:none}.dnb-button__icon,.dnb-button__text{-webkit-transform:translateY(-.0625rem);transform:translateY(-.0625rem)}}button.dnb-button::-moz-focus-inner{border:none}.dnb-section{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#333;color:var(--color-black-80,#333);font-family:DNB,sans-serif;font-family:var(--font-family-default);font-size:1rem;font-size:var(--font-size-small);font-style:normal;font-weight:400;font-weight:var(--font-weight-basis);line-height:1.5rem;line-height:var(--line-height-basis);margin:0;padding:0;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-break:break-word}.dnb-section *,.dnb-section :after,.dnb-section :before{background-repeat:no-repeat;-webkit-box-sizing:border-box;box-sizing:border-box}.dnb-section :after,.dnb-section :before{text-decoration:inherit;vertical-align:inherit}.dnb-section{display:flow-root;position:relative}.dnb-section:after{background-color:currentColor;-webkit-box-shadow:99vw 0 0 0 currentColor,198vw 0 0 0 currentColor,297vw 0 0 0 currentColor,396vw 0 0 0 currentColor;box-shadow:99vw 0 0 0 currentColor,198vw 0 0 0 currentColor,297vw 0 0 0 currentColor,396vw 0 0 0 currentColor;color:#f4fbf9;color:var(--color-mint-green-12);content:"";height:100%;left:-100vw;position:absolute;top:0;width:100vw;z-index:-15}.dnb-section .dnb-section:after{z-index:-14}.dnb-section .dnb-section .dnb-section:after{z-index:-13}.dnb-section .dnb-section .dnb-section .dnb-section:after{z-index:-12}.dnb-section .dnb-section .dnb-section .dnb-section .dnb-section:after{z-index:-11}.dnb-section .dnb-section .dnb-section .dnb-section .dnb-section .dnb-section:after{z-index:-10}.dnb-section .dnb-section .dnb-section .dnb-section .dnb-section .dnb-section .dnb-section:after{z-index:-9}.dnb-section .dnb-section .dnb-section .dnb-section .dnb-section .dnb-section .dnb-section .dnb-section:after{z-index:-8}.dnb-section .dnb-section .dnb-section .dnb-section .dnb-section .dnb-section .dnb-section .dnb-section .dnb-section:after{z-index:-7}.dnb-section--spacing-x-small{padding:.5rem 0;padding:var(--spacing-x-small) 0}.dnb-section--spacing-small{padding:1rem 0;padding:var(--spacing-small) 0}.dnb-section--spacing-medium{padding:1.5rem 0;padding:var(--spacing-medium) 0}.dnb-section--spacing-x-large{padding:3rem 0;padding:var(--spacing-x-large) 0}.dnb-section--spacing-xx-large{padding:3.5rem 0;padding:var(--spacing-xx-large) 0}.dnb-section--spacing,.dnb-section--spacing-large{padding:2rem 0;padding:var(--spacing-large) 0}.dnb-breadcrumb{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#333;color:var(--color-black-80,#333);font-family:DNB,sans-serif;font-family:var(--font-family-default);font-size:1rem;font-size:var(--font-size-small);font-style:normal;font-weight:400;font-weight:var(--font-weight-basis);line-height:1.5rem;line-height:var(--line-height-basis);-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-break:break-word}.dnb-breadcrumb *,.dnb-breadcrumb :after,.dnb-breadcrumb :before{background-repeat:no-repeat;-webkit-box-sizing:border-box;box-sizing:border-box}.dnb-breadcrumb :after,.dnb-breadcrumb :before{text-decoration:inherit;vertical-align:inherit}.dnb-breadcrumb{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin:0;padding:0}.dnb-breadcrumb,.dnb-breadcrumb__bar.dnb-section{display:-webkit-box;display:-ms-flexbox;display:flex}.dnb-breadcrumb__list.dnb-section{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;list-style:none;margin:0;padding:0}.dnb-breadcrumb__item__span,.dnb-breadcrumb__list.dnb-section{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.dnb-breadcrumb__item__span{line-height:normal;padding:.5rem 0}.dnb-breadcrumb__item__span__icon{margin-left:.5rem;margin-left:calc(var(--button-icon-size)/2);margin-right:.5rem}.dnb-breadcrumb__animation{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;-webkit-transition:height .4s cubic-bezier(.42,0,0,1);transition:height .4s cubic-bezier(.42,0,0,1);-webkit-transition:height .4s var(--easing-default);transition:height .4s var(--easing-default)}.dnb-breadcrumb__animation .dnb-breadcrumb__item{-webkit-transform:translateX(-1rem);transform:translateX(-1rem);-webkit-transition:-webkit-transform .4s cubic-bezier(.42,0,0,1) calc(var(--delay)*50ms);transition:-webkit-transform .4s cubic-bezier(.42,0,0,1) calc(var(--delay)*50ms);transition:transform .4s cubic-bezier(.42,0,0,1) calc(var(--delay)*50ms);transition:transform .4s cubic-bezier(.42,0,0,1) calc(var(--delay)*50ms),-webkit-transform .4s cubic-bezier(.42,0,0,1) calc(var(--delay)*50ms);-webkit-transition:-webkit-transform .4s var(--easing-default) calc(var(--delay)*50ms);transition:-webkit-transform .4s var(--easing-default) calc(var(--delay)*50ms);transition:transform .4s var(--easing-default) calc(var(--delay)*50ms);transition:transform .4s var(--easing-default) calc(var(--delay)*50ms),-webkit-transform .4s var(--easing-default) calc(var(--delay)*50ms)}.dnb-breadcrumb__animation.dnb-height-animation--parallax .dnb-breadcrumb__item{-webkit-transform:translateX(0);transform:translateX(0)}.dnb-breadcrumb__collapse{display:-webkit-box;display:-ms-flexbox;display:flex}.dnb-breadcrumb__collapse,.dnb-breadcrumb__collapse .dnb-breadcrumb__list.dnb-section{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.dnb-breadcrumb__collapse .dnb-breadcrumb__list.dnb-section{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;margin:.5rem 0 .5rem 1.5rem}
|
|
1
|
+
.dnb-icon{color:inherit;display:inline-block;font-size:1rem;height:1em;line-height:1rem;vertical-align:middle;width:1em}.dnb-icon img,.dnb-icon svg{shape-rendering:geometricPrecision;height:inherit;vertical-align:top;width:inherit}.dnb-icon svg[width="100%"]{width:inherit}.dnb-icon svg[height="100%"]{height:inherit}.dnb-icon--inherit-color svg:not([fill]),.dnb-icon--inherit-color svg [fill]{fill:currentColor}.dnb-icon--inherit-color svg [stroke]{stroke:currentColor}.dnb-icon--small{font-size:.75rem}.dnb-icon--default{font-size:1rem}.dnb-icon--medium{font-size:1.5rem}.dnb-icon--large{font-size:2rem}.dnb-icon--x-large{font-size:2.5rem}.dnb-icon--xx-large{font-size:3rem}.dnb-icon--custom-size{height:auto;width:auto}.dnb-icon--auto{font-size:1em}.dnb-icon--auto>.dnb-icon--wrapper{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;justify-content:center}h1 .dnb-icon,h2 .dnb-icon,h3 .dnb-icon,h4 .dnb-icon,h5 .dnb-icon,h6 .dnb-icon{vertical-align:middle}.dnb-icon.dnb-skeleton{color:#ebebeb!important;color:var(--skeleton-color)!important}.dnb-icon.dnb-skeleton:after,.dnb-icon.dnb-skeleton:before{content:none!important}@media screen and (-ms-high-contrast:none){.dnb-icon{-webkit-box-flex:0;-ms-flex:none;flex:none}}.dnb-tooltip{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#333;color:var(--color-black-80,#333);font-family:DNB,sans-serif;font-family:var(--font-family-default);font-size:1rem;font-size:var(--font-size-small);font-style:normal;font-weight:400;font-weight:var(--font-weight-basis);line-height:1.5rem;line-height:var(--line-height-basis);margin:0;padding:0;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-break:break-word}.dnb-tooltip *,.dnb-tooltip :after,.dnb-tooltip :before{background-repeat:no-repeat;-webkit-box-sizing:border-box;box-sizing:border-box}.dnb-tooltip :after,.dnb-tooltip :before{text-decoration:inherit;vertical-align:inherit}.dnb-tooltip{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;justify-content:center;opacity:0;padding:0 1rem;position:absolute;-webkit-transition:opacity .2s cubic-bezier(.42,0,0,1);transition:opacity .2s cubic-bezier(.42,0,0,1);-webkit-transition:opacity .2s var(--easing-default);transition:opacity .2s var(--easing-default);visibility:hidden;z-index:3100}.dnb-tooltip--large{padding:.25rem 1rem}.dnb-tooltip--animate_position{-webkit-transition:all .2s cubic-bezier(.42,0,0,1),opacity .2s cubic-bezier(.42,0,0,1);transition:all .2s cubic-bezier(.42,0,0,1),opacity .2s cubic-bezier(.42,0,0,1);-webkit-transition:all .2s var(--easing-default),opacity .2s var(--easing-default);transition:all .2s var(--easing-default),opacity .2s var(--easing-default)}.dnb-tooltip--active{-webkit-animation:show-tooltip .2s cubic-bezier(.42,0,0,1) forwards;animation:show-tooltip .2s cubic-bezier(.42,0,0,1) forwards;-webkit-animation:show-tooltip .2s var(--easing-default) forwards;animation:show-tooltip .2s var(--easing-default) forwards;visibility:visible}.dnb-tooltip--active.dnb-tooltip--no-animation,html[data-visual-test] .dnb-tooltip--active{-webkit-animation:show-tooltip 1ms cubic-bezier(.42,0,0,1) forwards;animation:show-tooltip 1ms cubic-bezier(.42,0,0,1) forwards;-webkit-animation:show-tooltip 1ms var(--easing-default) forwards;animation:show-tooltip 1ms var(--easing-default) forwards}.dnb-tooltip--hide{-webkit-animation:hide-tooltip .2s cubic-bezier(.42,0,0,1) forwards;animation:hide-tooltip .2s cubic-bezier(.42,0,0,1) forwards;-webkit-animation:hide-tooltip .2s var(--easing-default) forwards;animation:hide-tooltip .2s var(--easing-default) forwards;visibility:visible}.dnb-tooltip--hide.dnb-tooltip--no-animation{-webkit-animation:hide-tooltip 1ms linear forwards;animation:hide-tooltip 1ms linear forwards}.dnb-tooltip--fixed{position:fixed}html[data-visual-test] .dnb-tooltip--hide{-webkit-animation:hide-tooltip 1ms linear 1s forwards;animation:hide-tooltip 1ms linear 1s forwards}.dnb-tooltip__portal{left:0;position:absolute;right:0;top:0}.dnb-tooltip__content{min-height:1.5rem;min-width:2rem;padding:0}.dnb-tooltip__arrow{height:.5rem;margin:0;overflow:hidden;pointer-events:none;position:absolute;width:1rem}.dnb-tooltip__arrow:before{bottom:0;content:"";height:1rem;left:0;position:absolute;-webkit-transform:translateY(70%) rotate(45deg);transform:translateY(70%) rotate(45deg);width:1rem}.dnb-tooltip__arrow__position--bottom{top:-.5rem}.dnb-tooltip__arrow__position--top{bottom:-.5rem;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.dnb-tooltip__arrow__position--left{margin-right:3px;right:-.75rem;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.dnb-tooltip__arrow__position--right{left:-.75rem;margin-left:3px;-webkit-transform:rotate(270deg);transform:rotate(270deg)}.dnb-tooltip__arrow__arrow--left{-ms-flex-item-align:start;align-self:flex-start}.dnb-tooltip__arrow__arrow--right{-ms-flex-item-align:end;align-self:flex-end}@-webkit-keyframes show-tooltip{0%{opacity:0}to{opacity:1}}@keyframes show-tooltip{0%{opacity:0}to{opacity:1}}@-webkit-keyframes hide-tooltip{0%{opacity:1}to{opacity:0;visibility:hidden}}@keyframes hide-tooltip{0%{opacity:1}to{opacity:0;visibility:hidden}}.dnb-form-status{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#333;color:var(--color-black-80,#333);font-family:DNB,sans-serif;font-family:var(--font-family-default);font-size:1rem;font-size:var(--font-size-small);font-style:normal;font-weight:400;font-weight:var(--font-weight-basis);line-height:1.5rem;line-height:var(--line-height-basis);margin:0;padding:0;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-break:break-word}.dnb-form-status *,.dnb-form-status :after,.dnb-form-status :before{background-repeat:no-repeat;-webkit-box-sizing:border-box;box-sizing:border-box}.dnb-form-status :after,.dnb-form-status :before{text-decoration:inherit;vertical-align:inherit}:root{--form-status-radius:0.25rem}.dnb-form-status{display:-webkit-box;display:-ms-flexbox;display:flex;opacity:1;-webkit-transition:height .4s cubic-bezier(.42,0,0,1),opacity .4s cubic-bezier(.42,0,0,1),margin .4s cubic-bezier(.42,0,0,1),padding .4s cubic-bezier(.42,0,0,1);transition:height .4s cubic-bezier(.42,0,0,1),opacity .4s cubic-bezier(.42,0,0,1),margin .4s cubic-bezier(.42,0,0,1),padding .4s cubic-bezier(.42,0,0,1);-webkit-transition:height .4s var(--easing-default),opacity .4s var(--easing-default),margin .4s var(--easing-default),padding .4s var(--easing-default);transition:height .4s var(--easing-default),opacity .4s var(--easing-default),margin .4s var(--easing-default),padding .4s var(--easing-default)}.dnb-form-status--hidden{height:0;opacity:0;width:0;will-change:height,opacity,margin,padding}.dnb-form-status--is-animating{overflow:hidden;width:auto}.dnb-form-status--disappear,.dnb-form-status--hidden{margin:0!important;padding:0!important}.dnb-form-status__shell{-webkit-box-pack:start;-ms-flex-pack:start;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;border-radius:.25rem;border-radius:var(--form-status-radius);display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:flex-start;min-width:inherit}.dnb-form-status__text{color:inherit;cursor:text;font-size:1rem;font-size:var(--font-size-small);line-height:1.25rem;line-height:var(--line-height-small);padding:.625rem 1rem;white-space:normal}button .dnb-form-status__text{cursor:inherit}.dnb-form-status__text .dnb-anchor{font-size:inherit}.dnb-icon+.dnb-form-status__text{padding-left:.5rem}.dnb-form-status__shell>.dnb-icon{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center;margin:.3333333em .3333333em .3333333em .6666666em}.dnb-form-status__size--large .dnb-form-status__text{padding-bottom:1.125rem;padding-top:1.125rem}.dnb-form-status__size--large .dnb-form-status__shell>.dnb-icon{margin-bottom:.6666666em;margin-top:.6666666em}.dnb-form-status--stretch{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.dnb-form-status--stretch .dnb-form-status__shell{width:100%}.dnb-form-status--stretch .dnb-form-status__text{max-width:47rem}.dnb-form-status[hidden]{display:none}.dnb-form-status--no-animation,html[data-visual-test] .dnb-form-status{-webkit-transition-duration:1ms!important;transition-duration:1ms!important}@media screen and (-ms-high-contrast:none){.dnb-form-status__shell>.dnb-icon{border-width:1px}}.dnb-button{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#333;color:var(--color-black-80,#333);font-family:DNB,sans-serif;font-family:var(--font-family-default);font-style:normal;font-weight:400;font-weight:var(--font-weight-basis);line-height:1.5rem;line-height:var(--line-height-basis);margin:0;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-break:break-word}.dnb-button *,.dnb-button :after,.dnb-button :before{background-repeat:no-repeat;-webkit-box-sizing:border-box;box-sizing:border-box}.dnb-button :after,.dnb-button :before{text-decoration:inherit;vertical-align:inherit}:root{--button-font-size:var(--font-size-basis);--button-font-size-small:var(--font-size-small);--button-width:2.5rem;--button-height:2.5rem;--button-width--small:1.5rem;--button-height--small:1.5rem;--button-width--medium:2rem;--button-height--medium:2rem;--button-width--large:3rem;--button-height--large:3rem;--button-icon-size:1rem;--button-border-width:0.0625rem;--button-border-width--hover:0.1875rem;--button-border-radius:calc(var(--button-height)/2);--button-border-radius--small:calc(var(--button-height--small)/2);--button-border-radius--medium:calc(var(--button-height--medium)/2);--button-border-radius--large:calc(var(--button-height--large)/2)}.dnb-button{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;border:.0625rem solid transparent;border:var(--button-border-width) solid transparent;border-radius:1.25rem;border-radius:var(--button-border-radius);cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:1rem;font-size:var(--font-size-small);height:auto;justify-content:center;padding:0;position:relative;text-decoration:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none;white-space:nowrap;width:2.5rem;width:var(--button-width)}.dnb-button--wrap{word-wrap:break-word;white-space:normal}.dnb-button,.dnb-core-style .dnb-button{line-height:2.5rem;line-height:var(--button-height)}.dnb-button__text{color:inherit;font-size:1.125rem;font-size:var(--button-font-size);line-height:1.5rem;line-height:var(--line-height-basis);margin:.5rem 0;-webkit-transform:translateY(-.03125rem);transform:translateY(-.03125rem)}.dnb-button__text [data-os=linux]{-webkit-transform:translateY(-.035rem);transform:translateY(-.035rem)}.dnb-button__alignment{display:inline-block;width:0}.dnb-button__bounding{background-color:transparent;border-radius:1.25rem;border-radius:var(--button-border-radius);bottom:0;left:0;position:absolute;right:0;top:0;-webkit-transform:scale(1.1,1.4);transform:scale(1.1,1.4)}.dnb-button--has-text{padding-left:1.5rem;padding-right:1.5rem}.dnb-button--size-small{border-radius:.75rem;border-radius:var(--button-border-radius--small);font-size:1rem;font-size:var(--button-font-size-small);width:1.5rem;width:var(--button-width--small)}.dnb-button--size-small,.dnb-core-style .dnb-button--size-small{line-height:1.5rem;line-height:var(--button-height--small)}.dnb-button--size-small .dnb-button__text{margin:0}.dnb-button--has-text.dnb-button--size-small{padding-left:1rem;padding-right:1rem}.dnb-button--has-text.dnb-button--icon-position-left.dnb-button--size-small{padding-left:.5rem}.dnb-button--has-text.dnb-button--icon-position-right.dnb-button--size-small{padding-right:.5rem}.dnb-button--size-medium{border-radius:1rem;border-radius:var(--button-border-radius--medium);width:2rem;width:var(--button-width--medium)}.dnb-button--size-medium,.dnb-core-style .dnb-button--size-medium{line-height:2rem;line-height:var(--button-height--medium)}.dnb-button--size-medium .dnb-button__text{margin:0}.dnb-button--has-text.dnb-button--size-medium{padding-left:1rem;padding-right:1rem}.dnb-button--has-text.dnb-button--icon-position-left.dnb-button--size-medium{padding-left:.5rem}.dnb-button--has-text.dnb-button--icon-position-right.dnb-button--size-medium{padding-right:.5rem}.dnb-button--size-large{border-radius:1.5rem;border-radius:var(--button-border-radius--large);width:3rem;width:var(--button-width--large)}.dnb-button--size-large,.dnb-core-style .dnb-button--size-large{line-height:3rem;line-height:var(--button-height--large)}.dnb-button--has-text.dnb-button--size-large{padding-left:2rem;padding-right:2rem}.dnb-button--has-text.dnb-button--icon-position-left.dnb-button--size-large{padding-left:1rem}.dnb-button--has-text.dnb-button--icon-position-right.dnb-button--size-large{padding-right:1rem}.dnb-button--has-text{width:auto}.dnb-button--has-text .dnb-button__icon{margin:0 .5rem;margin:0 calc(var(--button-icon-size)/2)}.dnb-button--has-text.dnb-button--icon-position-left{padding-left:.5rem}.dnb-button--has-text.dnb-button--icon-position-right{padding-right:.5rem}.dnb-button--has-text.dnb-button--has-icon .dnb-button__icon{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.dnb-button--has-text.dnb-button--has-icon .dnb-button__text{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.dnb-button:not(.dnb-button--has-text) .dnb-button__icon{width:inherit}.dnb-button__icon.dnb-icon svg:not([width]):not([height]){height:1rem;height:var(--button-icon-size);width:1rem;width:var(--button-icon-size)}[href]>.dnb-button__icon.dnb-icon{line-height:1.125rem;line-height:var(--button-font-size)}.dnb-button--has-text.dnb-button--has-icon.dnb-button--icon-position-left .dnb-button__icon,.dnb-button--has-text.dnb-button--has-icon.dnb-button--icon-position-top .dnb-button__icon{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.dnb-button--has-text.dnb-button--has-icon.dnb-button--icon-position-left .dnb-button__text,.dnb-button--has-text.dnb-button--has-icon.dnb-button--icon-position-left>*,.dnb-button--has-text.dnb-button--has-icon.dnb-button--icon-position-top .dnb-button__text,.dnb-button--has-text.dnb-button--has-icon.dnb-button--icon-position-top>*{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.dnb-button--stretch{width:100%}.dnb-button--reset{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;color:inherit;font:inherit;height:auto;line-height:inherit;margin:0;overflow:visible;padding:0;text-align:inherit;width:auto}html:not([data-whatintent=touch]) .dnb-button--reset:hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-button--reset:hover:not([disabled]){border:none;-webkit-box-shadow:none;box-shadow:none}.dnb-button--reset:not([disabled]):active,.dnb-button--reset:not([disabled]):focus{outline:none}html[data-whatinput=keyboard] .dnb-button--reset:not([disabled]):active,html[data-whatinput=keyboard] .dnb-button--reset:not([disabled]):focus{--border-color:var(--color-emerald-green);border-color:transparent;-webkit-box-shadow:0 0 0 .125rem var(--border-color);box-shadow:0 0 0 .125rem var(--border-color)}@media screen and (-ms-high-contrast:none){html[data-whatinput=keyboard] .dnb-button--reset:not([disabled]):active,html[data-whatinput=keyboard] .dnb-button--reset:not([disabled]):focus{-webkit-box-shadow:0 0 0 .125rem #14555a;box-shadow:0 0 0 .125rem #14555a;-webkit-box-shadow:0 0 0 .125rem var(--color-emerald-green);box-shadow:0 0 0 .125rem var(--color-emerald-green)}}html[data-whatinput=mouse] .dnb-button--reset:not([disabled]):active,html[data-whatinput=mouse] .dnb-button--reset:not([disabled]):focus{border:none;-webkit-box-shadow:none;box-shadow:none;color:inherit}.dnb-button[type=button],.dnb-button[type=reset],.dnb-button[type=submit]{appearance:none;-moz-appearance:none;-webkit-appearance:none}.dnb-button[disabled]{cursor:not-allowed;outline:none}.dnb-form-row--vertical .dnb-form-row__content>.dnb-button{-ms-flex-item-align:start;align-self:flex-start}.dnb-form-row--horizontal .dnb-form-row__content .dnb-button__text{white-space:nowrap}.dnb-button+.dnb-form-status{margin-top:.5rem}@media screen and (-ms-high-contrast:none){.dnb-button{-webkit-box-flex:0;-ms-flex:none;flex:none}.dnb-button__icon,.dnb-button__text{-webkit-transform:translateY(-.0625rem);transform:translateY(-.0625rem)}}button.dnb-button::-moz-focus-inner{border:none}.dnb-section{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#333;color:var(--color-black-80,#333);font-family:DNB,sans-serif;font-family:var(--font-family-default);font-size:1rem;font-size:var(--font-size-small);font-style:normal;font-weight:400;font-weight:var(--font-weight-basis);line-height:1.5rem;line-height:var(--line-height-basis);margin:0;padding:0;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-break:break-word}.dnb-section *,.dnb-section :after,.dnb-section :before{background-repeat:no-repeat;-webkit-box-sizing:border-box;box-sizing:border-box}.dnb-section :after,.dnb-section :before{text-decoration:inherit;vertical-align:inherit}.dnb-section{display:flow-root;position:relative}.dnb-section:after{background-color:currentColor;-webkit-box-shadow:99vw 0 0 0 currentColor,198vw 0 0 0 currentColor,297vw 0 0 0 currentColor,396vw 0 0 0 currentColor;box-shadow:99vw 0 0 0 currentColor,198vw 0 0 0 currentColor,297vw 0 0 0 currentColor,396vw 0 0 0 currentColor;color:#f4fbf9;color:var(--color-mint-green-12);content:"";height:100%;left:-100vw;position:absolute;top:0;width:100vw;z-index:-15}.dnb-section .dnb-section:after{z-index:-14}.dnb-section .dnb-section .dnb-section:after{z-index:-13}.dnb-section .dnb-section .dnb-section .dnb-section:after{z-index:-12}.dnb-section .dnb-section .dnb-section .dnb-section .dnb-section:after{z-index:-11}.dnb-section .dnb-section .dnb-section .dnb-section .dnb-section .dnb-section:after{z-index:-10}.dnb-section .dnb-section .dnb-section .dnb-section .dnb-section .dnb-section .dnb-section:after{z-index:-9}.dnb-section .dnb-section .dnb-section .dnb-section .dnb-section .dnb-section .dnb-section .dnb-section:after{z-index:-8}.dnb-section .dnb-section .dnb-section .dnb-section .dnb-section .dnb-section .dnb-section .dnb-section .dnb-section:after{z-index:-7}.dnb-section--spacing-x-small{padding:.5rem 0;padding:var(--spacing-x-small) 0}.dnb-section--spacing-small{padding:1rem 0;padding:var(--spacing-small) 0}.dnb-section--spacing-medium{padding:1.5rem 0;padding:var(--spacing-medium) 0}.dnb-section--spacing-x-large{padding:3rem 0;padding:var(--spacing-x-large) 0}.dnb-section--spacing-xx-large{padding:3.5rem 0;padding:var(--spacing-xx-large) 0}.dnb-section--spacing,.dnb-section--spacing-large{padding:2rem 0;padding:var(--spacing-large) 0}.dnb-breadcrumb{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#333;color:var(--color-black-80,#333);font-family:DNB,sans-serif;font-family:var(--font-family-default);font-size:1rem;font-size:var(--font-size-small);font-style:normal;font-weight:400;font-weight:var(--font-weight-basis);line-height:1.5rem;line-height:var(--line-height-basis);-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-break:break-word}.dnb-breadcrumb *,.dnb-breadcrumb :after,.dnb-breadcrumb :before{background-repeat:no-repeat;-webkit-box-sizing:border-box;box-sizing:border-box}.dnb-breadcrumb :after,.dnb-breadcrumb :before{text-decoration:inherit;vertical-align:inherit}.dnb-breadcrumb{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin:0;padding:0}.dnb-breadcrumb,.dnb-breadcrumb__bar.dnb-section{display:-webkit-box;display:-ms-flexbox;display:flex}.dnb-breadcrumb__list.dnb-section{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;list-style:none;margin:0;padding:0}.dnb-breadcrumb__item__span,.dnb-breadcrumb__list.dnb-section{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.dnb-breadcrumb__item__span{line-height:normal;padding:.5rem 0}.dnb-breadcrumb__item__span__icon{margin-left:.5rem;margin-left:calc(var(--button-icon-size)/2);margin-right:.5rem}.dnb-breadcrumb__animation{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-transition:height .4s cubic-bezier(.42,0,0,1);transition:height .4s cubic-bezier(.42,0,0,1);-webkit-transition:height .4s var(--easing-default);transition:height .4s var(--easing-default)}.dnb-breadcrumb__animation .dnb-breadcrumb__item{-webkit-transform:translateX(-1rem);transform:translateX(-1rem);-webkit-transition:-webkit-transform .4s cubic-bezier(.42,0,0,1) calc(var(--delay)*50ms);transition:-webkit-transform .4s cubic-bezier(.42,0,0,1) calc(var(--delay)*50ms);transition:transform .4s cubic-bezier(.42,0,0,1) calc(var(--delay)*50ms);transition:transform .4s cubic-bezier(.42,0,0,1) calc(var(--delay)*50ms),-webkit-transform .4s cubic-bezier(.42,0,0,1) calc(var(--delay)*50ms);-webkit-transition:-webkit-transform .4s var(--easing-default) calc(var(--delay)*50ms);transition:-webkit-transform .4s var(--easing-default) calc(var(--delay)*50ms);transition:transform .4s var(--easing-default) calc(var(--delay)*50ms);transition:transform .4s var(--easing-default) calc(var(--delay)*50ms),-webkit-transform .4s var(--easing-default) calc(var(--delay)*50ms)}.dnb-breadcrumb__animation.dnb-height-animation--parallax .dnb-breadcrumb__item{-webkit-transform:translateX(0);transform:translateX(0)}.dnb-breadcrumb__collapse{display:-webkit-box;display:-ms-flexbox;display:flex}.dnb-breadcrumb__collapse,.dnb-breadcrumb__collapse .dnb-breadcrumb__list.dnb-section{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.dnb-breadcrumb__collapse .dnb-breadcrumb__list.dnb-section{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;margin:.5rem 0 .5rem 1.5rem}
|
|
@@ -9,7 +9,7 @@ export declare type TableContainerProps = {
|
|
|
9
9
|
React.ReactElement<TableContainerHeadProps>,
|
|
10
10
|
React.ReactElement<TableContainerBodyProps>,
|
|
11
11
|
React.ReactElement<TableContainerFootProps>
|
|
12
|
-
]
|
|
12
|
+
] | React.ReactElement<TableContainerBodyProps>;
|
|
13
13
|
};
|
|
14
14
|
export declare type TableContainerAllProps = TableContainerProps & React.TableHTMLAttributes<HTMLTableRowElement> & SpacingProps;
|
|
15
15
|
declare function TableContainer(props: TableContainerAllProps): JSX.Element;
|
|
@@ -30,13 +30,13 @@ export declare type TableContainerHeadProps = {
|
|
|
30
30
|
/**
|
|
31
31
|
* The content of the component.
|
|
32
32
|
*/
|
|
33
|
-
children
|
|
33
|
+
children?: React.ReactNode;
|
|
34
34
|
};
|
|
35
35
|
export declare function TableContainerHead(props: TableContainerHeadProps & React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
36
36
|
export declare type TableContainerFootProps = {
|
|
37
37
|
/**
|
|
38
38
|
* The content of the component.
|
|
39
39
|
*/
|
|
40
|
-
children
|
|
40
|
+
children?: React.ReactNode;
|
|
41
41
|
};
|
|
42
42
|
export declare function TableContainerFoot(props: TableContainerFootProps & React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
@@ -26,6 +26,8 @@ var _SpacingUtils = require("../space/SpacingUtils");
|
|
|
26
26
|
|
|
27
27
|
var _componentHelper = require("../../shared/component-helper");
|
|
28
28
|
|
|
29
|
+
var _TableContainer$Head, _TableContainer$Foot;
|
|
30
|
+
|
|
29
31
|
var _excluded = ["children", "className"],
|
|
30
32
|
_excluded2 = ["children", "className"],
|
|
31
33
|
_excluded3 = ["children", "className"],
|
|
@@ -40,6 +42,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
40
42
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
41
43
|
|
|
42
44
|
function TableContainer(props) {
|
|
45
|
+
var _content$, _content$2;
|
|
46
|
+
|
|
43
47
|
var children = props.children,
|
|
44
48
|
className = props.className,
|
|
45
49
|
rest = _objectWithoutProperties(props, _excluded);
|
|
@@ -47,9 +51,24 @@ function TableContainer(props) {
|
|
|
47
51
|
var spacingClasses = (0, _SpacingUtils.createSpacingClasses)(props);
|
|
48
52
|
(0, _componentHelper.validateDOMAttributes)(props, rest);
|
|
49
53
|
var ScrollView = _TableScrollView.default;
|
|
54
|
+
var isArray = Array.isArray(children);
|
|
55
|
+
var content = isArray ? children : [children];
|
|
56
|
+
|
|
57
|
+
if (((_content$ = content[0]) === null || _content$ === void 0 ? void 0 : _content$.type) !== TableContainer.Head) {
|
|
58
|
+
content.unshift(_TableContainer$Head || (_TableContainer$Head = _react.default.createElement(TableContainer.Head, {
|
|
59
|
+
key: "head"
|
|
60
|
+
})));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (((_content$2 = content[2]) === null || _content$2 === void 0 ? void 0 : _content$2.type) !== TableContainer.Foot) {
|
|
64
|
+
content.push(_TableContainer$Foot || (_TableContainer$Foot = _react.default.createElement(TableContainer.Foot, {
|
|
65
|
+
key: "foot"
|
|
66
|
+
})));
|
|
67
|
+
}
|
|
68
|
+
|
|
50
69
|
return _react.default.createElement("section", _extends({
|
|
51
70
|
className: (0, _classnames.default)('dnb-table__container', className, spacingClasses)
|
|
52
|
-
}, rest), _react.default.createElement(ScrollView, null,
|
|
71
|
+
}, rest), _react.default.createElement(ScrollView, null, content));
|
|
53
72
|
}
|
|
54
73
|
|
|
55
74
|
function TableContainerBody(props) {
|
|
@@ -48,7 +48,6 @@ var useStickyHeader = function useStickyHeader(_ref) {
|
|
|
48
48
|
var tableElem = elementRef.current;
|
|
49
49
|
var trElem = tableElem.querySelector('thead > tr:first-of-type, thead > .dnb-table__tr:first-of-type');
|
|
50
50
|
var thElem = getThElement(tableElem);
|
|
51
|
-
var inIframe = window.self !== window.top;
|
|
52
51
|
|
|
53
52
|
var setSizes = function setSizes() {
|
|
54
53
|
offsetTopPx = parseFloat(String(stickyOffset)) || 0;
|
|
@@ -82,7 +81,7 @@ var useStickyHeader = function useStickyHeader(_ref) {
|
|
|
82
81
|
thHeight = thElem.offsetHeight;
|
|
83
82
|
tableHeight = tableElem.offsetHeight;
|
|
84
83
|
tableOffset = (0, _helpers.getOffsetTop)(tableElem);
|
|
85
|
-
totalOffset = tableOffset -
|
|
84
|
+
totalOffset = tableOffset - offsetTopPx;
|
|
86
85
|
|
|
87
86
|
if (sticky === 'css-position') {
|
|
88
87
|
trElem.style.setProperty('--table-top', "".concat(offsetTopPx / 16, "rem"));
|
|
@@ -41,8 +41,8 @@ function Th(componentProps) {
|
|
|
41
41
|
noWrap = componentProps.noWrap,
|
|
42
42
|
props = _objectWithoutProperties(componentProps, _excluded);
|
|
43
43
|
|
|
44
|
-
var role = props.scope === 'row' ? 'rowheader' : 'columnheader';
|
|
45
|
-
var scope = props.scope === 'row' ? 'row' : 'col';
|
|
44
|
+
var role = props.scope === 'row' || props.scope === 'rowgroup' ? 'rowheader' : 'columnheader';
|
|
45
|
+
var scope = props.scope === 'row' ? 'row' : props.scope || 'col';
|
|
46
46
|
var ariaSort = sortable ? reversed ? 'descending' : 'ascending' : undefined;
|
|
47
47
|
return _react.default.createElement("th", _extends({
|
|
48
48
|
role: role,
|
|
@@ -72,13 +72,17 @@
|
|
|
72
72
|
position: relative;
|
|
73
73
|
z-index: 2;
|
|
74
74
|
}
|
|
75
|
-
&__tr--has-accordion-content:hover,
|
|
76
|
-
&__tr--has-accordion-content:active,
|
|
77
|
-
&__tr--has-accordion-content:focus,
|
|
78
75
|
&__tr--has-accordion-content#{&}__tr--expanded,
|
|
79
76
|
&__tr__accordion_content {
|
|
80
|
-
// ensure borders are visible in certain states
|
|
81
|
-
|
|
77
|
+
z-index: 3; // ensure borders are visible in certain states
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&__tr--has-accordion-content {
|
|
81
|
+
&:hover,
|
|
82
|
+
&:active,
|
|
83
|
+
html[data-whatinput='keyboard'] &:focus {
|
|
84
|
+
z-index: 5; // over table outline border
|
|
85
|
+
}
|
|
82
86
|
}
|
|
83
87
|
|
|
84
88
|
&__tr--has-accordion-content#{&}__tr--expanded
|
|
@@ -129,6 +133,13 @@
|
|
|
129
133
|
}
|
|
130
134
|
}
|
|
131
135
|
|
|
136
|
+
&--outline
|
|
137
|
+
tbody
|
|
138
|
+
&__tr--has-accordion-content:not(#{&}__tr--expanded):not(:nth-last-child(2))
|
|
139
|
+
&__td::before {
|
|
140
|
+
bottom: -0.0625rem;
|
|
141
|
+
}
|
|
142
|
+
|
|
132
143
|
&__tr--has-accordion-content#{&}__tr--expanded:not(&__tr--disabled):hover
|
|
133
144
|
&__td {
|
|
134
145
|
background-color: var(--color-white);
|
|
@@ -193,14 +204,16 @@
|
|
|
193
204
|
@include IS_SAFARI_DESKTOP {
|
|
194
205
|
&[hidden] {
|
|
195
206
|
/**
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
207
|
+
* By reverting the display from "none" to "block",
|
|
208
|
+
* we trick VoiceOver to not make this row as the end of the table. We still need "hidden" to get the correct number of rows (childCount).
|
|
209
|
+
*/
|
|
199
210
|
display: block;
|
|
200
211
|
}
|
|
201
212
|
}
|
|
202
213
|
|
|
203
214
|
td {
|
|
215
|
+
padding: 0 !important; // medium and small size sets padding – but we never want a padding on this td
|
|
216
|
+
|
|
204
217
|
width: calc(100% - 3.5rem);
|
|
205
218
|
|
|
206
219
|
.dnb-table__size--medium & {
|
|
@@ -279,9 +292,40 @@
|
|
|
279
292
|
vertical-align: top;
|
|
280
293
|
}
|
|
281
294
|
|
|
295
|
+
&--outline
|
|
296
|
+
tbody
|
|
297
|
+
&__tr#{&}__tr--has-accordion-content:not(#{&}__tr--expanded):nth-last-child(2)
|
|
298
|
+
&__td:first-of-type {
|
|
299
|
+
&,
|
|
300
|
+
&::before,
|
|
301
|
+
&::after {
|
|
302
|
+
border-radius: 0 0 0 0.5rem;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
&--outline tbody &__tr:last-of-type &__td:last-of-type,
|
|
306
|
+
&--outline
|
|
307
|
+
tbody
|
|
308
|
+
&__tr#{&}__tr--has-accordion-content:not(#{&}__tr--expanded):nth-last-child(2)
|
|
309
|
+
&__td:last-of-type {
|
|
310
|
+
&,
|
|
311
|
+
&::before,
|
|
312
|
+
&::after {
|
|
313
|
+
border-radius: 0 0 0.5rem 0;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
&--outline tbody &__tr#{&}__tr__accordion_content:last-of-type &__td {
|
|
317
|
+
&,
|
|
318
|
+
&::before,
|
|
319
|
+
&::after {
|
|
320
|
+
border-radius: 0 0 0.5rem 0.5rem;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
// stylelint-disable-next-line
|
|
282
325
|
&__tr--has-accordion-content:not(&__tr--disabled) {
|
|
283
326
|
cursor: pointer;
|
|
284
327
|
}
|
|
328
|
+
|
|
285
329
|
// prevent selection while animating – useful when user double-clicks
|
|
286
330
|
// TODO: Our SASS version does not support :has – so we may use this in future
|
|
287
331
|
// &__tr--has-accordion-content:has(& + &__tr__accordion_content--animating) {
|
|
@@ -34,6 +34,22 @@
|
|
|
34
34
|
&__size--large .dnb-table__th {
|
|
35
35
|
padding-top: 1.5rem;
|
|
36
36
|
}
|
|
37
|
+
|
|
38
|
+
position: relative; // because of bottom border
|
|
39
|
+
&::after {
|
|
40
|
+
@include tableBorder();
|
|
41
|
+
border-bottom: var(--border);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* stylelint-disable */
|
|
45
|
+
& tbody:first-child,
|
|
46
|
+
& > :not(thead) + tbody {
|
|
47
|
+
.dnb-table__tr:first-of-type .dnb-table__th::after,
|
|
48
|
+
.dnb-table__tr:first-of-type .dnb-table__td::after {
|
|
49
|
+
border-top: none;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/* stylelint-enable */
|
|
37
53
|
}
|
|
38
54
|
}
|
|
39
55
|
|
|
@@ -41,7 +57,8 @@
|
|
|
41
57
|
padding: 2rem 1rem 0;
|
|
42
58
|
|
|
43
59
|
&--empty {
|
|
44
|
-
padding: 0
|
|
60
|
+
padding: 0;
|
|
61
|
+
min-height: 1.5rem;
|
|
45
62
|
}
|
|
46
63
|
|
|
47
64
|
.dnb-spacing & .dnb-h--large:not([class*='space__top']) {
|
|
@@ -53,7 +70,8 @@
|
|
|
53
70
|
padding-bottom: 1.25rem; // because of 8px scrollbar
|
|
54
71
|
|
|
55
72
|
&--empty {
|
|
56
|
-
padding
|
|
73
|
+
padding: 0;
|
|
74
|
+
min-height: 1rem;
|
|
57
75
|
}
|
|
58
76
|
}
|
|
59
77
|
|
|
@@ -15,83 +15,19 @@
|
|
|
15
15
|
border-right: none;
|
|
16
16
|
border-bottom: none;
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
&:first-of-type::after {
|
|
20
|
-
border-left: none;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
&:not(#{&}--outline) tbody &__tr:last-of-type &__td::after {
|
|
24
|
-
border-bottom: var(--border);
|
|
25
18
|
}
|
|
26
19
|
|
|
27
20
|
// table outline
|
|
28
|
-
&--outline
|
|
29
|
-
|
|
30
|
-
&:last-of-type::after {
|
|
31
|
-
@include tableBorder();
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&:first-of-type::after {
|
|
35
|
-
border-left: var(--outline);
|
|
36
|
-
}
|
|
37
|
-
&:last-of-type::after {
|
|
38
|
-
border-right: var(--outline);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/* stylelint-disable */
|
|
21
|
+
&--outline {
|
|
22
|
+
position: relative;
|
|
42
23
|
&,
|
|
43
|
-
&::before,
|
|
44
24
|
&::after {
|
|
45
|
-
|
|
25
|
+
border-radius: 0.5rem;
|
|
46
26
|
}
|
|
47
|
-
/* stylelint-enable */
|
|
48
|
-
}
|
|
49
|
-
&--outline tbody &__tr:last-of-type &__td {
|
|
50
27
|
&::after {
|
|
51
28
|
@include tableBorder();
|
|
52
|
-
|
|
53
|
-
border
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
&--outline thead &__th:first-of-type {
|
|
57
|
-
&,
|
|
58
|
-
&::after {
|
|
59
|
-
border-radius: 0.5rem 0 0 0;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
&--outline thead &__th:last-of-type {
|
|
63
|
-
&,
|
|
64
|
-
&::after {
|
|
65
|
-
border-radius: 0 0.5rem 0 0;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
&--outline tbody &__tr:last-of-type &__td:first-of-type,
|
|
69
|
-
&--outline
|
|
70
|
-
tbody
|
|
71
|
-
&__tr#{&}__tr--has-accordion-content:not(#{&}__tr--expanded):nth-last-child(2)
|
|
72
|
-
&__td:first-of-type {
|
|
73
|
-
&,
|
|
74
|
-
&::before,
|
|
75
|
-
&::after {
|
|
76
|
-
border-radius: 0 0 0 0.5rem;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
&--outline tbody &__tr:last-of-type &__td:last-of-type,
|
|
80
|
-
&--outline
|
|
81
|
-
tbody
|
|
82
|
-
&__tr#{&}__tr--has-accordion-content:not(#{&}__tr--expanded):nth-last-child(2)
|
|
83
|
-
&__td:last-of-type {
|
|
84
|
-
&,
|
|
85
|
-
&::before,
|
|
86
|
-
&::after {
|
|
87
|
-
border-radius: 0 0 0.5rem 0;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
&--outline tbody &__tr#{&}__tr__accordion_content:last-of-type &__td {
|
|
91
|
-
&,
|
|
92
|
-
&::before,
|
|
93
|
-
&::after {
|
|
94
|
-
border-radius: 0 0 0.5rem 0.5rem;
|
|
29
|
+
z-index: 3;
|
|
30
|
+
border: var(--outline);
|
|
95
31
|
}
|
|
96
32
|
}
|
|
97
33
|
|
|
@@ -114,6 +50,36 @@
|
|
|
114
50
|
}
|
|
115
51
|
}
|
|
116
52
|
|
|
53
|
+
// no thead, should have th in body
|
|
54
|
+
/* stylelint-disable */
|
|
55
|
+
&--outline tbody:first-child &__tr:first-of-type &__th,
|
|
56
|
+
&--outline > :not(thead) + tbody &__tr:first-of-type &__th {
|
|
57
|
+
&::after {
|
|
58
|
+
border-top: var(--outline);
|
|
59
|
+
}
|
|
60
|
+
&:first-of-type,
|
|
61
|
+
&:first-of-type::after {
|
|
62
|
+
border-radius: 0.5rem 0 0 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
&--outline > tbody:first-child &__tr:first-of-type &__td,
|
|
66
|
+
&--outline > :not(thead) + tbody &__tr:first-of-type &__td {
|
|
67
|
+
&::after {
|
|
68
|
+
border-top: var(--outline);
|
|
69
|
+
}
|
|
70
|
+
&:last-of-type,
|
|
71
|
+
&:last-of-type::after {
|
|
72
|
+
border-radius: 0 0.5rem 0 0;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
&:not(&--outline)#{&}--border > tbody:first-child &__td:last-of-type,
|
|
76
|
+
&:not(&--outline)#{&}--border > :not(thead) + tbody &__td:last-of-type {
|
|
77
|
+
&::after {
|
|
78
|
+
border-right: var(--border);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
/* stylelint-enable */
|
|
82
|
+
|
|
117
83
|
// spacing
|
|
118
84
|
&__td--no-spacing,
|
|
119
85
|
td#{&}__td--no-spacing {
|
|
@@ -12,46 +12,53 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
// table border
|
|
15
|
-
&--
|
|
15
|
+
&--border tbody &__th {
|
|
16
16
|
&::after {
|
|
17
17
|
@include tableBorder();
|
|
18
18
|
|
|
19
|
-
border-top: var(--
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&:first-of-type::after {
|
|
23
|
-
border-left: var(--outline);
|
|
24
|
-
}
|
|
25
|
-
&:last-of-type::after {
|
|
26
|
-
border-right: var(--outline);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
&--outline thead &__th:first-of-type {
|
|
30
|
-
&,
|
|
31
|
-
&::after {
|
|
32
|
-
border-radius: 0.5rem 0 0 0;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
&--outline thead &__th:last-of-type {
|
|
36
|
-
&,
|
|
37
|
-
&::after {
|
|
38
|
-
border-radius: 0 0.5rem 0 0;
|
|
19
|
+
border-top: var(--border);
|
|
39
20
|
}
|
|
40
21
|
}
|
|
41
|
-
&--outline
|
|
42
|
-
|
|
22
|
+
// &--outline thead &__th {
|
|
23
|
+
// &::after {
|
|
24
|
+
// @include tableBorder();
|
|
43
25
|
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
&--outline tbody &__tr:last-of-type &__th {
|
|
47
|
-
&::after {
|
|
48
|
-
@include tableBorder();
|
|
26
|
+
// border-top: var(--outline);
|
|
27
|
+
// }
|
|
49
28
|
|
|
50
|
-
|
|
51
|
-
|
|
29
|
+
// &:first-of-type::after {
|
|
30
|
+
// border-left: var(--outline);
|
|
31
|
+
// }
|
|
32
|
+
// &:last-of-type::after {
|
|
33
|
+
// border-right: var(--outline);
|
|
34
|
+
// }
|
|
35
|
+
// }
|
|
36
|
+
// &--outline thead &__th:first-of-type {
|
|
37
|
+
// &,
|
|
38
|
+
// &::after {
|
|
39
|
+
// border-radius: 0.5rem 0 0 0;
|
|
40
|
+
// }
|
|
41
|
+
// }
|
|
42
|
+
// &--outline thead &__th:last-of-type {
|
|
43
|
+
// &,
|
|
44
|
+
// &::after {
|
|
45
|
+
// border-radius: 0 0.5rem 0 0;
|
|
46
|
+
// }
|
|
47
|
+
// }
|
|
48
|
+
// &--outline tbody &__th:first-of-type::after {
|
|
49
|
+
// @include tableBorder();
|
|
52
50
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
// border-left: var(--outline);
|
|
52
|
+
// }
|
|
53
|
+
// &--outline tbody &__tr:last-of-type &__th {
|
|
54
|
+
// &::after {
|
|
55
|
+
// @include tableBorder();
|
|
56
|
+
|
|
57
|
+
// border-bottom: var(--outline);
|
|
58
|
+
// }
|
|
59
|
+
|
|
60
|
+
// &:first-of-type::after {
|
|
61
|
+
// border-radius: 0 0 0 0.5rem;
|
|
62
|
+
// }
|
|
63
|
+
// }
|
|
57
64
|
}
|
|
@@ -3,18 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
@
|
|
7
|
-
content: '';
|
|
8
|
-
position: absolute;
|
|
9
|
-
top: 0;
|
|
10
|
-
left: 0;
|
|
11
|
-
right: 0;
|
|
12
|
-
bottom: 0;
|
|
13
|
-
z-index: 1;
|
|
14
|
-
|
|
15
|
-
pointer-events: none;
|
|
16
|
-
}
|
|
17
|
-
|
|
6
|
+
@import './dnb-table-mixins.scss';
|
|
18
7
|
@import './_table-header-buttons.scss';
|
|
19
8
|
|
|
20
9
|
.dnb-table {
|
|
@@ -39,9 +28,19 @@
|
|
|
39
28
|
|
|
40
29
|
& > caption {
|
|
41
30
|
caption-side: bottom;
|
|
42
|
-
|
|
31
|
+
padding: 0.5rem 0 0.5rem 1rem;
|
|
43
32
|
|
|
44
33
|
font-size: var(--font-size-basis);
|
|
34
|
+
background-color: var(--color-white);
|
|
35
|
+
text-align: left;
|
|
36
|
+
}
|
|
37
|
+
&--border > caption:not(.dnb-sr-only) {
|
|
38
|
+
position: relative;
|
|
39
|
+
&::after {
|
|
40
|
+
@include tableBorder();
|
|
41
|
+
top: -0.0625rem; // so we are behind the border-bottom (end of table)
|
|
42
|
+
border-top: var(--border);
|
|
43
|
+
}
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
&.dnb-skeleton {
|
|
File without changes
|
|
File without changes
|