@wwtdev/bsds-css 2.23.0 → 2.25.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/_form-container.scss +111 -0
- package/dist/components/_horizontal-navigation-mobile.scss +19 -10
- package/dist/components/_horizontal-navigation.scss +36 -31
- package/dist/components/_modal.scss +1 -1
- package/dist/components/_table.scss +4 -1
- package/dist/components/_vertical-navigation.scss +78 -28
- package/dist/components/form-container.css +108 -0
- package/dist/components/horizontal-navigation-mobile.css +19 -10
- package/dist/components/horizontal-navigation.css +35 -30
- package/dist/components/modal.css +1 -1
- package/dist/components/table.css +4 -1
- package/dist/components/vertical-navigation.css +77 -27
- package/dist/wwt-bsds-wc-base.css +1 -1
- package/dist/wwt-bsds.css +226 -69
- package/dist/wwt-bsds.min.css +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
@mixin form-container() {
|
|
2
|
+
.bs-form-container {
|
|
3
|
+
background: var(--bs-bg-base-to-light);
|
|
4
|
+
border-radius: 0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@media (min-width: 752px) {
|
|
8
|
+
.bs-form-container {
|
|
9
|
+
border-radius: 8px;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.bs-form-container :where(.bs-form-container-header-wrapper) {
|
|
14
|
+
padding: var(--bs-space-3) var(--bs-space-4);
|
|
15
|
+
display: flex;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.bs-form-container :where(.bs-form-container-header) {
|
|
19
|
+
padding-right: var(--bs-space-6);
|
|
20
|
+
display: flex;
|
|
21
|
+
flex: 1;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
flex-wrap: wrap;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.bs-form-container :where(.bs-form-container-title-wrapper) {
|
|
28
|
+
margin-right: auto;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.bs-form-container :where(.bs-form-container-title) {
|
|
34
|
+
color: var(--bs-ink-medium);
|
|
35
|
+
font-size: var(--bs-text-base);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.bs-form-container :where(.bs-form-container-title-addon) {
|
|
39
|
+
margin-left: var(--bs-space-2);
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: var(--bs-space-2);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.bs-form-container :where(.bs-form-container-header-icon) {
|
|
46
|
+
margin-right: var(--bs-space-2);
|
|
47
|
+
color: var(--bs-ink-base);
|
|
48
|
+
height: 1rem;
|
|
49
|
+
width: 1rem;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.bs-form-container :where(.bs-form-container-subtitle) {
|
|
53
|
+
margin-top: var(--bs-space-1);
|
|
54
|
+
color: var(--bs-ink-light);
|
|
55
|
+
font-size: var(--bs-text-sm);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.bs-form-container :where(.bs-form-container-header-actions) {
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
gap: var(--bs-space-4);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.bs-form-container :where(.bs-form-container-content) {
|
|
65
|
+
display: none;
|
|
66
|
+
padding: var(--bs-space-6);
|
|
67
|
+
border-top: 1px solid var(--bs-border-light);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.bs-form-container :where(.bs-form-container-content):where([data-open="true"]) {
|
|
71
|
+
display: flex;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* adds styling utilities for icons in header actions slot */
|
|
75
|
+
.bs-form-container :where(.bs-form-container-header-actions) :where(.bs-icon) {
|
|
76
|
+
color: var(--bs-ink-medium);
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
transition: transform 200ms ease-in-out, color 100ms ease-in-out;
|
|
79
|
+
|
|
80
|
+
/* color utilities for specified icons */
|
|
81
|
+
&:where([data-component="bs-icon-caret-down"]) {
|
|
82
|
+
color: var(--bs-ink-base);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:where([data-component="bs-icon-edit"]):hover {
|
|
86
|
+
color: var(--bs-ink-blue);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&:where([data-component="bs-icon-delete"]):hover {
|
|
90
|
+
color: var(--bs-ink-red);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.bs-form-container :where(.bs-form-container-header-actions):where([data-open="true"]) {
|
|
95
|
+
/* transition utilities for specified icons */
|
|
96
|
+
:where([data-component="bs-icon-caret-down"]) {
|
|
97
|
+
transform: rotate(180deg);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* inactive state styles */
|
|
102
|
+
.bs-form-container:where([data-inactive="true"]) {
|
|
103
|
+
background: rgba(255, 255, 255, 0.5);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.bs-form-container :where(.bs-form-container-title:where([data-inactive="true"])),
|
|
107
|
+
.bs-form-container :where(.bs-form-container-subtitle:where([data-inactive="true"])) {
|
|
108
|
+
color: var(--bs-ink-disabled);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
position: fixed;
|
|
9
9
|
right: 0;
|
|
10
10
|
top: var(--top-offset);
|
|
11
|
-
z-index:
|
|
11
|
+
z-index: 1000;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
@media (min-width: 1166px) {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
color: var(--bs-ink-light);
|
|
25
25
|
cursor: pointer;
|
|
26
26
|
display: flex;
|
|
27
|
-
height:
|
|
27
|
+
height: var(--bs-horizontal-nav-height);
|
|
28
28
|
justify-content: space-between;
|
|
29
29
|
padding-bottom: 0.5rem;
|
|
30
30
|
padding-left: 2.25rem;
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
background-color: var(--bg-color);
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
|
-
height:
|
|
71
|
+
height: 100dvh;
|
|
72
72
|
/* 100vh - top offset - toggle height */
|
|
73
|
-
max-height: calc(
|
|
73
|
+
max-height: calc(100dvh - var(--top-offset) - 48px);
|
|
74
74
|
opacity: 0;
|
|
75
75
|
overflow: scroll;
|
|
76
76
|
scrollbar-width: none; /* Firefox */
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
.bs-horizontal-nav-mobile:where([data-hide-toggle="true"]) :where(.bs-horizontal-nav-mobile-menu) {
|
|
83
|
-
max-height: calc(
|
|
83
|
+
max-height: calc(100dvh - var(--top-offset));
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
.bs-horizontal-nav-mobile:where([data-shown="true"]) :where(.bs-horizontal-nav-mobile-menu) {
|
|
@@ -201,17 +201,26 @@
|
|
|
201
201
|
width: 1rem;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
/* =====
|
|
205
|
-
.bs-horizontal-nav-mobile :where(.bs-horizontal-nav-mobile-
|
|
204
|
+
/* ===== End Items ===== */
|
|
205
|
+
.bs-horizontal-nav-mobile :where(.bs-horizontal-nav-mobile-end-items) {
|
|
206
|
+
display: flex;
|
|
207
|
+
flex-direction: column;
|
|
208
|
+
margin-bottom: 1.5rem;
|
|
209
|
+
margin-top: auto;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.bs-horizontal-nav-mobile :where(.bs-horizontal-nav-mobile-end-items > *:not(button)) {
|
|
206
213
|
padding-bottom: 0.75rem;
|
|
207
214
|
padding-left: 2.25rem;
|
|
208
215
|
padding-right: 2.25rem;
|
|
209
216
|
padding-top: 0.75rem;
|
|
210
|
-
margin-top: auto;
|
|
211
217
|
}
|
|
212
218
|
|
|
213
|
-
.bs-horizontal-nav-mobile :where(.bs-horizontal-nav-mobile-
|
|
214
|
-
margin-
|
|
219
|
+
.bs-horizontal-nav-mobile :where(.bs-horizontal-nav-mobile-end-items > button) {
|
|
220
|
+
margin-bottom: 0.75rem;
|
|
221
|
+
margin-left: 2.25rem;
|
|
222
|
+
margin-right: 2.25rem;
|
|
223
|
+
margin-top: 0.75rem;
|
|
215
224
|
}
|
|
216
225
|
|
|
217
226
|
/* Vue Transition Styles - Only used in Vue component */
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
@mixin horizontal-navigation() {
|
|
2
|
-
|
|
2
|
+
:root {
|
|
3
|
+
--bs-horizontal-nav-height: 48px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.bs-horizontal-nav {
|
|
3
7
|
--bg-color: var(--bs-bg-light);
|
|
4
8
|
--top-offset: 48px;
|
|
5
9
|
align-items: center;
|
|
6
10
|
background-color: var(--bg-color);
|
|
7
11
|
bottom: auto;
|
|
8
12
|
display: none;
|
|
9
|
-
height:
|
|
13
|
+
height: var(--bs-horizontal-nav-height);
|
|
10
14
|
left: 0;
|
|
11
15
|
position: fixed;
|
|
12
16
|
right: 0;
|
|
13
17
|
top: var(--top-offset);
|
|
14
|
-
z-index:
|
|
18
|
+
z-index: 1000;
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
@media (min-width: 1166px) {
|
|
@@ -33,8 +37,7 @@
|
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
/* ===== Nav List ===== */
|
|
36
|
-
.bs-horizontal-nav :where(nav > ul)
|
|
37
|
-
.bs-horizontal-nav :where(nav > .bs-horizontal-nav-external-links > ul) {
|
|
40
|
+
.bs-horizontal-nav :where(nav > ul) {
|
|
38
41
|
align-items: center;
|
|
39
42
|
display: flex;
|
|
40
43
|
flex-direction: row;
|
|
@@ -57,20 +60,17 @@
|
|
|
57
60
|
padding-left: 0;
|
|
58
61
|
padding-right: 0;
|
|
59
62
|
padding-top: 0;
|
|
60
|
-
width: auto;
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
/* ===== Nav Items ===== */
|
|
64
|
-
.bs-horizontal-nav :where(nav > ul > li)
|
|
65
|
-
.bs-horizontal-nav :where(nav > .bs-horizontal-nav-external-links > ul > li) {
|
|
66
|
+
.bs-horizontal-nav :where(nav > ul > li) {
|
|
66
67
|
border-bottom: none;
|
|
67
68
|
display: list-item;
|
|
68
69
|
margin-left: 0;
|
|
69
70
|
width: auto;
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
.bs-horizontal-nav :where(nav > ul > li:not(.bs-horizontal-nav-title) > a)
|
|
73
|
-
.bs-horizontal-nav :where(nav > .bs-horizontal-nav-external-links > ul > li > a) {
|
|
73
|
+
.bs-horizontal-nav :where(nav > ul > li:not(.bs-horizontal-nav-title) > a) {
|
|
74
74
|
align-items: center;
|
|
75
75
|
border-radius: 4px;
|
|
76
76
|
color: var(--bs-ink-light);
|
|
@@ -86,19 +86,16 @@
|
|
|
86
86
|
width: 100%;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
.bs-horizontal-nav :where(nav > ul > li
|
|
90
|
-
.bs-horizontal-nav :where(nav > .bs-horizontal-nav-external-links > ul > li > a:hover) {
|
|
89
|
+
.bs-horizontal-nav :where(nav > ul > li > a:hover) {
|
|
91
90
|
color: var(--bs-ink-blue);
|
|
92
91
|
}
|
|
93
92
|
|
|
94
|
-
.bs-horizontal-nav :where(nav > ul > li > a[data-active="true"])
|
|
95
|
-
.bs-horizontal-nav :where(nav > .bs-horizontal-nav-external-links > ul > li > a[data-active="true"]) {
|
|
93
|
+
.bs-horizontal-nav :where(nav > ul > li > a[data-active="true"]) {
|
|
96
94
|
color: var(--bs-ink-base);
|
|
97
95
|
font-weight: 600;
|
|
98
96
|
}
|
|
99
97
|
|
|
100
|
-
.bs-horizontal-nav :where(nav > ul > li > a[data-active="true"]:hover)
|
|
101
|
-
.bs-horizontal-nav :where(nav > .bs-horizontal-nav-external-links > ul > li > a[data-active="true"]:hover) {
|
|
98
|
+
.bs-horizontal-nav :where(nav > ul > li > a[data-active="true"]:hover) {
|
|
102
99
|
color: var(--bs-ink-blue);
|
|
103
100
|
}
|
|
104
101
|
|
|
@@ -158,10 +155,12 @@
|
|
|
158
155
|
--dropdown-top: 100%;
|
|
159
156
|
border-radius: 8px;
|
|
160
157
|
padding: 1.5rem;
|
|
161
|
-
width: 10.5rem;
|
|
162
158
|
}
|
|
163
159
|
|
|
164
160
|
.bs-horizontal-nav :where(.bs-horizontal-nav-nested-menu > ul) {
|
|
161
|
+
display: inline-flex;
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
gap: 0.5rem;
|
|
165
164
|
list-style: none;
|
|
166
165
|
}
|
|
167
166
|
|
|
@@ -187,26 +186,32 @@
|
|
|
187
186
|
color: var(--bs-ink-blue);
|
|
188
187
|
}
|
|
189
188
|
|
|
190
|
-
/* =====
|
|
191
|
-
.bs-horizontal-nav :where(.bs-horizontal-nav-
|
|
192
|
-
|
|
193
|
-
|
|
189
|
+
/* ===== End Items ===== */
|
|
190
|
+
.bs-horizontal-nav :where(.bs-horizontal-nav-end-items) {
|
|
191
|
+
display: flex;
|
|
192
|
+
gap: 1.5rem;
|
|
193
|
+
margin-left: auto;
|
|
194
|
+
white-space: nowrap;
|
|
194
195
|
}
|
|
195
196
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
197
|
+
.bs-horizontal-nav :where(.bs-horizontal-nav-end-items > *) {
|
|
198
|
+
font-size: 0.75rem;
|
|
199
|
+
font-weight: 600;
|
|
199
200
|
}
|
|
200
201
|
|
|
201
|
-
.bs-horizontal-nav :where(.bs-horizontal-nav-
|
|
202
|
-
|
|
202
|
+
.bs-horizontal-nav :where(.bs-horizontal-nav-end-items > *:not(button)) {
|
|
203
|
+
color: var(--bs-ink-light);
|
|
204
|
+
padding-bottom: 0.5rem;
|
|
205
|
+
padding-left: 0rem;
|
|
206
|
+
padding-right: 0rem;
|
|
207
|
+
padding-top: 0.5rem;
|
|
203
208
|
}
|
|
204
209
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
+
.bs-horizontal-nav :where(.bs-horizontal-nav-end-items > button) {
|
|
211
|
+
margin-bottom: 0.5rem;
|
|
212
|
+
margin-left: 0rem;
|
|
213
|
+
margin-right: 0rem;
|
|
214
|
+
margin-top: 0.5rem;
|
|
210
215
|
}
|
|
211
216
|
|
|
212
217
|
}
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
.bs-table-header-rowgroup-freeze {
|
|
63
63
|
position: sticky;
|
|
64
64
|
top: 0;
|
|
65
|
-
z-index:
|
|
65
|
+
z-index: 2;
|
|
66
66
|
|
|
67
67
|
.bs-table:not(.bs-table-border-none) & {
|
|
68
68
|
box-shadow: 0 3px 0 rgba(0, 0, 0, .03);
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
.bs-table-footer-rowgroup-freeze {
|
|
95
95
|
position: sticky;
|
|
96
96
|
bottom: 0;
|
|
97
|
+
z-index: 2;
|
|
97
98
|
|
|
98
99
|
.bs-table:not(.bs-table-border-none) & {
|
|
99
100
|
box-shadow: 0 -3px 0 rgba(0, 0, 0, .03);
|
|
@@ -130,6 +131,7 @@
|
|
|
130
131
|
grid-template-columns: subgrid;
|
|
131
132
|
background: inherit;
|
|
132
133
|
border-color: inherit;
|
|
134
|
+
z-index: 1;
|
|
133
135
|
|
|
134
136
|
.bs-table:not(.bs-table-border-none) & {
|
|
135
137
|
box-shadow: 3px 0 0 rgba(0, 0, 0, .03);
|
|
@@ -144,6 +146,7 @@
|
|
|
144
146
|
grid-template-columns: subgrid;
|
|
145
147
|
background: inherit;
|
|
146
148
|
border-color: inherit;
|
|
149
|
+
z-index: 1;
|
|
147
150
|
|
|
148
151
|
.bs-table:not(.bs-table-border-none) & {
|
|
149
152
|
box-shadow: -3px 0 0 rgba(0, 0, 0, .03);
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
@mixin vertical-navigation() {
|
|
2
|
-
|
|
2
|
+
:root {
|
|
3
|
+
--bs-vertical-nav-width: 9.875rem;
|
|
4
|
+
--bs-vertical-nav-narrow-width: 4.5rem;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.bs-vertical-nav {
|
|
3
8
|
--active-color: rgba(255, 255, 255, 0.25);
|
|
4
9
|
--bg-color: var(--bs-navy-base);
|
|
5
10
|
--border-color: var(--bs-border-dark);
|
|
6
11
|
--expand-y-transform: translateY(calc(-1 * var(--top-offset)));
|
|
7
12
|
--top-offset: 48px;
|
|
8
|
-
--width: auto;
|
|
9
13
|
-ms-overflow-style: none; /* Internet Explorer 10+ */
|
|
10
14
|
background-color: var(--bg-color);
|
|
11
15
|
color: var(--bs-white);
|
|
12
16
|
display: flex;
|
|
13
17
|
flex-direction: column;
|
|
14
|
-
height:
|
|
18
|
+
height: 100dvh;
|
|
15
19
|
left: 0;
|
|
16
|
-
max-height: calc(
|
|
20
|
+
max-height: calc(100dvh - var(--top-offset));
|
|
17
21
|
opacity: 0;
|
|
18
22
|
overflow: scroll;
|
|
19
23
|
padding-bottom: 1.5rem;
|
|
@@ -27,8 +31,8 @@
|
|
|
27
31
|
/* Slight delay for visibility to change prior to opacity */
|
|
28
32
|
transition: opacity 200ms ease 10ms;
|
|
29
33
|
visibility: hidden;
|
|
30
|
-
width:
|
|
31
|
-
z-index:
|
|
34
|
+
width: auto;
|
|
35
|
+
z-index: 1000;
|
|
32
36
|
}
|
|
33
37
|
|
|
34
38
|
.bs-vertical-nav:where([data-mobile-shown="true"]) {
|
|
@@ -45,7 +49,6 @@
|
|
|
45
49
|
|
|
46
50
|
@media (min-width: 1166px) {
|
|
47
51
|
.bs-vertical-nav {
|
|
48
|
-
--width: 9.875rem;
|
|
49
52
|
border-right: 1px solid var(--bg-color);
|
|
50
53
|
opacity: 1;
|
|
51
54
|
padding-bottom: 1rem;
|
|
@@ -55,10 +58,11 @@
|
|
|
55
58
|
right: auto;
|
|
56
59
|
transition: max-height 200ms ease, transform 200ms ease;
|
|
57
60
|
visibility: visible;
|
|
61
|
+
width: var(--bs-vertical-nav-width);
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
.bs-vertical-nav:where([data-narrow="true"]) {
|
|
61
|
-
|
|
65
|
+
width: var(--bs-vertical-nav-narrow-width);
|
|
62
66
|
}
|
|
63
67
|
}
|
|
64
68
|
|
|
@@ -68,7 +72,7 @@
|
|
|
68
72
|
|
|
69
73
|
.bs-vertical-nav:where([data-y-expand="true"]) {
|
|
70
74
|
transform: var(--expand-y-transform);
|
|
71
|
-
max-height:
|
|
75
|
+
max-height: 100dvh;
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
/* ===== Sections ===== */
|
|
@@ -105,6 +109,21 @@
|
|
|
105
109
|
width: 100%;
|
|
106
110
|
}
|
|
107
111
|
|
|
112
|
+
@media (min-width: 1166px) {
|
|
113
|
+
.bs-vertical-nav :where(.bs-vertical-nav-section-toggle) {
|
|
114
|
+
/* nav width - nav left padding - nav right padding */
|
|
115
|
+
width: calc(var(--bs-vertical-nav-width) - 0.5rem - 0.5rem);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.bs-vertical-nav :where(.bs-vertical-nav-section-toggle span:first-child) {
|
|
119
|
+
overflow: hidden;
|
|
120
|
+
text-align: start;
|
|
121
|
+
text-overflow: ellipsis;
|
|
122
|
+
/* nav width - nav left padding - nav right padding - link left padding - link right padding - caret width */
|
|
123
|
+
width: calc(var(--bs-vertical-nav-width) - 0.5rem - 0.5rem - 0.75rem - 0.75rem - 0.75rem);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
108
127
|
.bs-vertical-nav :where(.bs-vertical-nav-section-toggle-caret) {
|
|
109
128
|
height: 0.75rem;
|
|
110
129
|
transform: none;
|
|
@@ -156,6 +175,24 @@
|
|
|
156
175
|
font-size: 0.875rem;
|
|
157
176
|
padding-bottom: 0.5rem;
|
|
158
177
|
padding-top: 0.5rem;
|
|
178
|
+
/* nav width - nav left padding - nav right padding */
|
|
179
|
+
width: calc(var(--bs-vertical-nav-width) - 0.5rem - 0.5rem);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Text overflow - normal width - no icon */
|
|
183
|
+
.bs-vertical-nav :where(ul li a:not(:has(.bs-vertical-nav-link-icon)) span:first-child) {
|
|
184
|
+
overflow: hidden;
|
|
185
|
+
text-overflow: ellipsis;
|
|
186
|
+
/* nav width - nav left padding - nav right padding - link left padding - link right padding */
|
|
187
|
+
width: calc(var(--bs-vertical-nav-width) - 0.5rem - 0.5rem - 0.75rem - 0.75rem);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* Text overflow - normal width - with icon */
|
|
191
|
+
.bs-vertical-nav :where(ul li a:has(.bs-vertical-nav-link-icon) span:nth-child(2)) {
|
|
192
|
+
overflow: hidden;
|
|
193
|
+
text-overflow: ellipsis;
|
|
194
|
+
/* nav width - nav left padding - nav right padding - link left padding - link right padding - icon width - icon gap */
|
|
195
|
+
width: calc(var(--bs-vertical-nav-width) - 0.5rem - 0.5rem - 0.75rem - 0.75rem - 0.875rem - 0.5rem);
|
|
159
196
|
}
|
|
160
197
|
|
|
161
198
|
.bs-vertical-nav:where([data-narrow="true"]) :where(ul li a) {
|
|
@@ -168,6 +205,17 @@
|
|
|
168
205
|
padding-right: 0.25rem;
|
|
169
206
|
padding-top: 0.75rem;
|
|
170
207
|
text-align: center;
|
|
208
|
+
/* nav width - nav left padding - nav right padding */
|
|
209
|
+
width: calc(var(--bs-vertical-nav-narrow-width) - 0.5rem - 0.5rem);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/* Text overflow - narrow width */
|
|
213
|
+
.bs-vertical-nav:where([data-narrow="true"]) :where(ul li a:not(:has(.bs-vertical-nav-link-icon)) span:first-child),
|
|
214
|
+
.bs-vertical-nav:where([data-narrow="true"]) :where(ul li a:has(.bs-vertical-nav-link-icon) span:nth-child(2)) {
|
|
215
|
+
overflow: hidden;
|
|
216
|
+
text-overflow: ellipsis;
|
|
217
|
+
/* nav width - nav left padding - nav right padding - link left padding */
|
|
218
|
+
width: calc(var(--bs-vertical-nav-narrow-width) - 0.5rem - 0.5rem);
|
|
171
219
|
}
|
|
172
220
|
}
|
|
173
221
|
|
|
@@ -197,38 +245,40 @@
|
|
|
197
245
|
}
|
|
198
246
|
}
|
|
199
247
|
|
|
200
|
-
/* =====
|
|
201
|
-
.bs-vertical-nav :where(.bs-vertical-nav-
|
|
248
|
+
/* ===== End Items ===== */
|
|
249
|
+
.bs-vertical-nav :where(.bs-vertical-nav-end-items) {
|
|
250
|
+
display: flex;
|
|
251
|
+
flex-direction: column;
|
|
252
|
+
gap: 0.25rem;
|
|
202
253
|
margin-top: auto;
|
|
203
|
-
padding-top: 2.25rem;
|
|
204
254
|
}
|
|
205
255
|
|
|
206
|
-
.bs-vertical-nav
|
|
207
|
-
|
|
256
|
+
.bs-vertical-nav :where(.bs-vertical-nav-end-items > *) {
|
|
257
|
+
color: var(--bs-white);
|
|
208
258
|
}
|
|
209
259
|
|
|
210
|
-
.bs-vertical-nav :where(.bs-vertical-nav-
|
|
211
|
-
|
|
212
|
-
|
|
260
|
+
.bs-vertical-nav :where(.bs-vertical-nav-end-items > *:not(button)) {
|
|
261
|
+
color: var(--bs-white);
|
|
262
|
+
padding-bottom: 0.5rem;
|
|
263
|
+
padding-left: 0.75rem;
|
|
264
|
+
padding-right: 0.75rem;
|
|
265
|
+
padding-top: 0.5rem;
|
|
213
266
|
}
|
|
214
267
|
|
|
215
268
|
@media (min-width: 1166px) {
|
|
216
|
-
.bs-vertical-nav :where(.bs-vertical-nav-
|
|
217
|
-
|
|
218
|
-
width: 0.875rem;
|
|
269
|
+
.bs-vertical-nav :where(.bs-vertical-nav-end-items > *:not(button)) {
|
|
270
|
+
font-size: 0.875rem;
|
|
219
271
|
}
|
|
220
272
|
}
|
|
221
273
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
margin-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
.bs-vertical-nav :where(.bs-vertical-nav-external-links ~ .bs-vertical-nav-slotted-items) {
|
|
228
|
-
margin-top: 1rem;
|
|
274
|
+
.bs-vertical-nav :where(.bs-vertical-nav-end-items > button) {
|
|
275
|
+
margin-bottom: 0.5rem;
|
|
276
|
+
margin-left: 0.75rem;
|
|
277
|
+
margin-right: 0.75rem;
|
|
278
|
+
margin-top: 0.5rem;
|
|
229
279
|
}
|
|
230
280
|
|
|
231
|
-
.bs-vertical-nav:where([data-narrow="true"]) :where(.bs-vertical-nav-
|
|
281
|
+
.bs-vertical-nav:where([data-narrow="true"]) :where(.bs-vertical-nav-end-items) {
|
|
232
282
|
display: none;
|
|
233
283
|
}
|
|
234
284
|
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
.bs-form-container {
|
|
2
|
+
background: var(--bs-bg-base-to-light);
|
|
3
|
+
border-radius: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@media (min-width: 752px) {
|
|
7
|
+
.bs-form-container {
|
|
8
|
+
border-radius: 8px;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.bs-form-container :where(.bs-form-container-header-wrapper) {
|
|
13
|
+
padding: var(--bs-space-3) var(--bs-space-4);
|
|
14
|
+
display: flex;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.bs-form-container :where(.bs-form-container-header) {
|
|
18
|
+
padding-right: var(--bs-space-6);
|
|
19
|
+
display: flex;
|
|
20
|
+
flex: 1;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
flex-wrap: wrap;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.bs-form-container :where(.bs-form-container-title-wrapper) {
|
|
27
|
+
margin-right: auto;
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.bs-form-container :where(.bs-form-container-title) {
|
|
33
|
+
color: var(--bs-ink-medium);
|
|
34
|
+
font-size: var(--bs-text-base);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.bs-form-container :where(.bs-form-container-title-addon) {
|
|
38
|
+
margin-left: var(--bs-space-2);
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
gap: var(--bs-space-2);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.bs-form-container :where(.bs-form-container-header-icon) {
|
|
45
|
+
margin-right: var(--bs-space-2);
|
|
46
|
+
color: var(--bs-ink-base);
|
|
47
|
+
height: 1rem;
|
|
48
|
+
width: 1rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.bs-form-container :where(.bs-form-container-subtitle) {
|
|
52
|
+
margin-top: var(--bs-space-1);
|
|
53
|
+
color: var(--bs-ink-light);
|
|
54
|
+
font-size: var(--bs-text-sm);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.bs-form-container :where(.bs-form-container-header-actions) {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
gap: var(--bs-space-4);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.bs-form-container :where(.bs-form-container-content) {
|
|
64
|
+
display: none;
|
|
65
|
+
padding: var(--bs-space-6);
|
|
66
|
+
border-top: 1px solid var(--bs-border-light);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.bs-form-container :where(.bs-form-container-content):where([data-open="true"]) {
|
|
70
|
+
display: flex;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* adds styling utilities for icons in header actions slot */
|
|
74
|
+
.bs-form-container :where(.bs-form-container-header-actions) :where(.bs-icon) {
|
|
75
|
+
color: var(--bs-ink-medium);
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
transition: transform 200ms ease-in-out, color 100ms ease-in-out;
|
|
78
|
+
|
|
79
|
+
/* color utilities for specified icons */
|
|
80
|
+
&:where([data-component="bs-icon-caret-down"]) {
|
|
81
|
+
color: var(--bs-ink-base);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:where([data-component="bs-icon-edit"]):hover {
|
|
85
|
+
color: var(--bs-ink-blue);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:where([data-component="bs-icon-delete"]):hover {
|
|
89
|
+
color: var(--bs-ink-red);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.bs-form-container :where(.bs-form-container-header-actions):where([data-open="true"]) {
|
|
94
|
+
/* transition utilities for specified icons */
|
|
95
|
+
:where([data-component="bs-icon-caret-down"]) {
|
|
96
|
+
transform: rotate(180deg);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* inactive state styles */
|
|
101
|
+
.bs-form-container:where([data-inactive="true"]) {
|
|
102
|
+
background: rgba(255, 255, 255, 0.5);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.bs-form-container :where(.bs-form-container-title:where([data-inactive="true"])),
|
|
106
|
+
.bs-form-container :where(.bs-form-container-subtitle:where([data-inactive="true"])) {
|
|
107
|
+
color: var(--bs-ink-disabled);
|
|
108
|
+
}
|