@bi-digital/css 0.9.0 → 0.10.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/dist/components/button.css +2 -2
- package/dist/components/dialog.css +81 -4
- package/dist/components/tabs.css +54 -17
- package/dist/components.css +137 -23
- package/dist/salesforce.css +137 -23
- package/package.json +4 -4
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
--bic-button-size: var(--bi-scale-11x);
|
|
6
6
|
--bic-button-font-size: 1rem;
|
|
7
7
|
--bic-button-line-height: 1.5;
|
|
8
|
-
--bic-button-color:
|
|
8
|
+
--bic-button-color: var(--bi-basic-white);
|
|
9
9
|
--bic-button-background: transparent;
|
|
10
10
|
--bic-button-background-hover: transparent;
|
|
11
11
|
--bic-button-background-press: transparent;
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
--bic-button-focus-outline-color: var(--bi-primary-30);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.bi-button[data-fullwidth="true"]
|
|
49
|
+
.bi-button[data-fullwidth="true"] {
|
|
50
50
|
width: 100%;
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
.bi-dialog {
|
|
2
|
+
--bic-dialog-anchor-inline-min-width: 23.5rem;
|
|
3
|
+
--bic-dialog-anchor-inline-max-width: 40rem;
|
|
4
|
+
--bic-dialog-anchor-block-min-height: 20rem;
|
|
5
|
+
--bic-dialog-anchor-border-radius: var(--bi-radius-medium);
|
|
6
|
+
--bic-dialog-anchor-closed-translate: 0, var(--bi-scale-12x);
|
|
2
7
|
--bic-dialog-animation-duration: .2s;
|
|
3
8
|
--bic-dialog-backdrop-background: #00000080;
|
|
4
9
|
--bic-dialog-background: var(--bi-basic-white);
|
|
10
|
+
--bic-dialog-border-radius: var(--bi-radius-large);
|
|
5
11
|
--bic-dialog-border-color: var(--bi-neutral-15);
|
|
6
12
|
--bic-dialog-icon-spacing: .625rem;
|
|
7
13
|
--bic-dialog-color: var(--bi-neutral-90);
|
|
@@ -19,7 +25,7 @@
|
|
|
19
25
|
.bi-dialog {
|
|
20
26
|
animation: bi-dialog-fade-in-animation var(--bic-dialog-animation-duration) forwards;
|
|
21
27
|
background: var(--bic-dialog-background);
|
|
22
|
-
border-radius: var(--
|
|
28
|
+
border-radius: var(--bic-dialog-border-radius);
|
|
23
29
|
box-shadow: 0 var(--bi-scale-1x) var(--bi-scale-1x) 0 #00000040;
|
|
24
30
|
color: var(--bic-dialog-color);
|
|
25
31
|
max-height: var(--bic-dialog-max-height);
|
|
@@ -45,13 +51,68 @@
|
|
|
45
51
|
display: flex;
|
|
46
52
|
}
|
|
47
53
|
|
|
54
|
+
.bi-dialog:where([data-anchor="bottom"], [data-anchor="top"], [data-anchor="left"], [data-anchor="right"]) {
|
|
55
|
+
--bic-dialog-max-height: unset;
|
|
56
|
+
border-radius: var(--bic-dialog-anchor-border-radius);
|
|
57
|
+
transition: display var(--bic-dialog-animation-duration) allow-discrete,
|
|
58
|
+
overlay var(--bic-dialog-animation-duration) allow-discrete;
|
|
59
|
+
transform: translate(var(--bic-dialog-anchor-closed-translate));
|
|
60
|
+
animation: bi-dialog-slide-out-animation var(--bic-dialog-animation-duration) ease-in-out forwards;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.bi-dialog:where([data-anchor="bottom"], [data-anchor="top"], [data-anchor="left"], [data-anchor="right"])[open] {
|
|
64
|
+
animation: bi-dialog-slide-in-animation var(--bic-dialog-animation-duration) ease-in-out forwards;
|
|
65
|
+
transform: translate(0);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.bi-dialog:where([data-anchor="bottom"], [data-anchor="top"]) {
|
|
69
|
+
min-height: var(--bic-dialog-anchor-block-min-height);
|
|
70
|
+
max-height: calc(100dvh - var(--bi-layout-navbar-height));
|
|
71
|
+
max-width: 100dvw;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.bi-dialog:where([data-anchor="left"], [data-anchor="right"]) {
|
|
75
|
+
min-width: var(--bic-dialog-anchor-inline-min-width);
|
|
76
|
+
max-width: var(--bic-dialog-anchor-inline-max-width);
|
|
77
|
+
width: fit-content;
|
|
78
|
+
height: 100dvh;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.bi-dialog[data-anchor="bottom"] {
|
|
82
|
+
--bic-dialog-anchor-closed-translate: 0, 100%;
|
|
83
|
+
border-bottom-right-radius: 0;
|
|
84
|
+
border-bottom-left-radius: 0;
|
|
85
|
+
top: auto;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.bi-dialog[data-anchor="top"] {
|
|
89
|
+
--bic-dialog-anchor-closed-translate: 0, -100%;
|
|
90
|
+
border-top-left-radius: 0;
|
|
91
|
+
border-top-right-radius: 0;
|
|
92
|
+
bottom: auto;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.bi-dialog[data-anchor="left"] {
|
|
96
|
+
--bic-dialog-anchor-closed-translate: -100%, 0;
|
|
97
|
+
border-top-left-radius: 0;
|
|
98
|
+
border-bottom-left-radius: 0;
|
|
99
|
+
right: auto;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.bi-dialog[data-anchor="right"] {
|
|
103
|
+
--bic-dialog-anchor-closed-translate: 100%, 0;
|
|
104
|
+
border-top-right-radius: 0;
|
|
105
|
+
border-bottom-right-radius: 0;
|
|
106
|
+
left: auto;
|
|
107
|
+
}
|
|
108
|
+
|
|
48
109
|
@media (prefers-reduced-motion: reduce) {
|
|
49
110
|
.bi-dialog[open], .bi-dialog::backdrop {
|
|
50
111
|
animation: none;
|
|
51
112
|
}
|
|
52
113
|
}
|
|
53
114
|
|
|
54
|
-
.bi-dialog > form[method="dialog"]:first-child > button:only-child {
|
|
115
|
+
.bi-dialog > button[command="close"]:first-child, .bi-dialog > form[method="dialog"]:first-child > button:only-child {
|
|
55
116
|
top: var(--bic-dialog-icon-spacing);
|
|
56
117
|
right: var(--bic-dialog-icon-spacing);
|
|
57
118
|
position: absolute;
|
|
@@ -66,7 +127,7 @@
|
|
|
66
127
|
display: flex;
|
|
67
128
|
}
|
|
68
129
|
|
|
69
|
-
.bi-dialog:has( > form[method="dialog"]) .bi-dialog--header {
|
|
130
|
+
.bi-dialog:has( > form[method="dialog"], > button[command="close"]:first-child) .bi-dialog--header {
|
|
70
131
|
padding-right: var(--bi-scale-14x);
|
|
71
132
|
}
|
|
72
133
|
|
|
@@ -95,7 +156,23 @@ body:has(.bi-dialog:modal) {
|
|
|
95
156
|
|
|
96
157
|
@keyframes bi-dialog-slide-in-animation {
|
|
97
158
|
from {
|
|
98
|
-
|
|
159
|
+
transform: translate(var(--bic-dialog-anchor-closed-translate));
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
to {
|
|
163
|
+
transform: translate(0);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@keyframes bi-dialog-slide-out-animation {
|
|
168
|
+
from {
|
|
169
|
+
opacity: 1;
|
|
170
|
+
transform: translate(0);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
to {
|
|
174
|
+
transform: translate(var(--bic-dialog-anchor-closed-translate));
|
|
175
|
+
opacity: 0;
|
|
99
176
|
}
|
|
100
177
|
}
|
|
101
178
|
|
package/dist/components/tabs.css
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
.bi-tabs {
|
|
2
|
+
--bic-tabs-tab-color: var(--bi-neutral-90);
|
|
2
3
|
--bic-tabs-tab-color-selected: var(--bi-primary-50);
|
|
4
|
+
--bic-tabs-tab-background-hover: var(--bi-states-hover-dark);
|
|
5
|
+
--bic-tabs-tab-background-press: var(--bi-states-press-dark);
|
|
6
|
+
--bic-tabs-tab-font: var(--bi-font-title-bold-xs);
|
|
3
7
|
--bic-tabs-panel-padding: var(--bi-scale-4x) var(--bi-scale-5x);
|
|
4
8
|
--bic-tabs-focus-shadow-color: var(--bi-basic-white);
|
|
5
9
|
--bic-tabs-focus-outline-color: var(--bi-primary-50);
|
|
@@ -7,6 +11,8 @@
|
|
|
7
11
|
|
|
8
12
|
.bi-tabs[data-dark="true"] {
|
|
9
13
|
--bic-tabs-tab-color-selected: var(--bi-primary-30);
|
|
14
|
+
--bic-tabs-tab-background-hover: var(--bi-states-hover-light);
|
|
15
|
+
--bic-tabs-tab-background-press: var(--bi-states-press-light);
|
|
10
16
|
--bic-tabs-focus-shadow-color: var(--bi-neutral-95);
|
|
11
17
|
--bic-tabs-focus-outline-color: var(--bi-primary-30);
|
|
12
18
|
}
|
|
@@ -17,43 +23,74 @@
|
|
|
17
23
|
overflow: hidden;
|
|
18
24
|
}
|
|
19
25
|
|
|
20
|
-
.bi-tabs
|
|
26
|
+
.bi-tabs :is([role="tablist"], ds-tablist) {
|
|
21
27
|
scrollbar-width: none;
|
|
22
28
|
flex-direction: row;
|
|
23
29
|
flex-shrink: 0;
|
|
24
|
-
display: flex;
|
|
25
30
|
position: relative;
|
|
26
31
|
overflow-x: auto;
|
|
27
32
|
}
|
|
28
33
|
|
|
29
|
-
.bi-tabs
|
|
30
|
-
|
|
31
|
-
overflow-x: unset;
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
width: fit-content;
|
|
34
|
+
.bi-tabs :is([role="tablist"], ds-tablist):not([hidden]) {
|
|
35
|
+
display: flex;
|
|
34
36
|
}
|
|
35
37
|
|
|
36
|
-
.bi-tabs
|
|
38
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab) {
|
|
39
|
+
font: var(--bic-tabs-tab-font);
|
|
40
|
+
border-radius: var(--bi-radius-medium);
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
color: var(--bic-tabs-tab-color);
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
align-items: center;
|
|
45
|
+
gap: var(--bi-scale-1x);
|
|
46
|
+
padding: .625rem var(--bi-scale-6x);
|
|
47
|
+
text-align: center;
|
|
37
48
|
white-space: nowrap;
|
|
49
|
+
background: none;
|
|
50
|
+
border: 0;
|
|
51
|
+
flex-direction: row;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
margin: 0;
|
|
54
|
+
line-height: 1.5;
|
|
38
55
|
transition: color .2s ease-in-out;
|
|
56
|
+
position: relative;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):not([hidden]) {
|
|
60
|
+
display: flex;
|
|
39
61
|
}
|
|
40
62
|
|
|
41
|
-
|
|
63
|
+
@media (hover: hover) and (pointer: fine) {
|
|
64
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):hover {
|
|
65
|
+
background: var(--bic-tabs-tab-background-hover);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):active {
|
|
70
|
+
background: var(--bic-tabs-tab-background-press);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):not(:focus-visible) {
|
|
42
74
|
border-bottom-right-radius: 0;
|
|
43
75
|
border-bottom-left-radius: 0;
|
|
44
76
|
}
|
|
45
77
|
|
|
46
|
-
.bi-tabs
|
|
78
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):focus-visible {
|
|
47
79
|
box-shadow: var(--_bi--focus, 0 0 0 4.5px inset var(--bic-tabs-focus-shadow-color));
|
|
48
80
|
outline: var(--_bi--focus, 3px solid var(--bic-tabs-focus-outline-color));
|
|
49
81
|
outline-offset: var(--_bi--focus, -3px);
|
|
50
82
|
}
|
|
51
83
|
|
|
52
|
-
.bi-tabs
|
|
84
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):focus-visible:after {
|
|
53
85
|
bottom: 3px;
|
|
54
86
|
}
|
|
55
87
|
|
|
56
|
-
.bi-tabs
|
|
88
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab) :where(img, svg) {
|
|
89
|
+
font-size: var(--bi-icon-medium);
|
|
90
|
+
flex-shrink: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):after {
|
|
57
94
|
background: var(--bic-tabs-tab-color-selected);
|
|
58
95
|
content: "";
|
|
59
96
|
border-radius: var(--bi-radius-small) var(--bi-radius-small) 0 0;
|
|
@@ -68,24 +105,24 @@
|
|
|
68
105
|
}
|
|
69
106
|
|
|
70
107
|
@media (prefers-reduced-motion: reduce) {
|
|
71
|
-
.bi-tabs
|
|
108
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab) {
|
|
72
109
|
transition: none;
|
|
73
110
|
}
|
|
74
111
|
|
|
75
|
-
.bi-tabs
|
|
112
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):after {
|
|
76
113
|
transition: none;
|
|
77
114
|
}
|
|
78
115
|
}
|
|
79
116
|
|
|
80
|
-
.bi-tabs
|
|
117
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab)[aria-selected="true"] {
|
|
81
118
|
color: var(--bic-tabs-tab-color-selected);
|
|
82
119
|
}
|
|
83
120
|
|
|
84
|
-
.bi-tabs
|
|
121
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab)[aria-selected="true"]:after {
|
|
85
122
|
width: calc(100% - var(--bi-scale-6x));
|
|
86
123
|
}
|
|
87
124
|
|
|
88
|
-
.bi-tabs
|
|
125
|
+
.bi-tabs :is([role="tabpanel"], ds-tabpanel) {
|
|
89
126
|
padding: var(--bic-tabs-panel-padding);
|
|
90
127
|
outline: none;
|
|
91
128
|
flex-grow: 1;
|
package/dist/components.css
CHANGED
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
--bic-button-size: var(--bi-scale-11x);
|
|
338
338
|
--bic-button-font-size: 1rem;
|
|
339
339
|
--bic-button-line-height: 1.5;
|
|
340
|
-
--bic-button-color:
|
|
340
|
+
--bic-button-color: var(--bi-basic-white);
|
|
341
341
|
--bic-button-background: transparent;
|
|
342
342
|
--bic-button-background-hover: transparent;
|
|
343
343
|
--bic-button-background-press: transparent;
|
|
@@ -378,7 +378,7 @@
|
|
|
378
378
|
--bic-button-focus-outline-color: var(--bi-primary-30);
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
.bi-button[data-fullwidth="true"]
|
|
381
|
+
.bi-button[data-fullwidth="true"] {
|
|
382
382
|
width: 100%;
|
|
383
383
|
}
|
|
384
384
|
|
|
@@ -1228,9 +1228,15 @@ details.bi-details > *:not(summary) + * {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
|
|
1230
1230
|
.bi-dialog {
|
|
1231
|
+
--bic-dialog-anchor-inline-min-width: 23.5rem;
|
|
1232
|
+
--bic-dialog-anchor-inline-max-width: 40rem;
|
|
1233
|
+
--bic-dialog-anchor-block-min-height: 20rem;
|
|
1234
|
+
--bic-dialog-anchor-border-radius: var(--bi-radius-medium);
|
|
1235
|
+
--bic-dialog-anchor-closed-translate: 0, var(--bi-scale-12x);
|
|
1231
1236
|
--bic-dialog-animation-duration: .2s;
|
|
1232
1237
|
--bic-dialog-backdrop-background: #00000080;
|
|
1233
1238
|
--bic-dialog-background: var(--bi-basic-white);
|
|
1239
|
+
--bic-dialog-border-radius: var(--bi-radius-large);
|
|
1234
1240
|
--bic-dialog-border-color: var(--bi-neutral-15);
|
|
1235
1241
|
--bic-dialog-icon-spacing: .625rem;
|
|
1236
1242
|
--bic-dialog-color: var(--bi-neutral-90);
|
|
@@ -1248,7 +1254,7 @@ details.bi-details > *:not(summary) + * {
|
|
|
1248
1254
|
.bi-dialog {
|
|
1249
1255
|
animation: bi-dialog-fade-in-animation var(--bic-dialog-animation-duration) forwards;
|
|
1250
1256
|
background: var(--bic-dialog-background);
|
|
1251
|
-
border-radius: var(--
|
|
1257
|
+
border-radius: var(--bic-dialog-border-radius);
|
|
1252
1258
|
box-shadow: 0 var(--bi-scale-1x) var(--bi-scale-1x) 0 #00000040;
|
|
1253
1259
|
color: var(--bic-dialog-color);
|
|
1254
1260
|
max-height: var(--bic-dialog-max-height);
|
|
@@ -1274,13 +1280,68 @@ details.bi-details > *:not(summary) + * {
|
|
|
1274
1280
|
display: flex;
|
|
1275
1281
|
}
|
|
1276
1282
|
|
|
1283
|
+
.bi-dialog:where([data-anchor="bottom"], [data-anchor="top"], [data-anchor="left"], [data-anchor="right"]) {
|
|
1284
|
+
--bic-dialog-max-height: unset;
|
|
1285
|
+
border-radius: var(--bic-dialog-anchor-border-radius);
|
|
1286
|
+
transition: display var(--bic-dialog-animation-duration) allow-discrete,
|
|
1287
|
+
overlay var(--bic-dialog-animation-duration) allow-discrete;
|
|
1288
|
+
transform: translate(var(--bic-dialog-anchor-closed-translate));
|
|
1289
|
+
animation: bi-dialog-slide-out-animation var(--bic-dialog-animation-duration) ease-in-out forwards;
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
.bi-dialog:where([data-anchor="bottom"], [data-anchor="top"], [data-anchor="left"], [data-anchor="right"])[open] {
|
|
1293
|
+
animation: bi-dialog-slide-in-animation var(--bic-dialog-animation-duration) ease-in-out forwards;
|
|
1294
|
+
transform: translate(0);
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
.bi-dialog:where([data-anchor="bottom"], [data-anchor="top"]) {
|
|
1298
|
+
min-height: var(--bic-dialog-anchor-block-min-height);
|
|
1299
|
+
max-height: calc(100dvh - var(--bi-layout-navbar-height));
|
|
1300
|
+
max-width: 100dvw;
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
.bi-dialog:where([data-anchor="left"], [data-anchor="right"]) {
|
|
1304
|
+
min-width: var(--bic-dialog-anchor-inline-min-width);
|
|
1305
|
+
max-width: var(--bic-dialog-anchor-inline-max-width);
|
|
1306
|
+
width: fit-content;
|
|
1307
|
+
height: 100dvh;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
.bi-dialog[data-anchor="bottom"] {
|
|
1311
|
+
--bic-dialog-anchor-closed-translate: 0, 100%;
|
|
1312
|
+
border-bottom-right-radius: 0;
|
|
1313
|
+
border-bottom-left-radius: 0;
|
|
1314
|
+
top: auto;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
.bi-dialog[data-anchor="top"] {
|
|
1318
|
+
--bic-dialog-anchor-closed-translate: 0, -100%;
|
|
1319
|
+
border-top-left-radius: 0;
|
|
1320
|
+
border-top-right-radius: 0;
|
|
1321
|
+
bottom: auto;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
.bi-dialog[data-anchor="left"] {
|
|
1325
|
+
--bic-dialog-anchor-closed-translate: -100%, 0;
|
|
1326
|
+
border-top-left-radius: 0;
|
|
1327
|
+
border-bottom-left-radius: 0;
|
|
1328
|
+
right: auto;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
.bi-dialog[data-anchor="right"] {
|
|
1332
|
+
--bic-dialog-anchor-closed-translate: 100%, 0;
|
|
1333
|
+
border-top-right-radius: 0;
|
|
1334
|
+
border-bottom-right-radius: 0;
|
|
1335
|
+
left: auto;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1277
1338
|
@media (prefers-reduced-motion: reduce) {
|
|
1278
1339
|
.bi-dialog[open], .bi-dialog::backdrop {
|
|
1279
1340
|
animation: none;
|
|
1280
1341
|
}
|
|
1281
1342
|
}
|
|
1282
1343
|
|
|
1283
|
-
.bi-dialog > form[method="dialog"]:first-child > button:only-child {
|
|
1344
|
+
.bi-dialog > button[command="close"]:first-child, .bi-dialog > form[method="dialog"]:first-child > button:only-child {
|
|
1284
1345
|
top: var(--bic-dialog-icon-spacing);
|
|
1285
1346
|
right: var(--bic-dialog-icon-spacing);
|
|
1286
1347
|
position: absolute;
|
|
@@ -1295,7 +1356,7 @@ details.bi-details > *:not(summary) + * {
|
|
|
1295
1356
|
display: flex;
|
|
1296
1357
|
}
|
|
1297
1358
|
|
|
1298
|
-
.bi-dialog:has( > form[method="dialog"]) .bi-dialog--header {
|
|
1359
|
+
.bi-dialog:has( > form[method="dialog"], > button[command="close"]:first-child) .bi-dialog--header {
|
|
1299
1360
|
padding-right: var(--bi-scale-14x);
|
|
1300
1361
|
}
|
|
1301
1362
|
|
|
@@ -1324,7 +1385,23 @@ body:has(.bi-dialog:modal) {
|
|
|
1324
1385
|
|
|
1325
1386
|
@keyframes bi-dialog-slide-in-animation {
|
|
1326
1387
|
from {
|
|
1327
|
-
|
|
1388
|
+
transform: translate(var(--bic-dialog-anchor-closed-translate));
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
to {
|
|
1392
|
+
transform: translate(0);
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
@keyframes bi-dialog-slide-out-animation {
|
|
1397
|
+
from {
|
|
1398
|
+
opacity: 1;
|
|
1399
|
+
transform: translate(0);
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
to {
|
|
1403
|
+
transform: translate(var(--bic-dialog-anchor-closed-translate));
|
|
1404
|
+
opacity: 0;
|
|
1328
1405
|
}
|
|
1329
1406
|
}
|
|
1330
1407
|
|
|
@@ -2781,7 +2858,11 @@ svg[data-color="white"] {
|
|
|
2781
2858
|
}
|
|
2782
2859
|
|
|
2783
2860
|
.bi-tabs {
|
|
2861
|
+
--bic-tabs-tab-color: var(--bi-neutral-90);
|
|
2784
2862
|
--bic-tabs-tab-color-selected: var(--bi-primary-50);
|
|
2863
|
+
--bic-tabs-tab-background-hover: var(--bi-states-hover-dark);
|
|
2864
|
+
--bic-tabs-tab-background-press: var(--bi-states-press-dark);
|
|
2865
|
+
--bic-tabs-tab-font: var(--bi-font-title-bold-xs);
|
|
2785
2866
|
--bic-tabs-panel-padding: var(--bi-scale-4x) var(--bi-scale-5x);
|
|
2786
2867
|
--bic-tabs-focus-shadow-color: var(--bi-basic-white);
|
|
2787
2868
|
--bic-tabs-focus-outline-color: var(--bi-primary-50);
|
|
@@ -2789,6 +2870,8 @@ svg[data-color="white"] {
|
|
|
2789
2870
|
|
|
2790
2871
|
.bi-tabs[data-dark="true"] {
|
|
2791
2872
|
--bic-tabs-tab-color-selected: var(--bi-primary-30);
|
|
2873
|
+
--bic-tabs-tab-background-hover: var(--bi-states-hover-light);
|
|
2874
|
+
--bic-tabs-tab-background-press: var(--bi-states-press-light);
|
|
2792
2875
|
--bic-tabs-focus-shadow-color: var(--bi-neutral-95);
|
|
2793
2876
|
--bic-tabs-focus-outline-color: var(--bi-primary-30);
|
|
2794
2877
|
}
|
|
@@ -2799,43 +2882,74 @@ svg[data-color="white"] {
|
|
|
2799
2882
|
overflow: hidden;
|
|
2800
2883
|
}
|
|
2801
2884
|
|
|
2802
|
-
.bi-tabs
|
|
2885
|
+
.bi-tabs :is([role="tablist"], ds-tablist) {
|
|
2803
2886
|
scrollbar-width: none;
|
|
2804
2887
|
flex-direction: row;
|
|
2805
2888
|
flex-shrink: 0;
|
|
2806
|
-
display: flex;
|
|
2807
2889
|
position: relative;
|
|
2808
2890
|
overflow-x: auto;
|
|
2809
2891
|
}
|
|
2810
2892
|
|
|
2811
|
-
.bi-tabs
|
|
2812
|
-
|
|
2813
|
-
overflow-x: unset;
|
|
2814
|
-
flex-direction: column;
|
|
2815
|
-
width: fit-content;
|
|
2893
|
+
.bi-tabs :is([role="tablist"], ds-tablist):not([hidden]) {
|
|
2894
|
+
display: flex;
|
|
2816
2895
|
}
|
|
2817
2896
|
|
|
2818
|
-
.bi-tabs
|
|
2897
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab) {
|
|
2898
|
+
font: var(--bic-tabs-tab-font);
|
|
2899
|
+
border-radius: var(--bi-radius-medium);
|
|
2900
|
+
box-sizing: border-box;
|
|
2901
|
+
color: var(--bic-tabs-tab-color);
|
|
2902
|
+
cursor: pointer;
|
|
2903
|
+
align-items: center;
|
|
2904
|
+
gap: var(--bi-scale-1x);
|
|
2905
|
+
padding: .625rem var(--bi-scale-6x);
|
|
2906
|
+
text-align: center;
|
|
2819
2907
|
white-space: nowrap;
|
|
2908
|
+
background: none;
|
|
2909
|
+
border: 0;
|
|
2910
|
+
flex-direction: row;
|
|
2911
|
+
justify-content: center;
|
|
2912
|
+
margin: 0;
|
|
2913
|
+
line-height: 1.5;
|
|
2820
2914
|
transition: color .2s ease-in-out;
|
|
2915
|
+
position: relative;
|
|
2916
|
+
}
|
|
2917
|
+
|
|
2918
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):not([hidden]) {
|
|
2919
|
+
display: flex;
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
@media (hover: hover) and (pointer: fine) {
|
|
2923
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):hover {
|
|
2924
|
+
background: var(--bic-tabs-tab-background-hover);
|
|
2925
|
+
}
|
|
2926
|
+
}
|
|
2927
|
+
|
|
2928
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):active {
|
|
2929
|
+
background: var(--bic-tabs-tab-background-press);
|
|
2821
2930
|
}
|
|
2822
2931
|
|
|
2823
|
-
.bi-tabs
|
|
2932
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):not(:focus-visible) {
|
|
2824
2933
|
border-bottom-right-radius: 0;
|
|
2825
2934
|
border-bottom-left-radius: 0;
|
|
2826
2935
|
}
|
|
2827
2936
|
|
|
2828
|
-
.bi-tabs
|
|
2937
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):focus-visible {
|
|
2829
2938
|
box-shadow: var(--_bi--focus, 0 0 0 4.5px inset var(--bic-tabs-focus-shadow-color));
|
|
2830
2939
|
outline: var(--_bi--focus, 3px solid var(--bic-tabs-focus-outline-color));
|
|
2831
2940
|
outline-offset: var(--_bi--focus, -3px);
|
|
2832
2941
|
}
|
|
2833
2942
|
|
|
2834
|
-
.bi-tabs
|
|
2943
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):focus-visible:after {
|
|
2835
2944
|
bottom: 3px;
|
|
2836
2945
|
}
|
|
2837
2946
|
|
|
2838
|
-
.bi-tabs
|
|
2947
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab) :where(img, svg) {
|
|
2948
|
+
font-size: var(--bi-icon-medium);
|
|
2949
|
+
flex-shrink: 0;
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):after {
|
|
2839
2953
|
background: var(--bic-tabs-tab-color-selected);
|
|
2840
2954
|
content: "";
|
|
2841
2955
|
border-radius: var(--bi-radius-small) var(--bi-radius-small) 0 0;
|
|
@@ -2850,24 +2964,24 @@ svg[data-color="white"] {
|
|
|
2850
2964
|
}
|
|
2851
2965
|
|
|
2852
2966
|
@media (prefers-reduced-motion: reduce) {
|
|
2853
|
-
.bi-tabs
|
|
2967
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab) {
|
|
2854
2968
|
transition: none;
|
|
2855
2969
|
}
|
|
2856
2970
|
|
|
2857
|
-
.bi-tabs
|
|
2971
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):after {
|
|
2858
2972
|
transition: none;
|
|
2859
2973
|
}
|
|
2860
2974
|
}
|
|
2861
2975
|
|
|
2862
|
-
.bi-tabs
|
|
2976
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab)[aria-selected="true"] {
|
|
2863
2977
|
color: var(--bic-tabs-tab-color-selected);
|
|
2864
2978
|
}
|
|
2865
2979
|
|
|
2866
|
-
.bi-tabs
|
|
2980
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab)[aria-selected="true"]:after {
|
|
2867
2981
|
width: calc(100% - var(--bi-scale-6x));
|
|
2868
2982
|
}
|
|
2869
2983
|
|
|
2870
|
-
.bi-tabs
|
|
2984
|
+
.bi-tabs :is([role="tabpanel"], ds-tabpanel) {
|
|
2871
2985
|
padding: var(--bic-tabs-panel-padding);
|
|
2872
2986
|
outline: none;
|
|
2873
2987
|
flex-grow: 1;
|
package/dist/salesforce.css
CHANGED
|
@@ -563,7 +563,7 @@
|
|
|
563
563
|
--bic-button-size: var(--bi-scale-11x);
|
|
564
564
|
--bic-button-font-size: 1rem;
|
|
565
565
|
--bic-button-line-height: 1.5;
|
|
566
|
-
--bic-button-color:
|
|
566
|
+
--bic-button-color: var(--bi-basic-white);
|
|
567
567
|
--bic-button-background: transparent;
|
|
568
568
|
--bic-button-background-hover: transparent;
|
|
569
569
|
--bic-button-background-press: transparent;
|
|
@@ -604,7 +604,7 @@
|
|
|
604
604
|
--bic-button-focus-outline-color: var(--bi-primary-30);
|
|
605
605
|
}
|
|
606
606
|
|
|
607
|
-
.bi-button[data-fullwidth="true"]
|
|
607
|
+
.bi-button[data-fullwidth="true"] {
|
|
608
608
|
width: 100%;
|
|
609
609
|
}
|
|
610
610
|
|
|
@@ -1454,9 +1454,15 @@ details.bi-details > *:not(summary) + * {
|
|
|
1454
1454
|
}
|
|
1455
1455
|
|
|
1456
1456
|
.bi-dialog {
|
|
1457
|
+
--bic-dialog-anchor-inline-min-width: 23.5rem;
|
|
1458
|
+
--bic-dialog-anchor-inline-max-width: 40rem;
|
|
1459
|
+
--bic-dialog-anchor-block-min-height: 20rem;
|
|
1460
|
+
--bic-dialog-anchor-border-radius: var(--bi-radius-medium);
|
|
1461
|
+
--bic-dialog-anchor-closed-translate: 0, var(--bi-scale-12x);
|
|
1457
1462
|
--bic-dialog-animation-duration: .2s;
|
|
1458
1463
|
--bic-dialog-backdrop-background: #00000080;
|
|
1459
1464
|
--bic-dialog-background: var(--bi-basic-white);
|
|
1465
|
+
--bic-dialog-border-radius: var(--bi-radius-large);
|
|
1460
1466
|
--bic-dialog-border-color: var(--bi-neutral-15);
|
|
1461
1467
|
--bic-dialog-icon-spacing: .625rem;
|
|
1462
1468
|
--bic-dialog-color: var(--bi-neutral-90);
|
|
@@ -1474,7 +1480,7 @@ details.bi-details > *:not(summary) + * {
|
|
|
1474
1480
|
.bi-dialog {
|
|
1475
1481
|
animation: bi-dialog-fade-in-animation var(--bic-dialog-animation-duration) forwards;
|
|
1476
1482
|
background: var(--bic-dialog-background);
|
|
1477
|
-
border-radius: var(--
|
|
1483
|
+
border-radius: var(--bic-dialog-border-radius);
|
|
1478
1484
|
box-shadow: 0 var(--bi-scale-1x) var(--bi-scale-1x) 0 #00000040;
|
|
1479
1485
|
color: var(--bic-dialog-color);
|
|
1480
1486
|
max-height: var(--bic-dialog-max-height);
|
|
@@ -1500,13 +1506,68 @@ details.bi-details > *:not(summary) + * {
|
|
|
1500
1506
|
display: flex;
|
|
1501
1507
|
}
|
|
1502
1508
|
|
|
1509
|
+
.bi-dialog:where([data-anchor="bottom"], [data-anchor="top"], [data-anchor="left"], [data-anchor="right"]) {
|
|
1510
|
+
--bic-dialog-max-height: unset;
|
|
1511
|
+
border-radius: var(--bic-dialog-anchor-border-radius);
|
|
1512
|
+
transition: display var(--bic-dialog-animation-duration) allow-discrete,
|
|
1513
|
+
overlay var(--bic-dialog-animation-duration) allow-discrete;
|
|
1514
|
+
transform: translate(var(--bic-dialog-anchor-closed-translate));
|
|
1515
|
+
animation: bi-dialog-slide-out-animation var(--bic-dialog-animation-duration) ease-in-out forwards;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
.bi-dialog:where([data-anchor="bottom"], [data-anchor="top"], [data-anchor="left"], [data-anchor="right"])[open] {
|
|
1519
|
+
animation: bi-dialog-slide-in-animation var(--bic-dialog-animation-duration) ease-in-out forwards;
|
|
1520
|
+
transform: translate(0);
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
.bi-dialog:where([data-anchor="bottom"], [data-anchor="top"]) {
|
|
1524
|
+
min-height: var(--bic-dialog-anchor-block-min-height);
|
|
1525
|
+
max-height: calc(100dvh - var(--bi-layout-navbar-height));
|
|
1526
|
+
max-width: 100dvw;
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
.bi-dialog:where([data-anchor="left"], [data-anchor="right"]) {
|
|
1530
|
+
min-width: var(--bic-dialog-anchor-inline-min-width);
|
|
1531
|
+
max-width: var(--bic-dialog-anchor-inline-max-width);
|
|
1532
|
+
width: fit-content;
|
|
1533
|
+
height: 100dvh;
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
.bi-dialog[data-anchor="bottom"] {
|
|
1537
|
+
--bic-dialog-anchor-closed-translate: 0, 100%;
|
|
1538
|
+
border-bottom-right-radius: 0;
|
|
1539
|
+
border-bottom-left-radius: 0;
|
|
1540
|
+
top: auto;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
.bi-dialog[data-anchor="top"] {
|
|
1544
|
+
--bic-dialog-anchor-closed-translate: 0, -100%;
|
|
1545
|
+
border-top-left-radius: 0;
|
|
1546
|
+
border-top-right-radius: 0;
|
|
1547
|
+
bottom: auto;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
.bi-dialog[data-anchor="left"] {
|
|
1551
|
+
--bic-dialog-anchor-closed-translate: -100%, 0;
|
|
1552
|
+
border-top-left-radius: 0;
|
|
1553
|
+
border-bottom-left-radius: 0;
|
|
1554
|
+
right: auto;
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
.bi-dialog[data-anchor="right"] {
|
|
1558
|
+
--bic-dialog-anchor-closed-translate: 100%, 0;
|
|
1559
|
+
border-top-right-radius: 0;
|
|
1560
|
+
border-bottom-right-radius: 0;
|
|
1561
|
+
left: auto;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1503
1564
|
@media (prefers-reduced-motion: reduce) {
|
|
1504
1565
|
.bi-dialog[open], .bi-dialog::backdrop {
|
|
1505
1566
|
animation: none;
|
|
1506
1567
|
}
|
|
1507
1568
|
}
|
|
1508
1569
|
|
|
1509
|
-
.bi-dialog > form[method="dialog"]:first-child > button:only-child {
|
|
1570
|
+
.bi-dialog > button[command="close"]:first-child, .bi-dialog > form[method="dialog"]:first-child > button:only-child {
|
|
1510
1571
|
top: var(--bic-dialog-icon-spacing);
|
|
1511
1572
|
right: var(--bic-dialog-icon-spacing);
|
|
1512
1573
|
position: absolute;
|
|
@@ -1521,7 +1582,7 @@ details.bi-details > *:not(summary) + * {
|
|
|
1521
1582
|
display: flex;
|
|
1522
1583
|
}
|
|
1523
1584
|
|
|
1524
|
-
.bi-dialog:has( > form[method="dialog"]) .bi-dialog--header {
|
|
1585
|
+
.bi-dialog:has( > form[method="dialog"], > button[command="close"]:first-child) .bi-dialog--header {
|
|
1525
1586
|
padding-right: var(--bi-scale-14x);
|
|
1526
1587
|
}
|
|
1527
1588
|
|
|
@@ -1550,7 +1611,23 @@ body:has(.bi-dialog:modal) {
|
|
|
1550
1611
|
|
|
1551
1612
|
@keyframes bi-dialog-slide-in-animation {
|
|
1552
1613
|
from {
|
|
1553
|
-
|
|
1614
|
+
transform: translate(var(--bic-dialog-anchor-closed-translate));
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
to {
|
|
1618
|
+
transform: translate(0);
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
@keyframes bi-dialog-slide-out-animation {
|
|
1623
|
+
from {
|
|
1624
|
+
opacity: 1;
|
|
1625
|
+
transform: translate(0);
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
to {
|
|
1629
|
+
transform: translate(var(--bic-dialog-anchor-closed-translate));
|
|
1630
|
+
opacity: 0;
|
|
1554
1631
|
}
|
|
1555
1632
|
}
|
|
1556
1633
|
|
|
@@ -3007,7 +3084,11 @@ svg[data-color="white"] {
|
|
|
3007
3084
|
}
|
|
3008
3085
|
|
|
3009
3086
|
.bi-tabs {
|
|
3087
|
+
--bic-tabs-tab-color: var(--bi-neutral-90);
|
|
3010
3088
|
--bic-tabs-tab-color-selected: var(--bi-primary-50);
|
|
3089
|
+
--bic-tabs-tab-background-hover: var(--bi-states-hover-dark);
|
|
3090
|
+
--bic-tabs-tab-background-press: var(--bi-states-press-dark);
|
|
3091
|
+
--bic-tabs-tab-font: var(--bi-font-title-bold-xs);
|
|
3011
3092
|
--bic-tabs-panel-padding: var(--bi-scale-4x) var(--bi-scale-5x);
|
|
3012
3093
|
--bic-tabs-focus-shadow-color: var(--bi-basic-white);
|
|
3013
3094
|
--bic-tabs-focus-outline-color: var(--bi-primary-50);
|
|
@@ -3015,6 +3096,8 @@ svg[data-color="white"] {
|
|
|
3015
3096
|
|
|
3016
3097
|
.bi-tabs[data-dark="true"] {
|
|
3017
3098
|
--bic-tabs-tab-color-selected: var(--bi-primary-30);
|
|
3099
|
+
--bic-tabs-tab-background-hover: var(--bi-states-hover-light);
|
|
3100
|
+
--bic-tabs-tab-background-press: var(--bi-states-press-light);
|
|
3018
3101
|
--bic-tabs-focus-shadow-color: var(--bi-neutral-95);
|
|
3019
3102
|
--bic-tabs-focus-outline-color: var(--bi-primary-30);
|
|
3020
3103
|
}
|
|
@@ -3025,43 +3108,74 @@ svg[data-color="white"] {
|
|
|
3025
3108
|
overflow: hidden;
|
|
3026
3109
|
}
|
|
3027
3110
|
|
|
3028
|
-
.bi-tabs
|
|
3111
|
+
.bi-tabs :is([role="tablist"], ds-tablist) {
|
|
3029
3112
|
scrollbar-width: none;
|
|
3030
3113
|
flex-direction: row;
|
|
3031
3114
|
flex-shrink: 0;
|
|
3032
|
-
display: flex;
|
|
3033
3115
|
position: relative;
|
|
3034
3116
|
overflow-x: auto;
|
|
3035
3117
|
}
|
|
3036
3118
|
|
|
3037
|
-
.bi-tabs
|
|
3038
|
-
|
|
3039
|
-
overflow-x: unset;
|
|
3040
|
-
flex-direction: column;
|
|
3041
|
-
width: fit-content;
|
|
3119
|
+
.bi-tabs :is([role="tablist"], ds-tablist):not([hidden]) {
|
|
3120
|
+
display: flex;
|
|
3042
3121
|
}
|
|
3043
3122
|
|
|
3044
|
-
.bi-tabs
|
|
3123
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab) {
|
|
3124
|
+
font: var(--bic-tabs-tab-font);
|
|
3125
|
+
border-radius: var(--bi-radius-medium);
|
|
3126
|
+
box-sizing: border-box;
|
|
3127
|
+
color: var(--bic-tabs-tab-color);
|
|
3128
|
+
cursor: pointer;
|
|
3129
|
+
align-items: center;
|
|
3130
|
+
gap: var(--bi-scale-1x);
|
|
3131
|
+
padding: .625rem var(--bi-scale-6x);
|
|
3132
|
+
text-align: center;
|
|
3045
3133
|
white-space: nowrap;
|
|
3134
|
+
background: none;
|
|
3135
|
+
border: 0;
|
|
3136
|
+
flex-direction: row;
|
|
3137
|
+
justify-content: center;
|
|
3138
|
+
margin: 0;
|
|
3139
|
+
line-height: 1.5;
|
|
3046
3140
|
transition: color .2s ease-in-out;
|
|
3141
|
+
position: relative;
|
|
3142
|
+
}
|
|
3143
|
+
|
|
3144
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):not([hidden]) {
|
|
3145
|
+
display: flex;
|
|
3146
|
+
}
|
|
3147
|
+
|
|
3148
|
+
@media (hover: hover) and (pointer: fine) {
|
|
3149
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):hover {
|
|
3150
|
+
background: var(--bic-tabs-tab-background-hover);
|
|
3151
|
+
}
|
|
3152
|
+
}
|
|
3153
|
+
|
|
3154
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):active {
|
|
3155
|
+
background: var(--bic-tabs-tab-background-press);
|
|
3047
3156
|
}
|
|
3048
3157
|
|
|
3049
|
-
.bi-tabs
|
|
3158
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):not(:focus-visible) {
|
|
3050
3159
|
border-bottom-right-radius: 0;
|
|
3051
3160
|
border-bottom-left-radius: 0;
|
|
3052
3161
|
}
|
|
3053
3162
|
|
|
3054
|
-
.bi-tabs
|
|
3163
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):focus-visible {
|
|
3055
3164
|
box-shadow: var(--_bi--focus, 0 0 0 4.5px inset var(--bic-tabs-focus-shadow-color));
|
|
3056
3165
|
outline: var(--_bi--focus, 3px solid var(--bic-tabs-focus-outline-color));
|
|
3057
3166
|
outline-offset: var(--_bi--focus, -3px);
|
|
3058
3167
|
}
|
|
3059
3168
|
|
|
3060
|
-
.bi-tabs
|
|
3169
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):focus-visible:after {
|
|
3061
3170
|
bottom: 3px;
|
|
3062
3171
|
}
|
|
3063
3172
|
|
|
3064
|
-
.bi-tabs
|
|
3173
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab) :where(img, svg) {
|
|
3174
|
+
font-size: var(--bi-icon-medium);
|
|
3175
|
+
flex-shrink: 0;
|
|
3176
|
+
}
|
|
3177
|
+
|
|
3178
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):after {
|
|
3065
3179
|
background: var(--bic-tabs-tab-color-selected);
|
|
3066
3180
|
content: "";
|
|
3067
3181
|
border-radius: var(--bi-radius-small) var(--bi-radius-small) 0 0;
|
|
@@ -3076,24 +3190,24 @@ svg[data-color="white"] {
|
|
|
3076
3190
|
}
|
|
3077
3191
|
|
|
3078
3192
|
@media (prefers-reduced-motion: reduce) {
|
|
3079
|
-
.bi-tabs
|
|
3193
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab) {
|
|
3080
3194
|
transition: none;
|
|
3081
3195
|
}
|
|
3082
3196
|
|
|
3083
|
-
.bi-tabs
|
|
3197
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab):after {
|
|
3084
3198
|
transition: none;
|
|
3085
3199
|
}
|
|
3086
3200
|
}
|
|
3087
3201
|
|
|
3088
|
-
.bi-tabs
|
|
3202
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab)[aria-selected="true"] {
|
|
3089
3203
|
color: var(--bic-tabs-tab-color-selected);
|
|
3090
3204
|
}
|
|
3091
3205
|
|
|
3092
|
-
.bi-tabs
|
|
3206
|
+
.bi-tabs :is([role="tablist"], ds-tablist) > :is([role="tab"], ds-tab)[aria-selected="true"]:after {
|
|
3093
3207
|
width: calc(100% - var(--bi-scale-6x));
|
|
3094
3208
|
}
|
|
3095
3209
|
|
|
3096
|
-
.bi-tabs
|
|
3210
|
+
.bi-tabs :is([role="tabpanel"], ds-tabpanel) {
|
|
3097
3211
|
padding: var(--bic-tabs-panel-padding);
|
|
3098
3212
|
outline: none;
|
|
3099
3213
|
flex-grow: 1;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bi-digital/css",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.0",
|
|
5
5
|
"description": "CSS for the BI Design System",
|
|
6
6
|
"author": "BI Digital",
|
|
7
7
|
"homepage": "https://designsystem.bi.no/",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
],
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"browserslist": "^4.28.1",
|
|
31
|
-
"glob": "^13.0.
|
|
32
|
-
"lightningcss": "^1.
|
|
31
|
+
"glob": "^13.0.6",
|
|
32
|
+
"lightningcss": "^1.32.0",
|
|
33
33
|
"modern-normalize": "^3.0.1",
|
|
34
34
|
"rimraf": "^6.1.2",
|
|
35
|
-
"@bi-digital/tokens": "0.
|
|
35
|
+
"@bi-digital/tokens": "0.10.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "rimraf dist && node config.js",
|