@dnb/eufemia 9.23.0-beta.3 → 9.23.1

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.
Files changed (227) hide show
  1. package/CHANGELOG.md +15 -11
  2. package/cjs/components/accordion/style/dnb-accordion.css +92 -0
  3. package/cjs/components/accordion/style/dnb-accordion.min.css +1 -1
  4. package/cjs/components/accordion/style/dnb-accordion.scss +3 -0
  5. package/cjs/components/autocomplete/style/dnb-autocomplete.css +1652 -64
  6. package/cjs/components/autocomplete/style/dnb-autocomplete.min.css +2 -2
  7. package/cjs/components/autocomplete/style/dnb-autocomplete.scss +1 -2
  8. package/cjs/components/button/style/dnb-button.css +192 -0
  9. package/cjs/components/button/style/dnb-button.min.css +1 -1
  10. package/cjs/components/button/style/dnb-button.scss +1 -1
  11. package/cjs/components/date-picker/style/dnb-date-picker.css +729 -0
  12. package/cjs/components/date-picker/style/dnb-date-picker.min.css +2 -2
  13. package/cjs/components/dialog/style/dnb-dialog.css +1883 -79
  14. package/cjs/components/dialog/style/dnb-dialog.min.css +1 -1
  15. package/cjs/components/dialog/style/dnb-dialog.scss +1 -1
  16. package/cjs/components/drawer/Drawer.js +2 -1
  17. package/cjs/components/drawer/style/dnb-drawer.css +1883 -79
  18. package/cjs/components/drawer/style/dnb-drawer.min.css +1 -1
  19. package/cjs/components/drawer/style/dnb-drawer.scss +1 -1
  20. package/cjs/components/dropdown/style/dnb-dropdown.css +192 -0
  21. package/cjs/components/dropdown/style/dnb-dropdown.min.css +1 -1
  22. package/cjs/components/dropdown/style/themes/dnb-dropdown-theme-ui.css +12 -11
  23. package/cjs/components/dropdown/style/themes/dnb-dropdown-theme-ui.min.css +1 -1
  24. package/cjs/components/dropdown/style/themes/dnb-dropdown-theme-ui.scss +4 -1
  25. package/cjs/components/global-error/style/dnb-global-error.css +192 -0
  26. package/cjs/components/global-error/style/dnb-global-error.min.css +1 -1
  27. package/cjs/components/global-status/style/dnb-global-status.css +192 -0
  28. package/cjs/components/global-status/style/dnb-global-status.min.css +1 -1
  29. package/cjs/components/help-button/style/dnb-help-button.css +773 -0
  30. package/cjs/components/help-button/style/dnb-help-button.min.css +1 -1
  31. package/cjs/components/help-button/style/dnb-help-button.scss +3 -0
  32. package/cjs/components/icon/Icon.d.ts +1 -1
  33. package/cjs/components/icon-primary/IconPrimary.d.ts +1 -1
  34. package/cjs/components/info-card/InfoCard.js +2 -2
  35. package/cjs/components/info-card/style/_info-card.scss +3 -0
  36. package/cjs/components/info-card/style/dnb-info-card.css +4 -1
  37. package/cjs/components/info-card/style/dnb-info-card.min.css +1 -1
  38. package/cjs/components/input/style/dnb-input.css +371 -0
  39. package/cjs/components/input/style/dnb-input.min.css +1 -1
  40. package/cjs/components/input/style/dnb-input.scss +1 -0
  41. package/cjs/components/input-masked/style/dnb-input-masked.css +371 -0
  42. package/cjs/components/input-masked/style/dnb-input-masked.min.css +1 -1
  43. package/cjs/components/modal/style/_modal.scss +6 -0
  44. package/cjs/components/modal/style/dnb-modal.css +282 -1
  45. package/cjs/components/modal/style/dnb-modal.min.css +1 -1
  46. package/cjs/components/modal/style/dnb-modal.scss +1 -1
  47. package/cjs/components/pagination/style/dnb-pagination.css +192 -0
  48. package/cjs/components/pagination/style/dnb-pagination.min.css +1 -1
  49. package/cjs/components/slider/style/dnb-slider.css +192 -0
  50. package/cjs/components/slider/style/dnb-slider.min.css +1 -1
  51. package/cjs/components/step-indicator/style/dnb-step-indicator.css +773 -0
  52. package/cjs/components/step-indicator/style/dnb-step-indicator.min.css +1 -1
  53. package/cjs/components/step-indicator/style/dnb-step-indicator.scss +2 -0
  54. package/cjs/components/tabs/Tabs.d.ts +6 -0
  55. package/cjs/components/tabs/Tabs.js +193 -162
  56. package/cjs/components/tabs/style/_tabs.scss +59 -61
  57. package/cjs/components/tabs/style/dnb-tabs.css +176 -180
  58. package/cjs/components/tabs/style/dnb-tabs.min.css +1 -1
  59. package/cjs/components/tag/style/_tag.scss +10 -6
  60. package/cjs/components/tag/style/dnb-tag.css +205 -5
  61. package/cjs/components/tag/style/dnb-tag.min.css +1 -1
  62. package/cjs/components/toggle-button/style/dnb-toggle-button.css +192 -0
  63. package/cjs/components/toggle-button/style/dnb-toggle-button.min.css +1 -1
  64. package/cjs/components/toggle-button/style/dnb-toggle-button.scss +2 -0
  65. package/cjs/shared/Eufemia.js +1 -1
  66. package/cjs/shared/hooks/usePropsWithContext.js +1 -1
  67. package/cjs/style/dnb-ui-components.css +207 -187
  68. package/cjs/style/dnb-ui-components.min.css +3 -3
  69. package/cjs/style/themes/theme-open-banking/dnb-theme-open-banking.css +12 -11
  70. package/cjs/style/themes/theme-open-banking/dnb-theme-open-banking.min.css +1 -1
  71. package/cjs/style/themes/theme-ui/dnb-theme-ui.css +12 -11
  72. package/cjs/style/themes/theme-ui/dnb-theme-ui.min.css +1 -1
  73. package/components/accordion/style/dnb-accordion.css +92 -0
  74. package/components/accordion/style/dnb-accordion.min.css +1 -1
  75. package/components/accordion/style/dnb-accordion.scss +3 -0
  76. package/components/autocomplete/style/dnb-autocomplete.css +1652 -64
  77. package/components/autocomplete/style/dnb-autocomplete.min.css +2 -2
  78. package/components/autocomplete/style/dnb-autocomplete.scss +1 -2
  79. package/components/button/style/dnb-button.css +192 -0
  80. package/components/button/style/dnb-button.min.css +1 -1
  81. package/components/button/style/dnb-button.scss +1 -1
  82. package/components/date-picker/style/dnb-date-picker.css +729 -0
  83. package/components/date-picker/style/dnb-date-picker.min.css +2 -2
  84. package/components/dialog/style/dnb-dialog.css +1883 -79
  85. package/components/dialog/style/dnb-dialog.min.css +1 -1
  86. package/components/dialog/style/dnb-dialog.scss +1 -1
  87. package/components/drawer/Drawer.js +2 -1
  88. package/components/drawer/style/dnb-drawer.css +1883 -79
  89. package/components/drawer/style/dnb-drawer.min.css +1 -1
  90. package/components/drawer/style/dnb-drawer.scss +1 -1
  91. package/components/dropdown/style/dnb-dropdown.css +192 -0
  92. package/components/dropdown/style/dnb-dropdown.min.css +1 -1
  93. package/components/dropdown/style/themes/dnb-dropdown-theme-ui.css +12 -11
  94. package/components/dropdown/style/themes/dnb-dropdown-theme-ui.min.css +1 -1
  95. package/components/dropdown/style/themes/dnb-dropdown-theme-ui.scss +4 -1
  96. package/components/global-error/style/dnb-global-error.css +192 -0
  97. package/components/global-error/style/dnb-global-error.min.css +1 -1
  98. package/components/global-status/style/dnb-global-status.css +192 -0
  99. package/components/global-status/style/dnb-global-status.min.css +1 -1
  100. package/components/help-button/style/dnb-help-button.css +773 -0
  101. package/components/help-button/style/dnb-help-button.min.css +1 -1
  102. package/components/help-button/style/dnb-help-button.scss +3 -0
  103. package/components/icon/Icon.d.ts +1 -1
  104. package/components/icon-primary/IconPrimary.d.ts +1 -1
  105. package/components/info-card/InfoCard.js +2 -2
  106. package/components/info-card/style/_info-card.scss +3 -0
  107. package/components/info-card/style/dnb-info-card.css +4 -1
  108. package/components/info-card/style/dnb-info-card.min.css +1 -1
  109. package/components/input/style/dnb-input.css +371 -0
  110. package/components/input/style/dnb-input.min.css +1 -1
  111. package/components/input/style/dnb-input.scss +1 -0
  112. package/components/input-masked/style/dnb-input-masked.css +371 -0
  113. package/components/input-masked/style/dnb-input-masked.min.css +1 -1
  114. package/components/modal/style/_modal.scss +6 -0
  115. package/components/modal/style/dnb-modal.css +282 -1
  116. package/components/modal/style/dnb-modal.min.css +1 -1
  117. package/components/modal/style/dnb-modal.scss +1 -1
  118. package/components/pagination/style/dnb-pagination.css +192 -0
  119. package/components/pagination/style/dnb-pagination.min.css +1 -1
  120. package/components/slider/style/dnb-slider.css +192 -0
  121. package/components/slider/style/dnb-slider.min.css +1 -1
  122. package/components/step-indicator/style/dnb-step-indicator.css +773 -0
  123. package/components/step-indicator/style/dnb-step-indicator.min.css +1 -1
  124. package/components/step-indicator/style/dnb-step-indicator.scss +2 -0
  125. package/components/tabs/Tabs.d.ts +6 -0
  126. package/components/tabs/Tabs.js +192 -161
  127. package/components/tabs/style/_tabs.scss +59 -61
  128. package/components/tabs/style/dnb-tabs.css +176 -180
  129. package/components/tabs/style/dnb-tabs.min.css +1 -1
  130. package/components/tag/style/_tag.scss +10 -6
  131. package/components/tag/style/dnb-tag.css +205 -5
  132. package/components/tag/style/dnb-tag.min.css +1 -1
  133. package/components/toggle-button/style/dnb-toggle-button.css +192 -0
  134. package/components/toggle-button/style/dnb-toggle-button.min.css +1 -1
  135. package/components/toggle-button/style/dnb-toggle-button.scss +2 -0
  136. package/es/components/accordion/style/dnb-accordion.css +92 -0
  137. package/es/components/accordion/style/dnb-accordion.min.css +1 -1
  138. package/es/components/accordion/style/dnb-accordion.scss +3 -0
  139. package/es/components/autocomplete/style/dnb-autocomplete.css +1652 -64
  140. package/es/components/autocomplete/style/dnb-autocomplete.min.css +2 -2
  141. package/es/components/autocomplete/style/dnb-autocomplete.scss +1 -2
  142. package/es/components/button/style/dnb-button.css +192 -0
  143. package/es/components/button/style/dnb-button.min.css +1 -1
  144. package/es/components/button/style/dnb-button.scss +1 -1
  145. package/es/components/date-picker/style/dnb-date-picker.css +729 -0
  146. package/es/components/date-picker/style/dnb-date-picker.min.css +2 -2
  147. package/es/components/dialog/style/dnb-dialog.css +1883 -79
  148. package/es/components/dialog/style/dnb-dialog.min.css +1 -1
  149. package/es/components/dialog/style/dnb-dialog.scss +1 -1
  150. package/es/components/drawer/Drawer.js +2 -1
  151. package/es/components/drawer/style/dnb-drawer.css +1883 -79
  152. package/es/components/drawer/style/dnb-drawer.min.css +1 -1
  153. package/es/components/drawer/style/dnb-drawer.scss +1 -1
  154. package/es/components/dropdown/style/dnb-dropdown.css +192 -0
  155. package/es/components/dropdown/style/dnb-dropdown.min.css +1 -1
  156. package/es/components/dropdown/style/themes/dnb-dropdown-theme-ui.css +12 -11
  157. package/es/components/dropdown/style/themes/dnb-dropdown-theme-ui.min.css +1 -1
  158. package/es/components/dropdown/style/themes/dnb-dropdown-theme-ui.scss +4 -1
  159. package/es/components/global-error/style/dnb-global-error.css +192 -0
  160. package/es/components/global-error/style/dnb-global-error.min.css +1 -1
  161. package/es/components/global-status/style/dnb-global-status.css +192 -0
  162. package/es/components/global-status/style/dnb-global-status.min.css +1 -1
  163. package/es/components/help-button/style/dnb-help-button.css +773 -0
  164. package/es/components/help-button/style/dnb-help-button.min.css +1 -1
  165. package/es/components/help-button/style/dnb-help-button.scss +3 -0
  166. package/es/components/icon/Icon.d.ts +1 -1
  167. package/es/components/icon-primary/IconPrimary.d.ts +1 -1
  168. package/es/components/info-card/InfoCard.js +2 -2
  169. package/es/components/info-card/style/_info-card.scss +3 -0
  170. package/es/components/info-card/style/dnb-info-card.css +4 -1
  171. package/es/components/info-card/style/dnb-info-card.min.css +1 -1
  172. package/es/components/input/style/dnb-input.css +371 -0
  173. package/es/components/input/style/dnb-input.min.css +1 -1
  174. package/es/components/input/style/dnb-input.scss +1 -0
  175. package/es/components/input-masked/style/dnb-input-masked.css +371 -0
  176. package/es/components/input-masked/style/dnb-input-masked.min.css +1 -1
  177. package/es/components/modal/style/_modal.scss +6 -0
  178. package/es/components/modal/style/dnb-modal.css +282 -1
  179. package/es/components/modal/style/dnb-modal.min.css +1 -1
  180. package/es/components/modal/style/dnb-modal.scss +1 -1
  181. package/es/components/pagination/style/dnb-pagination.css +192 -0
  182. package/es/components/pagination/style/dnb-pagination.min.css +1 -1
  183. package/es/components/slider/style/dnb-slider.css +192 -0
  184. package/es/components/slider/style/dnb-slider.min.css +1 -1
  185. package/es/components/step-indicator/style/dnb-step-indicator.css +773 -0
  186. package/es/components/step-indicator/style/dnb-step-indicator.min.css +1 -1
  187. package/es/components/step-indicator/style/dnb-step-indicator.scss +2 -0
  188. package/es/components/tabs/Tabs.d.ts +6 -0
  189. package/es/components/tabs/Tabs.js +134 -108
  190. package/es/components/tabs/style/_tabs.scss +59 -61
  191. package/es/components/tabs/style/dnb-tabs.css +176 -180
  192. package/es/components/tabs/style/dnb-tabs.min.css +1 -1
  193. package/es/components/tag/style/_tag.scss +10 -6
  194. package/es/components/tag/style/dnb-tag.css +205 -5
  195. package/es/components/tag/style/dnb-tag.min.css +1 -1
  196. package/es/components/toggle-button/style/dnb-toggle-button.css +192 -0
  197. package/es/components/toggle-button/style/dnb-toggle-button.min.css +1 -1
  198. package/es/components/toggle-button/style/dnb-toggle-button.scss +2 -0
  199. package/es/shared/Eufemia.js +1 -1
  200. package/es/shared/hooks/usePropsWithContext.js +1 -1
  201. package/es/style/dnb-ui-components.css +207 -187
  202. package/es/style/dnb-ui-components.min.css +3 -3
  203. package/es/style/themes/theme-open-banking/dnb-theme-open-banking.css +12 -11
  204. package/es/style/themes/theme-open-banking/dnb-theme-open-banking.min.css +1 -1
  205. package/es/style/themes/theme-ui/dnb-theme-ui.css +12 -11
  206. package/es/style/themes/theme-ui/dnb-theme-ui.min.css +1 -1
  207. package/esm/dnb-ui-basis.min.mjs +1 -1
  208. package/esm/dnb-ui-components.min.mjs +1 -1
  209. package/esm/dnb-ui-elements.min.mjs +1 -1
  210. package/esm/dnb-ui-extensions.min.mjs +1 -1
  211. package/esm/dnb-ui-lib.min.mjs +3 -3
  212. package/esm/dnb-ui-web-components.min.mjs +2 -2
  213. package/package.json +1 -1
  214. package/shared/Eufemia.js +1 -1
  215. package/shared/hooks/usePropsWithContext.js +1 -1
  216. package/style/dnb-ui-components.css +207 -187
  217. package/style/dnb-ui-components.min.css +3 -3
  218. package/style/themes/theme-open-banking/dnb-theme-open-banking.css +12 -11
  219. package/style/themes/theme-open-banking/dnb-theme-open-banking.min.css +1 -1
  220. package/style/themes/theme-ui/dnb-theme-ui.css +12 -11
  221. package/style/themes/theme-ui/dnb-theme-ui.min.css +1 -1
  222. package/umd/dnb-ui-basis.min.js +1 -1
  223. package/umd/dnb-ui-components.min.js +3 -3
  224. package/umd/dnb-ui-elements.min.js +1 -1
  225. package/umd/dnb-ui-extensions.min.js +1 -1
  226. package/umd/dnb-ui-lib.min.js +3 -3
  227. package/umd/dnb-ui-web-components.min.js +3 -3
