@navikt/ds-css 4.1.7 → 4.3.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/chat.css +30 -16
- package/dist/component/chat.css +30 -16
- package/dist/component/chat.min.css +1 -1
- package/dist/component/expansioncard.css +6 -3
- package/dist/component/expansioncard.min.css +1 -1
- package/dist/component/helptext.css +1 -1
- package/dist/component/helptext.min.css +1 -1
- package/dist/component/index.css +36 -20
- package/dist/component/index.min.css +2 -2
- package/dist/component/popover.css +1 -0
- package/dist/component/popover.min.css +1 -1
- package/dist/components.css +35 -19
- package/dist/components.min.css +2 -2
- package/dist/global/tokens.css +1 -1
- package/dist/index.css +36 -20
- package/dist/index.min.css +2 -2
- package/expansioncard.css +6 -3
- package/help-text.css +1 -1
- package/package.json +2 -2
- package/popover.css +1 -0
- package/tokens.json +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
.navds-popover{background-color:var(--ac-popover-bg,var(--a-surface-default));border:1px solid;border-color:var(--ac-popover-border,var(--a-border-default));border-radius:var(--a-border-radius-medium);box-shadow:var(--a-shadow-medium);z-index:var(--a-z-index-popover)}.navds-popover__content{padding:var(--a-spacing-4)}.navds-popover--hidden{display:none}.navds-popover:focus-visible{box-shadow:var(--a-shadow-focus);outline:none}@supports not selector(:focus-visible){.navds-popover:focus{box-shadow:var(--a-shadow-focus);outline:none}}.navds-popover__arrow{background-color:var(--ac-popover-bg,var(--a-surface-default));border:1px solid;border-color:var(--ac-popover-border,var(--a-border-default));height:1rem;position:absolute;-webkit-transform:rotate(45deg);transform:rotate(45deg);width:1rem;z-index:-1}.navds-popover[data-placement^=top]>.navds-popover__arrow{border-left-color:transparent;border-top-color:transparent}.navds-popover[data-placement^=bottom]>.navds-popover__arrow{border-bottom-color:transparent;border-right-color:transparent}.navds-popover[data-placement^=left]>.navds-popover__arrow{border-bottom-color:transparent;border-left-color:transparent}.navds-popover[data-placement^=right]>.navds-popover__arrow{border-right-color:transparent;border-top-color:transparent}
|
|
1
|
+
.navds-popover{background-color:var(--ac-popover-bg,var(--a-surface-default));border:1px solid;border-color:var(--ac-popover-border,var(--a-border-default));border-radius:var(--a-border-radius-medium);box-shadow:var(--a-shadow-medium);max-width:calc(100vw - var(--a-spacing-6));z-index:var(--a-z-index-popover)}.navds-popover__content{padding:var(--a-spacing-4)}.navds-popover--hidden{display:none}.navds-popover:focus-visible{box-shadow:var(--a-shadow-focus);outline:none}@supports not selector(:focus-visible){.navds-popover:focus{box-shadow:var(--a-shadow-focus);outline:none}}.navds-popover__arrow{background-color:var(--ac-popover-bg,var(--a-surface-default));border:1px solid;border-color:var(--ac-popover-border,var(--a-border-default));height:1rem;position:absolute;-webkit-transform:rotate(45deg);transform:rotate(45deg);width:1rem;z-index:-1}.navds-popover[data-placement^=top]>.navds-popover__arrow{border-left-color:transparent;border-top-color:transparent}.navds-popover[data-placement^=bottom]>.navds-popover__arrow{border-bottom-color:transparent;border-right-color:transparent}.navds-popover[data-placement^=left]>.navds-popover__arrow{border-bottom-color:transparent;border-left-color:transparent}.navds-popover[data-placement^=right]>.navds-popover__arrow{border-right-color:transparent;border-top-color:transparent}
|
package/dist/components.css
CHANGED
|
@@ -955,13 +955,11 @@
|
|
|
955
955
|
.navds-chat {
|
|
956
956
|
display: flex;
|
|
957
957
|
align-items: flex-end;
|
|
958
|
-
gap: var(--a-spacing-
|
|
959
|
-
|
|
958
|
+
gap: var(--a-spacing-3);
|
|
959
|
+
max-width: 40.75rem;
|
|
960
960
|
}
|
|
961
961
|
.navds-chat--right {
|
|
962
962
|
flex-direction: row-reverse;
|
|
963
|
-
padding-right: 0;
|
|
964
|
-
padding-left: var(--a-spacing-16);
|
|
965
963
|
}
|
|
966
964
|
.navds-chat__bubble-wrapper {
|
|
967
965
|
list-style: none;
|
|
@@ -976,15 +974,19 @@
|
|
|
976
974
|
}
|
|
977
975
|
.navds-chat__avatar {
|
|
978
976
|
align-items: center;
|
|
979
|
-
|
|
980
|
-
color: var(--ac-chat-avatar-
|
|
977
|
+
box-shadow: var(--a-shadow-xsmall);
|
|
978
|
+
background-color: var(--ac-chat-avatar-bg, var(--a-surface-neutral-subtle));
|
|
979
|
+
border: 1px solid var(--ac-chat-border-color, var(--a-border-subtle));
|
|
981
980
|
border-radius: var(--a-border-radius-full);
|
|
981
|
+
color: var(--ac-chat-avatar-color, var(--a-text-default));
|
|
982
982
|
display: flex;
|
|
983
983
|
flex-shrink: 0;
|
|
984
984
|
justify-content: center;
|
|
985
985
|
overflow: hidden;
|
|
986
|
-
height:
|
|
987
|
-
width:
|
|
986
|
+
height: 2.5rem;
|
|
987
|
+
width: 2.5rem;
|
|
988
|
+
font-size: 1.06rem;
|
|
989
|
+
letter-spacing: 0.024rem;
|
|
988
990
|
}
|
|
989
991
|
.navds-chat__avatar svg {
|
|
990
992
|
align-self: center;
|
|
@@ -992,11 +994,11 @@
|
|
|
992
994
|
width: 100%;
|
|
993
995
|
}
|
|
994
996
|
.navds-chat__bubble {
|
|
995
|
-
padding:
|
|
996
|
-
box-shadow: var(--a-shadow-
|
|
997
|
+
padding: var(--a-spacing-4);
|
|
998
|
+
box-shadow: var(--a-shadow-xsmall);
|
|
997
999
|
width: fit-content;
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
+
background-color: var(--ac-chat-bubble-bg, var(--a-surface-neutral-subtle));
|
|
1001
|
+
border: 1px solid var(--ac-chat-border-color, var(--a-border-subtle));
|
|
1000
1002
|
border-radius: var(--a-border-radius-xlarge);
|
|
1001
1003
|
border-bottom-left-radius: 2px;
|
|
1002
1004
|
display: flex;
|
|
@@ -1007,11 +1009,24 @@
|
|
|
1007
1009
|
border-radius: var(--a-border-radius-xlarge);
|
|
1008
1010
|
border-bottom-right-radius: 2px;
|
|
1009
1011
|
}
|
|
1012
|
+
.navds-chat--small .navds-chat__bubble {
|
|
1013
|
+
padding: var(--a-spacing-3);
|
|
1014
|
+
}
|
|
1015
|
+
.navds-chat--info .navds-chat__bubble,
|
|
1016
|
+
.navds-chat--info .navds-chat__avatar {
|
|
1017
|
+
background-color: var(--a-surface-info-subtle);
|
|
1018
|
+
}
|
|
1019
|
+
.navds-chat--neutral .navds-chat__bubble,
|
|
1020
|
+
.navds-chat--neutral .navds-chat__avatar {
|
|
1021
|
+
background-color: var(--a-surface-default);
|
|
1022
|
+
}
|
|
1010
1023
|
.navds-chat__top-text {
|
|
1011
1024
|
color: var(--ac-chat-top-text, var(--a-text-default));
|
|
1012
1025
|
display: flex;
|
|
1013
1026
|
gap: var(--a-spacing-2);
|
|
1014
1027
|
align-items: baseline;
|
|
1028
|
+
font-weight: normal;
|
|
1029
|
+
margin: 0;
|
|
1015
1030
|
}
|
|
1016
1031
|
.navds-chat--right .navds-chat__top-text {
|
|
1017
1032
|
align-self: flex-end;
|
|
@@ -1028,9 +1043,6 @@
|
|
|
1028
1043
|
.navds-chat--right .navds-chat__top-text--left {
|
|
1029
1044
|
align-self: flex-start;
|
|
1030
1045
|
}
|
|
1031
|
-
.navds-chat__name {
|
|
1032
|
-
font-weight: var(--a-font-weight-bold);
|
|
1033
|
-
}
|
|
1034
1046
|
.navds-chips {
|
|
1035
1047
|
display: flex;
|
|
1036
1048
|
gap: var(--a-spacing-2);
|
|
@@ -1433,7 +1445,7 @@
|
|
|
1433
1445
|
.navds-expansioncard__title--large {
|
|
1434
1446
|
margin-top: var(--a-spacing-1);
|
|
1435
1447
|
}
|
|
1436
|
-
.navds-expansioncard--small :where(.navds-expansioncard__title--small) {
|
|
1448
|
+
.navds-expansioncard--small > :where(.navds-expansioncard__header) :where(.navds-expansioncard__title--small) {
|
|
1437
1449
|
margin-top: var(--a-spacing-05);
|
|
1438
1450
|
}
|
|
1439
1451
|
.navds-expansioncard--small :where(.navds-expansioncard__title--medium, .navds-expansioncard__title--large) {
|
|
@@ -1465,7 +1477,7 @@
|
|
|
1465
1477
|
.navds-expansioncard__header-chevron {
|
|
1466
1478
|
transition: transform 150ms ease-in-out;
|
|
1467
1479
|
}
|
|
1468
|
-
.navds-expansioncard--open :where(.navds-expansioncard__header-chevron) {
|
|
1480
|
+
.navds-expansioncard--open > :where(.navds-expansioncard__header) :where(.navds-expansioncard__header-chevron) {
|
|
1469
1481
|
transform: translateY(0) rotate(180deg);
|
|
1470
1482
|
}
|
|
1471
1483
|
.navds-expansioncard__header-button:hover > :where(.navds-expansioncard__header-chevron) {
|
|
@@ -1481,7 +1493,10 @@
|
|
|
1481
1493
|
box-shadow: var(--a-shadow-focus);
|
|
1482
1494
|
}
|
|
1483
1495
|
}
|
|
1484
|
-
.navds-expansioncard--open
|
|
1496
|
+
.navds-expansioncard--open
|
|
1497
|
+
> :where(.navds-expansioncard__header)
|
|
1498
|
+
> :where(.navds-expansioncard__header-button):hover
|
|
1499
|
+
:where(.navds-expansioncard__header-chevron) {
|
|
1485
1500
|
transform: translateY(-1px) rotate(180deg);
|
|
1486
1501
|
}
|
|
1487
1502
|
.navds-expansioncard__header-button::after {
|
|
@@ -2477,7 +2492,7 @@
|
|
|
2477
2492
|
}
|
|
2478
2493
|
.navds-help-text__popover.navds-popover {
|
|
2479
2494
|
background-color: var(--ac-help-text-popover-bg, var(--a-surface-info-subtle));
|
|
2480
|
-
max-width: min(65ch,
|
|
2495
|
+
max-width: min(65ch, calc(100vw - 1.5rem));
|
|
2481
2496
|
|
|
2482
2497
|
--ac-popover-border: var(--a-border-info);
|
|
2483
2498
|
}
|
|
@@ -2833,6 +2848,7 @@ button.navds-internalheader__title:active,
|
|
|
2833
2848
|
border: 1px solid;
|
|
2834
2849
|
border-color: var(--ac-popover-border, var(--a-border-default));
|
|
2835
2850
|
border-radius: var(--a-border-radius-medium);
|
|
2851
|
+
max-width: calc(100vw - var(--a-spacing-6));
|
|
2836
2852
|
}
|
|
2837
2853
|
.navds-popover__content {
|
|
2838
2854
|
padding: var(--a-spacing-4);
|