@navikt/ds-css 5.2.1 → 5.3.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.
- package/CHANGELOG.md +14 -0
- package/accordion.css +4 -1
- package/dist/component/accordion.css +4 -1
- package/dist/component/accordion.min.css +1 -1
- package/dist/component/guidepanel.css +83 -49
- package/dist/component/guidepanel.min.css +1 -1
- package/dist/component/index.css +128 -51
- package/dist/component/index.min.css +2 -2
- package/dist/component/typography.css +52 -0
- package/dist/component/typography.min.css +1 -1
- package/dist/components.css +127 -50
- package/dist/components.min.css +2 -2
- package/dist/global/tokens.css +1 -1
- package/dist/index.css +128 -51
- package/dist/index.min.css +2 -2
- package/guide-panel.css +74 -50
- package/package.json +2 -2
- package/tokens.json +2 -2
- package/typography.css +64 -0
package/dist/index.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/**
|
|
3
3
|
* Do not edit directly
|
|
4
|
-
* Generated on
|
|
4
|
+
* Generated on Sun, 03 Sep 2023 10:42:10 GMT
|
|
5
5
|
*/
|
|
6
6
|
:root, :host {
|
|
7
7
|
--a-spacing-05: 0.125rem;
|
|
@@ -877,6 +877,14 @@ body,
|
|
|
877
877
|
.navds-body-long.navds-typo--spacing {
|
|
878
878
|
margin-bottom: var(--a-spacing-7);
|
|
879
879
|
}
|
|
880
|
+
.navds-body-long--large {
|
|
881
|
+
font-size: var(--a-font-size-xlarge);
|
|
882
|
+
letter-spacing: -0.0013em;
|
|
883
|
+
line-height: var(--a-font-line-height-xlarge);
|
|
884
|
+
}
|
|
885
|
+
.navds-body-long--large.navds-typo--spacing {
|
|
886
|
+
margin-bottom: var(--a-spacing-10);
|
|
887
|
+
}
|
|
880
888
|
.navds-body-long--small {
|
|
881
889
|
font-size: var(--a-font-size-medium);
|
|
882
890
|
letter-spacing: 0.002em;
|
|
@@ -895,6 +903,14 @@ body,
|
|
|
895
903
|
.navds-body-short.navds-typo--spacing {
|
|
896
904
|
margin-bottom: var(--a-spacing-3);
|
|
897
905
|
}
|
|
906
|
+
.navds-body-short--large {
|
|
907
|
+
font-size: var(--a-font-size-xlarge);
|
|
908
|
+
letter-spacing: -0.0013em;
|
|
909
|
+
line-height: var(--a-font-line-height-large);
|
|
910
|
+
}
|
|
911
|
+
.navds-body-short--large.navds-typo--spacing {
|
|
912
|
+
margin-bottom: var(--a-spacing-4);
|
|
913
|
+
}
|
|
898
914
|
.navds-body-short--small {
|
|
899
915
|
font-size: var(--a-font-size-medium);
|
|
900
916
|
letter-spacing: 0.002em;
|
|
@@ -948,6 +964,42 @@ body,
|
|
|
948
964
|
.navds-error-message {
|
|
949
965
|
color: var(--ac-typo-error-text, var(--a-text-danger));
|
|
950
966
|
}
|
|
967
|
+
.navds-typo--truncate {
|
|
968
|
+
overflow: hidden;
|
|
969
|
+
white-space: nowrap;
|
|
970
|
+
text-overflow: ellipsis;
|
|
971
|
+
}
|
|
972
|
+
.navds-typo--semibold {
|
|
973
|
+
font-weight: var(--a-font-weight-bold);
|
|
974
|
+
}
|
|
975
|
+
.navds-typo--align-start {
|
|
976
|
+
text-align: start;
|
|
977
|
+
}
|
|
978
|
+
.navds-typo--align-center {
|
|
979
|
+
text-align: center;
|
|
980
|
+
}
|
|
981
|
+
.navds-typo--align-end {
|
|
982
|
+
text-align: end;
|
|
983
|
+
}
|
|
984
|
+
.navds-typo--visually-hidden {
|
|
985
|
+
border: 0 !important;
|
|
986
|
+
clip: rect(0, 0, 0, 0) !important;
|
|
987
|
+
height: 1px !important;
|
|
988
|
+
margin: -1px !important;
|
|
989
|
+
overflow: hidden !important;
|
|
990
|
+
padding: 0 !important;
|
|
991
|
+
top: 0 !important;
|
|
992
|
+
position: absolute !important;
|
|
993
|
+
white-space: nowrap !important;
|
|
994
|
+
width: 1px !important;
|
|
995
|
+
}
|
|
996
|
+
.navds-typo--color-subtle {
|
|
997
|
+
color: var(--a-text-subtle);
|
|
998
|
+
}
|
|
999
|
+
[data-theme="dark"].navds-typo--color-subtle,
|
|
1000
|
+
[data-theme="dark"] .navds-typo--color-subtle {
|
|
1001
|
+
--a-text-subtle: var(--a-gray-300);
|
|
1002
|
+
}
|
|
951
1003
|
/**************************
|
|
952
1004
|
* .navds-grid *
|
|
953
1005
|
**************************/
|
|
@@ -1147,6 +1199,9 @@ body,
|
|
|
1147
1199
|
grid-column: span 12;
|
|
1148
1200
|
}
|
|
1149
1201
|
}
|
|
1202
|
+
.navds-accordion {
|
|
1203
|
+
--__ac-accordion-header-shadow-color: var(--ac-accordion-header-border, var(--a-border-divider));
|
|
1204
|
+
}
|
|
1150
1205
|
.navds-accordion__item:focus-within {
|
|
1151
1206
|
position: relative;
|
|
1152
1207
|
}
|
|
@@ -1154,7 +1209,6 @@ body,
|
|
|
1154
1209
|
* Header *
|
|
1155
1210
|
*************************/
|
|
1156
1211
|
.navds-accordion__header {
|
|
1157
|
-
--__ac-accordion-header-shadow-color: var(--ac-accordion-header-border, var(--a-border-divider));
|
|
1158
1212
|
--__ac-accordion-header-shadow: inset 2px 0 0 0 var(--a-transparent), inset -2px 0 0 0 var(--a-transparent),
|
|
1159
1213
|
inset 0 2px 0 0 var(--__ac-accordion-header-shadow-color);
|
|
1160
1214
|
|
|
@@ -2315,67 +2369,90 @@ body,
|
|
|
2315
2369
|
transform: translateY(0);
|
|
2316
2370
|
}
|
|
2317
2371
|
}
|
|
2318
|
-
/**
|
|
2319
|
-
* GuidePanel component
|
|
2320
|
-
*/
|
|
2321
2372
|
.navds-guide-panel {
|
|
2373
|
+
--__ac-guide-panel-guide-size: 4rem;
|
|
2374
|
+
|
|
2322
2375
|
position: relative;
|
|
2323
|
-
padding-
|
|
2376
|
+
padding-top: calc(var(--__ac-guide-panel-guide-size) / 2);
|
|
2377
|
+
}
|
|
2378
|
+
.navds-guide {
|
|
2379
|
+
background: var(--ac-guide-panel-illustration-bg, var(--a-surface-alt-3-subtle));
|
|
2380
|
+
border: 2px solid var(--ac-guide-panel-border, var(--a-border-alt-3));
|
|
2381
|
+
border-radius: var(--a-border-radius-full);
|
|
2382
|
+
overflow: hidden;
|
|
2383
|
+
position: absolute;
|
|
2384
|
+
width: var(--__ac-guide-panel-guide-size);
|
|
2385
|
+
height: var(--__ac-guide-panel-guide-size);
|
|
2386
|
+
left: 50%;
|
|
2387
|
+
transform: translate(-50%, -50%);
|
|
2388
|
+
}
|
|
2389
|
+
.navds-guide svg,
|
|
2390
|
+
.navds-guide img {
|
|
2391
|
+
height: 100%;
|
|
2392
|
+
width: 100%;
|
|
2324
2393
|
}
|
|
2325
2394
|
.navds-guide-panel__content {
|
|
2326
2395
|
background-color: var(--ac-guide-panel-bg, var(--a-surface-default));
|
|
2327
|
-
border
|
|
2328
|
-
border:
|
|
2329
|
-
|
|
2330
|
-
padding: var(--a-spacing-6);
|
|
2331
|
-
padding-left: var(--a-spacing-14);
|
|
2332
|
-
}
|
|
2333
|
-
.navds-guide-panel--poster {
|
|
2334
|
-
padding-left: 0;
|
|
2396
|
+
border: 2px solid var(--ac-guide-panel-border, var(--a-border-alt-3));
|
|
2397
|
+
border-radius: var(--a-border-radius-large);
|
|
2398
|
+
padding: var(--a-spacing-4);
|
|
2335
2399
|
padding-top: var(--a-spacing-12);
|
|
2336
2400
|
}
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
}
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
}
|
|
2347
|
-
.navds-guide-panel--poster .navds-guide {
|
|
2348
|
-
left: 50%;
|
|
2349
|
-
top: 0;
|
|
2401
|
+
@media (min-width: 480px) {
|
|
2402
|
+
.navds-guide-panel {
|
|
2403
|
+
--__ac-guide-panel-guide-size: 6.25rem;
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
.navds-guide-panel__content {
|
|
2407
|
+
padding: var(--a-spacing-8);
|
|
2408
|
+
padding-top: 4.25rem;
|
|
2409
|
+
}
|
|
2350
2410
|
}
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
display: flex;
|
|
2356
|
-
align-items: center;
|
|
2357
|
-
justify-content: center;
|
|
2358
|
-
border-radius: var(--a-border-radius-full);
|
|
2411
|
+
/* not-poster */
|
|
2412
|
+
.navds-guide-panel--not-poster {
|
|
2413
|
+
padding-top: 0;
|
|
2414
|
+
padding-left: calc(var(--__ac-guide-panel-guide-size) / 2);
|
|
2359
2415
|
}
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
overflow: hidden;
|
|
2416
|
+
.navds-guide-panel--not-poster .navds-guide {
|
|
2417
|
+
left: 0;
|
|
2418
|
+
top: var(--a-spacing-5);
|
|
2419
|
+
transform: none;
|
|
2365
2420
|
}
|
|
2366
|
-
.navds-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2421
|
+
.navds-guide-panel--not-poster .navds-guide-panel__content {
|
|
2422
|
+
padding: var(--a-spacing-4);
|
|
2423
|
+
padding-left: var(--a-spacing-10);
|
|
2424
|
+
min-height: calc(var(--__ac-guide-panel-guide-size) + var(--a-spacing-5) + var(--a-spacing-5));
|
|
2370
2425
|
}
|
|
2371
|
-
|
|
2372
|
-
.navds-
|
|
2373
|
-
|
|
2374
|
-
|
|
2426
|
+
@media (min-width: 480px) {
|
|
2427
|
+
.navds-guide-panel--not-poster {
|
|
2428
|
+
--__ac-guide-panel-guide-size: 5rem;
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
.navds-guide-panel--not-poster .navds-guide-panel__content {
|
|
2432
|
+
padding: var(--a-spacing-6);
|
|
2433
|
+
padding-left: var(--a-spacing-14);
|
|
2434
|
+
}
|
|
2375
2435
|
}
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2436
|
+
/* responsive-poster (on desktop) */
|
|
2437
|
+
@media (min-width: 480px) {
|
|
2438
|
+
.navds-guide-panel--responsive-poster {
|
|
2439
|
+
--__ac-guide-panel-guide-size: 5rem;
|
|
2440
|
+
|
|
2441
|
+
padding-top: 0;
|
|
2442
|
+
padding-left: calc(var(--__ac-guide-panel-guide-size) / 2);
|
|
2443
|
+
}
|
|
2444
|
+
|
|
2445
|
+
.navds-guide-panel--responsive-poster .navds-guide {
|
|
2446
|
+
left: 0;
|
|
2447
|
+
top: var(--a-spacing-5);
|
|
2448
|
+
transform: none;
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
.navds-guide-panel--responsive-poster .navds-guide-panel__content {
|
|
2452
|
+
padding: var(--a-spacing-6);
|
|
2453
|
+
padding-left: var(--a-spacing-14);
|
|
2454
|
+
min-height: calc(var(--__ac-guide-panel-guide-size) + var(--a-spacing-5) + var(--a-spacing-5));
|
|
2455
|
+
}
|
|
2379
2456
|
}
|
|
2380
2457
|
/*
|
|
2381
2458
|
Order matters; rearrange with care
|