@navikt/ds-css 7.2.1 → 7.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 +10 -0
- package/action-menu.css +227 -0
- package/baseline/_inline-reset.css +3 -1
- package/config/_mappings.js +5 -0
- package/darkside/README.md +25 -0
- package/darkside/baseline/fonts.darkside.css +129 -0
- package/darkside/baseline/print.darkside.css +75 -0
- package/darkside/baseline/reset.darkside.css +148 -0
- package/darkside/baseline/theme.darkside.css +10 -0
- package/darkside/baseline/utilities.darkside.css +65 -0
- package/darkside/button.darkside.css +6 -0
- package/darkside/index.css +17 -0
- package/darkside/typography.darkside.css +6 -0
- package/dist/component/actionmenu.css +228 -0
- package/dist/component/actionmenu.min.css +1 -0
- package/dist/component/index.css +199 -2
- package/dist/component/index.min.css +4 -4
- package/dist/component/list.css +1 -0
- package/dist/component/list.min.css +1 -1
- package/dist/components.css +230 -0
- package/dist/components.min.css +2 -2
- package/dist/global/baseline.css +3 -1
- package/dist/global/baseline.min.css +1 -1
- package/dist/global/tokens.css +1 -1
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +199 -2
- package/dist/index.min.css +4 -4
- package/index.css +1 -0
- package/list.css +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
[hidden] {
|
|
2
|
+
display: none !important;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/* https://web.dev/prefers-reduced-motion/ */
|
|
6
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7
|
+
*:not(.navds-loader *):not(.navds-loader):not(.navds-progress-bar *):not(.navds-progress-bar),
|
|
8
|
+
::before,
|
|
9
|
+
::after {
|
|
10
|
+
animation-delay: -1ms !important;
|
|
11
|
+
animation-duration: 1ms !important;
|
|
12
|
+
animation-iteration-count: 1 !important;
|
|
13
|
+
background-attachment: initial !important;
|
|
14
|
+
scroll-behavior: auto !important;
|
|
15
|
+
transition-duration: 0s !important;
|
|
16
|
+
transition-delay: 0s !important;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/*
|
|
21
|
+
* From https://github.com/h5bp/html5-boilerplate/blob/master/dist/css/style.css
|
|
22
|
+
*
|
|
23
|
+
* Hide only visually, but have it available for screen readers:
|
|
24
|
+
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
|
|
25
|
+
*
|
|
26
|
+
* 1. For long content, line feeds are not interpreted as spaces and small width
|
|
27
|
+
* causes content to wrap 1 word per line:
|
|
28
|
+
* https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
.sr-only,
|
|
32
|
+
.navds-sr-only {
|
|
33
|
+
border: 0;
|
|
34
|
+
clip: rect(0, 0, 0, 0);
|
|
35
|
+
clip-path: inset(50%);
|
|
36
|
+
height: 1px;
|
|
37
|
+
margin: -1px;
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
padding: 0;
|
|
40
|
+
position: absolute;
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
width: 1px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/*
|
|
46
|
+
* From https://github.com/h5bp/html5-boilerplate/blob/master/dist/css/style.css
|
|
47
|
+
*
|
|
48
|
+
* Extends the .sr-only class to allow the element
|
|
49
|
+
* to be focusable when navigated to via the keyboard:
|
|
50
|
+
* https://www.drupal.org/node/897638
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
.sr-only.focusable:active,
|
|
54
|
+
.sr-only.focusable:focus,
|
|
55
|
+
.navds-sr-only.focusable:active,
|
|
56
|
+
.navds-sr-only.focusable:focus {
|
|
57
|
+
clip: auto;
|
|
58
|
+
clip-path: none;
|
|
59
|
+
height: auto;
|
|
60
|
+
margin: 0;
|
|
61
|
+
overflow: visible;
|
|
62
|
+
position: static;
|
|
63
|
+
white-space: inherit;
|
|
64
|
+
width: auto;
|
|
65
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
|
|
3
|
+
@layer aksel.reset, aksel.typography, aksel.theme, aksel.components, aksel.utilities;
|
|
4
|
+
|
|
5
|
+
/* CSS foundations */
|
|
6
|
+
@import url("./baseline/reset.darkside.css") layer(aksel.reset);
|
|
7
|
+
@import url("./baseline/print.darkside.css") layer(aksel.reset);
|
|
8
|
+
@import url("./baseline/fonts.darkside.css") layer(aksel.typography);
|
|
9
|
+
@import url("./baseline/theme.darkside.css") layer(aksel.theme);
|
|
10
|
+
@import url("./typography.darkside.css") layer(aksel.typography);
|
|
11
|
+
@import url("./baseline/utilities.darkside.css") layer(aksel.utilities);
|
|
12
|
+
|
|
13
|
+
/* Theming */
|
|
14
|
+
@import url("@navikt/ds-tokens/dist/darkside/tokens.css") layer(aksel.theme);
|
|
15
|
+
|
|
16
|
+
/* Components */
|
|
17
|
+
@import url("./button.darkside.css") layer(aksel.components);
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
.navds-action-menu__content {
|
|
2
|
+
overflow: hidden;
|
|
3
|
+
box-shadow: var(--a-shadow-medium);
|
|
4
|
+
border-radius: var(--a-border-radius-large);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/* stylelint-disable csstools/value-no-unknown-custom-properties */
|
|
8
|
+
|
|
9
|
+
.navds-action-menu__content > .navds-action-menu__content-inner {
|
|
10
|
+
--__ac-action-menu-content-p: var(--a-spacing-2);
|
|
11
|
+
--__ac-action-menu-item-pr: var(--a-spacing-3);
|
|
12
|
+
--__ac-action-menu-item-pl: var(--a-spacing-2);
|
|
13
|
+
--__ac-action-menu-item-height: 2rem;
|
|
14
|
+
|
|
15
|
+
border-radius: var(--a-border-radius-large);
|
|
16
|
+
background-color: var(--a-surface-default);
|
|
17
|
+
min-width: 128px;
|
|
18
|
+
max-width: min(95vw, 640px);
|
|
19
|
+
transform-origin: var(--__ac-action-menu-content-transform-origin);
|
|
20
|
+
animation-duration: 160ms;
|
|
21
|
+
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
22
|
+
padding: var(--__ac-action-menu-content-p);
|
|
23
|
+
overflow: auto;
|
|
24
|
+
max-height: var(--__ac-action-menu-content-available-height);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.navds-action-menu__content:where([data-state="open"]):where([data-side="bottom"]) {
|
|
28
|
+
animation-name: aksel-action-from-bottom, aksel-action-fade-in;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.navds-action-menu__content:where([data-state="open"]):where([data-side="top"]) {
|
|
32
|
+
animation-name: aksel-action-from-top, aksel-action-fade-in;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.navds-action-menu__content:where([data-state="open"]):where([data-side="left"]) {
|
|
36
|
+
animation-name: aksel-action-from-left, aksel-action-fade-in;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.navds-action-menu__content:where([data-state="open"]):where([data-side="right"]) {
|
|
40
|
+
animation-name: aksel-action-from-right, aksel-action-fade-in;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@keyframes aksel-action-from-bottom {
|
|
44
|
+
from {
|
|
45
|
+
transform: translateY(-4px);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
to {
|
|
49
|
+
transform: translateY(0);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@keyframes aksel-action-from-top {
|
|
54
|
+
from {
|
|
55
|
+
transform: translateY(4px);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
to {
|
|
59
|
+
transform: translateY(0);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@keyframes aksel-action-from-left {
|
|
64
|
+
from {
|
|
65
|
+
transform: translateX(4px);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
to {
|
|
69
|
+
transform: translateY(0);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@keyframes aksel-action-from-right {
|
|
74
|
+
from {
|
|
75
|
+
transform: translateX(-4px);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
to {
|
|
79
|
+
transform: translateY(0);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@keyframes aksel-action-fade-in {
|
|
84
|
+
from {
|
|
85
|
+
opacity: 0.01;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
to {
|
|
89
|
+
opacity: 1;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.navds-action-menu__item {
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
gap: var(--a-spacing-2);
|
|
97
|
+
min-height: var(--__ac-action-menu-item-height);
|
|
98
|
+
cursor: default;
|
|
99
|
+
border-radius: var(--a-border-radius-medium);
|
|
100
|
+
position: relative;
|
|
101
|
+
padding-left: var(--__ac-action-menu-item-pl);
|
|
102
|
+
padding-right: var(--__ac-action-menu-item-pr);
|
|
103
|
+
font-size: var(--a-font-size-medium);
|
|
104
|
+
scroll-margin-block: var(--__ac-action-menu-content-p);
|
|
105
|
+
line-height: 1.5;
|
|
106
|
+
color: var(--a-text-default);
|
|
107
|
+
text-decoration: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.navds-action-menu__item svg {
|
|
111
|
+
flex-shrink: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.navds-action-menu__item--has-icon {
|
|
115
|
+
--__ac-action-menu-item-pl: var(--a-spacing-6);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.navds-action-menu__sub-trigger {
|
|
119
|
+
--__ac-action-menu-item-pr: var(--a-spacing-05);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.navds-action-menu__item:focus {
|
|
123
|
+
outline: none;
|
|
124
|
+
background-color: var(--a-surface-action-subtle-hover);
|
|
125
|
+
color: var(--a-text-default);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.navds-action-menu__item--danger {
|
|
129
|
+
color: var(--a-text-danger);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.navds-action-menu__item--danger:focus {
|
|
133
|
+
background-color: var(--a-surface-danger-subtle);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.navds-action-menu__marker {
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
gap: var(--a-spacing-1);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.navds-action-menu__marker--right {
|
|
143
|
+
margin-left: auto;
|
|
144
|
+
padding-left: var(--a-spacing-4);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.navds-action-menu__marker--left {
|
|
148
|
+
position: absolute;
|
|
149
|
+
left: 0;
|
|
150
|
+
width: var(--__ac-action-menu-item-pl);
|
|
151
|
+
display: inline-flex;
|
|
152
|
+
justify-content: center;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.navds-action-menu__marker-icon svg {
|
|
156
|
+
font-size: 18px;
|
|
157
|
+
flex-shrink: 0;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.navds-action-menu__shortcut {
|
|
161
|
+
background-color: var(--a-surface-neutral-subtle);
|
|
162
|
+
color: var(--a-text-default);
|
|
163
|
+
border-radius: var(--a-border-radius-small);
|
|
164
|
+
padding: 0 var(--a-spacing-1);
|
|
165
|
+
min-width: 1.125rem;
|
|
166
|
+
height: 1.125rem;
|
|
167
|
+
line-height: 1;
|
|
168
|
+
display: inline-flex;
|
|
169
|
+
align-items: center;
|
|
170
|
+
justify-content: center;
|
|
171
|
+
font-size: var(--a-font-size-small);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.navds-action-menu__label {
|
|
175
|
+
display: flex;
|
|
176
|
+
align-items: center;
|
|
177
|
+
min-height: calc(var(--__ac-action-menu-item-height) - 6px);
|
|
178
|
+
padding-right: var(--__ac-action-menu-item-pr);
|
|
179
|
+
padding-left: var(--__ac-action-menu-item-pl);
|
|
180
|
+
color: var(--a-text-subtle);
|
|
181
|
+
border-radius: var(--a-border-radius-medium);
|
|
182
|
+
user-select: none;
|
|
183
|
+
cursor: default;
|
|
184
|
+
font-size: var(--a-font-size-small);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.navds-action-menu__divider {
|
|
188
|
+
height: 1px;
|
|
189
|
+
margin-block: var(--a-spacing-2);
|
|
190
|
+
background-color: var(--a-border-divider);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.navds-action-menu__indicator {
|
|
194
|
+
display: grid;
|
|
195
|
+
place-content: center;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.navds-action-menu__indicator-icon {
|
|
199
|
+
font-size: 14px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.navds-action-menu__indicator-icon--unchecked,
|
|
203
|
+
.navds-action-menu__indicator-icon--checked,
|
|
204
|
+
.navds-action-menu__indicator-icon--indeterminate {
|
|
205
|
+
display: none;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.navds-action-menu__indicator[data-state="unchecked"] .navds-action-menu__indicator-icon--unchecked {
|
|
209
|
+
display: block;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.navds-action-menu__indicator:where([data-state="checked"]) .navds-action-menu__indicator-icon--checked {
|
|
213
|
+
display: block;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.navds-action-menu__indicator:where([data-state="indeterminate"]) .navds-action-menu__indicator-icon--indeterminate {
|
|
217
|
+
display: block;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.navds-action-menu__item:where([aria-disabled="true"]) {
|
|
221
|
+
color: var(--a-text-subtle);
|
|
222
|
+
opacity: 0.5;
|
|
223
|
+
pointer-events: none;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.navds-action-menu__sub-trigger:where([data-state="open"]) {
|
|
227
|
+
background-color: var(--a-surface-neutral-subtle);
|
|
228
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.navds-action-menu__content{border-radius:var(--a-border-radius-large);box-shadow:var(--a-shadow-medium);overflow:hidden}.navds-action-menu__content>.navds-action-menu__content-inner{--__ac-action-menu-content-p:var(--a-spacing-2);--__ac-action-menu-item-pr:var(--a-spacing-3);--__ac-action-menu-item-pl:var(--a-spacing-2);--__ac-action-menu-item-height:2rem;animation-duration:.16s;animation-timing-function:cubic-bezier(.16,1,.3,1);background-color:var(--a-surface-default);border-radius:var(--a-border-radius-large);max-height:var(--__ac-action-menu-content-available-height);max-width:min(95vw,640px);min-width:128px;overflow:auto;padding:var(--__ac-action-menu-content-p);transform-origin:var(--__ac-action-menu-content-transform-origin)}.navds-action-menu__content:where([data-state=open]):where([data-side=bottom]){animation-name:aksel-action-from-bottom,aksel-action-fade-in}.navds-action-menu__content:where([data-state=open]):where([data-side=top]){animation-name:aksel-action-from-top,aksel-action-fade-in}.navds-action-menu__content:where([data-state=open]):where([data-side=left]){animation-name:aksel-action-from-left,aksel-action-fade-in}.navds-action-menu__content:where([data-state=open]):where([data-side=right]){animation-name:aksel-action-from-right,aksel-action-fade-in}@keyframes aksel-action-from-bottom{0%{transform:translateY(-4px)}to{transform:translateY(0)}}@keyframes aksel-action-from-top{0%{transform:translateY(4px)}to{transform:translateY(0)}}@keyframes aksel-action-from-left{0%{transform:translateX(4px)}to{transform:translateY(0)}}@keyframes aksel-action-from-right{0%{transform:translateX(-4px)}to{transform:translateY(0)}}@keyframes aksel-action-fade-in{0%{opacity:.01}to{opacity:1}}.navds-action-menu__item{align-items:center;border-radius:var(--a-border-radius-medium);color:var(--a-text-default);cursor:default;display:flex;font-size:var(--a-font-size-medium);gap:var(--a-spacing-2);line-height:1.5;min-height:var(--__ac-action-menu-item-height);padding-left:var(--__ac-action-menu-item-pl);padding-right:var(--__ac-action-menu-item-pr);position:relative;scroll-margin-block:var(--__ac-action-menu-content-p);text-decoration:none}.navds-action-menu__item svg{flex-shrink:0}.navds-action-menu__item--has-icon{--__ac-action-menu-item-pl:var(--a-spacing-6)}.navds-action-menu__sub-trigger{--__ac-action-menu-item-pr:var(--a-spacing-05)}.navds-action-menu__item:focus{background-color:var(--a-surface-action-subtle-hover);color:var(--a-text-default);outline:none}.navds-action-menu__item--danger{color:var(--a-text-danger)}.navds-action-menu__item--danger:focus{background-color:var(--a-surface-danger-subtle)}.navds-action-menu__marker{align-items:center;display:flex;gap:var(--a-spacing-1)}.navds-action-menu__marker--right{margin-left:auto;padding-left:var(--a-spacing-4)}.navds-action-menu__marker--left{display:inline-flex;justify-content:center;left:0;position:absolute;width:var(--__ac-action-menu-item-pl)}.navds-action-menu__marker-icon svg{flex-shrink:0;font-size:18px}.navds-action-menu__shortcut{align-items:center;background-color:var(--a-surface-neutral-subtle);border-radius:var(--a-border-radius-small);color:var(--a-text-default);display:inline-flex;font-size:var(--a-font-size-small);height:1.125rem;justify-content:center;line-height:1;min-width:1.125rem;padding:0 var(--a-spacing-1)}.navds-action-menu__label{align-items:center;border-radius:var(--a-border-radius-medium);color:var(--a-text-subtle);cursor:default;display:flex;font-size:var(--a-font-size-small);min-height:calc(var(--__ac-action-menu-item-height) - 6px);padding-left:var(--__ac-action-menu-item-pl);padding-right:var(--__ac-action-menu-item-pr);-webkit-user-select:none;user-select:none}.navds-action-menu__divider{background-color:var(--a-border-divider);height:1px;margin-block:var(--a-spacing-2)}.navds-action-menu__indicator{display:grid;place-content:center}.navds-action-menu__indicator-icon{font-size:14px}.navds-action-menu__indicator-icon--checked,.navds-action-menu__indicator-icon--indeterminate,.navds-action-menu__indicator-icon--unchecked{display:none}.navds-action-menu__indicator[data-state=unchecked] .navds-action-menu__indicator-icon--unchecked{display:block}.navds-action-menu__indicator:where([data-state=checked]) .navds-action-menu__indicator-icon--checked{display:block}.navds-action-menu__indicator:where([data-state=indeterminate]) .navds-action-menu__indicator-icon--indeterminate{display:block}.navds-action-menu__item:where([aria-disabled=true]){color:var(--a-text-subtle);opacity:.5;pointer-events:none}.navds-action-menu__sub-trigger:where([data-state=open]){background-color:var(--a-surface-neutral-subtle)}
|
package/dist/component/index.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Do not edit directly, this file was auto-generated.
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
|
-
--a-version: "7.
|
|
6
|
+
--a-version: "7.3.0";
|
|
7
7
|
--a-spacing-1-alt: 0.375rem;
|
|
8
8
|
--a-spacing-05: 0.125rem;
|
|
9
9
|
--a-spacing-32: 8rem;
|
|
@@ -771,8 +771,9 @@ button,
|
|
|
771
771
|
[type="submit"] {
|
|
772
772
|
-webkit-appearance: button;
|
|
773
773
|
}
|
|
774
|
+
/* Make elements with the HTML hidden attribute stay hidden by default. */
|
|
774
775
|
[hidden] {
|
|
775
|
-
display: none;
|
|
776
|
+
display: none !important;
|
|
776
777
|
}
|
|
777
778
|
/* https://web.dev/prefers-reduced-motion/ */
|
|
778
779
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -2389,6 +2390,201 @@ body,
|
|
|
2389
2390
|
color: graytext;
|
|
2390
2391
|
}
|
|
2391
2392
|
}
|
|
2393
|
+
.navds-action-menu__content {
|
|
2394
|
+
overflow: hidden;
|
|
2395
|
+
box-shadow: var(--a-shadow-medium);
|
|
2396
|
+
border-radius: var(--a-border-radius-large);
|
|
2397
|
+
}
|
|
2398
|
+
/* stylelint-disable csstools/value-no-unknown-custom-properties */
|
|
2399
|
+
.navds-action-menu__content > .navds-action-menu__content-inner {
|
|
2400
|
+
--__ac-action-menu-content-p: var(--a-spacing-2);
|
|
2401
|
+
--__ac-action-menu-item-pr: var(--a-spacing-3);
|
|
2402
|
+
--__ac-action-menu-item-pl: var(--a-spacing-2);
|
|
2403
|
+
--__ac-action-menu-item-height: 2rem;
|
|
2404
|
+
|
|
2405
|
+
border-radius: var(--a-border-radius-large);
|
|
2406
|
+
background-color: var(--a-surface-default);
|
|
2407
|
+
min-width: 128px;
|
|
2408
|
+
max-width: min(95vw, 640px);
|
|
2409
|
+
transform-origin: var(--__ac-action-menu-content-transform-origin);
|
|
2410
|
+
animation-duration: 160ms;
|
|
2411
|
+
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
2412
|
+
padding: var(--__ac-action-menu-content-p);
|
|
2413
|
+
overflow: auto;
|
|
2414
|
+
max-height: var(--__ac-action-menu-content-available-height);
|
|
2415
|
+
}
|
|
2416
|
+
.navds-action-menu__content:where([data-state="open"]):where([data-side="bottom"]) {
|
|
2417
|
+
animation-name: aksel-action-from-bottom, aksel-action-fade-in;
|
|
2418
|
+
}
|
|
2419
|
+
.navds-action-menu__content:where([data-state="open"]):where([data-side="top"]) {
|
|
2420
|
+
animation-name: aksel-action-from-top, aksel-action-fade-in;
|
|
2421
|
+
}
|
|
2422
|
+
.navds-action-menu__content:where([data-state="open"]):where([data-side="left"]) {
|
|
2423
|
+
animation-name: aksel-action-from-left, aksel-action-fade-in;
|
|
2424
|
+
}
|
|
2425
|
+
.navds-action-menu__content:where([data-state="open"]):where([data-side="right"]) {
|
|
2426
|
+
animation-name: aksel-action-from-right, aksel-action-fade-in;
|
|
2427
|
+
}
|
|
2428
|
+
@keyframes aksel-action-from-bottom {
|
|
2429
|
+
from {
|
|
2430
|
+
transform: translateY(-4px);
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
to {
|
|
2434
|
+
transform: translateY(0);
|
|
2435
|
+
}
|
|
2436
|
+
}
|
|
2437
|
+
@keyframes aksel-action-from-top {
|
|
2438
|
+
from {
|
|
2439
|
+
transform: translateY(4px);
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2442
|
+
to {
|
|
2443
|
+
transform: translateY(0);
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
@keyframes aksel-action-from-left {
|
|
2447
|
+
from {
|
|
2448
|
+
transform: translateX(4px);
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
to {
|
|
2452
|
+
transform: translateY(0);
|
|
2453
|
+
}
|
|
2454
|
+
}
|
|
2455
|
+
@keyframes aksel-action-from-right {
|
|
2456
|
+
from {
|
|
2457
|
+
transform: translateX(-4px);
|
|
2458
|
+
}
|
|
2459
|
+
|
|
2460
|
+
to {
|
|
2461
|
+
transform: translateY(0);
|
|
2462
|
+
}
|
|
2463
|
+
}
|
|
2464
|
+
@keyframes aksel-action-fade-in {
|
|
2465
|
+
from {
|
|
2466
|
+
opacity: 0.01;
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
to {
|
|
2470
|
+
opacity: 1;
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
.navds-action-menu__item {
|
|
2474
|
+
display: flex;
|
|
2475
|
+
align-items: center;
|
|
2476
|
+
gap: var(--a-spacing-2);
|
|
2477
|
+
min-height: var(--__ac-action-menu-item-height);
|
|
2478
|
+
cursor: default;
|
|
2479
|
+
border-radius: var(--a-border-radius-medium);
|
|
2480
|
+
position: relative;
|
|
2481
|
+
padding-left: var(--__ac-action-menu-item-pl);
|
|
2482
|
+
padding-right: var(--__ac-action-menu-item-pr);
|
|
2483
|
+
font-size: var(--a-font-size-medium);
|
|
2484
|
+
scroll-margin-block: var(--__ac-action-menu-content-p);
|
|
2485
|
+
line-height: 1.5;
|
|
2486
|
+
color: var(--a-text-default);
|
|
2487
|
+
text-decoration: none;
|
|
2488
|
+
}
|
|
2489
|
+
.navds-action-menu__item svg {
|
|
2490
|
+
flex-shrink: 0;
|
|
2491
|
+
}
|
|
2492
|
+
.navds-action-menu__item--has-icon {
|
|
2493
|
+
--__ac-action-menu-item-pl: var(--a-spacing-6);
|
|
2494
|
+
}
|
|
2495
|
+
.navds-action-menu__sub-trigger {
|
|
2496
|
+
--__ac-action-menu-item-pr: var(--a-spacing-05);
|
|
2497
|
+
}
|
|
2498
|
+
.navds-action-menu__item:focus {
|
|
2499
|
+
outline: none;
|
|
2500
|
+
background-color: var(--a-surface-action-subtle-hover);
|
|
2501
|
+
color: var(--a-text-default);
|
|
2502
|
+
}
|
|
2503
|
+
.navds-action-menu__item--danger {
|
|
2504
|
+
color: var(--a-text-danger);
|
|
2505
|
+
}
|
|
2506
|
+
.navds-action-menu__item--danger:focus {
|
|
2507
|
+
background-color: var(--a-surface-danger-subtle);
|
|
2508
|
+
}
|
|
2509
|
+
.navds-action-menu__marker {
|
|
2510
|
+
display: flex;
|
|
2511
|
+
align-items: center;
|
|
2512
|
+
gap: var(--a-spacing-1);
|
|
2513
|
+
}
|
|
2514
|
+
.navds-action-menu__marker--right {
|
|
2515
|
+
margin-left: auto;
|
|
2516
|
+
padding-left: var(--a-spacing-4);
|
|
2517
|
+
}
|
|
2518
|
+
.navds-action-menu__marker--left {
|
|
2519
|
+
position: absolute;
|
|
2520
|
+
left: 0;
|
|
2521
|
+
width: var(--__ac-action-menu-item-pl);
|
|
2522
|
+
display: inline-flex;
|
|
2523
|
+
justify-content: center;
|
|
2524
|
+
}
|
|
2525
|
+
.navds-action-menu__marker-icon svg {
|
|
2526
|
+
font-size: 18px;
|
|
2527
|
+
flex-shrink: 0;
|
|
2528
|
+
}
|
|
2529
|
+
.navds-action-menu__shortcut {
|
|
2530
|
+
background-color: var(--a-surface-neutral-subtle);
|
|
2531
|
+
color: var(--a-text-default);
|
|
2532
|
+
border-radius: var(--a-border-radius-small);
|
|
2533
|
+
padding: 0 var(--a-spacing-1);
|
|
2534
|
+
min-width: 1.125rem;
|
|
2535
|
+
height: 1.125rem;
|
|
2536
|
+
line-height: 1;
|
|
2537
|
+
display: inline-flex;
|
|
2538
|
+
align-items: center;
|
|
2539
|
+
justify-content: center;
|
|
2540
|
+
font-size: var(--a-font-size-small);
|
|
2541
|
+
}
|
|
2542
|
+
.navds-action-menu__label {
|
|
2543
|
+
display: flex;
|
|
2544
|
+
align-items: center;
|
|
2545
|
+
min-height: calc(var(--__ac-action-menu-item-height) - 6px);
|
|
2546
|
+
padding-right: var(--__ac-action-menu-item-pr);
|
|
2547
|
+
padding-left: var(--__ac-action-menu-item-pl);
|
|
2548
|
+
color: var(--a-text-subtle);
|
|
2549
|
+
border-radius: var(--a-border-radius-medium);
|
|
2550
|
+
user-select: none;
|
|
2551
|
+
cursor: default;
|
|
2552
|
+
font-size: var(--a-font-size-small);
|
|
2553
|
+
}
|
|
2554
|
+
.navds-action-menu__divider {
|
|
2555
|
+
height: 1px;
|
|
2556
|
+
margin-block: var(--a-spacing-2);
|
|
2557
|
+
background-color: var(--a-border-divider);
|
|
2558
|
+
}
|
|
2559
|
+
.navds-action-menu__indicator {
|
|
2560
|
+
display: grid;
|
|
2561
|
+
place-content: center;
|
|
2562
|
+
}
|
|
2563
|
+
.navds-action-menu__indicator-icon {
|
|
2564
|
+
font-size: 14px;
|
|
2565
|
+
}
|
|
2566
|
+
.navds-action-menu__indicator-icon--unchecked,
|
|
2567
|
+
.navds-action-menu__indicator-icon--checked,
|
|
2568
|
+
.navds-action-menu__indicator-icon--indeterminate {
|
|
2569
|
+
display: none;
|
|
2570
|
+
}
|
|
2571
|
+
.navds-action-menu__indicator[data-state="unchecked"] .navds-action-menu__indicator-icon--unchecked {
|
|
2572
|
+
display: block;
|
|
2573
|
+
}
|
|
2574
|
+
.navds-action-menu__indicator:where([data-state="checked"]) .navds-action-menu__indicator-icon--checked {
|
|
2575
|
+
display: block;
|
|
2576
|
+
}
|
|
2577
|
+
.navds-action-menu__indicator:where([data-state="indeterminate"]) .navds-action-menu__indicator-icon--indeterminate {
|
|
2578
|
+
display: block;
|
|
2579
|
+
}
|
|
2580
|
+
.navds-action-menu__item:where([aria-disabled="true"]) {
|
|
2581
|
+
color: var(--a-text-subtle);
|
|
2582
|
+
opacity: 0.5;
|
|
2583
|
+
pointer-events: none;
|
|
2584
|
+
}
|
|
2585
|
+
.navds-action-menu__sub-trigger:where([data-state="open"]) {
|
|
2586
|
+
background-color: var(--a-surface-neutral-subtle);
|
|
2587
|
+
}
|
|
2392
2588
|
.navds-expansioncard {
|
|
2393
2589
|
--__ac-expansioncard-border-color: var(--ac-expansioncard-border-color, var(--a-border-default));
|
|
2394
2590
|
--__ac-expansioncard-border-radius: var(--ac-expansioncard-border-radius, var(--a-border-radius-large));
|
|
@@ -7264,6 +7460,7 @@ _:future,
|
|
|
7264
7460
|
}
|
|
7265
7461
|
.navds-list__item-marker--icon {
|
|
7266
7462
|
font-size: 1.5rem;
|
|
7463
|
+
justify-content: center;
|
|
7267
7464
|
color: var(--ac-list-marker-icon-color, var(--ac-list-marker-color, var(--a-icon-default)));
|
|
7268
7465
|
}
|
|
7269
7466
|
.navds-box-bg {
|