@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/dropdown.css
ADDED
|
@@ -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
|
+
}
|
package/index.css
CHANGED
|
@@ -9,10 +9,12 @@
|
|
|
9
9
|
@import "chat.css";
|
|
10
10
|
@import "chips.css";
|
|
11
11
|
@import "copybutton.css";
|
|
12
|
+
@import "dropdown.css";
|
|
12
13
|
@import "expansioncard.css";
|
|
13
14
|
@import "guide-panel.css";
|
|
14
15
|
@import "form/index.css";
|
|
15
16
|
@import "help-text.css";
|
|
17
|
+
@import "internalheader.css";
|
|
16
18
|
@import "link.css";
|
|
17
19
|
@import "loader.css";
|
|
18
20
|
@import "modal.css";
|
|
@@ -20,6 +22,7 @@
|
|
|
20
22
|
@import "popover.css";
|
|
21
23
|
@import "date.css";
|
|
22
24
|
@import "tag.css";
|
|
25
|
+
@import "timeline.css";
|
|
23
26
|
@import "tooltip.css";
|
|
24
27
|
@import "toggle-group.css";
|
|
25
28
|
@import "panel.css";
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
.navds-internalheader {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-self: stretch;
|
|
4
|
+
background: var(--ac-internalheader-bg, var(--a-surface-inverted));
|
|
5
|
+
min-height: var(--a-spacing-12);
|
|
6
|
+
|
|
7
|
+
--navds-internalheader-focus: inset 0 0 0 2px var(--a-border-focus-on-inverted);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.navds-internalheader__title {
|
|
11
|
+
border: none;
|
|
12
|
+
overflow: visible;
|
|
13
|
+
background: transparent;
|
|
14
|
+
font: inherit;
|
|
15
|
+
font-weight: var(--a-font-weight-bold);
|
|
16
|
+
line-height: normal;
|
|
17
|
+
text-align: left;
|
|
18
|
+
padding: 0 var(--a-spacing-5) 0 var(--a-spacing-6);
|
|
19
|
+
border-right: 1px solid var(--ac-internalheader-divider, var(--a-gray-600));
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
text-decoration: none;
|
|
23
|
+
margin: 0;
|
|
24
|
+
color: var(--ac-internalheader-text, var(--a-text-on-inverted));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
button.navds-internalheader__title {
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.navds-internalheader__user {
|
|
32
|
+
padding: 0 var(--a-spacing-5);
|
|
33
|
+
border-left: 1px solid var(--ac-internalheader-divider, var(--a-gray-600));
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.navds-internalheader__button {
|
|
39
|
+
border: none;
|
|
40
|
+
margin: 0;
|
|
41
|
+
padding: 0 var(--a-spacing-3);
|
|
42
|
+
overflow: visible;
|
|
43
|
+
background: transparent;
|
|
44
|
+
font: inherit;
|
|
45
|
+
line-height: normal;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
text-align: left;
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-self: center;
|
|
51
|
+
gap: var(--a-spacing-2);
|
|
52
|
+
border-left: 1px solid var(--ac-internalheader-divider, var(--a-gray-600));
|
|
53
|
+
color: var(--ac-internalheader-text, var(--a-text-on-inverted));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
a.navds-internalheader__title:hover,
|
|
57
|
+
button.navds-internalheader__title:hover,
|
|
58
|
+
.navds-internalheader__button:hover {
|
|
59
|
+
background-color: var(--ac-internalheader-hover-bg, var(--a-surface-inverted-hover));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.navds-internalheader__title:focus-visible,
|
|
63
|
+
.navds-internalheader__button:focus-visible {
|
|
64
|
+
box-shadow: var(--navds-internalheader-focus);
|
|
65
|
+
outline: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@supports not selector(:focus-visible) {
|
|
69
|
+
.navds-internalheader__title:focus,
|
|
70
|
+
.navds-internalheader__button:focus {
|
|
71
|
+
box-shadow: var(--navds-internalheader-focus);
|
|
72
|
+
outline: none;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
a.navds-internalheader__title:active,
|
|
77
|
+
button.navds-internalheader__title:active,
|
|
78
|
+
.navds-internalheader__button:active {
|
|
79
|
+
background-color: var(--ac-internalheader-active-bg, var(--a-surface-inverted-active));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.navds-internalheader__user-button {
|
|
83
|
+
padding-left: var(--a-spacing-5);
|
|
84
|
+
gap: var(--a-spacing-4);
|
|
85
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-css",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "CSS for NAV Designsystem",
|
|
5
5
|
"author": "Aksel | NAV designsystem team",
|
|
6
6
|
"keywords": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"css:get-version": "node config/get-version.js"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@navikt/ds-tokens": "^
|
|
30
|
+
"@navikt/ds-tokens": "^4.0.0",
|
|
31
31
|
"cssnano": "6.0.0",
|
|
32
32
|
"fast-glob": "3.2.11",
|
|
33
33
|
"lodash": "4.17.21",
|
package/timeline.css
ADDED
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
.navds-timeline {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-width: fit-content;
|
|
7
|
+
align-items: center;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.navds-timeline__axislabels {
|
|
11
|
+
position: relative;
|
|
12
|
+
height: 1rem;
|
|
13
|
+
box-sizing: content-box;
|
|
14
|
+
grid-column: 2;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.navds-timeline__row-label {
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
width: auto;
|
|
20
|
+
margin-right: var(--a-spacing-4);
|
|
21
|
+
grid-column: 1;
|
|
22
|
+
min-height: 1.5rem;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: var(--a-spacing-2);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.navds-timeline__row-label:where(:nth-last-child(2)) {
|
|
29
|
+
align-self: flex-end;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.navds-timeline__axislabels-label {
|
|
33
|
+
position: absolute;
|
|
34
|
+
color: var(--ac-timeline-axislabel-text, var(--a-text-subtle));
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.navds-timeline__row {
|
|
39
|
+
display: flex;
|
|
40
|
+
background: var(--ac-timeline-row-bg, var(--a-surface-subtle));
|
|
41
|
+
margin: var(--a-spacing-4) 0;
|
|
42
|
+
grid-column: 2;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.navds-timeline__row--active {
|
|
46
|
+
background: var(--ac-timeline-row-active-bg, var(--a-surface-selected));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.navds-timeline__row:last-of-type {
|
|
50
|
+
margin-bottom: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.navds-timeline__row-periods {
|
|
54
|
+
min-height: 1.5rem;
|
|
55
|
+
position: relative;
|
|
56
|
+
width: 100%;
|
|
57
|
+
margin: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.navds-timeline__row-periods > li {
|
|
61
|
+
list-style-type: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.navds-timeline__period {
|
|
65
|
+
height: 100%;
|
|
66
|
+
border-radius: var(--a-border-radius-full);
|
|
67
|
+
position: absolute;
|
|
68
|
+
padding: 0;
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
z-index: 2;
|
|
72
|
+
border: none;
|
|
73
|
+
font-size: 1rem;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.navds-timeline__period--inner {
|
|
77
|
+
margin: 0 var(--a-spacing-1);
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
white-space: nowrap;
|
|
80
|
+
text-overflow: clip;
|
|
81
|
+
text-align: left;
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.navds-timeline__period--inner svg {
|
|
87
|
+
flex-shrink: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.navds-timeline__period--clickable {
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.navds-timeline__period--success {
|
|
95
|
+
background: var(--ac-timeline-period-success-bg, var(--a-surface-success-subtle));
|
|
96
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-period-success-border, var(--a-border-success));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.navds-timeline__period--success.navds-timeline__period--clickable:hover {
|
|
100
|
+
background: var(--a-surface-success-subtle-hover);
|
|
101
|
+
background: var(--ac-timeline-period-success-bg-hover, var(--a-surface-success-subtle-hover));
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.navds-timeline__period--warning {
|
|
105
|
+
background: var(--ac-timeline-period-warning-bg, var(--a-surface-warning-subtle));
|
|
106
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-period-warning-border, var(--a-border-warning));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.navds-timeline__period--warning.navds-timeline__period--clickable:hover {
|
|
110
|
+
background: var(--ac-timeline-period-warning-bg-hover, var(--a-surface-warning-subtle-hover));
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.navds-timeline__period--danger {
|
|
114
|
+
background: var(--ac-timeline-period-danger-bg, var(--a-surface-danger-subtle));
|
|
115
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-period-danger-border, var(--a-border-danger));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.navds-timeline__period--danger.navds-timeline__period--clickable:hover {
|
|
119
|
+
background: var(--ac-timeline-period-danger-bg-hover, var(--a-surface-danger-subtle-hover));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.navds-timeline__period--info {
|
|
123
|
+
background: var(--ac-timeline-period-info-bg, var(--a-surface-info-subtle));
|
|
124
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-period-info-border, var(--a-border-info));
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.navds-timeline__period--info.navds-timeline__period--clickable:hover {
|
|
128
|
+
background: var(--ac-timeline-period-info-bg-hover, var(--a-surface-info-subtle-hover));
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.navds-timeline__period--neutral {
|
|
132
|
+
background: var(--ac-timeline-period-neutral-bg, var(--a-bg-subtle));
|
|
133
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-period-neutral-border, var(--a-border-default));
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.navds-timeline__period--neutral.navds-timeline__period--clickable:hover {
|
|
137
|
+
background: var(--ac-timeline-period-neutral-bg-hover, var(--a-gray-200));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.navds-timeline__period--connected-both {
|
|
141
|
+
border-radius: 0;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.navds-timeline__period--connected-right {
|
|
145
|
+
border-bottom-right-radius: 0;
|
|
146
|
+
border-top-right-radius: 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.navds-timeline__period--connected-left {
|
|
150
|
+
border-bottom-left-radius: 0;
|
|
151
|
+
border-top-left-radius: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.navds-timeline__period--selected {
|
|
155
|
+
box-shadow: inset 0 0 0 2px var(--ac-timeline-period-selected-border, var(--a-border-action-selected));
|
|
156
|
+
z-index: 3;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.navds-timeline__pin-wrapper {
|
|
160
|
+
position: absolute;
|
|
161
|
+
grid-column: 2;
|
|
162
|
+
top: 0;
|
|
163
|
+
z-index: 1;
|
|
164
|
+
height: 100%;
|
|
165
|
+
display: flex;
|
|
166
|
+
flex-direction: column-reverse;
|
|
167
|
+
isolation: isolate;
|
|
168
|
+
|
|
169
|
+
--navdsc-timeline-pin-size: 0.9rem;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.navds-timeline__pin-button {
|
|
173
|
+
border: none;
|
|
174
|
+
cursor: pointer;
|
|
175
|
+
background: var(--a-surface-default);
|
|
176
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-pin-bg, var(--a-surface-danger)),
|
|
177
|
+
0 0 0 4px var(--ac-timeline-pin-bg, var(--a-surface-danger)), 0 0 0 5px var(--a-surface-default);
|
|
178
|
+
z-index: 2;
|
|
179
|
+
border-radius: var(--a-border-radius-full);
|
|
180
|
+
padding: 3.5px;
|
|
181
|
+
position: relative;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.navds-timeline__pin-button::before {
|
|
185
|
+
content: "";
|
|
186
|
+
inset: 0;
|
|
187
|
+
position: absolute;
|
|
188
|
+
width: 25px;
|
|
189
|
+
height: 25px;
|
|
190
|
+
border-radius: var(--a-border-radius-full);
|
|
191
|
+
left: calc(-12.5px + 3.5px);
|
|
192
|
+
top: calc(-12.5px + 3.5px);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.navds-timeline__pin-button:focus-visible {
|
|
196
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-pin-bg, var(--a-surface-danger)),
|
|
197
|
+
0 0 0 3px var(--ac-timeline-pin-bg, var(--a-surface-danger)), 0 0 0 4px var(--a-surface-default),
|
|
198
|
+
0 0 0 6px var(--a-border-focus);
|
|
199
|
+
outline: none;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.navds-timeline__pin-button:hover {
|
|
203
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)),
|
|
204
|
+
0 0 0 4px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)), 0 0 0 5px var(--a-surface-default);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.navds-timeline__pin-button:hover:focus-visible {
|
|
208
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)),
|
|
209
|
+
0 0 0 3px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)), 0 0 0 4px var(--a-surface-default),
|
|
210
|
+
0 0 0 6px var(--a-border-focus);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@supports not selector(:focus-visible) {
|
|
214
|
+
.navds-timeline__pin-button:focus {
|
|
215
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-pin-bg, var(--a-surface-danger)),
|
|
216
|
+
0 0 0 3px var(--ac-timeline-pin-bg, var(--a-surface-danger)), 0 0 0 4px var(--a-surface-default),
|
|
217
|
+
0 0 0 6px var(--a-border-focus);
|
|
218
|
+
outline: none;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.navds-timeline__pin-button:hover:focus {
|
|
222
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)),
|
|
223
|
+
0 0 0 3px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)), 0 0 0 4px var(--a-surface-default),
|
|
224
|
+
0 0 0 6px var(--a-border-focus);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.navds-timeline__pin-wrapper::before {
|
|
229
|
+
content: "";
|
|
230
|
+
top: var(--navdsc-timeline-pin-size);
|
|
231
|
+
height: calc(94% - var(--navdsc-timeline-pin-size));
|
|
232
|
+
width: 1px;
|
|
233
|
+
margin: 0 auto;
|
|
234
|
+
background: var(--a-surface-inverted);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.navds-timeline__zoom {
|
|
238
|
+
margin-top: var(--a-spacing-6);
|
|
239
|
+
float: right;
|
|
240
|
+
display: flex;
|
|
241
|
+
list-style-type: none;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.navds-timeline__zoom-button {
|
|
245
|
+
all: unset;
|
|
246
|
+
cursor: pointer;
|
|
247
|
+
padding: 6px 9px 6px 8px;
|
|
248
|
+
border: 1px solid var(--ac-timeline-zoom-border, var(--a-border-default));
|
|
249
|
+
border-width: 1px 0 1px 1px;
|
|
250
|
+
background: var(--ac-timeline-zoom-bg, var(--a-surface-default));
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.navds-timeline__zoom li:first-child .navds-timeline__zoom-button {
|
|
254
|
+
border-radius: var(--a-border-radius-medium) 0 0 var(--a-border-radius-medium);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.navds-timeline__zoom li:last-child .navds-timeline__zoom-button {
|
|
258
|
+
border-width: 1px;
|
|
259
|
+
border-radius: 0 var(--a-border-radius-medium) var(--a-border-radius-medium) 0;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.navds-timeline__zoom li:only-child .navds-timeline__zoom-button {
|
|
263
|
+
border-radius: var(--a-border-radius-medium);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.navds-timeline__zoom-button:not([aria-pressed="true"]):hover {
|
|
267
|
+
background: var(--ac-timeline-zoom-bg-hover, var(--a-surface-action-subtle-hover));
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.navds-timeline__zoom-button[aria-pressed="true"] {
|
|
271
|
+
background: var(--ac-timeline-zoom-selected-bg, var(--a-surface-inverted));
|
|
272
|
+
color: var(--ac-timeline-zoom-selected-text, var(--a-text-on-inverted));
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.navds-timeline__period:focus-visible {
|
|
276
|
+
outline: none;
|
|
277
|
+
z-index: 4;
|
|
278
|
+
box-shadow: 0 0 0 2px var(--a-border-focus);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.navds-timeline__period--selected:focus-visible {
|
|
282
|
+
box-shadow: inset 0 0 0 2px var(--ac-timeline-period-selected-border, var(--a-border-action-selected)),
|
|
283
|
+
0 0 0 2px var(--a-border-focus);
|
|
284
|
+
z-index: 3;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.navds-timeline__zoom li:focus-within {
|
|
288
|
+
z-index: var(--a-z-index-focus);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.navds-timeline__zoom-button:focus-visible {
|
|
292
|
+
box-shadow: 0 0 0 1px var(--a-surface-default), 0 0 0 3px var(--a-border-focus);
|
|
293
|
+
border-width: 1px;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.navds-timeline__zoom li:not(:last-child) .navds-timeline__zoom-button:focus-visible {
|
|
297
|
+
margin-right: 2px;
|
|
298
|
+
padding-right: 6px;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
@supports not selector(:focus-visible) {
|
|
302
|
+
.navds-timeline__period:focus {
|
|
303
|
+
outline: none;
|
|
304
|
+
z-index: 4;
|
|
305
|
+
box-shadow: 0 0 0 2px var(--a-border-focus);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.navds-timeline__period--selected:focus {
|
|
309
|
+
box-shadow: inset 0 0 0 2px var(--ac-timeline-period-selected-border, var(--a-border-action-selected)),
|
|
310
|
+
0 0 0 2px var(--a-border-focus);
|
|
311
|
+
z-index: 3;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.navds-timeline__zoom-button:focus {
|
|
315
|
+
box-shadow: 0 0 0 1px var(--a-surface-default), 0 0 0 3px var(--a-border-focus);
|
|
316
|
+
border-width: 1px;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.navds-timeline__zoom li:not(:last-child) .navds-timeline__zoom-button:focus {
|
|
320
|
+
margin-right: 2px;
|
|
321
|
+
padding-right: 6px;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Timeline Popover
|
|
327
|
+
*/
|
|
328
|
+
|
|
329
|
+
.navds-timeline__popover {
|
|
330
|
+
z-index: var(--a-z-index-popover);
|
|
331
|
+
background-color: var(--ac-popover-bg, var(--a-surface-default));
|
|
332
|
+
box-shadow: var(--a-shadow-medium);
|
|
333
|
+
border: 1px solid;
|
|
334
|
+
border-color: var(--ac-popover-border, var(--a-border-default));
|
|
335
|
+
border-radius: var(--a-border-radius-medium);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.navds-timeline__popover:focus {
|
|
339
|
+
outline: none;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.navds-timeline__popover-content {
|
|
343
|
+
padding: var(--a-spacing-3);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.navds-timeline__popover-arrow {
|
|
347
|
+
position: absolute;
|
|
348
|
+
z-index: -1;
|
|
349
|
+
transform: rotate(45deg);
|
|
350
|
+
background-color: var(--ac-popover-bg, var(--a-surface-default));
|
|
351
|
+
border: 1px solid;
|
|
352
|
+
border-color: var(--ac-popover-border, var(--a-border-default));
|
|
353
|
+
width: 1rem;
|
|
354
|
+
height: 1rem;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.navds-timeline__popover[data-placement^="top"] > .navds-timeline__popover-arrow {
|
|
358
|
+
border-left-color: transparent;
|
|
359
|
+
border-top-color: transparent;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.navds-timeline__popover[data-placement^="bottom"] > .navds-timeline__popover-arrow {
|
|
363
|
+
border-bottom-color: transparent;
|
|
364
|
+
border-right-color: transparent;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.navds-timeline__popover[data-placement^="left"] > .navds-timeline__popover-arrow {
|
|
368
|
+
border-left-color: transparent;
|
|
369
|
+
border-bottom-color: transparent;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.navds-timeline__popover[data-placement^="right"] > .navds-timeline__popover-arrow {
|
|
373
|
+
border-right-color: transparent;
|
|
374
|
+
border-top-color: transparent;
|
|
375
|
+
}
|
package/tokens.json
CHANGED
|
@@ -391,5 +391,47 @@
|
|
|
391
391
|
"--ac-textarea-counter-text": "--a-text-subtle",
|
|
392
392
|
"--ac-textarea-counter-error-text": "--a-text-danger",
|
|
393
393
|
"--ac-textarea-error-border": "--a-border-danger"
|
|
394
|
+
},
|
|
395
|
+
"dropdown": {
|
|
396
|
+
"--ac-dropdown-text": "--a-text-default",
|
|
397
|
+
"--ac-dropdown-item-text": "--a-text-action",
|
|
398
|
+
"--ac-dropdown-item-hover-bg": "--a-surface-action-subtle-hover",
|
|
399
|
+
"--ac-dropdown-item-active-bg": "--a-surface-action-active",
|
|
400
|
+
"--ac-dropdown-item-active-text": "--a-text-on-active"
|
|
401
|
+
},
|
|
402
|
+
"internalheader": {
|
|
403
|
+
"--ac-internalheader-bg": "--a-surface-inverted",
|
|
404
|
+
"--ac-internalheader-divider": "--a-gray-600",
|
|
405
|
+
"--ac-internalheader-text": "--a-text-on-inverted",
|
|
406
|
+
"--ac-internalheader-hover-bg": "--a-surface-inverted-hover",
|
|
407
|
+
"--ac-internalheader-active-bg": "--a-surface-inverted-active"
|
|
408
|
+
},
|
|
409
|
+
"timeline": {
|
|
410
|
+
"--ac-timeline-row-bg": "--a-surface-subtle",
|
|
411
|
+
"--ac-timeline-row-active-bg": "--a-surface-selected",
|
|
412
|
+
"--ac-timeline-period-success-bg": "--a-surface-success-subtle",
|
|
413
|
+
"--ac-timeline-period-success-border": "--a-border-success",
|
|
414
|
+
"--ac-timeline-period-success-bg-hover": "--a-surface-success-subtle-hover",
|
|
415
|
+
"--ac-timeline-period-warning-bg": "--a-surface-warning-subtle",
|
|
416
|
+
"--ac-timeline-period-warning-border": "--a-border-warning",
|
|
417
|
+
"--ac-timeline-period-warning-bg-hover": "--a-surface-warning-subtle-hover",
|
|
418
|
+
"--ac-timeline-period-danger-bg": "--a-surface-danger-subtle",
|
|
419
|
+
"--ac-timeline-period-danger-border": "--a-border-danger",
|
|
420
|
+
"--ac-timeline-period-danger-bg-hover": "--a-surface-danger-subtle-hover",
|
|
421
|
+
"--ac-timeline-period-info-bg": "--a-surface-info-subtle",
|
|
422
|
+
"--ac-timeline-period-info-border": "--a-border-info",
|
|
423
|
+
"--ac-timeline-period-info-bg-hover": "--a-surface-info-subtle-hover",
|
|
424
|
+
"--ac-timeline-period-neutral-bg": "--a-bg-subtle",
|
|
425
|
+
"--ac-timeline-period-neutral-border": "--a-border-default",
|
|
426
|
+
"--ac-timeline-period-neutral-bg-hover": "--a-gray-200",
|
|
427
|
+
"--ac-timeline-period-selected-border": "--a-border-action-selected",
|
|
428
|
+
"--ac-timeline-pin-bg": "--a-surface-danger",
|
|
429
|
+
"--ac-timeline-pin-bg-hover": "--a-surface-danger-hover",
|
|
430
|
+
"--ac-timeline-zoom-border": "--a-border-default",
|
|
431
|
+
"--ac-timeline-zoom-bg": "--a-surface-default",
|
|
432
|
+
"--ac-timeline-zoom-bg-hover": "--a-surface-action-subtle-hover",
|
|
433
|
+
"--ac-timeline-zoom-selected-bg": "--a-surface-inverted",
|
|
434
|
+
"--ac-timeline-zoom-selected-text": "--a-text-on-inverted",
|
|
435
|
+
"--ac-timeline-axislabel-text": "--a-text-subtle"
|
|
394
436
|
}
|
|
395
437
|
}
|