@navikt/ds-css 7.4.3 → 7.5.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 +2 -0
- package/darkside/accordion.darkside.css +122 -138
- package/darkside/action-menu.darkside.css +116 -137
- package/darkside/baseline/theme.darkside.css +12 -9
- package/darkside/chat.darkside.css +49 -54
- package/darkside/chips.darkside.css +90 -148
- package/darkside/copybutton.darkside.css +103 -146
- package/dist/component/index.css +1 -1
- package/dist/component/index.min.css +1 -1
- package/dist/components.css +1 -1
- package/dist/components.min.css +1 -1
- package/dist/global/tokens.css +1 -1
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.min.css +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,198 +1,182 @@
|
|
|
1
|
-
|
|
2
|
-
--__ac-accordion-header-shadow-color: var(--ac-accordion-header-border, var(--a-border-divider));
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
/*************************
|
|
6
|
-
* Header *
|
|
7
|
-
*************************/
|
|
1
|
+
/* ---------------------------- Accordion header ---------------------------- */
|
|
8
2
|
.navds-accordion__header {
|
|
9
|
-
--__ac-accordion-header-shadow: inset 2px 0 0 0 var(--a-transparent), inset -2px 0 0 0 var(--a-transparent),
|
|
10
|
-
inset 0 2px 0 0 var(--__ac-accordion-header-shadow-color);
|
|
11
|
-
|
|
12
3
|
width: 100%;
|
|
13
4
|
display: flex;
|
|
14
5
|
justify-content: flex-start;
|
|
15
6
|
align-items: flex-start;
|
|
16
|
-
gap: var(--
|
|
17
|
-
padding: var(--
|
|
18
|
-
margin: 0;
|
|
7
|
+
gap: var(--ax-spacing-3);
|
|
8
|
+
padding: var(--ax-spacing-3);
|
|
19
9
|
text-align: left;
|
|
20
|
-
background: var(--ac-accordion-header-bg, var(--a-surface-transparent));
|
|
21
10
|
cursor: pointer;
|
|
22
11
|
border: none;
|
|
23
12
|
position: relative;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
border-radius: var(--ax-border-radius-large);
|
|
14
|
+
background: transparent;
|
|
15
|
+
color: var(--ax-text-accent);
|
|
27
16
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
color: var(--ac-accordion-header-text-hover, inherit);
|
|
32
|
-
}
|
|
17
|
+
> * {
|
|
18
|
+
font-weight: var(--ax-font-weight-regular);
|
|
19
|
+
}
|
|
33
20
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
21
|
+
@media (forced-colors: active) {
|
|
22
|
+
border: 1px solid buttonborder;
|
|
23
|
+
background-color: canvas;
|
|
24
|
+
color: canvastext;
|
|
25
|
+
}
|
|
37
26
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
27
|
+
&:hover {
|
|
28
|
+
background-color: var(--ax-bg-accent-hoverA);
|
|
29
|
+
color: var(--ax-text-accent-strong);
|
|
30
|
+
|
|
31
|
+
&::before,
|
|
32
|
+
&::after {
|
|
33
|
+
display: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
> .navds-accordion__icon-wrapper {
|
|
37
|
+
background-color: var(--ax-bg-accent-strong-hover);
|
|
38
|
+
color: var(--ax-text-accent-contrast);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@media (forced-colors: active) {
|
|
42
|
+
background-color: canvas;
|
|
43
|
+
border: 1px solid highlight;
|
|
44
|
+
color: highlight;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
41
47
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
&:focus-visible {
|
|
49
|
+
outline: 2px solid var(--ax-border-focus);
|
|
50
|
+
outline-offset: 2px;
|
|
51
|
+
z-index: 1;
|
|
45
52
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
53
|
+
&::before,
|
|
54
|
+
&::after {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
50
58
|
}
|
|
51
59
|
|
|
52
|
-
.navds-
|
|
53
|
-
|
|
54
|
-
inset 2px 0 0 0 var(--a-transparent),
|
|
55
|
-
inset -2px 0 0 0 var(--a-transparent),
|
|
56
|
-
inset 0 2px 0 0 var(--a-transparent),
|
|
57
|
-
inset 0 2px 0 0 var(--__ac-accordion-header-shadow-color);
|
|
60
|
+
.navds-accordion--small .navds-accordion__header {
|
|
61
|
+
padding-block: var(--a-spacing-2);
|
|
58
62
|
}
|
|
59
63
|
|
|
60
|
-
.navds-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
.navds-accordion__header::before,
|
|
65
|
+
.navds-accordion__header::after {
|
|
66
|
+
content: "";
|
|
67
|
+
display: block;
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: 0;
|
|
70
|
+
left: 0;
|
|
71
|
+
right: 0;
|
|
72
|
+
width: 100%;
|
|
73
|
+
height: 1px;
|
|
74
|
+
background-color: var(--ax-border-subtleA);
|
|
66
75
|
}
|
|
67
76
|
|
|
68
|
-
.navds-accordion__item
|
|
69
|
-
|
|
77
|
+
.navds-accordion__item:last-child > .navds-accordion__content {
|
|
78
|
+
border-bottom: 1px solid transparent;
|
|
70
79
|
}
|
|
71
80
|
|
|
72
|
-
.navds-accordion__header
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
box-shadow: var(--a-shadow-focus);
|
|
76
|
-
border-radius: var(--a-border-radius-large);
|
|
81
|
+
.navds-accordion__header::after {
|
|
82
|
+
top: initial;
|
|
83
|
+
bottom: 0;
|
|
77
84
|
}
|
|
78
85
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
box-shadow: var(--a-shadow-focus);
|
|
83
|
-
border-radius: var(--a-border-radius-large);
|
|
84
|
-
}
|
|
86
|
+
.navds-accordion__item[data-expanded="true"] > .navds-accordion__header::after,
|
|
87
|
+
.navds-accordion__item:not(:last-child) > .navds-accordion__header::after {
|
|
88
|
+
display: none;
|
|
85
89
|
}
|
|
86
90
|
|
|
87
|
-
.navds-accordion__header-
|
|
88
|
-
|
|
89
|
-
|
|
91
|
+
.navds-accordion__item[data-expanded="false"]:has(.navds-accordion__header:where(:hover, :focus-visible))
|
|
92
|
+
+ .navds-accordion__item
|
|
93
|
+
> .navds-accordion__header::before {
|
|
94
|
+
display: none;
|
|
90
95
|
}
|
|
91
96
|
|
|
92
|
-
|
|
93
|
-
* Icon *
|
|
94
|
-
*************************/
|
|
97
|
+
/* ------------------------- Accordion chevron icon ------------------------- */
|
|
95
98
|
.navds-accordion__icon-wrapper {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
height: var(--a-spacing-6);
|
|
100
|
-
width: var(--a-spacing-6);
|
|
99
|
+
border-radius: var(--ax-border-radius-large);
|
|
100
|
+
width: 22px;
|
|
101
|
+
height: 22px;
|
|
101
102
|
align-self: center;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
.navds-accordion__header:hover > .navds-accordion__icon-wrapper {
|
|
105
|
-
background-color: var(--ac-accordion-header-icon-bg-hover, var(--a-surface-neutral-subtle-hover));
|
|
103
|
+
background-color: var(--ax-bg-accent-moderateA);
|
|
104
|
+
color: var(--ax-text-accent-strong);
|
|
106
105
|
}
|
|
107
106
|
|
|
108
107
|
.navds-accordion__header-chevron {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
height: 1.75rem;
|
|
108
|
+
height: inherit;
|
|
109
|
+
width: inherit;
|
|
112
110
|
flex-shrink: 0;
|
|
113
|
-
transition: transform
|
|
114
|
-
align-self: center;
|
|
111
|
+
transition: transform 250ms cubic-bezier(0.2, 0, 0, 1);
|
|
115
112
|
}
|
|
116
113
|
|
|
117
|
-
|
|
118
|
-
transform:
|
|
114
|
+
.navds-accordion__item[data-expanded="true"] > .navds-accordion__header .navds-accordion__header-chevron {
|
|
115
|
+
transform: rotateX(-180deg);
|
|
119
116
|
}
|
|
120
117
|
|
|
121
|
-
|
|
122
|
-
> :where(.navds-accordion__header)
|
|
123
|
-
> :where(.navds-accordion__icon-wrapper)
|
|
124
|
-
> :where(.navds-accordion__header-chevron) {
|
|
125
|
-
transform: translateY(0) rotate(-180deg);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.navds-accordion__item--open
|
|
129
|
-
> :where(.navds-accordion__header):hover
|
|
130
|
-
> :where(.navds-accordion__icon-wrapper)
|
|
131
|
-
> :where(.navds-accordion__header-chevron) {
|
|
132
|
-
transform: translateY(-1px) rotate(-180deg);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/*************************
|
|
136
|
-
* Variant/Default *
|
|
137
|
-
*************************/
|
|
138
|
-
.navds-accordion__item--open {
|
|
139
|
-
background-color: var(--ac-accordion-item-bg-open, var(--a-transparent));
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/*************************
|
|
143
|
-
* Variant/Neutral *
|
|
144
|
-
*************************/
|
|
145
|
-
.navds-accordion__item--open.navds-accordion__item--neutral {
|
|
146
|
-
background-color: var(--ac-accordion-neutral-item-bg-open, var(--a-surface-neutral-subtle));
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/*************************
|
|
150
|
-
* Content *
|
|
151
|
-
*************************/
|
|
152
|
-
|
|
118
|
+
/* ---------------------------- Accordion content --------------------------- */
|
|
153
119
|
.navds-accordion__content {
|
|
154
|
-
|
|
155
|
-
animation: fadeAccordionContent 250ms ease;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.navds-accordion--indent > :where(.navds-accordion__item) > :where(.navds-accordion__content) {
|
|
159
|
-
padding: var(--a-spacing-1) var(--a-spacing-3) var(--a-spacing-5) var(--a-spacing-11);
|
|
160
|
-
}
|
|
120
|
+
--__acx-accordion-content-line-width: 2px;
|
|
161
121
|
|
|
162
|
-
|
|
122
|
+
padding-inline: var(--ax-spacing-6) var(--ax-spacing-3);
|
|
163
123
|
display: none;
|
|
124
|
+
overflow: hidden;
|
|
125
|
+
padding-block: 0;
|
|
126
|
+
max-height: 0;
|
|
127
|
+
border-color: transparent;
|
|
128
|
+
transition: all 250ms cubic-bezier(0.2, 0, 0, 1) allow-discrete;
|
|
129
|
+
animation: navds-accordion-content-animation 250ms cubic-bezier(0.2, 0, 0, 1);
|
|
164
130
|
}
|
|
165
131
|
|
|
166
|
-
.navds-accordion__item--no-animation
|
|
132
|
+
.navds-accordion__item--no-animation {
|
|
167
133
|
animation: none;
|
|
168
134
|
}
|
|
169
135
|
|
|
170
|
-
@keyframes
|
|
136
|
+
@keyframes navds-accordion-content-animation {
|
|
171
137
|
0% {
|
|
172
|
-
opacity: 0.
|
|
173
|
-
transform: translateY(-8px);
|
|
138
|
+
opacity: 0.01;
|
|
174
139
|
}
|
|
175
140
|
|
|
176
|
-
|
|
177
|
-
opacity: 0.
|
|
141
|
+
20% {
|
|
142
|
+
opacity: 0.01;
|
|
178
143
|
}
|
|
179
144
|
|
|
180
145
|
100% {
|
|
181
146
|
opacity: 1;
|
|
182
|
-
transform: translateY(0);
|
|
183
147
|
}
|
|
184
148
|
}
|
|
185
149
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
150
|
+
.navds-accordion--indent > .navds-accordion__item > .navds-accordion__content {
|
|
151
|
+
padding-inline: var(--ax-spacing-6) var(--ax-spacing-3);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.navds-accordion--indent > .navds-accordion__item .navds-accordion__content-inner {
|
|
155
|
+
box-shadow: -2px 0 0 0 var(--ax-border-subtleA);
|
|
156
|
+
padding-block: var(--ax-spacing-2);
|
|
157
|
+
|
|
158
|
+
/* Aligns content with heading-section */
|
|
159
|
+
padding-inline: calc(var(--ax-spacing-5) + 2px) var(--ax-spacing-5);
|
|
160
|
+
|
|
161
|
+
@media (forced-colors: active) {
|
|
162
|
+
border-left: 1px solid canvastext;
|
|
191
163
|
}
|
|
164
|
+
}
|
|
192
165
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
166
|
+
.navds-accordion__item[data-expanded="true"] > .navds-accordion__content {
|
|
167
|
+
display: block;
|
|
168
|
+
opacity: 1;
|
|
169
|
+
overflow: visible;
|
|
170
|
+
max-height: fit-content;
|
|
171
|
+
padding-block: var(--ax-spacing-2);
|
|
172
|
+
padding-block-end: var(--ax-spacing-6);
|
|
173
|
+
border-color: var(--ax-border-subtleA);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@starting-style {
|
|
177
|
+
.navds-accordion__item[data-expanded="true"]:not(.navds-accordion__item--no-animation) > .navds-accordion__content {
|
|
178
|
+
padding-block: 0;
|
|
179
|
+
max-height: 0;
|
|
180
|
+
border-color: transparent;
|
|
197
181
|
}
|
|
198
182
|
}
|
|
@@ -1,152 +1,137 @@
|
|
|
1
|
+
/* --------------------------- ActionMenu content --------------------------- */
|
|
1
2
|
.navds-action-menu__content {
|
|
2
3
|
overflow: hidden;
|
|
3
|
-
|
|
4
|
-
border
|
|
4
|
+
border-radius: var(--ax-border-radius-large);
|
|
5
|
+
border: 1px solid var(--ax-border-subtleA);
|
|
6
|
+
|
|
7
|
+
/* TODO: Use token here when added */
|
|
8
|
+
box-shadow:
|
|
9
|
+
0 0 1px 0 rgb(7 9 13/ 0.02),
|
|
10
|
+
0 2px 5px 0 rgb(7 9 13/ 0.1),
|
|
11
|
+
0 10px 16px 0 rgb(7 9 13/ 0.12);
|
|
12
|
+
transition: transform 250ms cubic-bezier(0, 0, 0, 1) allow-discrete;
|
|
13
|
+
|
|
14
|
+
&[data-state="open"] {
|
|
15
|
+
&[data-side="bottom"] {
|
|
16
|
+
@starting-style {
|
|
17
|
+
transform: translateY(-4px);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&[data-side="top"] {
|
|
22
|
+
@starting-style {
|
|
23
|
+
transform: translateY(4px);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&[data-side="right"] {
|
|
28
|
+
@starting-style {
|
|
29
|
+
transform: translateX(-4px);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&[data-side="left"] {
|
|
34
|
+
@starting-style {
|
|
35
|
+
transform: translateX(4px);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
5
39
|
}
|
|
6
40
|
|
|
7
|
-
/* stylelint-disable csstools/value-no-unknown-custom-properties */
|
|
8
41
|
.navds-action-menu__content > .navds-action-menu__content-inner {
|
|
9
|
-
--
|
|
10
|
-
--
|
|
11
|
-
--
|
|
12
|
-
--
|
|
42
|
+
--__axc-action-menu-content-p: var(--ax-spacing-2);
|
|
43
|
+
--__axc-action-menu-item-pr: var(--ax-spacing-2);
|
|
44
|
+
--__axc-action-menu-item-pl: var(--ax-spacing-2);
|
|
45
|
+
--__axc-action-menu-item-height: 2rem;
|
|
13
46
|
|
|
14
|
-
border-radius: var(--
|
|
15
|
-
background-color: var(--
|
|
47
|
+
border-radius: var(--ax-border-radius-large);
|
|
48
|
+
background-color: var(--ax-bg-raised);
|
|
16
49
|
min-width: 128px;
|
|
17
50
|
max-width: min(95vw, 640px);
|
|
51
|
+
/* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */
|
|
18
52
|
transform-origin: var(--__ac-action-menu-content-transform-origin);
|
|
19
53
|
animation-duration: 160ms;
|
|
20
54
|
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
21
|
-
padding: var(--
|
|
55
|
+
padding: var(--__axc-action-menu-content-p);
|
|
22
56
|
overflow: auto;
|
|
57
|
+
/* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */
|
|
23
58
|
max-height: var(--__ac-action-menu-content-available-height);
|
|
24
59
|
}
|
|
25
60
|
|
|
26
|
-
|
|
27
|
-
animation-name: aksel-action-from-bottom, aksel-action-fade-in;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.navds-action-menu__content:where([data-state="open"]):where([data-side="top"]) {
|
|
31
|
-
animation-name: aksel-action-from-top, aksel-action-fade-in;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.navds-action-menu__content:where([data-state="open"]):where([data-side="left"]) {
|
|
35
|
-
animation-name: aksel-action-from-left, aksel-action-fade-in;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.navds-action-menu__content:where([data-state="open"]):where([data-side="right"]) {
|
|
39
|
-
animation-name: aksel-action-from-right, aksel-action-fade-in;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@keyframes aksel-action-from-bottom {
|
|
43
|
-
from {
|
|
44
|
-
transform: translateY(-4px);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
to {
|
|
48
|
-
transform: translateY(0);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@keyframes aksel-action-from-top {
|
|
53
|
-
from {
|
|
54
|
-
transform: translateY(4px);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
to {
|
|
58
|
-
transform: translateY(0);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@keyframes aksel-action-from-left {
|
|
63
|
-
from {
|
|
64
|
-
transform: translateX(4px);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
to {
|
|
68
|
-
transform: translateY(0);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
@keyframes aksel-action-from-right {
|
|
73
|
-
from {
|
|
74
|
-
transform: translateX(-4px);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
to {
|
|
78
|
-
transform: translateY(0);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
@keyframes aksel-action-fade-in {
|
|
83
|
-
from {
|
|
84
|
-
opacity: 0.01;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
to {
|
|
88
|
-
opacity: 1;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
61
|
+
/* ----------------------------- ActionMenu Item ---------------------------- */
|
|
92
62
|
.navds-action-menu__item {
|
|
93
63
|
display: flex;
|
|
94
64
|
align-items: center;
|
|
95
|
-
gap: var(--
|
|
96
|
-
min-height: var(--
|
|
65
|
+
gap: var(--ax-spacing-2);
|
|
66
|
+
min-height: var(--__axc-action-menu-item-height);
|
|
97
67
|
cursor: default;
|
|
98
|
-
border-radius: var(--
|
|
68
|
+
border-radius: var(--ax-border-radius-medium);
|
|
99
69
|
position: relative;
|
|
100
|
-
padding-left: var(--
|
|
101
|
-
padding-right: var(--
|
|
102
|
-
font-size: var(--
|
|
103
|
-
scroll-margin-block: var(--
|
|
70
|
+
padding-left: var(--__axc-action-menu-item-pl);
|
|
71
|
+
padding-right: var(--__axc-action-menu-item-pr);
|
|
72
|
+
font-size: var(--ax-font-size-medium);
|
|
73
|
+
scroll-margin-block: var(--__axc-action-menu-content-p);
|
|
104
74
|
line-height: 1.5;
|
|
105
|
-
color: var(--
|
|
75
|
+
color: var(--ax-text-default);
|
|
106
76
|
text-decoration: none;
|
|
107
|
-
}
|
|
108
77
|
|
|
109
|
-
|
|
110
|
-
|
|
78
|
+
& svg {
|
|
79
|
+
flex-shrink: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&:focus {
|
|
83
|
+
outline: none;
|
|
84
|
+
background-color: var(--ax-bg-accent-moderate-hoverA);
|
|
85
|
+
color: var(--ax-text-default);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&[aria-disabled="true"] {
|
|
89
|
+
opacity: 0.5;
|
|
90
|
+
pointer-events: none;
|
|
91
|
+
}
|
|
111
92
|
}
|
|
112
93
|
|
|
113
94
|
.navds-action-menu__item--has-icon {
|
|
114
|
-
--
|
|
95
|
+
--__axc-action-menu-item-pl: var(--ax-spacing-6);
|
|
115
96
|
}
|
|
116
97
|
|
|
117
98
|
.navds-action-menu__sub-trigger {
|
|
118
|
-
--
|
|
119
|
-
}
|
|
99
|
+
--__axc-action-menu-item-pr: var(--ax-spacing-05);
|
|
120
100
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
101
|
+
&[data-state="open"] {
|
|
102
|
+
background-color: var(--ax-bg-neutral-moderate-pressed);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&:focus {
|
|
106
|
+
background-color: var(--ax-bg-accent-moderate-hoverA);
|
|
107
|
+
}
|
|
125
108
|
}
|
|
126
109
|
|
|
127
110
|
.navds-action-menu__item--danger {
|
|
128
|
-
color: var(--
|
|
129
|
-
}
|
|
111
|
+
color: var(--ax-text-danger);
|
|
130
112
|
|
|
131
|
-
|
|
132
|
-
|
|
113
|
+
&:focus {
|
|
114
|
+
background-color: var(--ax-bg-danger-moderate-hoverA);
|
|
115
|
+
color: var(--ax-text-danger-strong);
|
|
116
|
+
}
|
|
133
117
|
}
|
|
134
118
|
|
|
119
|
+
/* ---------------------------- ActionMenu marker --------------------------- */
|
|
135
120
|
.navds-action-menu__marker {
|
|
136
121
|
display: flex;
|
|
137
122
|
align-items: center;
|
|
138
|
-
gap: var(--
|
|
123
|
+
gap: var(--ax-spacing-1);
|
|
139
124
|
}
|
|
140
125
|
|
|
141
126
|
.navds-action-menu__marker--right {
|
|
142
127
|
margin-left: auto;
|
|
143
|
-
padding-left: var(--
|
|
128
|
+
padding-left: var(--ax-spacing-4);
|
|
144
129
|
}
|
|
145
130
|
|
|
146
131
|
.navds-action-menu__marker--left {
|
|
147
132
|
position: absolute;
|
|
148
133
|
left: 0;
|
|
149
|
-
width: var(--
|
|
134
|
+
width: var(--__axc-action-menu-item-pl);
|
|
150
135
|
display: inline-flex;
|
|
151
136
|
justify-content: center;
|
|
152
137
|
}
|
|
@@ -156,47 +141,42 @@
|
|
|
156
141
|
flex-shrink: 0;
|
|
157
142
|
}
|
|
158
143
|
|
|
144
|
+
/* --------------------------- ActionMenu shortcut -------------------------- */
|
|
159
145
|
.navds-action-menu__shortcut {
|
|
160
|
-
background-color: var(--
|
|
161
|
-
color: var(--
|
|
162
|
-
border-radius: var(--
|
|
163
|
-
padding: 0 var(--
|
|
146
|
+
background-color: var(--ax-bg-neutral-moderateA);
|
|
147
|
+
color: var(--ax-text-default);
|
|
148
|
+
border-radius: var(--ax-border-radius-small);
|
|
149
|
+
padding: 0 var(--ax-spacing-1);
|
|
164
150
|
min-width: 1.125rem;
|
|
165
151
|
height: 1.125rem;
|
|
166
152
|
line-height: 1;
|
|
167
153
|
display: inline-flex;
|
|
168
154
|
align-items: center;
|
|
169
155
|
justify-content: center;
|
|
170
|
-
font-size: var(--
|
|
156
|
+
font-size: var(--ax-font-size-small);
|
|
171
157
|
}
|
|
172
158
|
|
|
159
|
+
/* ---------------------------- ActionMenu Grouping ---------------------------- */
|
|
173
160
|
.navds-action-menu__label {
|
|
174
161
|
display: flex;
|
|
175
162
|
align-items: center;
|
|
176
|
-
min-height: calc(var(--
|
|
177
|
-
padding-right: var(--
|
|
178
|
-
padding-left: var(--
|
|
179
|
-
color: var(--
|
|
180
|
-
border-radius: var(--
|
|
163
|
+
min-height: calc(var(--__axc-action-menu-item-height) - 6px);
|
|
164
|
+
padding-right: var(--__axc-action-menu-item-pr);
|
|
165
|
+
padding-left: var(--__axc-action-menu-item-pl);
|
|
166
|
+
color: var(--ax-text-subtle);
|
|
167
|
+
border-radius: var(--ax-border-radius-medium);
|
|
181
168
|
user-select: none;
|
|
182
169
|
cursor: default;
|
|
183
|
-
font-size: var(--
|
|
170
|
+
font-size: var(--ax-font-size-small);
|
|
184
171
|
}
|
|
185
172
|
|
|
186
173
|
.navds-action-menu__divider {
|
|
187
174
|
height: 1px;
|
|
188
|
-
margin-block: var(--
|
|
189
|
-
background-color: var(--
|
|
175
|
+
margin-block: var(--ax-spacing-2);
|
|
176
|
+
background-color: var(--ax-border-subtleA);
|
|
190
177
|
}
|
|
191
178
|
|
|
192
|
-
|
|
193
|
-
display: grid;
|
|
194
|
-
place-content: center;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.navds-action-menu__indicator-icon {
|
|
198
|
-
font-size: 14px;
|
|
199
|
-
}
|
|
179
|
+
/* -------------------------- ActionMenu indicator -------------------------- */
|
|
200
180
|
|
|
201
181
|
.navds-action-menu__indicator-icon--unchecked,
|
|
202
182
|
.navds-action-menu__indicator-icon--checked,
|
|
@@ -204,24 +184,23 @@
|
|
|
204
184
|
display: none;
|
|
205
185
|
}
|
|
206
186
|
|
|
207
|
-
.navds-action-menu__indicator
|
|
208
|
-
display:
|
|
209
|
-
|
|
187
|
+
.navds-action-menu__indicator {
|
|
188
|
+
display: grid;
|
|
189
|
+
place-content: center;
|
|
210
190
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}
|
|
191
|
+
&[data-state="unchecked"] .navds-action-menu__indicator-icon--unchecked {
|
|
192
|
+
display: block;
|
|
193
|
+
}
|
|
214
194
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
195
|
+
&[data-state="checked"] .navds-action-menu__indicator-icon--checked {
|
|
196
|
+
display: block;
|
|
197
|
+
}
|
|
218
198
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
pointer-events: none;
|
|
199
|
+
&[data-state="indeterminate"] .navds-action-menu__indicator-icon--indeterminate {
|
|
200
|
+
display: block;
|
|
201
|
+
}
|
|
223
202
|
}
|
|
224
203
|
|
|
225
|
-
.navds-action-
|
|
226
|
-
|
|
204
|
+
.navds-action-menu__indicator-icon {
|
|
205
|
+
font-size: 14px;
|
|
227
206
|
}
|