@danske/sapphire-css 27.1.1 → 28.0.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.
|
@@ -92,10 +92,22 @@
|
|
|
92
92
|
.sapphire-list__item:not(:has(.sapphire-list__item-content-wrapper)) {
|
|
93
93
|
box-shadow: inset 0px -1px 0px 0px var(--sapphire-list-color-border-item-default);
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
/* For not virtualized list */
|
|
96
|
+
.sapphire-list--without-last-divider:not(:has([role="presentation"]))
|
|
96
97
|
.sapphire-list__item:last-child
|
|
97
98
|
.sapphire-list__item-content-wrapper:not(.is-focus):not(:focus),
|
|
98
|
-
.sapphire-list--without-last-divider
|
|
99
|
+
.sapphire-list--without-last-divider:not(:has([role="presentation"]))
|
|
100
|
+
.sapphire-list__item:last-child,
|
|
101
|
+
/* For virtualized lists.
|
|
102
|
+
* This is admittedly a bad-looking selector. To keep in
|
|
103
|
+
* mind that a virtualized list adds one or more extra nesting with role
|
|
104
|
+
* presentation. */
|
|
105
|
+
.sapphire-list--without-last-divider
|
|
106
|
+
[role="presentation"]:last-child > .sapphire-list__item
|
|
107
|
+
.sapphire-list__item-content-wrapper:not(.is-focus):not(:focus),
|
|
108
|
+
.sapphire-list--without-last-divider
|
|
109
|
+
[role="presentation"]:last-child > .sapphire-list__item,
|
|
110
|
+
/* other */
|
|
99
111
|
.sapphire-list__item:has(+ .sapphire-list__item
|
|
100
112
|
> .sapphire-list__item-content-wrapper.is-focus)
|
|
101
113
|
> .sapphire-list__item-content-wrapper:not(.is-focus, :not(.js-focus):focus),
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
@keyframes fade-in
|
|
1
|
+
@keyframes fade-in {
|
|
2
2
|
from {
|
|
3
3
|
opacity: 0;
|
|
4
|
-
transform: translate3d(
|
|
4
|
+
transform: translate3d(
|
|
5
|
+
0,
|
|
6
|
+
calc(var(--sapphire-toast-animation-direction, 1) * 100%),
|
|
7
|
+
0
|
|
8
|
+
)
|
|
9
|
+
translateX(var(--sapphire-toast-horizontal-transform)) scale(0.9);
|
|
5
10
|
}
|
|
6
11
|
|
|
7
12
|
to {
|
|
8
13
|
opacity: 1;
|
|
9
|
-
transform: translate3d(0, 0, 0)
|
|
14
|
+
transform: translate3d(0, 0, 0)
|
|
15
|
+
translateX(var(--sapphire-toast-horizontal-transform)) scale(1);
|
|
10
16
|
}
|
|
11
17
|
}
|
|
12
18
|
|
|
@@ -21,17 +27,53 @@
|
|
|
21
27
|
}
|
|
22
28
|
|
|
23
29
|
.sapphire-toast-container {
|
|
30
|
+
pointer-events: none;
|
|
24
31
|
position: fixed;
|
|
25
|
-
|
|
32
|
+
margin: var(--sapphire-toast-size-offset);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Placement */
|
|
36
|
+
.sapphire-toast-container--bottom {
|
|
37
|
+
--sapphire-toast-horizontal-transform: -50%;
|
|
38
|
+
bottom: 0;
|
|
26
39
|
left: 50%;
|
|
27
40
|
}
|
|
41
|
+
.sapphire-toast-container--bottom-left {
|
|
42
|
+
--sapphire-toast-horizontal-transform: 0%;
|
|
43
|
+
bottom: 0;
|
|
44
|
+
left: 0;
|
|
45
|
+
}
|
|
46
|
+
.sapphire-toast-container--bottom-right {
|
|
47
|
+
--sapphire-toast-horizontal-transform: 0%;
|
|
48
|
+
bottom: 0;
|
|
49
|
+
right: 0;
|
|
50
|
+
}
|
|
51
|
+
.sapphire-toast-container--top {
|
|
52
|
+
--sapphire-toast-animation-direction: -1;
|
|
53
|
+
--sapphire-toast-horizontal-transform: -50%;
|
|
54
|
+
top: 0;
|
|
55
|
+
left: 50%;
|
|
56
|
+
}
|
|
57
|
+
.sapphire-toast-container--top-left {
|
|
58
|
+
--sapphire-toast-animation-direction: -1;
|
|
59
|
+
--sapphire-toast-horizontal-transform: 0%;
|
|
60
|
+
top: 0;
|
|
61
|
+
left: 0;
|
|
62
|
+
}
|
|
63
|
+
.sapphire-toast-container--top-right {
|
|
64
|
+
--sapphire-toast-animation-direction: -1;
|
|
65
|
+
--sapphire-toast-horizontal-transform: 0%;
|
|
66
|
+
top: 0;
|
|
67
|
+
right: 0;
|
|
68
|
+
}
|
|
69
|
+
/************************************************************/
|
|
28
70
|
|
|
29
71
|
.sapphire-toast {
|
|
72
|
+
pointer-events: initial;
|
|
30
73
|
position: absolute;
|
|
31
|
-
|
|
32
|
-
|
|
74
|
+
inset: inherit;
|
|
33
75
|
/* absolute position & center */
|
|
34
|
-
transform: translateX(-
|
|
76
|
+
transform: translateX(var(--sapphire-toast-horizontal-transform));
|
|
35
77
|
|
|
36
78
|
/* let the text grow until max-width */
|
|
37
79
|
width: max-content;
|
|
@@ -66,14 +108,14 @@
|
|
|
66
108
|
}
|
|
67
109
|
|
|
68
110
|
.sapphire-toast--entering {
|
|
69
|
-
animation-name: fade-in
|
|
111
|
+
animation-name: fade-in;
|
|
70
112
|
}
|
|
71
113
|
|
|
72
114
|
/* This represents the toast which appears immediately after the current one
|
|
73
115
|
* disappears */
|
|
74
116
|
.sapphire-toast--queued {
|
|
75
117
|
opacity: 0;
|
|
76
|
-
animation-name: fade-in
|
|
118
|
+
animation-name: fade-in;
|
|
77
119
|
animation-delay: var(--sapphire-toast-time-transition);
|
|
78
120
|
animation-fill-mode: forwards;
|
|
79
121
|
}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
declare const styles: {
|
|
2
2
|
readonly "sapphire-toast-container": string;
|
|
3
|
+
readonly "sapphire-toast-container--bottom": string;
|
|
4
|
+
readonly "sapphire-toast-container--bottom-left": string;
|
|
5
|
+
readonly "sapphire-toast-container--bottom-right": string;
|
|
6
|
+
readonly "sapphire-toast-container--top": string;
|
|
7
|
+
readonly "sapphire-toast-container--top-left": string;
|
|
8
|
+
readonly "sapphire-toast-container--top-right": string;
|
|
3
9
|
readonly "sapphire-toast": string;
|
|
4
10
|
readonly "sapphire-toast--entering": string;
|
|
5
|
-
readonly "fade-in
|
|
11
|
+
readonly "fade-in": string;
|
|
6
12
|
readonly "sapphire-toast--queued": string;
|
|
7
13
|
readonly "sapphire-toast--exiting": string;
|
|
8
14
|
readonly "fade-out": string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danske/sapphire-css",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "28.0.1",
|
|
4
4
|
"description": "CSS implementation of the Sapphire Design System from Danske Bank A/S",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@danske/sapphire-design-tokens": "^37.0.0"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "1d251e9bee55e38ff1595ca53598d934474b1f1c"
|
|
72
72
|
}
|