@navikt/ds-css 4.0.0 → 4.1.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/accordion.css +6 -1
- package/chips.css +27 -22
- package/config/_mappings.js +1 -0
- package/dist/component/accordion.css +5 -1
- package/dist/component/accordion.min.css +1 -1
- package/dist/component/chips.css +28 -22
- package/dist/component/chips.min.css +1 -1
- package/dist/component/form.css +27 -21
- package/dist/component/form.min.css +1 -1
- package/dist/component/index.css +99 -23
- package/dist/component/index.min.css +3 -3
- package/dist/component/skeleton.css +55 -0
- package/dist/component/skeleton.min.css +1 -0
- package/dist/components.css +78 -20
- package/dist/components.min.css +2 -2
- package/dist/global/tokens.css +21 -3
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +99 -23
- package/dist/index.min.css +3 -3
- package/form/fieldset.css +8 -0
- package/form/form.css +5 -0
- package/index.css +1 -0
- package/package.json +2 -2
- package/skeleton.css +55 -0
- package/tokens.json +19 -4
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
.navds-skeleton {
|
|
2
|
+
display: block;
|
|
3
|
+
background-color: var(--ac-skeleton-bg, var(--a-surface-neutral-moderate));
|
|
4
|
+
height: 1.3em;
|
|
5
|
+
animation: akselSkeletonAnimation 0.8s linear infinite alternate;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.navds-skeleton--has-children {
|
|
9
|
+
color: transparent;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.navds-skeleton--has-children > * {
|
|
13
|
+
visibility: hidden;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.navds-skeleton--has-children.navds-skeleton--no-height {
|
|
17
|
+
height: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.navds-skeleton--has-children.navds-skeleton--no-width {
|
|
21
|
+
width: fit-content;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.navds-skeleton--text {
|
|
25
|
+
height: auto;
|
|
26
|
+
transform-origin: 0 55%;
|
|
27
|
+
transform: scale(1, 0.6);
|
|
28
|
+
border-radius: var(--a-border-radius-medium);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.navds-skeleton--text:empty::before {
|
|
32
|
+
content: "\00a0";
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.navds-skeleton--circle {
|
|
36
|
+
border-radius: var(--a-border-radius-full);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.navds-skeleton--rectangle {
|
|
40
|
+
border-radius: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.navds-skeleton--rounded {
|
|
44
|
+
border-radius: var(--a-border-radius-xlarge);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@keyframes akselSkeletonAnimation {
|
|
48
|
+
0% {
|
|
49
|
+
opacity: 1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
100% {
|
|
53
|
+
opacity: 0.4;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.navds-skeleton{-webkit-animation:akselSkeletonAnimation .8s linear infinite alternate;animation:akselSkeletonAnimation .8s linear infinite alternate;background-color:var(--ac-skeleton-bg,var(--a-surface-neutral-moderate));display:block;height:1.3em}.navds-skeleton--has-children{color:transparent}.navds-skeleton--has-children>*{visibility:hidden}.navds-skeleton--has-children.navds-skeleton--no-height{height:auto}.navds-skeleton--has-children.navds-skeleton--no-width{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.navds-skeleton--text{border-radius:var(--a-border-radius-medium);height:auto;-webkit-transform:scaleY(.6);transform:scaleY(.6);-webkit-transform-origin:0 55%;transform-origin:0 55%}.navds-skeleton--text:empty:before{content:"\00a0"}.navds-skeleton--circle{border-radius:var(--a-border-radius-full)}.navds-skeleton--rectangle{border-radius:0}.navds-skeleton--rounded{border-radius:var(--a-border-radius-xlarge)}@-webkit-keyframes akselSkeletonAnimation{0%{opacity:1}to{opacity:.4}}@keyframes akselSkeletonAnimation{0%{opacity:1}to{opacity:.4}}
|
package/dist/components.css
CHANGED
|
@@ -480,9 +480,12 @@
|
|
|
480
480
|
* Content *
|
|
481
481
|
*************************/
|
|
482
482
|
.navds-accordion__content {
|
|
483
|
-
padding: 0 var(--a-spacing-3) var(--a-spacing-5)
|
|
483
|
+
padding: 0 var(--a-spacing-3) var(--a-spacing-5);
|
|
484
484
|
animation: fadeAccordionContent 250ms ease;
|
|
485
485
|
}
|
|
486
|
+
.navds-accordion--indent > :where(.navds-accordion__item) > :where(.navds-accordion__content) {
|
|
487
|
+
padding: 0 var(--a-spacing-3) var(--a-spacing-5) var(--a-spacing-11);
|
|
488
|
+
}
|
|
486
489
|
.navds-accordion__content--closed {
|
|
487
490
|
display: none;
|
|
488
491
|
}
|
|
@@ -580,6 +583,8 @@
|
|
|
580
583
|
--ac-button-secondary-hover-bg: var(--a-gray-800);
|
|
581
584
|
--ac-button-secondary-focus-border: var(--a-blue-200);
|
|
582
585
|
--ac-button-secondary-active-bg: var(--a-gray-700);
|
|
586
|
+
--ac-form-description: var(--a-text-on-inverted);
|
|
587
|
+
--ac-form-description: var(--a-text-on-inverted);
|
|
583
588
|
--ac-textfield-text: var(--a-text-on-inverted);
|
|
584
589
|
--ac-textfield-bg: var(--a-surface-inverted);
|
|
585
590
|
--ac-textfield-border: var(--a-border-on-inverted);
|
|
@@ -1046,7 +1051,7 @@
|
|
|
1046
1051
|
cursor: pointer;
|
|
1047
1052
|
align-items: center;
|
|
1048
1053
|
justify-content: center;
|
|
1049
|
-
gap: var(--a-spacing-
|
|
1054
|
+
gap: var(--a-spacing-1);
|
|
1050
1055
|
margin: 0;
|
|
1051
1056
|
padding: 0 var(--a-spacing-3);
|
|
1052
1057
|
text-decoration: none;
|
|
@@ -1058,13 +1063,13 @@
|
|
|
1058
1063
|
padding: 0 var(--a-spacing-2);
|
|
1059
1064
|
}
|
|
1060
1065
|
.navds-chips__toggle {
|
|
1061
|
-
box-shadow: inset 0 0 0 1px var(--ac-chip-toggle-border, var(--a-border-
|
|
1062
|
-
background-color: var(--ac-chip-toggle-bg, var(--a-surface-
|
|
1066
|
+
box-shadow: inset 0 0 0 1px var(--ac-chip-toggle-border, var(--a-border-subtle));
|
|
1067
|
+
background-color: var(--ac-chip-toggle-bg, var(--a-surface-action-subtle));
|
|
1063
1068
|
color: var(--ac-chip-toggle-text, var(--a-text-default));
|
|
1064
1069
|
}
|
|
1065
1070
|
.navds-chips__toggle:hover {
|
|
1066
|
-
box-shadow: inset 0 0 0 1px var(--ac-chip-toggle-hover-border, var(--a-border-
|
|
1067
|
-
background-color: var(--ac-chip-toggle-hover-bg, var(--a-surface-
|
|
1071
|
+
box-shadow: inset 0 0 0 1px var(--ac-chip-toggle-hover-border, var(--a-border-subtle-hover));
|
|
1072
|
+
background-color: var(--ac-chip-toggle-hover-bg, var(--a-surface-action-subtle-hover));
|
|
1068
1073
|
}
|
|
1069
1074
|
.navds-chips__toggle[aria-pressed="true"] {
|
|
1070
1075
|
box-shadow: none;
|
|
@@ -1074,6 +1079,24 @@
|
|
|
1074
1079
|
.navds-chips__toggle[aria-pressed="true"]:hover {
|
|
1075
1080
|
background-color: var(--ac-chip-toggle-pressed-hover-bg, var(--a-surface-action-selected-hover));
|
|
1076
1081
|
}
|
|
1082
|
+
/* Toggle variant neutral */
|
|
1083
|
+
.navds-chips__toggle--neutral {
|
|
1084
|
+
box-shadow: inset 0 0 0 1px var(--ac-chip-toggle-neutral-border, var(--a-border-subtle));
|
|
1085
|
+
background-color: var(--ac-chip-toggle-neutral-bg, var(--a-surface-neutral-subtle));
|
|
1086
|
+
color: var(--ac-chip-toggle-neutral-text, var(--a-text-default));
|
|
1087
|
+
}
|
|
1088
|
+
.navds-chips__toggle--neutral:hover {
|
|
1089
|
+
box-shadow: inset 0 0 0 1px var(--ac-chip-toggle-neutral-hover-border, var(--a-border-subtle-hover));
|
|
1090
|
+
background-color: var(--ac-chip-toggle-neutral-hover-bg, var(--a-surface-neutral-subtle-hover));
|
|
1091
|
+
}
|
|
1092
|
+
.navds-chips__toggle--neutral[aria-pressed="true"] {
|
|
1093
|
+
box-shadow: none;
|
|
1094
|
+
background-color: var(--ac-chip-toggle-neutral-pressed-bg, var(--a-surface-neutral-selected));
|
|
1095
|
+
color: var(--ac-chip-toggle-neutral-pressed-text, var(--a-text-on-neutral));
|
|
1096
|
+
}
|
|
1097
|
+
.navds-chips__toggle--neutral[aria-pressed="true"]:hover {
|
|
1098
|
+
background-color: var(--ac-chip-toggle-neutral-pressed-hover-bg, var(--a-surface-neutral-selected));
|
|
1099
|
+
}
|
|
1077
1100
|
.navds-chips__toggle:focus-visible {
|
|
1078
1101
|
box-shadow: 0 0 0 2px var(--ac-chip-toggle-focus, var(--a-border-focus));
|
|
1079
1102
|
}
|
|
@@ -1112,17 +1135,6 @@
|
|
|
1112
1135
|
place-items: center;
|
|
1113
1136
|
border-radius: var(--a-border-radius-full);
|
|
1114
1137
|
}
|
|
1115
|
-
.navds-chips__toggle-icon {
|
|
1116
|
-
width: 1.5rem;
|
|
1117
|
-
height: 1.5rem;
|
|
1118
|
-
display: grid;
|
|
1119
|
-
place-items: center;
|
|
1120
|
-
border-radius: var(--a-border-radius-full);
|
|
1121
|
-
}
|
|
1122
|
-
.navds-chips--small .navds-chips__toggle-icon {
|
|
1123
|
-
width: 1.25rem;
|
|
1124
|
-
height: 1.25rem;
|
|
1125
|
-
}
|
|
1126
1138
|
.navds-chips--small .navds-chips__removable-icon {
|
|
1127
1139
|
width: 1.25rem;
|
|
1128
1140
|
height: 1.25rem;
|
|
@@ -1163,9 +1175,6 @@
|
|
|
1163
1175
|
.navds-chips--small .navds-chips--icon-right {
|
|
1164
1176
|
padding-right: var(--a-spacing-05);
|
|
1165
1177
|
}
|
|
1166
|
-
.navds-chips--small .navds-chips--icon-left {
|
|
1167
|
-
padding-left: 0.375rem;
|
|
1168
|
-
}
|
|
1169
1178
|
[data-theme="dark"] .navds-copybutton,
|
|
1170
1179
|
[data-theme="dark"].navds-copybutton {
|
|
1171
1180
|
--a-text-action: var(--a-blue-300);
|
|
@@ -1599,6 +1608,9 @@
|
|
|
1599
1608
|
.navds-fieldset > :not(:first-child):not(:empty) {
|
|
1600
1609
|
margin-top: var(--a-spacing-2);
|
|
1601
1610
|
}
|
|
1611
|
+
.navds-fieldset__description {
|
|
1612
|
+
color: var(--ac-form-description, var(--a-text-subtle));
|
|
1613
|
+
}
|
|
1602
1614
|
.navds-fieldset > .navds-fieldset__description:not(:empty) {
|
|
1603
1615
|
margin-top: 0.125rem;
|
|
1604
1616
|
}
|
|
@@ -1620,6 +1632,7 @@
|
|
|
1620
1632
|
}
|
|
1621
1633
|
.navds-form-field__description {
|
|
1622
1634
|
margin-top: -6px;
|
|
1635
|
+
color: var(--ac-form-description, var(--a-text-subtle));
|
|
1623
1636
|
}
|
|
1624
1637
|
.navds-form-field .navds-error-message,
|
|
1625
1638
|
.navds-fieldset .navds-error-message {
|
|
@@ -3828,6 +3841,51 @@ button.navds-internalheader__title:active,
|
|
|
3828
3841
|
.navds-read-more--open > .navds-read-more__button:hover > .navds-read-more__expand-icon {
|
|
3829
3842
|
transform: translateY(-1px) rotate(-180deg);
|
|
3830
3843
|
}
|
|
3844
|
+
.navds-skeleton {
|
|
3845
|
+
display: block;
|
|
3846
|
+
background-color: var(--ac-skeleton-bg, var(--a-surface-neutral-moderate));
|
|
3847
|
+
height: 1.3em;
|
|
3848
|
+
animation: akselSkeletonAnimation 0.8s linear infinite alternate;
|
|
3849
|
+
}
|
|
3850
|
+
.navds-skeleton--has-children {
|
|
3851
|
+
color: transparent;
|
|
3852
|
+
}
|
|
3853
|
+
.navds-skeleton--has-children > * {
|
|
3854
|
+
visibility: hidden;
|
|
3855
|
+
}
|
|
3856
|
+
.navds-skeleton--has-children.navds-skeleton--no-height {
|
|
3857
|
+
height: auto;
|
|
3858
|
+
}
|
|
3859
|
+
.navds-skeleton--has-children.navds-skeleton--no-width {
|
|
3860
|
+
width: fit-content;
|
|
3861
|
+
}
|
|
3862
|
+
.navds-skeleton--text {
|
|
3863
|
+
height: auto;
|
|
3864
|
+
transform-origin: 0 55%;
|
|
3865
|
+
transform: scale(1, 0.6);
|
|
3866
|
+
border-radius: var(--a-border-radius-medium);
|
|
3867
|
+
}
|
|
3868
|
+
.navds-skeleton--text:empty::before {
|
|
3869
|
+
content: "\00a0";
|
|
3870
|
+
}
|
|
3871
|
+
.navds-skeleton--circle {
|
|
3872
|
+
border-radius: var(--a-border-radius-full);
|
|
3873
|
+
}
|
|
3874
|
+
.navds-skeleton--rectangle {
|
|
3875
|
+
border-radius: 0;
|
|
3876
|
+
}
|
|
3877
|
+
.navds-skeleton--rounded {
|
|
3878
|
+
border-radius: var(--a-border-radius-xlarge);
|
|
3879
|
+
}
|
|
3880
|
+
@keyframes akselSkeletonAnimation {
|
|
3881
|
+
0% {
|
|
3882
|
+
opacity: 1;
|
|
3883
|
+
}
|
|
3884
|
+
|
|
3885
|
+
100% {
|
|
3886
|
+
opacity: 0.4;
|
|
3887
|
+
}
|
|
3888
|
+
}
|
|
3831
3889
|
.navds-stepper {
|
|
3832
3890
|
--navds-stepper-circle-size: 1.75rem;
|
|
3833
3891
|
--navds-stepper-border-width: 2px;
|