@navikt/ds-css 3.4.2 → 4.0.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 +30 -0
- package/config/_mappings.js +17 -2
- package/dist/component/dropdown.css +77 -0
- package/dist/component/dropdown.min.css +1 -0
- package/dist/component/index.css +461 -1
- package/dist/component/index.min.css +2 -2
- package/dist/component/internalheader.css +85 -0
- package/dist/component/internalheader.min.css +1 -0
- package/dist/component/timeline.css +375 -0
- package/dist/component/timeline.min.css +1 -0
- package/dist/components.css +460 -0
- package/dist/components.min.css +2 -2
- package/dist/global/tokens.css +1 -1
- package/dist/index.css +461 -1
- package/dist/index.min.css +2 -2
- package/dropdown.css +77 -0
- package/index.css +3 -0
- package/internalheader.css +85 -0
- package/package.json +2 -2
- package/timeline.css +375 -0
- package/tokens.json +42 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @navikt/ds-css
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#2026](https://github.com/navikt/aksel/pull/2026) [`895bdc08e`](https://github.com/navikt/aksel/commit/895bdc08e50647d9b9186cbf0e9ab069323de56c) Thanks [@KenAJoh](https://github.com/KenAJoh)! - :test-tube: Datepicker og Monthpicker er nå ute av beta. Kjør codemod for migrering, eller `cmd/ctrl + shift + f` og erstatt `UNSAFE_` med ``
|
|
8
|
+
|
|
9
|
+
- UNSAFE-prefix er fjernet fra Datepicker og Monthpicker
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npx @navikt/aksel codemod v4-date
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
- [#2026](https://github.com/navikt/aksel/pull/2026) [`895bdc08e`](https://github.com/navikt/aksel/commit/895bdc08e50647d9b9186cbf0e9ab069323de56c) Thanks [@KenAJoh](https://github.com/KenAJoh)! - :truck: Komponenter i `@navikt/ds-react-internal` er flyttet over til `@navikt/ds-react`
|
|
16
|
+
|
|
17
|
+
- `<Header />` er renamet til `<InternalHeader />`
|
|
18
|
+
- Dropdown, Timeline og InternalHeader(Header) er flyttet over til `@navikt/ds-react`
|
|
19
|
+
- All styling fra `@navikt/ds-css-internal` er flyttet til `@navikt/ds-css` og classname-prefix er endret fra `navdsi` -> `navds` for flyttede komponenter. Sett opp [stylelint med configen vår](https://aksel.nav.no/grunnleggende/kode/stylelint), så vil du få feilmelding om du bruker gamle klassenavn.
|
|
20
|
+
- Fikset cascading-problem mellom dropdown og popover. Dropdown blir ikke lengre påvirket av import-rekkefølge av popover.
|
|
21
|
+
- Styling for flyttede komponenter finnes nå på CDN (https://aksel.nav.no/grunnleggende/kode/css-import)
|
|
22
|
+
|
|
23
|
+
Kjør codemod for migrering:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
// React
|
|
27
|
+
npx @navikt/aksel codemod v4-internal-react
|
|
28
|
+
|
|
29
|
+
// CSS
|
|
30
|
+
npx @navikt/aksel codemod v4-internal-css
|
|
31
|
+
```
|
|
32
|
+
|
|
3
33
|
## 3.4.2
|
|
4
34
|
|
|
5
35
|
## 3.4.1
|
package/config/_mappings.js
CHANGED
|
@@ -69,6 +69,11 @@ const StyleMappings = {
|
|
|
69
69
|
dependencies: [typoCss],
|
|
70
70
|
},
|
|
71
71
|
{ component: "Detail", main: typoCss },
|
|
72
|
+
{
|
|
73
|
+
component: "Dropdown",
|
|
74
|
+
main: "dropdown.css",
|
|
75
|
+
dependencies: [typoCss, "popover.css"],
|
|
76
|
+
},
|
|
72
77
|
{ component: "ErrorMessage", main: typoCss },
|
|
73
78
|
{ component: "ErrorSummary", main: formCss, dependencies: [typoCss] },
|
|
74
79
|
{
|
|
@@ -90,6 +95,11 @@ const StyleMappings = {
|
|
|
90
95
|
dependencies: ["popover.css"],
|
|
91
96
|
},
|
|
92
97
|
{ component: "Ingress", main: typoCss },
|
|
98
|
+
{
|
|
99
|
+
component: "InternalHeader",
|
|
100
|
+
main: "internalheader.css",
|
|
101
|
+
dependencies: [typoCss],
|
|
102
|
+
},
|
|
93
103
|
{ component: "Label", main: typoCss },
|
|
94
104
|
{ component: "Link", main: "link.css", dependencies: [typoCss] },
|
|
95
105
|
{
|
|
@@ -131,12 +141,17 @@ const StyleMappings = {
|
|
|
131
141
|
},
|
|
132
142
|
{ component: "Tooltip", main: "tooltip.css", dependencies: [typoCss] },
|
|
133
143
|
{
|
|
134
|
-
component: "
|
|
144
|
+
component: "Timeline",
|
|
145
|
+
main: "timeline.css",
|
|
146
|
+
dependencies: [typoCss],
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
component: "DatePicker",
|
|
135
150
|
main: "date.css",
|
|
136
151
|
dependencies: [typoCss, "button.css", "popover.css"],
|
|
137
152
|
},
|
|
138
153
|
{
|
|
139
|
-
component: "
|
|
154
|
+
component: "MonthPicker",
|
|
140
155
|
main: "date.css",
|
|
141
156
|
dependencies: [typoCss, "button.css", "popover.css"],
|
|
142
157
|
},
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
.navds-dropdown__menu {
|
|
2
|
+
overflow: hidden;
|
|
3
|
+
padding: var(--a-spacing-2) 0;
|
|
4
|
+
color: var(--ac-dropdown-text, var(--a-text-default));
|
|
5
|
+
width: 27ch;
|
|
6
|
+
max-height: 616px;
|
|
7
|
+
overflow-y: auto;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.navds-dropdown__divider {
|
|
11
|
+
margin: var(--a-spacing-3) 0;
|
|
12
|
+
border: none;
|
|
13
|
+
border-bottom: 1px solid var(--a-border-divider);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.navds-dropdown__menu > :not(.navds-dropdown__divider):not(.navds-dropdown__list) {
|
|
17
|
+
margin: 0 var(--a-spacing-4) var(--a-spacing-3);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.navds-dropdown__list {
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding: 0;
|
|
23
|
+
list-style: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.navds-dropdown__list-item {
|
|
27
|
+
margin: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.navds-dropdown__list-heading {
|
|
31
|
+
margin: var(--a-spacing-1) var(--a-spacing-4) var(--a-spacing-3);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.navds-dropdown__item {
|
|
35
|
+
border: none;
|
|
36
|
+
margin: 0;
|
|
37
|
+
overflow: visible;
|
|
38
|
+
background: transparent;
|
|
39
|
+
color: var(--ac-dropdown-item-text, var(--a-text-action));
|
|
40
|
+
font: inherit;
|
|
41
|
+
text-decoration: none;
|
|
42
|
+
text-align: left;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
width: 100%;
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
gap: var(--a-spacing-2);
|
|
48
|
+
padding: var(--a-spacing-1) var(--a-spacing-4);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.navds-dropdown__item:hover {
|
|
52
|
+
background-color: var(--ac-dropdown-item-hover-bg, var(--a-surface-action-subtle-hover));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.navds-dropdown__item:active {
|
|
56
|
+
background-color: var(--ac-dropdown-item-active-bg, var(--a-surface-action-active));
|
|
57
|
+
color: var(--ac-dropdown-item-active-text, var(--a-text-on-action));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.navds-dropdown__item:focus-visible {
|
|
61
|
+
outline: none;
|
|
62
|
+
box-shadow: inset 0 0 0 2px var(--a-border-focus);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@supports not selector(:focus-visible) {
|
|
66
|
+
.navds-dropdown__item:focus {
|
|
67
|
+
outline: none;
|
|
68
|
+
box-shadow: inset 0 0 0 2px var(--a-border-focus);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.navds-dropdown__item:disabled {
|
|
73
|
+
color: var(--ac-dropdown-item-text, var(--a-text-action));
|
|
74
|
+
opacity: 0.3;
|
|
75
|
+
background: transparent;
|
|
76
|
+
cursor: not-allowed;
|
|
77
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.navds-dropdown__menu{color:var(--ac-dropdown-text,var(--a-text-default));max-height:616px;overflow:hidden;overflow-y:auto;padding:var(--a-spacing-2) 0;width:27ch}.navds-dropdown__divider{border:none;border-bottom:1px solid var(--a-border-divider);margin:var(--a-spacing-3) 0}.navds-dropdown__menu>:not(.navds-dropdown__divider):not(.navds-dropdown__list){margin:0 var(--a-spacing-4) var(--a-spacing-3)}.navds-dropdown__list{list-style:none;margin:0;padding:0}.navds-dropdown__list-item{margin:0}.navds-dropdown__list-heading{margin:var(--a-spacing-1) var(--a-spacing-4) var(--a-spacing-3)}.navds-dropdown__item{align-items:center;background:transparent;border:none;color:var(--ac-dropdown-item-text,var(--a-text-action));cursor:pointer;display:flex;font:inherit;gap:var(--a-spacing-2);margin:0;overflow:visible;padding:var(--a-spacing-1) var(--a-spacing-4);text-align:left;text-decoration:none;width:100%}.navds-dropdown__item:hover{background-color:var(--ac-dropdown-item-hover-bg,var(--a-surface-action-subtle-hover))}.navds-dropdown__item:active{background-color:var(--ac-dropdown-item-active-bg,var(--a-surface-action-active));color:var(--ac-dropdown-item-active-text,var(--a-text-on-action))}.navds-dropdown__item:focus-visible{box-shadow:inset 0 0 0 2px var(--a-border-focus);outline:none}@supports not selector(:focus-visible){.navds-dropdown__item:focus{box-shadow:inset 0 0 0 2px var(--a-border-focus);outline:none}}.navds-dropdown__item:disabled{background:transparent;color:var(--ac-dropdown-item-text,var(--a-text-action));cursor:not-allowed;opacity:.3}
|
package/dist/component/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 Mon, 05 Jun 2023 14:08:10 GMT
|
|
5
5
|
*/
|
|
6
6
|
:root, :host {
|
|
7
7
|
--a-spacing-05: 0.125rem;
|
|
@@ -2016,6 +2016,72 @@ body,
|
|
|
2016
2016
|
cursor: not-allowed;
|
|
2017
2017
|
opacity: 0.3;
|
|
2018
2018
|
}
|
|
2019
|
+
.navds-dropdown__menu {
|
|
2020
|
+
overflow: hidden;
|
|
2021
|
+
padding: var(--a-spacing-2) 0;
|
|
2022
|
+
color: var(--ac-dropdown-text, var(--a-text-default));
|
|
2023
|
+
width: 27ch;
|
|
2024
|
+
max-height: 616px;
|
|
2025
|
+
overflow-y: auto;
|
|
2026
|
+
}
|
|
2027
|
+
.navds-dropdown__divider {
|
|
2028
|
+
margin: var(--a-spacing-3) 0;
|
|
2029
|
+
border: none;
|
|
2030
|
+
border-bottom: 1px solid var(--a-border-divider);
|
|
2031
|
+
}
|
|
2032
|
+
.navds-dropdown__menu > :not(.navds-dropdown__divider):not(.navds-dropdown__list) {
|
|
2033
|
+
margin: 0 var(--a-spacing-4) var(--a-spacing-3);
|
|
2034
|
+
}
|
|
2035
|
+
.navds-dropdown__list {
|
|
2036
|
+
margin: 0;
|
|
2037
|
+
padding: 0;
|
|
2038
|
+
list-style: none;
|
|
2039
|
+
}
|
|
2040
|
+
.navds-dropdown__list-item {
|
|
2041
|
+
margin: 0;
|
|
2042
|
+
}
|
|
2043
|
+
.navds-dropdown__list-heading {
|
|
2044
|
+
margin: var(--a-spacing-1) var(--a-spacing-4) var(--a-spacing-3);
|
|
2045
|
+
}
|
|
2046
|
+
.navds-dropdown__item {
|
|
2047
|
+
border: none;
|
|
2048
|
+
margin: 0;
|
|
2049
|
+
overflow: visible;
|
|
2050
|
+
background: transparent;
|
|
2051
|
+
color: var(--ac-dropdown-item-text, var(--a-text-action));
|
|
2052
|
+
font: inherit;
|
|
2053
|
+
text-decoration: none;
|
|
2054
|
+
text-align: left;
|
|
2055
|
+
cursor: pointer;
|
|
2056
|
+
width: 100%;
|
|
2057
|
+
display: flex;
|
|
2058
|
+
align-items: center;
|
|
2059
|
+
gap: var(--a-spacing-2);
|
|
2060
|
+
padding: var(--a-spacing-1) var(--a-spacing-4);
|
|
2061
|
+
}
|
|
2062
|
+
.navds-dropdown__item:hover {
|
|
2063
|
+
background-color: var(--ac-dropdown-item-hover-bg, var(--a-surface-action-subtle-hover));
|
|
2064
|
+
}
|
|
2065
|
+
.navds-dropdown__item:active {
|
|
2066
|
+
background-color: var(--ac-dropdown-item-active-bg, var(--a-surface-action-active));
|
|
2067
|
+
color: var(--ac-dropdown-item-active-text, var(--a-text-on-action));
|
|
2068
|
+
}
|
|
2069
|
+
.navds-dropdown__item:focus-visible {
|
|
2070
|
+
outline: none;
|
|
2071
|
+
box-shadow: inset 0 0 0 2px var(--a-border-focus);
|
|
2072
|
+
}
|
|
2073
|
+
@supports not selector(:focus-visible) {
|
|
2074
|
+
.navds-dropdown__item:focus {
|
|
2075
|
+
outline: none;
|
|
2076
|
+
box-shadow: inset 0 0 0 2px var(--a-border-focus);
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
.navds-dropdown__item:disabled {
|
|
2080
|
+
color: var(--ac-dropdown-item-text, var(--a-text-action));
|
|
2081
|
+
opacity: 0.3;
|
|
2082
|
+
background: transparent;
|
|
2083
|
+
cursor: not-allowed;
|
|
2084
|
+
}
|
|
2019
2085
|
.navds-expansioncard {
|
|
2020
2086
|
--__ac-expansioncard-border-color: var(--ac-expansioncard-border-color, var(--a-border-default));
|
|
2021
2087
|
--__ac-expansioncard-border-radius: var(--ac-expansioncard-border-radius, var(--a-border-radius-large));
|
|
@@ -3144,6 +3210,82 @@ body,
|
|
|
3144
3210
|
display: inherit;
|
|
3145
3211
|
}
|
|
3146
3212
|
}
|
|
3213
|
+
.navds-internalheader {
|
|
3214
|
+
display: flex;
|
|
3215
|
+
align-self: stretch;
|
|
3216
|
+
background: var(--ac-internalheader-bg, var(--a-surface-inverted));
|
|
3217
|
+
min-height: var(--a-spacing-12);
|
|
3218
|
+
|
|
3219
|
+
--navds-internalheader-focus: inset 0 0 0 2px var(--a-border-focus-on-inverted);
|
|
3220
|
+
}
|
|
3221
|
+
.navds-internalheader__title {
|
|
3222
|
+
border: none;
|
|
3223
|
+
overflow: visible;
|
|
3224
|
+
background: transparent;
|
|
3225
|
+
font: inherit;
|
|
3226
|
+
font-weight: var(--a-font-weight-bold);
|
|
3227
|
+
line-height: normal;
|
|
3228
|
+
text-align: left;
|
|
3229
|
+
padding: 0 var(--a-spacing-5) 0 var(--a-spacing-6);
|
|
3230
|
+
border-right: 1px solid var(--ac-internalheader-divider, var(--a-gray-600));
|
|
3231
|
+
display: flex;
|
|
3232
|
+
align-items: center;
|
|
3233
|
+
text-decoration: none;
|
|
3234
|
+
margin: 0;
|
|
3235
|
+
color: var(--ac-internalheader-text, var(--a-text-on-inverted));
|
|
3236
|
+
}
|
|
3237
|
+
button.navds-internalheader__title {
|
|
3238
|
+
cursor: pointer;
|
|
3239
|
+
}
|
|
3240
|
+
.navds-internalheader__user {
|
|
3241
|
+
padding: 0 var(--a-spacing-5);
|
|
3242
|
+
border-left: 1px solid var(--ac-internalheader-divider, var(--a-gray-600));
|
|
3243
|
+
display: flex;
|
|
3244
|
+
align-items: center;
|
|
3245
|
+
}
|
|
3246
|
+
.navds-internalheader__button {
|
|
3247
|
+
border: none;
|
|
3248
|
+
margin: 0;
|
|
3249
|
+
padding: 0 var(--a-spacing-3);
|
|
3250
|
+
overflow: visible;
|
|
3251
|
+
background: transparent;
|
|
3252
|
+
font: inherit;
|
|
3253
|
+
line-height: normal;
|
|
3254
|
+
cursor: pointer;
|
|
3255
|
+
text-align: left;
|
|
3256
|
+
display: flex;
|
|
3257
|
+
align-items: center;
|
|
3258
|
+
justify-self: center;
|
|
3259
|
+
gap: var(--a-spacing-2);
|
|
3260
|
+
border-left: 1px solid var(--ac-internalheader-divider, var(--a-gray-600));
|
|
3261
|
+
color: var(--ac-internalheader-text, var(--a-text-on-inverted));
|
|
3262
|
+
}
|
|
3263
|
+
a.navds-internalheader__title:hover,
|
|
3264
|
+
button.navds-internalheader__title:hover,
|
|
3265
|
+
.navds-internalheader__button:hover {
|
|
3266
|
+
background-color: var(--ac-internalheader-hover-bg, var(--a-surface-inverted-hover));
|
|
3267
|
+
}
|
|
3268
|
+
.navds-internalheader__title:focus-visible,
|
|
3269
|
+
.navds-internalheader__button:focus-visible {
|
|
3270
|
+
box-shadow: var(--navds-internalheader-focus);
|
|
3271
|
+
outline: none;
|
|
3272
|
+
}
|
|
3273
|
+
@supports not selector(:focus-visible) {
|
|
3274
|
+
.navds-internalheader__title:focus,
|
|
3275
|
+
.navds-internalheader__button:focus {
|
|
3276
|
+
box-shadow: var(--navds-internalheader-focus);
|
|
3277
|
+
outline: none;
|
|
3278
|
+
}
|
|
3279
|
+
}
|
|
3280
|
+
a.navds-internalheader__title:active,
|
|
3281
|
+
button.navds-internalheader__title:active,
|
|
3282
|
+
.navds-internalheader__button:active {
|
|
3283
|
+
background-color: var(--ac-internalheader-active-bg, var(--a-surface-inverted-active));
|
|
3284
|
+
}
|
|
3285
|
+
.navds-internalheader__user-button {
|
|
3286
|
+
padding-left: var(--a-spacing-5);
|
|
3287
|
+
gap: var(--a-spacing-4);
|
|
3288
|
+
}
|
|
3147
3289
|
.navds-link {
|
|
3148
3290
|
color: var(--ac-link-text, var(--a-text-action));
|
|
3149
3291
|
text-decoration: underline;
|
|
@@ -3820,6 +3962,324 @@ body,
|
|
|
3820
3962
|
background-color: var(--ac-tag-alt-3-moderate-bg, var(--a-surface-alt-3-moderate));
|
|
3821
3963
|
color: var(--ac-tag-alt-3-moderate-text, var(--a-text-default));
|
|
3822
3964
|
}
|
|
3965
|
+
.navds-timeline {
|
|
3966
|
+
position: relative;
|
|
3967
|
+
display: grid;
|
|
3968
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
3969
|
+
width: 100%;
|
|
3970
|
+
min-width: fit-content;
|
|
3971
|
+
align-items: center;
|
|
3972
|
+
}
|
|
3973
|
+
.navds-timeline__axislabels {
|
|
3974
|
+
position: relative;
|
|
3975
|
+
height: 1rem;
|
|
3976
|
+
box-sizing: content-box;
|
|
3977
|
+
grid-column: 2;
|
|
3978
|
+
}
|
|
3979
|
+
.navds-timeline__row-label {
|
|
3980
|
+
white-space: nowrap;
|
|
3981
|
+
width: auto;
|
|
3982
|
+
margin-right: var(--a-spacing-4);
|
|
3983
|
+
grid-column: 1;
|
|
3984
|
+
min-height: 1.5rem;
|
|
3985
|
+
display: flex;
|
|
3986
|
+
align-items: center;
|
|
3987
|
+
gap: var(--a-spacing-2);
|
|
3988
|
+
}
|
|
3989
|
+
.navds-timeline__row-label:where(:nth-last-child(2)) {
|
|
3990
|
+
align-self: flex-end;
|
|
3991
|
+
}
|
|
3992
|
+
.navds-timeline__axislabels-label {
|
|
3993
|
+
position: absolute;
|
|
3994
|
+
color: var(--ac-timeline-axislabel-text, var(--a-text-subtle));
|
|
3995
|
+
white-space: nowrap;
|
|
3996
|
+
}
|
|
3997
|
+
.navds-timeline__row {
|
|
3998
|
+
display: flex;
|
|
3999
|
+
background: var(--ac-timeline-row-bg, var(--a-surface-subtle));
|
|
4000
|
+
margin: var(--a-spacing-4) 0;
|
|
4001
|
+
grid-column: 2;
|
|
4002
|
+
}
|
|
4003
|
+
.navds-timeline__row--active {
|
|
4004
|
+
background: var(--ac-timeline-row-active-bg, var(--a-surface-selected));
|
|
4005
|
+
}
|
|
4006
|
+
.navds-timeline__row:last-of-type {
|
|
4007
|
+
margin-bottom: 0;
|
|
4008
|
+
}
|
|
4009
|
+
.navds-timeline__row-periods {
|
|
4010
|
+
min-height: 1.5rem;
|
|
4011
|
+
position: relative;
|
|
4012
|
+
width: 100%;
|
|
4013
|
+
margin: 0;
|
|
4014
|
+
}
|
|
4015
|
+
.navds-timeline__row-periods > li {
|
|
4016
|
+
list-style-type: none;
|
|
4017
|
+
}
|
|
4018
|
+
.navds-timeline__period {
|
|
4019
|
+
height: 100%;
|
|
4020
|
+
border-radius: var(--a-border-radius-full);
|
|
4021
|
+
position: absolute;
|
|
4022
|
+
padding: 0;
|
|
4023
|
+
display: flex;
|
|
4024
|
+
align-items: center;
|
|
4025
|
+
z-index: 2;
|
|
4026
|
+
border: none;
|
|
4027
|
+
font-size: 1rem;
|
|
4028
|
+
}
|
|
4029
|
+
.navds-timeline__period--inner {
|
|
4030
|
+
margin: 0 var(--a-spacing-1);
|
|
4031
|
+
overflow: hidden;
|
|
4032
|
+
white-space: nowrap;
|
|
4033
|
+
text-overflow: clip;
|
|
4034
|
+
text-align: left;
|
|
4035
|
+
display: flex;
|
|
4036
|
+
align-items: center;
|
|
4037
|
+
}
|
|
4038
|
+
.navds-timeline__period--inner svg {
|
|
4039
|
+
flex-shrink: 0;
|
|
4040
|
+
}
|
|
4041
|
+
.navds-timeline__period--clickable {
|
|
4042
|
+
cursor: pointer;
|
|
4043
|
+
}
|
|
4044
|
+
.navds-timeline__period--success {
|
|
4045
|
+
background: var(--ac-timeline-period-success-bg, var(--a-surface-success-subtle));
|
|
4046
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-period-success-border, var(--a-border-success));
|
|
4047
|
+
}
|
|
4048
|
+
.navds-timeline__period--success.navds-timeline__period--clickable:hover {
|
|
4049
|
+
background: var(--a-surface-success-subtle-hover);
|
|
4050
|
+
background: var(--ac-timeline-period-success-bg-hover, var(--a-surface-success-subtle-hover));
|
|
4051
|
+
}
|
|
4052
|
+
.navds-timeline__period--warning {
|
|
4053
|
+
background: var(--ac-timeline-period-warning-bg, var(--a-surface-warning-subtle));
|
|
4054
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-period-warning-border, var(--a-border-warning));
|
|
4055
|
+
}
|
|
4056
|
+
.navds-timeline__period--warning.navds-timeline__period--clickable:hover {
|
|
4057
|
+
background: var(--ac-timeline-period-warning-bg-hover, var(--a-surface-warning-subtle-hover));
|
|
4058
|
+
}
|
|
4059
|
+
.navds-timeline__period--danger {
|
|
4060
|
+
background: var(--ac-timeline-period-danger-bg, var(--a-surface-danger-subtle));
|
|
4061
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-period-danger-border, var(--a-border-danger));
|
|
4062
|
+
}
|
|
4063
|
+
.navds-timeline__period--danger.navds-timeline__period--clickable:hover {
|
|
4064
|
+
background: var(--ac-timeline-period-danger-bg-hover, var(--a-surface-danger-subtle-hover));
|
|
4065
|
+
}
|
|
4066
|
+
.navds-timeline__period--info {
|
|
4067
|
+
background: var(--ac-timeline-period-info-bg, var(--a-surface-info-subtle));
|
|
4068
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-period-info-border, var(--a-border-info));
|
|
4069
|
+
}
|
|
4070
|
+
.navds-timeline__period--info.navds-timeline__period--clickable:hover {
|
|
4071
|
+
background: var(--ac-timeline-period-info-bg-hover, var(--a-surface-info-subtle-hover));
|
|
4072
|
+
}
|
|
4073
|
+
.navds-timeline__period--neutral {
|
|
4074
|
+
background: var(--ac-timeline-period-neutral-bg, var(--a-bg-subtle));
|
|
4075
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-period-neutral-border, var(--a-border-default));
|
|
4076
|
+
}
|
|
4077
|
+
.navds-timeline__period--neutral.navds-timeline__period--clickable:hover {
|
|
4078
|
+
background: var(--ac-timeline-period-neutral-bg-hover, var(--a-gray-200));
|
|
4079
|
+
}
|
|
4080
|
+
.navds-timeline__period--connected-both {
|
|
4081
|
+
border-radius: 0;
|
|
4082
|
+
}
|
|
4083
|
+
.navds-timeline__period--connected-right {
|
|
4084
|
+
border-bottom-right-radius: 0;
|
|
4085
|
+
border-top-right-radius: 0;
|
|
4086
|
+
}
|
|
4087
|
+
.navds-timeline__period--connected-left {
|
|
4088
|
+
border-bottom-left-radius: 0;
|
|
4089
|
+
border-top-left-radius: 0;
|
|
4090
|
+
}
|
|
4091
|
+
.navds-timeline__period--selected {
|
|
4092
|
+
box-shadow: inset 0 0 0 2px var(--ac-timeline-period-selected-border, var(--a-border-action-selected));
|
|
4093
|
+
z-index: 3;
|
|
4094
|
+
}
|
|
4095
|
+
.navds-timeline__pin-wrapper {
|
|
4096
|
+
position: absolute;
|
|
4097
|
+
grid-column: 2;
|
|
4098
|
+
top: 0;
|
|
4099
|
+
z-index: 1;
|
|
4100
|
+
height: 100%;
|
|
4101
|
+
display: flex;
|
|
4102
|
+
flex-direction: column-reverse;
|
|
4103
|
+
isolation: isolate;
|
|
4104
|
+
|
|
4105
|
+
--navdsc-timeline-pin-size: 0.9rem;
|
|
4106
|
+
}
|
|
4107
|
+
.navds-timeline__pin-button {
|
|
4108
|
+
border: none;
|
|
4109
|
+
cursor: pointer;
|
|
4110
|
+
background: var(--a-surface-default);
|
|
4111
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-pin-bg, var(--a-surface-danger)),
|
|
4112
|
+
0 0 0 4px var(--ac-timeline-pin-bg, var(--a-surface-danger)), 0 0 0 5px var(--a-surface-default);
|
|
4113
|
+
z-index: 2;
|
|
4114
|
+
border-radius: var(--a-border-radius-full);
|
|
4115
|
+
padding: 3.5px;
|
|
4116
|
+
position: relative;
|
|
4117
|
+
}
|
|
4118
|
+
.navds-timeline__pin-button::before {
|
|
4119
|
+
content: "";
|
|
4120
|
+
inset: 0;
|
|
4121
|
+
position: absolute;
|
|
4122
|
+
width: 25px;
|
|
4123
|
+
height: 25px;
|
|
4124
|
+
border-radius: var(--a-border-radius-full);
|
|
4125
|
+
left: calc(-12.5px + 3.5px);
|
|
4126
|
+
top: calc(-12.5px + 3.5px);
|
|
4127
|
+
}
|
|
4128
|
+
.navds-timeline__pin-button:focus-visible {
|
|
4129
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-pin-bg, var(--a-surface-danger)),
|
|
4130
|
+
0 0 0 3px var(--ac-timeline-pin-bg, var(--a-surface-danger)), 0 0 0 4px var(--a-surface-default),
|
|
4131
|
+
0 0 0 6px var(--a-border-focus);
|
|
4132
|
+
outline: none;
|
|
4133
|
+
}
|
|
4134
|
+
.navds-timeline__pin-button:hover {
|
|
4135
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)),
|
|
4136
|
+
0 0 0 4px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)), 0 0 0 5px var(--a-surface-default);
|
|
4137
|
+
}
|
|
4138
|
+
.navds-timeline__pin-button:hover:focus-visible {
|
|
4139
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)),
|
|
4140
|
+
0 0 0 3px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)), 0 0 0 4px var(--a-surface-default),
|
|
4141
|
+
0 0 0 6px var(--a-border-focus);
|
|
4142
|
+
}
|
|
4143
|
+
@supports not selector(:focus-visible) {
|
|
4144
|
+
.navds-timeline__pin-button:focus {
|
|
4145
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-pin-bg, var(--a-surface-danger)),
|
|
4146
|
+
0 0 0 3px var(--ac-timeline-pin-bg, var(--a-surface-danger)), 0 0 0 4px var(--a-surface-default),
|
|
4147
|
+
0 0 0 6px var(--a-border-focus);
|
|
4148
|
+
outline: none;
|
|
4149
|
+
}
|
|
4150
|
+
|
|
4151
|
+
.navds-timeline__pin-button:hover:focus {
|
|
4152
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)),
|
|
4153
|
+
0 0 0 3px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)), 0 0 0 4px var(--a-surface-default),
|
|
4154
|
+
0 0 0 6px var(--a-border-focus);
|
|
4155
|
+
}
|
|
4156
|
+
}
|
|
4157
|
+
.navds-timeline__pin-wrapper::before {
|
|
4158
|
+
content: "";
|
|
4159
|
+
top: var(--navdsc-timeline-pin-size);
|
|
4160
|
+
height: calc(94% - var(--navdsc-timeline-pin-size));
|
|
4161
|
+
width: 1px;
|
|
4162
|
+
margin: 0 auto;
|
|
4163
|
+
background: var(--a-surface-inverted);
|
|
4164
|
+
}
|
|
4165
|
+
.navds-timeline__zoom {
|
|
4166
|
+
margin-top: var(--a-spacing-6);
|
|
4167
|
+
float: right;
|
|
4168
|
+
display: flex;
|
|
4169
|
+
list-style-type: none;
|
|
4170
|
+
}
|
|
4171
|
+
.navds-timeline__zoom-button {
|
|
4172
|
+
all: unset;
|
|
4173
|
+
cursor: pointer;
|
|
4174
|
+
padding: 6px 9px 6px 8px;
|
|
4175
|
+
border: 1px solid var(--ac-timeline-zoom-border, var(--a-border-default));
|
|
4176
|
+
border-width: 1px 0 1px 1px;
|
|
4177
|
+
background: var(--ac-timeline-zoom-bg, var(--a-surface-default));
|
|
4178
|
+
}
|
|
4179
|
+
.navds-timeline__zoom li:first-child .navds-timeline__zoom-button {
|
|
4180
|
+
border-radius: var(--a-border-radius-medium) 0 0 var(--a-border-radius-medium);
|
|
4181
|
+
}
|
|
4182
|
+
.navds-timeline__zoom li:last-child .navds-timeline__zoom-button {
|
|
4183
|
+
border-width: 1px;
|
|
4184
|
+
border-radius: 0 var(--a-border-radius-medium) var(--a-border-radius-medium) 0;
|
|
4185
|
+
}
|
|
4186
|
+
.navds-timeline__zoom li:only-child .navds-timeline__zoom-button {
|
|
4187
|
+
border-radius: var(--a-border-radius-medium);
|
|
4188
|
+
}
|
|
4189
|
+
.navds-timeline__zoom-button:not([aria-pressed="true"]):hover {
|
|
4190
|
+
background: var(--ac-timeline-zoom-bg-hover, var(--a-surface-action-subtle-hover));
|
|
4191
|
+
}
|
|
4192
|
+
.navds-timeline__zoom-button[aria-pressed="true"] {
|
|
4193
|
+
background: var(--ac-timeline-zoom-selected-bg, var(--a-surface-inverted));
|
|
4194
|
+
color: var(--ac-timeline-zoom-selected-text, var(--a-text-on-inverted));
|
|
4195
|
+
}
|
|
4196
|
+
.navds-timeline__period:focus-visible {
|
|
4197
|
+
outline: none;
|
|
4198
|
+
z-index: 4;
|
|
4199
|
+
box-shadow: 0 0 0 2px var(--a-border-focus);
|
|
4200
|
+
}
|
|
4201
|
+
.navds-timeline__period--selected:focus-visible {
|
|
4202
|
+
box-shadow: inset 0 0 0 2px var(--ac-timeline-period-selected-border, var(--a-border-action-selected)),
|
|
4203
|
+
0 0 0 2px var(--a-border-focus);
|
|
4204
|
+
z-index: 3;
|
|
4205
|
+
}
|
|
4206
|
+
.navds-timeline__zoom li:focus-within {
|
|
4207
|
+
z-index: var(--a-z-index-focus);
|
|
4208
|
+
}
|
|
4209
|
+
.navds-timeline__zoom-button:focus-visible {
|
|
4210
|
+
box-shadow: 0 0 0 1px var(--a-surface-default), 0 0 0 3px var(--a-border-focus);
|
|
4211
|
+
border-width: 1px;
|
|
4212
|
+
}
|
|
4213
|
+
.navds-timeline__zoom li:not(:last-child) .navds-timeline__zoom-button:focus-visible {
|
|
4214
|
+
margin-right: 2px;
|
|
4215
|
+
padding-right: 6px;
|
|
4216
|
+
}
|
|
4217
|
+
@supports not selector(:focus-visible) {
|
|
4218
|
+
.navds-timeline__period:focus {
|
|
4219
|
+
outline: none;
|
|
4220
|
+
z-index: 4;
|
|
4221
|
+
box-shadow: 0 0 0 2px var(--a-border-focus);
|
|
4222
|
+
}
|
|
4223
|
+
|
|
4224
|
+
.navds-timeline__period--selected:focus {
|
|
4225
|
+
box-shadow: inset 0 0 0 2px var(--ac-timeline-period-selected-border, var(--a-border-action-selected)),
|
|
4226
|
+
0 0 0 2px var(--a-border-focus);
|
|
4227
|
+
z-index: 3;
|
|
4228
|
+
}
|
|
4229
|
+
|
|
4230
|
+
.navds-timeline__zoom-button:focus {
|
|
4231
|
+
box-shadow: 0 0 0 1px var(--a-surface-default), 0 0 0 3px var(--a-border-focus);
|
|
4232
|
+
border-width: 1px;
|
|
4233
|
+
}
|
|
4234
|
+
|
|
4235
|
+
.navds-timeline__zoom li:not(:last-child) .navds-timeline__zoom-button:focus {
|
|
4236
|
+
margin-right: 2px;
|
|
4237
|
+
padding-right: 6px;
|
|
4238
|
+
}
|
|
4239
|
+
}
|
|
4240
|
+
/**
|
|
4241
|
+
* Timeline Popover
|
|
4242
|
+
*/
|
|
4243
|
+
.navds-timeline__popover {
|
|
4244
|
+
z-index: var(--a-z-index-popover);
|
|
4245
|
+
background-color: var(--ac-popover-bg, var(--a-surface-default));
|
|
4246
|
+
box-shadow: var(--a-shadow-medium);
|
|
4247
|
+
border: 1px solid;
|
|
4248
|
+
border-color: var(--ac-popover-border, var(--a-border-default));
|
|
4249
|
+
border-radius: var(--a-border-radius-medium);
|
|
4250
|
+
}
|
|
4251
|
+
.navds-timeline__popover:focus {
|
|
4252
|
+
outline: none;
|
|
4253
|
+
}
|
|
4254
|
+
.navds-timeline__popover-content {
|
|
4255
|
+
padding: var(--a-spacing-3);
|
|
4256
|
+
}
|
|
4257
|
+
.navds-timeline__popover-arrow {
|
|
4258
|
+
position: absolute;
|
|
4259
|
+
z-index: -1;
|
|
4260
|
+
transform: rotate(45deg);
|
|
4261
|
+
background-color: var(--ac-popover-bg, var(--a-surface-default));
|
|
4262
|
+
border: 1px solid;
|
|
4263
|
+
border-color: var(--ac-popover-border, var(--a-border-default));
|
|
4264
|
+
width: 1rem;
|
|
4265
|
+
height: 1rem;
|
|
4266
|
+
}
|
|
4267
|
+
.navds-timeline__popover[data-placement^="top"] > .navds-timeline__popover-arrow {
|
|
4268
|
+
border-left-color: transparent;
|
|
4269
|
+
border-top-color: transparent;
|
|
4270
|
+
}
|
|
4271
|
+
.navds-timeline__popover[data-placement^="bottom"] > .navds-timeline__popover-arrow {
|
|
4272
|
+
border-bottom-color: transparent;
|
|
4273
|
+
border-right-color: transparent;
|
|
4274
|
+
}
|
|
4275
|
+
.navds-timeline__popover[data-placement^="left"] > .navds-timeline__popover-arrow {
|
|
4276
|
+
border-left-color: transparent;
|
|
4277
|
+
border-bottom-color: transparent;
|
|
4278
|
+
}
|
|
4279
|
+
.navds-timeline__popover[data-placement^="right"] > .navds-timeline__popover-arrow {
|
|
4280
|
+
border-right-color: transparent;
|
|
4281
|
+
border-top-color: transparent;
|
|
4282
|
+
}
|
|
3823
4283
|
@keyframes tooltipFadeIn {
|
|
3824
4284
|
0% {
|
|
3825
4285
|
opacity: 0;
|