@@ -150,6 +150,198 @@
150
150
  -ms-flex: none;
151
151
  flex: none; } }
152
152
 
153
+ /*
154
+ * DNB Tooltip
155
+ *
156
+ */
157
+ /**
158
+ * This file is only used to make components independent
159
+ * so that they can get imported individually, without the core styles
160
+ *
161
+ */
162
+ /*
163
+ * Utilities
164
+ */
165
+ /*
166
+ * Scopes
167
+ *
168
+ */
169
+ /*
170
+ * Document Reset
171
+ *
172
+ */
173
+ .dnb-tooltip {
174
+ font-family: 'DNB', sans-serif;
175
+ font-family: var(--font-family-default);
176
+ font-weight: normal;
177
+ font-weight: var(--font-weight-basis);
178
+ font-size: 1rem;
179
+ font-size: var(--font-size-small);
180
+ font-style: normal;
181
+ line-height: 1.5rem;
182
+ line-height: var(--line-height-basis);
183
+ color: #333;
184
+ color: var(--color-black-80, #333);
185
+ -moz-osx-font-smoothing: grayscale;
186
+ -webkit-font-smoothing: antialiased;
187
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
188
+ /**
189
+ * Ensure consistency and use the same as HTML reset -> html {...}
190
+ * between base and code package
191
+ */
192
+ -moz-tab-size: 4;
193
+ -o-tab-size: 4;
194
+ tab-size: 4;
195
+ -ms-text-size-adjust: 100%;
196
+ -webkit-text-size-adjust: 100%;
197
+ word-break: break-word;
198
+ /**
199
+ * 1. Remove repeating backgrounds in all browsers (opinionated).
200
+ * 2. Add border box sizing in all browsers (opinionated).
201
+ */
202
+ /**
203
+ * 1. Add text decoration inheritance in all browsers (opinionated).
204
+ * 2. Add vertical alignment inheritance in all browsers (opinionated).
205
+ */
206
+ margin: 0;
207
+ padding: 0; }
208
+ .dnb-tooltip *,
209
+ .dnb-tooltip ::before,
210
+ .dnb-tooltip ::after {
211
+ background-repeat: no-repeat;
212
+ /* 1 */
213
+ -webkit-box-sizing: border-box;
214
+ box-sizing: border-box;
215
+ /* 2 */ }
216
+ .dnb-tooltip ::before,
217
+ .dnb-tooltip ::after {
218
+ text-decoration: inherit;
219
+ /* 1 */
220
+ vertical-align: inherit;
221
+ /* 2 */ }
222
+
223
+ /*
224
+ * Tooltip component
225
+ *
226
+ */
227
+ .dnb-tooltip {
228
+ position: absolute;
229
+ z-index: 3100;
230
+ display: -webkit-box;
231
+ display: -ms-flexbox;
232
+ display: flex;
233
+ -webkit-box-orient: vertical;
234
+ -webkit-box-direction: normal;
235
+ -ms-flex-direction: column;
236
+ flex-direction: column;
237
+ -webkit-box-pack: center;
238
+ -ms-flex-pack: center;
239
+ justify-content: center;
240
+ -webkit-box-align: center;
241
+ -ms-flex-align: center;
242
+ align-items: center;
243
+ padding: 0 1rem;
244
+ opacity: 0;
245
+ visibility: hidden;
246
+ -webkit-transition: opacity 200ms ease-out;
247
+ transition: opacity 200ms ease-out; }
248
+ .dnb-tooltip--large {
249
+ padding: 0.25rem 1rem; }
250
+ .dnb-tooltip--animate_position {
251
+ -webkit-transition: all 300ms ease-in-out, opacity 200ms ease-out;
252
+ transition: all 300ms ease-in-out, opacity 200ms ease-out; }
253
+ .dnb-tooltip--active {
254
+ visibility: visible;
255
+ /*
256
+ because of the first "show" we also use animation
257
+ also, use forwards because of the usage of visibility
258
+ */
259
+ -webkit-animation: show-tooltip 200ms ease-out forwards;
260
+ animation: show-tooltip 200ms ease-out forwards; }
261
+ html[data-visual-test] .dnb-tooltip--active, .dnb-tooltip--active.dnb-tooltip--no-animation {
262
+ -webkit-animation: show-tooltip 1ms ease-out forwards;
263
+ animation: show-tooltip 1ms ease-out forwards; }
264
+ .dnb-tooltip--hide {
265
+ visibility: visible;
266
+ -webkit-animation: hide-tooltip 200ms ease-in-out forwards;
267
+ animation: hide-tooltip 200ms ease-in-out forwards; }
268
+ .dnb-tooltip--hide.dnb-tooltip--no-animation {
269
+ -webkit-animation: hide-tooltip 1ms ease-out forwards;
270
+ animation: hide-tooltip 1ms ease-out forwards; }
271
+ .dnb-tooltip--fixed {
272
+ position: fixed; }
273
+ html[data-visual-test] .dnb-tooltip--hide {
274
+ -webkit-animation: hide-tooltip 1ms ease-out 1s forwards;
275
+ animation: hide-tooltip 1ms ease-out 1s forwards; }
276
+ .dnb-tooltip__content {
277
+ min-width: 2rem;
278
+ min-height: 1.5rem;
279
+ padding: 0; }
280
+ .dnb-tooltip__arrow {
281
+ position: absolute;
282
+ pointer-events: none;
283
+ margin: 0;
284
+ width: 1rem;
285
+ height: 0.5rem;
286
+ overflow: hidden; }
287
+ .dnb-tooltip__arrow::before {
288
+ content: '';
289
+ position: absolute;
290
+ bottom: 0;
291
+ left: 0;
292
+ width: 1rem;
293
+ height: 1rem;
294
+ -webkit-transform: translateY(70%) rotate(45deg);
295
+ transform: translateY(70%) rotate(45deg); }
296
+ .dnb-tooltip__arrow__position--bottom {
297
+ top: -0.5rem; }
298
+ .dnb-tooltip__arrow__position--top {
299
+ bottom: -0.5rem;
300
+ -webkit-transform: rotate(180deg);
301
+ transform: rotate(180deg); }
302
+ .dnb-tooltip__arrow__position--left {
303
+ right: -0.75rem;
304
+ margin-right: 3px;
305
+ -webkit-transform: rotate(90deg);
306
+ transform: rotate(90deg); }
307
+ .dnb-tooltip__arrow__position--right {
308
+ left: -0.75rem;
309
+ margin-left: 3px;
310
+ -webkit-transform: rotate(270deg);
311
+ transform: rotate(270deg); }
312
+ .dnb-tooltip__arrow__arrow--left {
313
+ -ms-flex-item-align: start;
314
+ align-self: flex-start; }
315
+ .dnb-tooltip__arrow__arrow--right {
316
+ -ms-flex-item-align: end;
317
+ align-self: flex-end; }
318
+
319
+ @-webkit-keyframes show-tooltip {
320
+ from {
321
+ opacity: 0; }
322
+ to {
323
+ opacity: 1; } }
324
+
325
+ @keyframes show-tooltip {
326
+ from {
327
+ opacity: 0; }
328
+ to {
329
+ opacity: 1; } }
330
+
331
+ @-webkit-keyframes hide-tooltip {
332
+ from {
333
+ opacity: 1; }
334
+ to {
335
+ opacity: 0;
336
+ visibility: hidden; } }
337
+
338
+ @keyframes hide-tooltip {
339
+ from {
340
+ opacity: 1; }
341
+ to {
342
+ opacity: 0;
343
+ visibility: hidden; } }
344
+
153
345
  /*
154
346
  * DNB FormStatus
155
347
  *
@@ -711,6 +903,185 @@ button.dnb-button::-moz-focus-inner {
711
903
  -ms-flex: none;
712
904
  flex: none; } }
713
905
 
906
+ /*
907
+ * DNB Tooltip
908
+ *
909
+ */
910
+ /**
911
+ * This file is only used to make components independent
912
+ * so that they can get imported individually, without the core styles
913
+ *
914
+ */
915
+ /*
916
+ * Utilities
917
+ */
918
+ /*
919
+ * Scopes
920
+ *
921
+ */
922
+ /*
923
+ * Document Reset
924
+ *
925
+ */
926
+ .dnb-tooltip {
927
+ font-family: 'DNB', sans-serif;
928
+ font-family: var(--font-family-default);
929
+ font-weight: normal;
930
+ font-weight: var(--font-weight-basis);
931
+ font-size: 1rem;
932
+ font-size: var(--font-size-small);
933
+ font-style: normal;
934
+ line-height: 1.5rem;
935
+ line-height: var(--line-height-basis);
936
+ color: #333;
937
+ color: var(--color-black-80, #333);
938
+ -moz-osx-font-smoothing: grayscale;
939
+ -webkit-font-smoothing: antialiased;
940
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
941
+ /**
942
+ * Ensure consistency and use the same as HTML reset -> html {...}
943
+ * between base and code package
944
+ */
945
+ -moz-tab-size: 4;
946
+ -o-tab-size: 4;
947
+ tab-size: 4;
948
+ -ms-text-size-adjust: 100%;
949
+ -webkit-text-size-adjust: 100%;
950
+ word-break: break-word;
951
+ /**
952
+ * 1. Remove repeating backgrounds in all browsers (opinionated).
953
+ * 2. Add border box sizing in all browsers (opinionated).
954
+ */
955
+ /**
956
+ * 1. Add text decoration inheritance in all browsers (opinionated).
957
+ * 2. Add vertical alignment inheritance in all browsers (opinionated).
958
+ */
959
+ margin: 0;
960
+ padding: 0; }
961
+ .dnb-tooltip *,
962
+ .dnb-tooltip ::before,
963
+ .dnb-tooltip ::after {
964
+ background-repeat: no-repeat;
965
+ /* 1 */
966
+ -webkit-box-sizing: border-box;
967
+ box-sizing: border-box;
968
+ /* 2 */ }
969
+ .dnb-tooltip ::before,
970
+ .dnb-tooltip ::after {
971
+ text-decoration: inherit;
972
+ /* 1 */
973
+ vertical-align: inherit;
974
+ /* 2 */ }
975
+
976
+ /*
977
+ * Tooltip component
978
+ *
979
+ */
980
+ .dnb-tooltip {
981
+ position: absolute;
982
+ z-index: 3100;
983
+ display: -webkit-box;
984
+ display: -ms-flexbox;
985
+ display: flex;
986
+ -webkit-box-orient: vertical;
987
+ -webkit-box-direction: normal;
988
+ -ms-flex-direction: column;
989
+ flex-direction: column;
990
+ -webkit-box-pack: center;
991
+ -ms-flex-pack: center;
992
+ justify-content: center;
993
+ -webkit-box-align: center;
994
+ -ms-flex-align: center;
995
+ align-items: center;
996
+ padding: 0 1rem;
997
+ opacity: 0;
998
+ visibility: hidden;
999
+ -webkit-transition: opacity 200ms ease-out;
1000
+ transition: opacity 200ms ease-out; }
1001
+ .dnb-tooltip--large {
1002
+ padding: 0.25rem 1rem; }
1003
+ .dnb-tooltip--animate_position {
1004
+ -webkit-transition: all 300ms ease-in-out, opacity 200ms ease-out;
1005
+ transition: all 300ms ease-in-out, opacity 200ms ease-out; }
1006
+ .dnb-tooltip--active {
1007
+ visibility: visible;
1008
+ /*
1009
+ because of the first "show" we also use animation
1010
+ also, use forwards because of the usage of visibility
1011
+ */
1012
+ -webkit-animation: show-tooltip 200ms ease-out forwards;
1013
+ animation: show-tooltip 200ms ease-out forwards; }
1014
+ html[data-visual-test] .dnb-tooltip--active, .dnb-tooltip--active.dnb-tooltip--no-animation {
1015
+ -webkit-animation: show-tooltip 1ms ease-out forwards;
1016
+ animation: show-tooltip 1ms ease-out forwards; }
1017
+ .dnb-tooltip--hide {
1018
+ visibility: visible;
1019
+ -webkit-animation: hide-tooltip 200ms ease-in-out forwards;
1020
+ animation: hide-tooltip 200ms ease-in-out forwards; }
1021
+ .dnb-tooltip--hide.dnb-tooltip--no-animation {
1022
+ -webkit-animation: hide-tooltip 1ms ease-out forwards;
1023
+ animation: hide-tooltip 1ms ease-out forwards; }
1024
+ .dnb-tooltip--fixed {
1025
+ position: fixed; }
1026
+ html[data-visual-test] .dnb-tooltip--hide {
1027
+ -webkit-animation: hide-tooltip 1ms ease-out 1s forwards;
1028
+ animation: hide-tooltip 1ms ease-out 1s forwards; }
1029
+ .dnb-tooltip__content {
1030
+ min-width: 2rem;
1031
+ min-height: 1.5rem;
1032
+ padding: 0; }
1033
+ .dnb-tooltip__arrow {
1034
+ position: absolute;
1035
+ pointer-events: none;
1036
+ margin: 0;
1037
+ width: 1rem;
1038
+ height: 0.5rem;
1039
+ overflow: hidden; }
1040
+ .dnb-tooltip__arrow::before {
1041
+ content: '';
1042
+ position: absolute;
1043
+ bottom: 0;
1044
+ left: 0;
1045
+ width: 1rem;
1046
+ height: 1rem;
1047
+ -webkit-transform: translateY(70%) rotate(45deg);
1048
+ transform: translateY(70%) rotate(45deg); }
1049
+ .dnb-tooltip__arrow__position--bottom {
1050
+ top: -0.5rem; }
1051
+ .dnb-tooltip__arrow__position--top {
1052
+ bottom: -0.5rem;
1053
+ -webkit-transform: rotate(180deg);
1054
+ transform: rotate(180deg); }
1055
+ .dnb-tooltip__arrow__position--left {
1056
+ right: -0.75rem;
1057
+ margin-right: 3px;
1058
+ -webkit-transform: rotate(90deg);
1059
+ transform: rotate(90deg); }
1060
+ .dnb-tooltip__arrow__position--right {
1061
+ left: -0.75rem;
1062
+ margin-left: 3px;
1063
+ -webkit-transform: rotate(270deg);
1064
+ transform: rotate(270deg); }
1065
+ .dnb-tooltip__arrow__arrow--left {
1066
+ -ms-flex-item-align: start;
1067
+ align-self: flex-start; }
1068
+ .dnb-tooltip__arrow__arrow--right {
1069
+ -ms-flex-item-align: end;
1070
+ align-self: flex-end; }
1071
+
1072
+ @keyframes show-tooltip {
1073
+ from {
1074
+ opacity: 0; }
1075
+ to {
1076
+ opacity: 1; } }
1077
+
1078
+ @keyframes hide-tooltip {
1079
+ from {
1080
+ opacity: 1; }
1081
+ to {
1082
+ opacity: 0;
1083
+ visibility: hidden; } }
1084
+
714
1085
  /*
715
1086
  * DNB FormLabel
716
1087
  *
@@ -1450,7 +1821,7 @@ legend.dnb-form-label {
1450
1821
  transform: translateY(-0.0625rem); } }
1451
1822
 
1452
1823
  /*
1453
- * DNB FormLabel
1824
+ * DNB Dropdown
1454
1825
  *
1455
1826
  */
1456
1827
  /**
@@ -1469,72 +1840,944 @@ legend.dnb-form-label {
1469
1840
  * Document Reset
1470
1841
  *
1471
1842
  */
1472
- .dnb-form-label {
1473
- font-family: 'DNB', sans-serif;
1474
- font-family: var(--font-family-default);
1475
- font-weight: normal;
1476
- font-weight: var(--font-weight-basis);
1477
- font-size: 1rem;
1478
- font-size: var(--font-size-small);
1479
- font-style: normal;
1480
- line-height: 1.5rem;
1481
- line-height: var(--line-height-basis);
1482
- color: #333;
1483
- color: var(--color-black-80, #333);
1484
- -moz-osx-font-smoothing: grayscale;
1485
- -webkit-font-smoothing: antialiased;
1486
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
1487
- /**
1488
- * Ensure consistency and use the same as HTML reset -> html {...}
1489
- * between base and code package
1490
- */
1491
- -moz-tab-size: 4;
1492
- -o-tab-size: 4;
1493
- tab-size: 4;
1494
- -ms-text-size-adjust: 100%;
1495
- -webkit-text-size-adjust: 100%;
1496
- word-break: break-word;
1497
- /**
1498
- * 1. Remove repeating backgrounds in all browsers (opinionated).
1499
- * 2. Add border box sizing in all browsers (opinionated).
1500
- */
1501
- /**
1502
- * 1. Add text decoration inheritance in all browsers (opinionated).
1503
- * 2. Add vertical alignment inheritance in all browsers (opinionated).
1504
- */
1505
- margin: 0;
1506
- padding: 0; }
1507
- .dnb-form-label *,
1508
- .dnb-form-label ::before,
1509
- .dnb-form-label ::after {
1510
- background-repeat: no-repeat;
1511
- /* 1 */
1512
- -webkit-box-sizing: border-box;
1513
- box-sizing: border-box;
1514
- /* 2 */ }
1515
- .dnb-form-label ::before,
1516
- .dnb-form-label ::after {
1517
- text-decoration: inherit;
1518
- /* 1 */
1519
- vertical-align: inherit;
1520
- /* 2 */ }
1521
-
1522
1843
  /*
1523
- * FormLabel component
1844
+ * DNB icon
1845
+ *
1846
+ */
1847
+ /**
1848
+ * This file is only used to make components independent
1849
+ * so that they can get imported individually, without the core styles
1524
1850
  *
1525
1851
  */
1526
- .dnb-form-label {
1527
- display: inline-block;
1528
- width: auto;
1529
- padding: 0;
1530
- margin-right: 1rem;
1531
- text-align: left;
1532
- vertical-align: baseline;
1533
- white-space: pre-wrap;
1534
- word-break: normal;
1535
- font-size: 1.125rem;
1536
- font-size: var(--font-size-basis);
1537
- color: inherit; }
1852
+ /*
1853
+ * Utilities
1854
+ */
1855
+ /*
1856
+ * Scopes
1857
+ *
1858
+ */
1859
+ /*
1860
+ * Document Reset
1861
+ *
1862
+ */
1863
+ /*
1864
+ * Icon component
1865
+ *
1866
+ */
1867
+ .dnb-icon {
1868
+ display: inline-block;
1869
+ vertical-align: middle;
1870
+ font-size: 1rem;
1871
+ line-height: 1rem;
1872
+ color: inherit;
1873
+ width: 1em;
1874
+ height: 1em; }
1875
+ .dnb-icon img,
1876
+ .dnb-icon svg {
1877
+ width: inherit;
1878
+ height: inherit;
1879
+ shape-rendering: geometricPrecision;
1880
+ vertical-align: top; }
1881
+ .dnb-icon svg[width='100%'] {
1882
+ width: inherit; }
1883
+ .dnb-icon svg[height='100%'] {
1884
+ height: inherit; }
1885
+ .dnb-icon--inherit-color svg:not([fill]),
1886
+ .dnb-icon--inherit-color svg [fill] {
1887
+ fill: currentColor; }
1888
+ .dnb-icon--inherit-color svg [stroke] {
1889
+ stroke: currentColor; }
1890
+ .dnb-icon--small {
1891
+ font-size: 0.75rem; }
1892
+ .dnb-icon--default {
1893
+ font-size: 1rem; }
1894
+ .dnb-icon--medium {
1895
+ font-size: 1.5rem; }
1896
+ .dnb-icon--large {
1897
+ font-size: 2rem; }
1898
+ .dnb-icon--x-large {
1899
+ font-size: 2.5rem; }
1900
+ .dnb-icon--xx-large {
1901
+ font-size: 3rem; }
1902
+ .dnb-icon--custom-size {
1903
+ width: auto;
1904
+ height: auto; }
1905
+ .dnb-icon--auto {
1906
+ font-size: 1em; }
1907
+ .dnb-icon--auto > .dnb-icon--wrapper {
1908
+ display: -webkit-inline-box;
1909
+ display: -ms-inline-flexbox;
1910
+ display: inline-flex;
1911
+ -webkit-box-align: center;
1912
+ -ms-flex-align: center;
1913
+ align-items: center;
1914
+ -webkit-box-pack: center;
1915
+ -ms-flex-pack: center;
1916
+ justify-content: center; }
1917
+ h1 .dnb-icon,
1918
+ h2 .dnb-icon,
1919
+ h3 .dnb-icon,
1920
+ h4 .dnb-icon,
1921
+ h5 .dnb-icon,
1922
+ h6 .dnb-icon {
1923
+ vertical-align: middle; }
1924
+ .dnb-icon.dnb-skeleton {
1925
+ color: #ebebeb !important;
1926
+ color: var(--skeleton-color) !important; }
1927
+ .dnb-icon.dnb-skeleton::before, .dnb-icon.dnb-skeleton::after {
1928
+ content: none !important; }
1929
+ @media screen and (-ms-high-contrast: none) {
1930
+ .dnb-icon {
1931
+ -webkit-box-flex: 0;
1932
+ -ms-flex: none;
1933
+ flex: none; } }
1934
+
1935
+ /*
1936
+ * DNB Button
1937
+ *
1938
+ */
1939
+ /**
1940
+ * This file is only used to make components independent
1941
+ * so that they can get imported individually, without the core styles
1942
+ *
1943
+ */
1944
+ /*
1945
+ * Utilities
1946
+ */
1947
+ /*
1948
+ * Scopes
1949
+ *
1950
+ */
1951
+ /*
1952
+ * Document Reset
1953
+ *
1954
+ */
1955
+ /*
1956
+ * DNB icon
1957
+ *
1958
+ */
1959
+ /**
1960
+ * This file is only used to make components independent
1961
+ * so that they can get imported individually, without the core styles
1962
+ *
1963
+ */
1964
+ /*
1965
+ * Utilities
1966
+ */
1967
+ /*
1968
+ * Scopes
1969
+ *
1970
+ */
1971
+ /*
1972
+ * Document Reset
1973
+ *
1974
+ */
1975
+ /*
1976
+ * Icon component
1977
+ *
1978
+ */
1979
+ .dnb-icon {
1980
+ display: inline-block;
1981
+ vertical-align: middle;
1982
+ font-size: 1rem;
1983
+ line-height: 1rem;
1984
+ color: inherit;
1985
+ width: 1em;
1986
+ height: 1em; }
1987
+ .dnb-icon img,
1988
+ .dnb-icon svg {
1989
+ width: inherit;
1990
+ height: inherit;
1991
+ shape-rendering: geometricPrecision;
1992
+ vertical-align: top; }
1993
+ .dnb-icon svg[width='100%'] {
1994
+ width: inherit; }
1995
+ .dnb-icon svg[height='100%'] {
1996
+ height: inherit; }
1997
+ .dnb-icon--inherit-color svg:not([fill]),
1998
+ .dnb-icon--inherit-color svg [fill] {
1999
+ fill: currentColor; }
2000
+ .dnb-icon--inherit-color svg [stroke] {
2001
+ stroke: currentColor; }
2002
+ .dnb-icon--small {
2003
+ font-size: 0.75rem; }
2004
+ .dnb-icon--default {
2005
+ font-size: 1rem; }
2006
+ .dnb-icon--medium {
2007
+ font-size: 1.5rem; }
2008
+ .dnb-icon--large {
2009
+ font-size: 2rem; }
2010
+ .dnb-icon--x-large {
2011
+ font-size: 2.5rem; }
2012
+ .dnb-icon--xx-large {
2013
+ font-size: 3rem; }
2014
+ .dnb-icon--custom-size {
2015
+ width: auto;
2016
+ height: auto; }
2017
+ .dnb-icon--auto {
2018
+ font-size: 1em; }
2019
+ .dnb-icon--auto > .dnb-icon--wrapper {
2020
+ display: -webkit-inline-box;
2021
+ display: -ms-inline-flexbox;
2022
+ display: inline-flex;
2023
+ -webkit-box-align: center;
2024
+ -ms-flex-align: center;
2025
+ align-items: center;
2026
+ -webkit-box-pack: center;
2027
+ -ms-flex-pack: center;
2028
+ justify-content: center; }
2029
+ h1 .dnb-icon,
2030
+ h2 .dnb-icon,
2031
+ h3 .dnb-icon,
2032
+ h4 .dnb-icon,
2033
+ h5 .dnb-icon,
2034
+ h6 .dnb-icon {
2035
+ vertical-align: middle; }
2036
+ .dnb-icon.dnb-skeleton {
2037
+ color: #ebebeb !important;
2038
+ color: var(--skeleton-color) !important; }
2039
+ .dnb-icon.dnb-skeleton::before, .dnb-icon.dnb-skeleton::after {
2040
+ content: none !important; }
2041
+ @media screen and (-ms-high-contrast: none) {
2042
+ .dnb-icon {
2043
+ -webkit-box-flex: 0;
2044
+ -ms-flex: none;
2045
+ flex: none; } }
2046
+
2047
+ /*
2048
+ * DNB Tooltip
2049
+ *
2050
+ */
2051
+ /**
2052
+ * This file is only used to make components independent
2053
+ * so that they can get imported individually, without the core styles
2054
+ *
2055
+ */
2056
+ /*
2057
+ * Utilities
2058
+ */
2059
+ /*
2060
+ * Scopes
2061
+ *
2062
+ */
2063
+ /*
2064
+ * Document Reset
2065
+ *
2066
+ */
2067
+ .dnb-tooltip {
2068
+ font-family: 'DNB', sans-serif;
2069
+ font-family: var(--font-family-default);
2070
+ font-weight: normal;
2071
+ font-weight: var(--font-weight-basis);
2072
+ font-size: 1rem;
2073
+ font-size: var(--font-size-small);
2074
+ font-style: normal;
2075
+ line-height: 1.5rem;
2076
+ line-height: var(--line-height-basis);
2077
+ color: #333;
2078
+ color: var(--color-black-80, #333);
2079
+ -moz-osx-font-smoothing: grayscale;
2080
+ -webkit-font-smoothing: antialiased;
2081
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
2082
+ /**
2083
+ * Ensure consistency and use the same as HTML reset -> html {...}
2084
+ * between base and code package
2085
+ */
2086
+ -moz-tab-size: 4;
2087
+ -o-tab-size: 4;
2088
+ tab-size: 4;
2089
+ -ms-text-size-adjust: 100%;
2090
+ -webkit-text-size-adjust: 100%;
2091
+ word-break: break-word;
2092
+ /**
2093
+ * 1. Remove repeating backgrounds in all browsers (opinionated).
2094
+ * 2. Add border box sizing in all browsers (opinionated).
2095
+ */
2096
+ /**
2097
+ * 1. Add text decoration inheritance in all browsers (opinionated).
2098
+ * 2. Add vertical alignment inheritance in all browsers (opinionated).
2099
+ */
2100
+ margin: 0;
2101
+ padding: 0; }
2102
+ .dnb-tooltip *,
2103
+ .dnb-tooltip ::before,
2104
+ .dnb-tooltip ::after {
2105
+ background-repeat: no-repeat;
2106
+ /* 1 */
2107
+ -webkit-box-sizing: border-box;
2108
+ box-sizing: border-box;
2109
+ /* 2 */ }
2110
+ .dnb-tooltip ::before,
2111
+ .dnb-tooltip ::after {
2112
+ text-decoration: inherit;
2113
+ /* 1 */
2114
+ vertical-align: inherit;
2115
+ /* 2 */ }
2116
+
2117
+ /*
2118
+ * Tooltip component
2119
+ *
2120
+ */
2121
+ .dnb-tooltip {
2122
+ position: absolute;
2123
+ z-index: 3100;
2124
+ display: -webkit-box;
2125
+ display: -ms-flexbox;
2126
+ display: flex;
2127
+ -webkit-box-orient: vertical;
2128
+ -webkit-box-direction: normal;
2129
+ -ms-flex-direction: column;
2130
+ flex-direction: column;
2131
+ -webkit-box-pack: center;
2132
+ -ms-flex-pack: center;
2133
+ justify-content: center;
2134
+ -webkit-box-align: center;
2135
+ -ms-flex-align: center;
2136
+ align-items: center;
2137
+ padding: 0 1rem;
2138
+ opacity: 0;
2139
+ visibility: hidden;
2140
+ -webkit-transition: opacity 200ms ease-out;
2141
+ transition: opacity 200ms ease-out; }
2142
+ .dnb-tooltip--large {
2143
+ padding: 0.25rem 1rem; }
2144
+ .dnb-tooltip--animate_position {
2145
+ -webkit-transition: all 300ms ease-in-out, opacity 200ms ease-out;
2146
+ transition: all 300ms ease-in-out, opacity 200ms ease-out; }
2147
+ .dnb-tooltip--active {
2148
+ visibility: visible;
2149
+ /*
2150
+ because of the first "show" we also use animation
2151
+ also, use forwards because of the usage of visibility
2152
+ */
2153
+ -webkit-animation: show-tooltip 200ms ease-out forwards;
2154
+ animation: show-tooltip 200ms ease-out forwards; }
2155
+ html[data-visual-test] .dnb-tooltip--active, .dnb-tooltip--active.dnb-tooltip--no-animation {
2156
+ -webkit-animation: show-tooltip 1ms ease-out forwards;
2157
+ animation: show-tooltip 1ms ease-out forwards; }
2158
+ .dnb-tooltip--hide {
2159
+ visibility: visible;
2160
+ -webkit-animation: hide-tooltip 200ms ease-in-out forwards;
2161
+ animation: hide-tooltip 200ms ease-in-out forwards; }
2162
+ .dnb-tooltip--hide.dnb-tooltip--no-animation {
2163
+ -webkit-animation: hide-tooltip 1ms ease-out forwards;
2164
+ animation: hide-tooltip 1ms ease-out forwards; }
2165
+ .dnb-tooltip--fixed {
2166
+ position: fixed; }
2167
+ html[data-visual-test] .dnb-tooltip--hide {
2168
+ -webkit-animation: hide-tooltip 1ms ease-out 1s forwards;
2169
+ animation: hide-tooltip 1ms ease-out 1s forwards; }
2170
+ .dnb-tooltip__content {
2171
+ min-width: 2rem;
2172
+ min-height: 1.5rem;
2173
+ padding: 0; }
2174
+ .dnb-tooltip__arrow {
2175
+ position: absolute;
2176
+ pointer-events: none;
2177
+ margin: 0;
2178
+ width: 1rem;
2179
+ height: 0.5rem;
2180
+ overflow: hidden; }
2181
+ .dnb-tooltip__arrow::before {
2182
+ content: '';
2183
+ position: absolute;
2184
+ bottom: 0;
2185
+ left: 0;
2186
+ width: 1rem;
2187
+ height: 1rem;
2188
+ -webkit-transform: translateY(70%) rotate(45deg);
2189
+ transform: translateY(70%) rotate(45deg); }
2190
+ .dnb-tooltip__arrow__position--bottom {
2191
+ top: -0.5rem; }
2192
+ .dnb-tooltip__arrow__position--top {
2193
+ bottom: -0.5rem;
2194
+ -webkit-transform: rotate(180deg);
2195
+ transform: rotate(180deg); }
2196
+ .dnb-tooltip__arrow__position--left {
2197
+ right: -0.75rem;
2198
+ margin-right: 3px;
2199
+ -webkit-transform: rotate(90deg);
2200
+ transform: rotate(90deg); }
2201
+ .dnb-tooltip__arrow__position--right {
2202
+ left: -0.75rem;
2203
+ margin-left: 3px;
2204
+ -webkit-transform: rotate(270deg);
2205
+ transform: rotate(270deg); }
2206
+ .dnb-tooltip__arrow__arrow--left {
2207
+ -ms-flex-item-align: start;
2208
+ align-self: flex-start; }
2209
+ .dnb-tooltip__arrow__arrow--right {
2210
+ -ms-flex-item-align: end;
2211
+ align-self: flex-end; }
2212
+
2213
+ @keyframes show-tooltip {
2214
+ from {
2215
+ opacity: 0; }
2216
+ to {
2217
+ opacity: 1; } }
2218
+
2219
+ @keyframes hide-tooltip {
2220
+ from {
2221
+ opacity: 1; }
2222
+ to {
2223
+ opacity: 0;
2224
+ visibility: hidden; } }
2225
+
2226
+ /*
2227
+ * DNB FormStatus
2228
+ *
2229
+ */
2230
+ /**
2231
+ * This file is only used to make components independent
2232
+ * so that they can get imported individually, without the core styles
2233
+ *
2234
+ */
2235
+ /*
2236
+ * Utilities
2237
+ */
2238
+ /*
2239
+ * Scopes
2240
+ *
2241
+ */
2242
+ /*
2243
+ * Document Reset
2244
+ *
2245
+ */
2246
+ .dnb-form-status {
2247
+ font-family: 'DNB', sans-serif;
2248
+ font-family: var(--font-family-default);
2249
+ font-weight: normal;
2250
+ font-weight: var(--font-weight-basis);
2251
+ font-size: 1rem;
2252
+ font-size: var(--font-size-small);
2253
+ font-style: normal;
2254
+ line-height: 1.5rem;
2255
+ line-height: var(--line-height-basis);
2256
+ color: #333;
2257
+ color: var(--color-black-80, #333);
2258
+ -moz-osx-font-smoothing: grayscale;
2259
+ -webkit-font-smoothing: antialiased;
2260
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
2261
+ /**
2262
+ * Ensure consistency and use the same as HTML reset -> html {...}
2263
+ * between base and code package
2264
+ */
2265
+ -moz-tab-size: 4;
2266
+ -o-tab-size: 4;
2267
+ tab-size: 4;
2268
+ -ms-text-size-adjust: 100%;
2269
+ -webkit-text-size-adjust: 100%;
2270
+ word-break: break-word;
2271
+ /**
2272
+ * 1. Remove repeating backgrounds in all browsers (opinionated).
2273
+ * 2. Add border box sizing in all browsers (opinionated).
2274
+ */
2275
+ /**
2276
+ * 1. Add text decoration inheritance in all browsers (opinionated).
2277
+ * 2. Add vertical alignment inheritance in all browsers (opinionated).
2278
+ */
2279
+ margin: 0;
2280
+ padding: 0; }
2281
+ .dnb-form-status *,
2282
+ .dnb-form-status ::before,
2283
+ .dnb-form-status ::after {
2284
+ background-repeat: no-repeat;
2285
+ /* 1 */
2286
+ -webkit-box-sizing: border-box;
2287
+ box-sizing: border-box;
2288
+ /* 2 */ }
2289
+ .dnb-form-status ::before,
2290
+ .dnb-form-status ::after {
2291
+ text-decoration: inherit;
2292
+ /* 1 */
2293
+ vertical-align: inherit;
2294
+ /* 2 */ }
2295
+
2296
+ /*
2297
+ * FormStatus component
2298
+ *
2299
+ */
2300
+ :root {
2301
+ --form-status-radius: 0.25rem; }
2302
+
2303
+ .dnb-form-status {
2304
+ display: -webkit-box;
2305
+ display: -ms-flexbox;
2306
+ display: flex;
2307
+ opacity: 1;
2308
+ -webkit-transition: height 400ms cubic-bezier(0.42, 0, 0, 1), opacity 400ms cubic-bezier(0.42, 0, 0, 1), margin 400ms cubic-bezier(0.42, 0, 0, 1), padding 400ms cubic-bezier(0.42, 0, 0, 1);
2309
+ transition: height 400ms cubic-bezier(0.42, 0, 0, 1), opacity 400ms cubic-bezier(0.42, 0, 0, 1), margin 400ms cubic-bezier(0.42, 0, 0, 1), padding 400ms cubic-bezier(0.42, 0, 0, 1); }
2310
+ .dnb-form-status--hidden {
2311
+ will-change: height, opacity, margin, padding;
2312
+ width: 0;
2313
+ height: 0;
2314
+ opacity: 0; }
2315
+ .dnb-form-status--is-animating {
2316
+ overflow: hidden;
2317
+ width: auto; }
2318
+ .dnb-form-status--disappear, .dnb-form-status--hidden {
2319
+ margin: 0 !important;
2320
+ padding: 0 !important; }
2321
+ .dnb-form-status__shell {
2322
+ display: -webkit-box;
2323
+ display: -ms-flexbox;
2324
+ display: flex;
2325
+ -webkit-box-pack: start;
2326
+ -ms-flex-pack: start;
2327
+ justify-content: flex-start;
2328
+ -webkit-box-align: start;
2329
+ -ms-flex-align: start;
2330
+ align-items: flex-start;
2331
+ min-width: inherit;
2332
+ border-radius: 0.25rem;
2333
+ border-radius: var(--form-status-radius); }
2334
+ .dnb-form-status__text {
2335
+ padding: 0.625rem 1rem;
2336
+ cursor: text;
2337
+ color: inherit;
2338
+ line-height: 1.25rem;
2339
+ line-height: var(--line-height-small);
2340
+ font-size: 1rem;
2341
+ font-size: var(--font-size-small);
2342
+ white-space: normal; }
2343
+ button .dnb-form-status__text {
2344
+ cursor: inherit; }
2345
+ .dnb-form-status__text .dnb-anchor {
2346
+ font-size: inherit; }
2347
+ .dnb-icon + .dnb-form-status__text {
2348
+ padding-left: 0.5rem; }
2349
+ .dnb-form-status__shell > .dnb-icon {
2350
+ display: -webkit-box;
2351
+ display: -ms-flexbox;
2352
+ display: flex;
2353
+ -webkit-box-pack: center;
2354
+ -ms-flex-pack: center;
2355
+ justify-content: center;
2356
+ -webkit-box-align: center;
2357
+ -ms-flex-align: center;
2358
+ align-items: center;
2359
+ margin: 0.3333333em 0.3333333em 0.3333333em 0.6666666em; }
2360
+ .dnb-form-status__size--large .dnb-form-status__text {
2361
+ padding-top: 1.125rem;
2362
+ padding-bottom: 1.125rem; }
2363
+ .dnb-form-status__size--large .dnb-form-status__shell > .dnb-icon {
2364
+ margin-top: 0.6666666em;
2365
+ margin-bottom: 0.6666666em; }
2366
+ .dnb-form-status--stretch {
2367
+ -webkit-box-flex: 1;
2368
+ -ms-flex-positive: 1;
2369
+ flex-grow: 1; }
2370
+ .dnb-form-status--stretch .dnb-form-status__shell {
2371
+ width: 100%; }
2372
+ .dnb-form-status--stretch .dnb-form-status__text {
2373
+ max-width: 47rem; }
2374
+ .dnb-form-status[hidden] {
2375
+ display: none; }
2376
+ .dnb-form-status--no-animation,
2377
+ html[data-visual-test] .dnb-form-status {
2378
+ -webkit-transition-duration: 1ms !important;
2379
+ transition-duration: 1ms !important; }
2380
+ @media screen and (-ms-high-contrast: none) {
2381
+ .dnb-form-status__shell > .dnb-icon {
2382
+ border-width: 1px; } }
2383
+
2384
+ .dnb-button {
2385
+ font-family: 'DNB', sans-serif;
2386
+ font-family: var(--font-family-default);
2387
+ font-weight: normal;
2388
+ font-weight: var(--font-weight-basis);
2389
+ font-size: 1rem;
2390
+ font-size: var(--font-size-small);
2391
+ font-style: normal;
2392
+ line-height: 1.5rem;
2393
+ line-height: var(--line-height-basis);
2394
+ color: #333;
2395
+ color: var(--color-black-80, #333);
2396
+ -moz-osx-font-smoothing: grayscale;
2397
+ -webkit-font-smoothing: antialiased;
2398
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
2399
+ /**
2400
+ * Ensure consistency and use the same as HTML reset -> html {...}
2401
+ * between base and code package
2402
+ */
2403
+ -moz-tab-size: 4;
2404
+ -o-tab-size: 4;
2405
+ tab-size: 4;
2406
+ -ms-text-size-adjust: 100%;
2407
+ -webkit-text-size-adjust: 100%;
2408
+ word-break: break-word;
2409
+ /**
2410
+ * 1. Remove repeating backgrounds in all browsers (opinionated).
2411
+ * 2. Add border box sizing in all browsers (opinionated).
2412
+ */
2413
+ /**
2414
+ * 1. Add text decoration inheritance in all browsers (opinionated).
2415
+ * 2. Add vertical alignment inheritance in all browsers (opinionated).
2416
+ */
2417
+ margin: 0;
2418
+ padding: 0; }
2419
+ .dnb-button *,
2420
+ .dnb-button ::before,
2421
+ .dnb-button ::after {
2422
+ background-repeat: no-repeat;
2423
+ /* 1 */
2424
+ -webkit-box-sizing: border-box;
2425
+ box-sizing: border-box;
2426
+ /* 2 */ }
2427
+ .dnb-button ::before,
2428
+ .dnb-button ::after {
2429
+ text-decoration: inherit;
2430
+ /* 1 */
2431
+ vertical-align: inherit;
2432
+ /* 2 */ }
2433
+
2434
+ /*
2435
+ * Button component
2436
+ *
2437
+ */
2438
+ :root {
2439
+ --button-font-size: var(--font-size-basis);
2440
+ --button-font-size-small: var(--font-size-small);
2441
+ --button-width: 2.5rem;
2442
+ --button-height: 2.5rem;
2443
+ --button-width--small: 1.5rem;
2444
+ --button-height--small: 1.5rem;
2445
+ --button-width--medium: 2rem;
2446
+ --button-height--medium: 2rem;
2447
+ --button-width--large: 3rem;
2448
+ --button-height--large: 3rem;
2449
+ --button-icon-size: 1rem;
2450
+ --button-border-width: 0.0625rem;
2451
+ --button-border-width--hover: 0.1875rem;
2452
+ --button-border-radius: calc(var(--button-height)/2);
2453
+ --button-border-radius: calc(var(--button-height) / 2);
2454
+ --button-border-radius--small: calc(var(--button-height--small)/2);
2455
+ --button-border-radius--small: calc(var(--button-height--small) / 2);
2456
+ --button-border-radius--medium: calc(var(--button-height--medium)/2);
2457
+ --button-border-radius--medium: calc(var(--button-height--medium) / 2);
2458
+ --button-border-radius--large: calc(var(--button-height--large)/2);
2459
+ --button-border-radius--large: calc(var(--button-height--large) / 2); }
2460
+
2461
+ .dnb-button {
2462
+ position: relative;
2463
+ -moz-user-select: none;
2464
+ -ms-user-select: none;
2465
+ user-select: none;
2466
+ -webkit-user-select: none;
2467
+ cursor: pointer;
2468
+ white-space: nowrap;
2469
+ display: -webkit-inline-box;
2470
+ display: -ms-inline-flexbox;
2471
+ display: inline-flex;
2472
+ -webkit-box-align: center;
2473
+ -ms-flex-align: center;
2474
+ align-items: center;
2475
+ -webkit-box-pack: center;
2476
+ -ms-flex-pack: center;
2477
+ justify-content: center;
2478
+ width: 2.5rem;
2479
+ width: var(--button-width);
2480
+ height: auto;
2481
+ padding: 0;
2482
+ border: 0.0625rem solid transparent;
2483
+ border: var(--button-border-width) solid transparent;
2484
+ border-radius: 1.25rem;
2485
+ border-radius: calc(2.5rem / 2);
2486
+ border-radius: var(--button-border-radius);
2487
+ text-decoration: none;
2488
+ font-size: 1rem;
2489
+ font-size: var(--font-size-small);
2490
+ /* stylelint-disable-next-line */ }
2491
+ .dnb-button--wrap {
2492
+ word-wrap: break-word;
2493
+ white-space: normal; }
2494
+ .dnb-button,
2495
+ .dnb-core-style .dnb-button {
2496
+ line-height: 2.5rem;
2497
+ line-height: var(--button-height); }
2498
+ .dnb-button__text {
2499
+ margin: 0.5rem 0;
2500
+ font-size: 1.125rem;
2501
+ font-size: var(--button-font-size);
2502
+ line-height: 1.5rem;
2503
+ line-height: var(--line-height-basis);
2504
+ color: inherit;
2505
+ -webkit-transform: translateY(-0.03125rem);
2506
+ transform: translateY(-0.03125rem); }
2507
+ .dnb-button__text [data-os='linux'] {
2508
+ -webkit-transform: translateY(-0.035rem);
2509
+ transform: translateY(-0.035rem); }
2510
+ .dnb-button__alignment {
2511
+ display: inline-block;
2512
+ width: 0; }
2513
+ .dnb-button__bounding {
2514
+ position: absolute;
2515
+ top: 0;
2516
+ bottom: 0;
2517
+ right: 0;
2518
+ left: 0;
2519
+ -webkit-transform: scale(1.1, 1.4);
2520
+ transform: scale(1.1, 1.4);
2521
+ background-color: transparent;
2522
+ border-radius: 1.25rem;
2523
+ border-radius: calc(2.5rem / 2);
2524
+ border-radius: var(--button-border-radius); }
2525
+ .dnb-button--has-text {
2526
+ padding-left: 1.5rem;
2527
+ padding-right: 1.5rem; }
2528
+ .dnb-button--size-small {
2529
+ width: 1.5rem;
2530
+ width: var(--button-width--small);
2531
+ font-size: 1rem;
2532
+ font-size: var(--button-font-size-small);
2533
+ border-radius: 0.75rem;
2534
+ border-radius: calc(1.5rem / 2);
2535
+ border-radius: var(--button-border-radius--small); }
2536
+ .dnb-button--size-small,
2537
+ .dnb-core-style .dnb-button--size-small {
2538
+ line-height: 1.5rem;
2539
+ line-height: var(--button-height--small); }
2540
+ .dnb-button--size-small .dnb-button__text {
2541
+ margin: 0; }
2542
+ .dnb-button--has-text.dnb-button--size-small {
2543
+ padding-left: 1rem;
2544
+ padding-right: 1rem; }
2545
+ .dnb-button--has-text.dnb-button--icon-position-left.dnb-button--size-small {
2546
+ padding-left: 0.5rem; }
2547
+ .dnb-button--has-text.dnb-button--icon-position-right.dnb-button--size-small {
2548
+ padding-right: 0.5rem; }
2549
+ .dnb-button--size-medium {
2550
+ width: 2rem;
2551
+ width: var(--button-width--medium);
2552
+ border-radius: 1rem;
2553
+ border-radius: calc(2rem / 2);
2554
+ border-radius: var(--button-border-radius--medium); }
2555
+ .dnb-button--size-medium,
2556
+ .dnb-core-style .dnb-button--size-medium {
2557
+ line-height: 2rem;
2558
+ line-height: var(--button-height--medium); }
2559
+ .dnb-button--size-medium .dnb-button__text {
2560
+ margin: 0; }
2561
+ .dnb-button--has-text.dnb-button--size-medium {
2562
+ padding-left: 1rem;
2563
+ padding-right: 1rem; }
2564
+ .dnb-button--has-text.dnb-button--icon-position-left.dnb-button--size-medium {
2565
+ padding-left: 0.5rem; }
2566
+ .dnb-button--has-text.dnb-button--icon-position-right.dnb-button--size-medium {
2567
+ padding-right: 0.5rem; }
2568
+ .dnb-button--size-large {
2569
+ width: 3rem;
2570
+ width: var(--button-width--large);
2571
+ border-radius: 1.5rem;
2572
+ border-radius: calc(3rem / 2);
2573
+ border-radius: var(--button-border-radius--large); }
2574
+ .dnb-button--size-large,
2575
+ .dnb-core-style .dnb-button--size-large {
2576
+ line-height: 3rem;
2577
+ line-height: var(--button-height--large); }
2578
+ .dnb-button--has-text.dnb-button--size-large {
2579
+ padding-left: 2rem;
2580
+ padding-right: 2rem; }
2581
+ .dnb-button--has-text.dnb-button--icon-position-left.dnb-button--size-large {
2582
+ padding-left: 1rem; }
2583
+ .dnb-button--has-text.dnb-button--icon-position-right.dnb-button--size-large {
2584
+ padding-right: 1rem; }
2585
+ .dnb-button--has-text {
2586
+ width: auto; }
2587
+ .dnb-button--has-text .dnb-button__icon {
2588
+ margin: 0 0.5rem;
2589
+ margin: 0 calc(1rem / 2);
2590
+ margin: 0 calc(var(--button-icon-size)/2);
2591
+ margin: 0 calc(var(--button-icon-size) / 2); }
2592
+ .dnb-button--has-text.dnb-button--icon-position-left {
2593
+ padding-left: 0.5rem; }
2594
+ .dnb-button--has-text.dnb-button--icon-position-right {
2595
+ padding-right: 0.5rem; }
2596
+ .dnb-button--has-text.dnb-button--has-icon .dnb-button__icon {
2597
+ -webkit-box-ordinal-group: 3;
2598
+ -ms-flex-order: 2;
2599
+ order: 2; }
2600
+ .dnb-button--has-text.dnb-button--has-icon .dnb-button__text {
2601
+ -webkit-box-ordinal-group: 2;
2602
+ -ms-flex-order: 1;
2603
+ order: 1; }
2604
+ .dnb-button:not(.dnb-button--has-text) .dnb-button__icon {
2605
+ width: inherit; }
2606
+ .dnb-button__icon.dnb-icon svg:not([width]):not([height]) {
2607
+ width: 1rem;
2608
+ width: var(--button-icon-size);
2609
+ height: 1rem;
2610
+ height: var(--button-icon-size); }
2611
+ [href] > .dnb-button__icon.dnb-icon {
2612
+ line-height: 1.125rem;
2613
+ line-height: var(--button-font-size); }
2614
+ .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 {
2615
+ -webkit-box-ordinal-group: 2;
2616
+ -ms-flex-order: 1;
2617
+ order: 1; }
2618
+ .dnb-button--has-text.dnb-button--has-icon.dnb-button--icon-position-left > *,
2619
+ .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-top > *,
2620
+ .dnb-button--has-text.dnb-button--has-icon.dnb-button--icon-position-top .dnb-button__text {
2621
+ -webkit-box-ordinal-group: 3;
2622
+ -ms-flex-order: 2;
2623
+ order: 2; }
2624
+ .dnb-button--stretch {
2625
+ width: 100%; }
2626
+ .dnb-button--reset {
2627
+ margin: 0;
2628
+ padding: 0;
2629
+ width: auto;
2630
+ height: auto;
2631
+ overflow: visible;
2632
+ border: none;
2633
+ border-radius: 0;
2634
+ background-color: transparent;
2635
+ -webkit-appearance: none;
2636
+ -moz-appearance: none;
2637
+ appearance: none;
2638
+ -webkit-box-shadow: none;
2639
+ box-shadow: none;
2640
+ color: inherit;
2641
+ font: inherit;
2642
+ text-align: inherit;
2643
+ line-height: inherit; }
2644
+ html:not([data-whatintent='touch']) .dnb-button--reset:hover[disabled] {
2645
+ cursor: not-allowed; }
2646
+ html:not([data-whatintent='touch']) .dnb-button--reset:hover:not([disabled]) {
2647
+ -webkit-box-shadow: none;
2648
+ box-shadow: none;
2649
+ border: none; }
2650
+ .dnb-button--reset:not([disabled]):focus, .dnb-button--reset:not([disabled]):active {
2651
+ outline: none; }
2652
+ html[data-whatinput='keyboard'] .dnb-button--reset:not([disabled]):focus, html[data-whatinput='keyboard'] .dnb-button--reset:not([disabled]):active {
2653
+ --border-color: var(--color-emerald-green);
2654
+ -webkit-box-shadow: 0 0 0 0.125rem var(--border-color);
2655
+ box-shadow: 0 0 0 0.125rem var(--border-color);
2656
+ border-color: transparent; }
2657
+ @media screen and (-ms-high-contrast: none) {
2658
+ html[data-whatinput='keyboard'] .dnb-button--reset:not([disabled]):focus, html[data-whatinput='keyboard'] .dnb-button--reset:not([disabled]):active {
2659
+ -webkit-box-shadow: 0 0 0 0.125rem #14555a;
2660
+ box-shadow: 0 0 0 0.125rem #14555a;
2661
+ -webkit-box-shadow: 0 0 0 0.125rem var(--color-emerald-green);
2662
+ box-shadow: 0 0 0 0.125rem var(--color-emerald-green); } }
2663
+ html[data-whatinput='mouse'] .dnb-button--reset:not([disabled]):focus,
2664
+ html[data-whatinput='mouse'] .dnb-button--reset:not([disabled]):active {
2665
+ -webkit-box-shadow: none;
2666
+ box-shadow: none;
2667
+ color: inherit;
2668
+ border: none; }
2669
+ .dnb-button[type='button'], .dnb-button[type='reset'], .dnb-button[type='submit'] {
2670
+ appearance: none;
2671
+ -moz-appearance: none;
2672
+ -webkit-appearance: none; }
2673
+ .dnb-button[disabled] {
2674
+ cursor: not-allowed; }
2675
+ .dnb-form-row--vertical .dnb-form-row__content > .dnb-button {
2676
+ -ms-flex-item-align: start;
2677
+ align-self: flex-start; }
2678
+ .dnb-form-row--horizontal .dnb-form-row__content .dnb-button__text {
2679
+ white-space: nowrap; }
2680
+ .dnb-button + .dnb-form-status {
2681
+ margin-top: 0.5rem; }
2682
+ @media screen and (-ms-high-contrast: none) {
2683
+ .dnb-button {
2684
+ -webkit-box-flex: 0;
2685
+ -ms-flex: none;
2686
+ flex: none; }
2687
+ .dnb-button__icon, .dnb-button__text {
2688
+ -webkit-transform: translateY(-0.0625rem);
2689
+ transform: translateY(-0.0625rem); } }
2690
+
2691
+ /* Firefox includes a hidden border which messes up button dimensions */
2692
+ button.dnb-button::-moz-focus-inner {
2693
+ border: none; }
2694
+
2695
+ /*
2696
+ * DNB FormLabel
2697
+ *
2698
+ */
2699
+ /**
2700
+ * This file is only used to make components independent
2701
+ * so that they can get imported individually, without the core styles
2702
+ *
2703
+ */
2704
+ /*
2705
+ * Utilities
2706
+ */
2707
+ /*
2708
+ * Scopes
2709
+ *
2710
+ */
2711
+ /*
2712
+ * Document Reset
2713
+ *
2714
+ */
2715
+ .dnb-form-label {
2716
+ font-family: 'DNB', sans-serif;
2717
+ font-family: var(--font-family-default);
2718
+ font-weight: normal;
2719
+ font-weight: var(--font-weight-basis);
2720
+ font-size: 1rem;
2721
+ font-size: var(--font-size-small);
2722
+ font-style: normal;
2723
+ line-height: 1.5rem;
2724
+ line-height: var(--line-height-basis);
2725
+ color: #333;
2726
+ color: var(--color-black-80, #333);
2727
+ -moz-osx-font-smoothing: grayscale;
2728
+ -webkit-font-smoothing: antialiased;
2729
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
2730
+ /**
2731
+ * Ensure consistency and use the same as HTML reset -> html {...}
2732
+ * between base and code package
2733
+ */
2734
+ -moz-tab-size: 4;
2735
+ -o-tab-size: 4;
2736
+ tab-size: 4;
2737
+ -ms-text-size-adjust: 100%;
2738
+ -webkit-text-size-adjust: 100%;
2739
+ word-break: break-word;
2740
+ /**
2741
+ * 1. Remove repeating backgrounds in all browsers (opinionated).
2742
+ * 2. Add border box sizing in all browsers (opinionated).
2743
+ */
2744
+ /**
2745
+ * 1. Add text decoration inheritance in all browsers (opinionated).
2746
+ * 2. Add vertical alignment inheritance in all browsers (opinionated).
2747
+ */
2748
+ margin: 0;
2749
+ padding: 0; }
2750
+ .dnb-form-label *,
2751
+ .dnb-form-label ::before,
2752
+ .dnb-form-label ::after {
2753
+ background-repeat: no-repeat;
2754
+ /* 1 */
2755
+ -webkit-box-sizing: border-box;
2756
+ box-sizing: border-box;
2757
+ /* 2 */ }
2758
+ .dnb-form-label ::before,
2759
+ .dnb-form-label ::after {
2760
+ text-decoration: inherit;
2761
+ /* 1 */
2762
+ vertical-align: inherit;
2763
+ /* 2 */ }
2764
+
2765
+ /*
2766
+ * FormLabel component
2767
+ *
2768
+ */
2769
+ .dnb-form-label {
2770
+ display: inline-block;
2771
+ width: auto;
2772
+ padding: 0;
2773
+ margin-right: 1rem;
2774
+ text-align: left;
2775
+ vertical-align: baseline;
2776
+ white-space: pre-wrap;
2777
+ word-break: normal;
2778
+ font-size: 1.125rem;
2779
+ font-size: var(--font-size-basis);
2780
+ color: inherit; }
1538
2781
  .dnb-form-label--vertical {
1539
2782
  display: block;
1540
2783
  margin-right: 0;
@@ -1719,6 +2962,351 @@ legend.dnb-form-label {
1719
2962
  .dnb-form-status__shell > .dnb-icon {
1720
2963
  border-width: 1px; } }
1721
2964
 
2965
+ .dnb-dropdown {
2966
+ font-family: 'DNB', sans-serif;
2967
+ font-family: var(--font-family-default);
2968
+ font-weight: normal;
2969
+ font-weight: var(--font-weight-basis);
2970
+ font-size: 1rem;
2971
+ font-size: var(--font-size-small);
2972
+ font-style: normal;
2973
+ line-height: 1.5rem;
2974
+ line-height: var(--line-height-basis);
2975
+ color: #333;
2976
+ color: var(--color-black-80, #333);
2977
+ -moz-osx-font-smoothing: grayscale;
2978
+ -webkit-font-smoothing: antialiased;
2979
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
2980
+ /**
2981
+ * Ensure consistency and use the same as HTML reset -> html {...}
2982
+ * between base and code package
2983
+ */
2984
+ -moz-tab-size: 4;
2985
+ -o-tab-size: 4;
2986
+ tab-size: 4;
2987
+ -ms-text-size-adjust: 100%;
2988
+ -webkit-text-size-adjust: 100%;
2989
+ word-break: break-word;
2990
+ /**
2991
+ * 1. Remove repeating backgrounds in all browsers (opinionated).
2992
+ * 2. Add border box sizing in all browsers (opinionated).
2993
+ */
2994
+ /**
2995
+ * 1. Add text decoration inheritance in all browsers (opinionated).
2996
+ * 2. Add vertical alignment inheritance in all browsers (opinionated).
2997
+ */
2998
+ margin: 0;
2999
+ padding: 0; }
3000
+ .dnb-dropdown *,
3001
+ .dnb-dropdown ::before,
3002
+ .dnb-dropdown ::after {
3003
+ background-repeat: no-repeat;
3004
+ /* 1 */
3005
+ -webkit-box-sizing: border-box;
3006
+ box-sizing: border-box;
3007
+ /* 2 */ }
3008
+ .dnb-dropdown ::before,
3009
+ .dnb-dropdown ::after {
3010
+ text-decoration: inherit;
3011
+ /* 1 */
3012
+ vertical-align: inherit;
3013
+ /* 2 */ }
3014
+
3015
+ /*
3016
+ * Dropdown component
3017
+ *
3018
+ */
3019
+ :root {
3020
+ --dropdown-width: 16rem;
3021
+ --dropdown-height: 2rem;
3022
+ --dropdown-height--small: 1.5rem;
3023
+ --dropdown-height--medium: 2.5rem;
3024
+ --dropdown-height--large: 3rem;
3025
+ --dropdown-padding-horizontal: 1rem;
3026
+ --dropdown-focus-border-width: 0.125rem;
3027
+ --dropdown-text-padding: 0.5rem;
3028
+ --dropdown-border-radius: 0.25rem; }
3029
+
3030
+ .dnb-dropdown {
3031
+ display: -webkit-inline-box;
3032
+ display: -ms-inline-flexbox;
3033
+ display: inline-flex;
3034
+ -webkit-box-align: center;
3035
+ -ms-flex-align: center;
3036
+ align-items: center;
3037
+ font-size: 1rem;
3038
+ font-size: var(--font-size-small);
3039
+ line-height: 2rem;
3040
+ line-height: var(--dropdown-height); }
3041
+ .dnb-dropdown__inner {
3042
+ display: -webkit-inline-box;
3043
+ display: -ms-inline-flexbox;
3044
+ display: inline-flex;
3045
+ -webkit-box-orient: vertical;
3046
+ -webkit-box-direction: normal;
3047
+ -ms-flex-direction: column;
3048
+ flex-direction: column;
3049
+ -webkit-box-align: start;
3050
+ -ms-flex-align: start;
3051
+ align-items: flex-start;
3052
+ margin: 0;
3053
+ padding: 0;
3054
+ width: auto;
3055
+ color: inherit; }
3056
+ .dnb-dropdown__shell {
3057
+ position: relative;
3058
+ width: 16rem;
3059
+ width: var(--dropdown-width);
3060
+ height: 2rem;
3061
+ height: var(--dropdown-height);
3062
+ margin: 0;
3063
+ padding: 0;
3064
+ color: inherit; }
3065
+ .dnb-dropdown__row {
3066
+ display: -webkit-inline-box;
3067
+ display: -ms-inline-flexbox;
3068
+ display: inline-flex; }
3069
+ .dnb-dropdown--large .dnb-drawer-list__triangle {
3070
+ margin-left: 0.75rem;
3071
+ margin-left: calc(1rem - 0.25rem);
3072
+ margin-left: calc(var(--dropdown-padding-horizontal) - 0.25rem); }
3073
+ .dnb-dropdown--icon-position-left.dnb-dropdown--large .dnb-drawer-list__triangle {
3074
+ margin-left: 1.25rem;
3075
+ margin-left: calc(1rem + 0.25rem);
3076
+ margin-left: calc(var(--dropdown-padding-horizontal) + 0.25rem); }
3077
+ .dnb-dropdown__icon {
3078
+ position: relative;
3079
+ -webkit-box-ordinal-group: 3;
3080
+ -ms-flex-order: 2;
3081
+ order: 2;
3082
+ display: -webkit-inline-box;
3083
+ display: -ms-inline-flexbox;
3084
+ display: inline-flex;
3085
+ -webkit-box-pack: center;
3086
+ -ms-flex-pack: center;
3087
+ justify-content: center;
3088
+ pointer-events: none; }
3089
+ .dnb-dropdown__trigger {
3090
+ position: relative;
3091
+ z-index: 1;
3092
+ -moz-user-select: none;
3093
+ -ms-user-select: none;
3094
+ user-select: none;
3095
+ -webkit-user-select: none;
3096
+ width: 100%; }
3097
+ .dnb-dropdown__trigger.dnb-button {
3098
+ padding: 0 1rem;
3099
+ border-radius: 0.25rem;
3100
+ border-radius: var(--dropdown-border-radius); }
3101
+ .dnb-dropdown--is-popup .dnb-dropdown__trigger.dnb-button {
3102
+ padding: 0;
3103
+ border-radius: 50%; }
3104
+ .dnb-dropdown__text {
3105
+ -webkit-box-ordinal-group: 2;
3106
+ -ms-flex-order: 1;
3107
+ order: 1;
3108
+ position: relative;
3109
+ z-index: 4;
3110
+ display: -webkit-inline-box;
3111
+ display: -ms-inline-flexbox;
3112
+ display: inline-flex;
3113
+ width: 100%;
3114
+ overflow: hidden;
3115
+ color: inherit;
3116
+ text-align: left;
3117
+ text-overflow: ellipsis;
3118
+ line-height: inherit;
3119
+ font-size: 1.125rem;
3120
+ font-size: var(--font-size-basis); }
3121
+ .dnb-dropdown__text__inner {
3122
+ display: inherit;
3123
+ overflow: hidden;
3124
+ white-space: nowrap;
3125
+ text-overflow: inherit; }
3126
+ .dnb-dropdown--icon-position-left .dnb-dropdown__text {
3127
+ -webkit-box-ordinal-group: 3;
3128
+ -ms-flex-order: 2;
3129
+ order: 2;
3130
+ padding-right: 0;
3131
+ padding-left: 0.5rem;
3132
+ padding-left: var(--dropdown-text-padding); }
3133
+ .dnb-dropdown--icon-position-left .dnb-dropdown__icon {
3134
+ -webkit-box-ordinal-group: 2;
3135
+ -ms-flex-order: 1;
3136
+ order: 1; }
3137
+ .dnb-dropdown--icon-position-right .dnb-dropdown__text {
3138
+ padding-right: 0.5rem;
3139
+ padding-right: var(--dropdown-text-padding); }
3140
+ .dnb-dropdown--independent-width .dnb-dropdown__shell {
3141
+ width: auto; }
3142
+ @media screen and (max-width: 40em) {
3143
+ .dnb-dropdown--action-menu .dnb-dropdown__trigger.dnb-button {
3144
+ padding-left: 0.5rem;
3145
+ padding-right: 0.5rem;
3146
+ border-radius: 50%; } }
3147
+ @media screen and (min-width: 40em) {
3148
+ .dnb-dropdown--action-menu .dnb-dropdown__shell .dnb-dropdown__text {
3149
+ padding: 0 0.5rem; } }
3150
+ @media screen and (max-width: 40em) {
3151
+ .dnb-dropdown--action-menu .dnb-dropdown__shell .dnb-dropdown__text {
3152
+ width: 0;
3153
+ padding: 0; } }
3154
+ .dnb-dropdown--icon-position-left .dnb-button--tertiary
3155
+ ~ .dnb-drawer-list__root--portal {
3156
+ left: -0.5rem; }
3157
+ .dnb-dropdown--icon-position-right .dnb-button--tertiary
3158
+ ~ .dnb-drawer-list__root--portal {
3159
+ left: 0.5rem; }
3160
+ .dnb-dropdown .dnb-button--tertiary.dnb-button--active {
3161
+ -webkit-box-shadow: none;
3162
+ box-shadow: none; }
3163
+ .dnb-dropdown .dnb-button--tertiary .dnb-button__text {
3164
+ margin: 0 0.5rem; }
3165
+ .dnb-dropdown .dnb-button--tertiary .dnb-button__text::after {
3166
+ bottom: 0; }
3167
+ .dnb-dropdown--icon-position-left .dnb-button--tertiary .dnb-dropdown__text,
3168
+ .dnb-dropdown--icon-position-right .dnb-button--tertiary .dnb-dropdown__text {
3169
+ padding: 0; }
3170
+ .dnb-dropdown .dnb-button--tertiary:focus::before {
3171
+ left: 0 !important;
3172
+ right: 0 !important; }
3173
+ .dnb-dropdown--default.dnb-dropdown--is-popup .dnb-dropdown__shell,
3174
+ .dnb-dropdown--is-popup .dnb-dropdown__trigger {
3175
+ padding: 0;
3176
+ width: 2rem;
3177
+ width: var(--dropdown-height);
3178
+ height: 2rem;
3179
+ height: var(--dropdown-height); }
3180
+ .dnb-dropdown--is-popup .dnb-dropdown__icon {
3181
+ width: 100%; }
3182
+ .dnb-dropdown--is-popup.dnb-dropdown--scroll .dnb-dropdown__options {
3183
+ min-height: 1rem; }
3184
+ .dnb-dropdown--is-popup .dnb-drawer-list__root {
3185
+ width: 16rem;
3186
+ width: var(--dropdown-width); }
3187
+ .dnb-dropdown--small.dnb-dropdown--is-popup .dnb-dropdown__shell,
3188
+ .dnb-dropdown--small.dnb-dropdown--is-popup .dnb-dropdown__trigger {
3189
+ width: 1.5rem;
3190
+ width: var(--dropdown-height--small); }
3191
+ .dnb-dropdown--medium.dnb-dropdown--is-popup .dnb-dropdown__shell,
3192
+ .dnb-dropdown--medium.dnb-dropdown--is-popup .dnb-dropdown__trigger {
3193
+ width: 2.5rem;
3194
+ width: var(--dropdown-height--medium); }
3195
+ .dnb-dropdown--large.dnb-dropdown--is-popup .dnb-dropdown__shell,
3196
+ .dnb-dropdown--large.dnb-dropdown--is-popup .dnb-dropdown__trigger {
3197
+ width: 3rem;
3198
+ width: var(--dropdown-height--large); }
3199
+ .dnb-dropdown--small .dnb-dropdown__shell,
3200
+ .dnb-dropdown--small .dnb-dropdown__trigger {
3201
+ height: 1.5rem;
3202
+ height: var(--dropdown-height--small); }
3203
+ .dnb-dropdown--small,
3204
+ .dnb-dropdown--small .dnb-dropdown__trigger.dnb-button {
3205
+ line-height: 1.5rem;
3206
+ line-height: var(--dropdown-height--small); }
3207
+ .dnb-dropdown--medium .dnb-dropdown__shell,
3208
+ .dnb-dropdown--medium .dnb-dropdown__trigger {
3209
+ height: 2.5rem;
3210
+ height: var(--dropdown-height--medium); }
3211
+ .dnb-dropdown--medium,
3212
+ .dnb-dropdown--medium .dnb-dropdown__trigger.dnb-button {
3213
+ line-height: 2.5rem;
3214
+ line-height: var(--dropdown-height--medium); }
3215
+ .dnb-dropdown--large .dnb-dropdown__shell,
3216
+ .dnb-dropdown--large .dnb-dropdown__trigger {
3217
+ height: 3rem;
3218
+ height: var(--dropdown-height--large); }
3219
+ .dnb-dropdown--large,
3220
+ .dnb-dropdown--large .dnb-dropdown__trigger.dnb-button {
3221
+ line-height: 3rem;
3222
+ line-height: var(--dropdown-height--large); }
3223
+ .dnb-dropdown--large .dnb-dropdown__trigger.dnb-button .dnb-dropdown__text {
3224
+ line-height: 1.5rem;
3225
+ line-height: var(--line-height-basis); }
3226
+ .dnb-dropdown > .dnb-form-label {
3227
+ margin-right: 1rem;
3228
+ line-height: 1.5rem;
3229
+ line-height: var(--line-height-basis); }
3230
+ @media screen and (max-width: 40em) {
3231
+ .dnb-dropdown {
3232
+ -ms-flex-wrap: wrap;
3233
+ flex-wrap: wrap; }
3234
+ .dnb-dropdown > .dnb-form-label {
3235
+ margin-bottom: 0.5rem;
3236
+ margin-top: 0.5rem; } }
3237
+ .dnb-dropdown--stretch {
3238
+ display: -webkit-box;
3239
+ display: -ms-flexbox;
3240
+ display: flex;
3241
+ -webkit-box-flex: 1;
3242
+ -ms-flex-positive: 1;
3243
+ flex-grow: 1; }
3244
+ .dnb-dropdown--stretch .dnb-dropdown__inner {
3245
+ -webkit-box-flex: 1;
3246
+ -ms-flex-positive: 1;
3247
+ flex-grow: 1; }
3248
+ .dnb-dropdown--stretch .dnb-dropdown__row, .dnb-dropdown--stretch .dnb-dropdown__inner, .dnb-dropdown--stretch .dnb-dropdown__shell {
3249
+ width: 100%; }
3250
+ .dnb-dropdown--stretch .dnb-form-label + .dnb-dropdown__inner {
3251
+ width: auto; }
3252
+ .dnb-dropdown--vertical.dnb-dropdown--stretch .dnb-dropdown__inner {
3253
+ width: 100%; }
3254
+ .dnb-form-row--horizontal .dnb-dropdown--stretch {
3255
+ width: 100%; }
3256
+ label + .dnb-dropdown[class*='__form-status'] {
3257
+ vertical-align: top; }
3258
+ label + .dnb-dropdown[class*='__form-status'] .dnb-dropdown__shell {
3259
+ top: -0.375rem; }
3260
+ .dnb-dropdown__inner > .dnb-form-status {
3261
+ -webkit-box-ordinal-group: 3;
3262
+ -ms-flex-order: 2;
3263
+ order: 2;
3264
+ margin-top: 0.5rem; }
3265
+ .dnb-dropdown--vertical {
3266
+ display: -webkit-box;
3267
+ display: -ms-flexbox;
3268
+ display: flex;
3269
+ -webkit-box-orient: vertical;
3270
+ -webkit-box-direction: normal;
3271
+ -ms-flex-direction: column;
3272
+ flex-direction: column;
3273
+ -webkit-box-align: start;
3274
+ -ms-flex-align: start;
3275
+ align-items: flex-start; }
3276
+ .dnb-dropdown:not(.dnb-dropdown--vertical)[class*='__status'] {
3277
+ -webkit-box-align: start;
3278
+ -ms-flex-align: start;
3279
+ align-items: flex-start; }
3280
+ .dnb-dropdown:not(.dnb-dropdown--vertical)[class*='__status'] > .dnb-form-label {
3281
+ margin-top: 0.25rem; }
3282
+ @media screen and (max-width: 40em) {
3283
+ .dnb-responsive-component .dnb-dropdown {
3284
+ display: -webkit-box;
3285
+ display: -ms-flexbox;
3286
+ display: flex;
3287
+ -webkit-box-orient: vertical;
3288
+ -webkit-box-direction: normal;
3289
+ -ms-flex-direction: column;
3290
+ flex-direction: column;
3291
+ -webkit-box-align: start;
3292
+ -ms-flex-align: start;
3293
+ align-items: flex-start;
3294
+ margin-bottom: 0.5rem; }
3295
+ .dnb-responsive-component .dnb-dropdown > .dnb-form-label {
3296
+ margin-bottom: 0.5rem; }
3297
+ .dnb-responsive-component .dnb-dropdown__helper {
3298
+ display: none; } }
3299
+ @media screen and (-ms-high-contrast: none) {
3300
+ .dnb-dropdown {
3301
+ -webkit-box-flex: 0;
3302
+ -ms-flex: none;
3303
+ flex: none;
3304
+ vertical-align: baseline; }
3305
+ .dnb-dropdown__shell {
3306
+ top: 0; }
3307
+ .dnb-dropdown__options {
3308
+ display: block; } }
3309
+
1722
3310
  /*
1723
3311
  * DNB ProgressIndicator
1724
3312
  *