@apo100l/ace-ui-kit 0.0.2 → 0.1.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/README.md +49 -5
- package/dist/ace-compat.css +1 -1
- package/dist/ace-compat.js +189 -0
- package/dist/ace-compat.js.map +1 -0
- package/dist/ace-ui-kit.css +1 -1
- package/dist/ace-ui-kit.js +22 -9
- package/dist/ace-ui-kit.js.map +1 -1
- package/dist/compat.d.ts +14 -0
- package/dist/icons.svg +56 -0
- package/dist/index.d.ts +2 -0
- package/dist/js/compat/ace.d.ts +2 -0
- package/dist/js/compat/bootstrap.d.ts +9 -0
- package/dist/js/icon.d.ts +13 -0
- package/package.json +20 -7
- package/src/icons/icons.json +58 -0
- package/src/scss/_breakpoints.scss +32 -0
- package/src/scss/_tokens.scss +175 -33
- package/src/scss/compat/_base.scss +165 -0
- package/src/scss/compat/_buttons.scss +100 -0
- package/src/scss/compat/_feedback.scss +210 -0
- package/src/scss/compat/_forms.scss +253 -0
- package/src/scss/compat/_grid.scss +107 -0
- package/src/scss/compat/_layout.scss +427 -0
- package/src/scss/compat/_navigation.scss +181 -0
- package/src/scss/compat/_plugins.scss +105 -0
- package/src/scss/compat/_tables.scss +117 -0
- package/src/scss/compat/_utilities.scss +160 -0
- package/src/scss/compat/_widgets.scss +136 -0
- package/src/scss/compat/index.scss +18 -10
- package/src/scss/components/_alert.scss +21 -22
- package/src/scss/components/_button.scss +34 -33
- package/src/scss/components/_icon.scss +29 -0
- package/src/scss/index.scss +2 -0
- package/src/scss/mixins/_alert.scss +65 -0
- package/src/scss/mixins/_button.scss +102 -0
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
// Ace page shell on kit tokens, following docs/PRINCIPLES.md §2–3: a neutral top bar and a sidebar in
|
|
2
|
+
// the page's own tone (no dark or saturated chrome), the active item as a grey pill.
|
|
3
|
+
//
|
|
4
|
+
// #navbar.navbar > .navbar-container > .navbar-header(.pull-left > .navbar-brand)(.pull-right > ul.ace-nav)
|
|
5
|
+
// #main-container.main-container > .main-container-inner
|
|
6
|
+
// > #sidebar.sidebar(.menu-min) > .sidebar-shortcuts + ul.nav-list(li > a + ul.submenu) + .sidebar-collapse
|
|
7
|
+
// > .main-content > #breadcrumbs.breadcrumbs + .page-content > .page-header + …
|
|
8
|
+
//
|
|
9
|
+
// Width of the sidebar: --ak-sidebar-width (hosts with long menu titles raise it).
|
|
10
|
+
@use '../breakpoints' as bp;
|
|
11
|
+
|
|
12
|
+
// ---- top bar
|
|
13
|
+
.navbar {
|
|
14
|
+
position: fixed;
|
|
15
|
+
inset: 0 0 auto;
|
|
16
|
+
z-index: var(--ak-z-fixed);
|
|
17
|
+
height: var(--ak-topbar-height);
|
|
18
|
+
min-height: 0;
|
|
19
|
+
margin: 0;
|
|
20
|
+
border: 0;
|
|
21
|
+
border-bottom: 1px solid var(--ak-color-border);
|
|
22
|
+
border-radius: 0;
|
|
23
|
+
background: var(--ak-color-surface);
|
|
24
|
+
box-shadow: none;
|
|
25
|
+
}
|
|
26
|
+
body:has(> .navbar),
|
|
27
|
+
body:has(> * > .navbar) {
|
|
28
|
+
padding-top: var(--ak-topbar-height);
|
|
29
|
+
}
|
|
30
|
+
.navbar-container {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
height: 100%;
|
|
35
|
+
padding: 0 var(--ak-space-4) 0 var(--ak-space-4);
|
|
36
|
+
}
|
|
37
|
+
.navbar-header {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
height: 100%;
|
|
41
|
+
float: none !important;
|
|
42
|
+
}
|
|
43
|
+
.navbar-brand {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
height: 100%;
|
|
47
|
+
color: var(--ak-color-text);
|
|
48
|
+
font-size: var(--ak-font-size-md);
|
|
49
|
+
font-weight: var(--ak-font-weight-semibold);
|
|
50
|
+
text-decoration: none;
|
|
51
|
+
|
|
52
|
+
&:hover {
|
|
53
|
+
text-decoration: none;
|
|
54
|
+
}
|
|
55
|
+
> small {
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
gap: var(--ak-space-2);
|
|
59
|
+
font-size: inherit;
|
|
60
|
+
}
|
|
61
|
+
.fa {
|
|
62
|
+
color: var(--ak-color-muted);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.ace-nav {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
gap: var(--ak-space-1);
|
|
70
|
+
height: 100%;
|
|
71
|
+
margin: 0;
|
|
72
|
+
padding: 0;
|
|
73
|
+
list-style: none;
|
|
74
|
+
|
|
75
|
+
> li {
|
|
76
|
+
position: relative;
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
height: 100%;
|
|
80
|
+
|
|
81
|
+
> a {
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
gap: var(--ak-space-2);
|
|
85
|
+
height: 36px;
|
|
86
|
+
padding: 0 var(--ak-space-3);
|
|
87
|
+
border-radius: var(--ak-radius-control);
|
|
88
|
+
background: none;
|
|
89
|
+
color: var(--ak-color-text);
|
|
90
|
+
text-decoration: none;
|
|
91
|
+
|
|
92
|
+
&:hover {
|
|
93
|
+
background: var(--ak-color-raised);
|
|
94
|
+
}
|
|
95
|
+
> .fa {
|
|
96
|
+
color: var(--ak-color-muted);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
&.open > a {
|
|
100
|
+
background: var(--ak-color-active);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
// Ace colour cells (light-green, light-blue, …) carried no meaning
|
|
104
|
+
> li[class*='light-'],
|
|
105
|
+
> li.green,
|
|
106
|
+
> li.purple,
|
|
107
|
+
> li.grey {
|
|
108
|
+
background: none;
|
|
109
|
+
}
|
|
110
|
+
.dropdown-menu {
|
|
111
|
+
top: calc(100% - 4px);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
.user-info {
|
|
115
|
+
display: flex;
|
|
116
|
+
flex-direction: column;
|
|
117
|
+
max-width: 220px;
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
font-size: var(--ak-font-size-md);
|
|
120
|
+
line-height: 1.2;
|
|
121
|
+
text-overflow: ellipsis;
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
|
|
124
|
+
> small {
|
|
125
|
+
color: var(--ak-color-muted);
|
|
126
|
+
font-size: var(--ak-font-size-xs);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// ---- shell
|
|
131
|
+
.main-container {
|
|
132
|
+
position: relative;
|
|
133
|
+
min-height: calc(100vh - var(--ak-topbar-height));
|
|
134
|
+
}
|
|
135
|
+
.main-container-inner {
|
|
136
|
+
min-height: inherit;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.sidebar {
|
|
140
|
+
position: fixed;
|
|
141
|
+
top: var(--ak-topbar-height);
|
|
142
|
+
bottom: 0;
|
|
143
|
+
left: 0;
|
|
144
|
+
z-index: calc(var(--ak-z-fixed) - 1);
|
|
145
|
+
width: var(--ak-sidebar-width);
|
|
146
|
+
height: auto !important;
|
|
147
|
+
padding: var(--ak-space-2) 0;
|
|
148
|
+
overflow-x: hidden;
|
|
149
|
+
overflow-y: auto;
|
|
150
|
+
border-right: 1px solid var(--ak-color-border);
|
|
151
|
+
background: var(--ak-color-ground);
|
|
152
|
+
scrollbar-color: var(--ak-color-control) transparent;
|
|
153
|
+
scrollbar-width: thin;
|
|
154
|
+
|
|
155
|
+
&::before {
|
|
156
|
+
display: none;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// shortcut buttons at the top of the sidebar: quiet icon buttons, not four colours
|
|
161
|
+
.sidebar-shortcuts {
|
|
162
|
+
padding: var(--ak-space-1) var(--ak-space-3) var(--ak-space-2);
|
|
163
|
+
}
|
|
164
|
+
.sidebar-shortcuts-large {
|
|
165
|
+
display: flex;
|
|
166
|
+
gap: var(--ak-space-1);
|
|
167
|
+
|
|
168
|
+
> .btn {
|
|
169
|
+
--_bg: transparent;
|
|
170
|
+
--_bg-hover: var(--ak-color-active);
|
|
171
|
+
--_fg: var(--ak-color-muted);
|
|
172
|
+
--_border: transparent;
|
|
173
|
+
width: var(--ak-control-height);
|
|
174
|
+
padding: 0;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
.sidebar-shortcuts-mini {
|
|
178
|
+
display: none;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.nav-list {
|
|
182
|
+
margin: 0;
|
|
183
|
+
padding: 0 var(--ak-space-2);
|
|
184
|
+
list-style: none;
|
|
185
|
+
|
|
186
|
+
> li {
|
|
187
|
+
margin: 1px 0;
|
|
188
|
+
}
|
|
189
|
+
> li > a,
|
|
190
|
+
.submenu > li > a {
|
|
191
|
+
display: flex;
|
|
192
|
+
align-items: center;
|
|
193
|
+
gap: var(--ak-space-2);
|
|
194
|
+
min-height: var(--ak-nav-row);
|
|
195
|
+
padding: var(--ak-space-1) var(--ak-space-3);
|
|
196
|
+
border-radius: var(--ak-radius-control);
|
|
197
|
+
color: var(--ak-color-text);
|
|
198
|
+
font-size: var(--ak-font-size-md);
|
|
199
|
+
line-height: var(--ak-line-height-tight);
|
|
200
|
+
text-decoration: none;
|
|
201
|
+
|
|
202
|
+
&:hover {
|
|
203
|
+
background: var(--ak-color-raised);
|
|
204
|
+
text-decoration: none;
|
|
205
|
+
}
|
|
206
|
+
> .fa:first-child,
|
|
207
|
+
> [class^='icon-']:first-child {
|
|
208
|
+
flex: none;
|
|
209
|
+
width: 16px;
|
|
210
|
+
color: var(--ak-color-muted);
|
|
211
|
+
font-size: 14px;
|
|
212
|
+
text-align: center;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
> li.active > a,
|
|
216
|
+
.submenu > li.active > a {
|
|
217
|
+
background: var(--ak-color-active);
|
|
218
|
+
font-weight: var(--ak-font-weight-medium);
|
|
219
|
+
|
|
220
|
+
&::after {
|
|
221
|
+
display: none; // Ace's blue arrow on the active item
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
// a group whose child is active is open, but not highlighted itself
|
|
225
|
+
> li.active.open > a:has(+ .submenu) {
|
|
226
|
+
background: none;
|
|
227
|
+
font-weight: var(--ak-font-weight-regular);
|
|
228
|
+
}
|
|
229
|
+
.menu-text {
|
|
230
|
+
flex: 1 1 auto;
|
|
231
|
+
min-width: 0;
|
|
232
|
+
}
|
|
233
|
+
.arrow {
|
|
234
|
+
margin-left: auto;
|
|
235
|
+
color: var(--ak-color-faint);
|
|
236
|
+
font-size: 13px;
|
|
237
|
+
transition: transform var(--ak-duration-fast) var(--ak-ease-out);
|
|
238
|
+
}
|
|
239
|
+
> li.open > a > .arrow {
|
|
240
|
+
transform: rotate(180deg);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
.submenu {
|
|
244
|
+
display: none;
|
|
245
|
+
margin: 1px 0 var(--ak-space-1);
|
|
246
|
+
padding: 0 0 0 var(--ak-space-6);
|
|
247
|
+
list-style: none;
|
|
248
|
+
|
|
249
|
+
.open > & {
|
|
250
|
+
display: block;
|
|
251
|
+
}
|
|
252
|
+
> li > a {
|
|
253
|
+
color: var(--ak-color-muted);
|
|
254
|
+
|
|
255
|
+
> .fa-double-angle-right,
|
|
256
|
+
> .fa-angle-double-right {
|
|
257
|
+
display: none; // Ace's chevron before every child item
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
> li.active > a {
|
|
261
|
+
color: var(--ak-color-text);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.sidebar-collapse {
|
|
266
|
+
margin: var(--ak-space-2) var(--ak-space-2) 0;
|
|
267
|
+
padding: var(--ak-space-2);
|
|
268
|
+
border-top: 1px solid var(--ak-color-border);
|
|
269
|
+
color: var(--ak-color-faint);
|
|
270
|
+
text-align: center;
|
|
271
|
+
cursor: pointer;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
// collapsed sidebar: icons only
|
|
275
|
+
.sidebar.menu-min {
|
|
276
|
+
width: var(--ak-sidebar-width-collapsed);
|
|
277
|
+
|
|
278
|
+
.menu-text,
|
|
279
|
+
.arrow,
|
|
280
|
+
.submenu,
|
|
281
|
+
.sidebar-shortcuts-large {
|
|
282
|
+
display: none;
|
|
283
|
+
}
|
|
284
|
+
.nav-list > li > a {
|
|
285
|
+
justify-content: center;
|
|
286
|
+
padding: 0;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
.sidebar.menu-min ~ .main-content,
|
|
290
|
+
.sidebar.menu-min + .main-content {
|
|
291
|
+
margin-left: var(--ak-sidebar-width-collapsed);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
// ---- content
|
|
295
|
+
.main-content {
|
|
296
|
+
min-height: calc(100vh - var(--ak-topbar-height));
|
|
297
|
+
margin-left: var(--ak-sidebar-width);
|
|
298
|
+
padding: 0;
|
|
299
|
+
}
|
|
300
|
+
.breadcrumbs {
|
|
301
|
+
position: static !important;
|
|
302
|
+
display: flex;
|
|
303
|
+
align-items: center;
|
|
304
|
+
min-height: 44px;
|
|
305
|
+
margin: 0;
|
|
306
|
+
padding: var(--ak-space-3) var(--ak-space-6) 0;
|
|
307
|
+
border: 0;
|
|
308
|
+
background: none;
|
|
309
|
+
}
|
|
310
|
+
.page-content {
|
|
311
|
+
padding: var(--ak-space-3) var(--ak-space-6) var(--ak-space-8);
|
|
312
|
+
background: none;
|
|
313
|
+
}
|
|
314
|
+
.page-header {
|
|
315
|
+
margin: 0 0 var(--ak-space-4);
|
|
316
|
+
padding: 0;
|
|
317
|
+
border: 0;
|
|
318
|
+
|
|
319
|
+
h1 {
|
|
320
|
+
margin: 0;
|
|
321
|
+
color: var(--ak-color-text);
|
|
322
|
+
font-size: var(--ak-font-size-2xl);
|
|
323
|
+
font-weight: var(--ak-font-weight-semibold);
|
|
324
|
+
line-height: var(--ak-line-height-tight);
|
|
325
|
+
|
|
326
|
+
small {
|
|
327
|
+
color: var(--ak-color-muted);
|
|
328
|
+
font-size: var(--ak-font-size-md);
|
|
329
|
+
font-weight: var(--ak-font-weight-regular);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
// ---- narrow screens: the sidebar folds above the content
|
|
335
|
+
@include bp.down(md) {
|
|
336
|
+
.sidebar {
|
|
337
|
+
position: static;
|
|
338
|
+
width: 100%;
|
|
339
|
+
max-height: none;
|
|
340
|
+
border-right: 0;
|
|
341
|
+
border-bottom: 1px solid var(--ak-color-border);
|
|
342
|
+
}
|
|
343
|
+
.main-content,
|
|
344
|
+
.sidebar.menu-min ~ .main-content {
|
|
345
|
+
margin-left: 0;
|
|
346
|
+
}
|
|
347
|
+
.sidebar-collapse {
|
|
348
|
+
display: none;
|
|
349
|
+
}
|
|
350
|
+
.breadcrumbs,
|
|
351
|
+
.page-content {
|
|
352
|
+
padding-right: var(--ak-space-4);
|
|
353
|
+
padding-left: var(--ak-space-4);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
@include bp.down(sm) {
|
|
357
|
+
.user-info > small {
|
|
358
|
+
display: none;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
// ---- login page
|
|
363
|
+
.login-layout {
|
|
364
|
+
background: var(--ak-color-ground);
|
|
365
|
+
|
|
366
|
+
.main-container,
|
|
367
|
+
.main-content {
|
|
368
|
+
min-height: 100vh;
|
|
369
|
+
margin: 0;
|
|
370
|
+
}
|
|
371
|
+
.main-content {
|
|
372
|
+
display: flex;
|
|
373
|
+
align-items: center;
|
|
374
|
+
justify-content: center;
|
|
375
|
+
padding: var(--ak-space-8) var(--ak-space-4);
|
|
376
|
+
|
|
377
|
+
> .row {
|
|
378
|
+
flex: 1;
|
|
379
|
+
max-width: 1100px;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
.login-container h1 {
|
|
383
|
+
margin: 0 0 var(--ak-space-6);
|
|
384
|
+
font-size: var(--ak-font-size-2xl);
|
|
385
|
+
text-align: center;
|
|
386
|
+
|
|
387
|
+
span,
|
|
388
|
+
.fa {
|
|
389
|
+
color: var(--ak-color-text);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
.login-box {
|
|
393
|
+
max-width: 400px;
|
|
394
|
+
margin: 0 auto;
|
|
395
|
+
border: 1px solid var(--ak-color-border);
|
|
396
|
+
|
|
397
|
+
.widget-main {
|
|
398
|
+
padding: var(--ak-space-6);
|
|
399
|
+
}
|
|
400
|
+
.header {
|
|
401
|
+
display: flex;
|
|
402
|
+
align-items: center;
|
|
403
|
+
gap: var(--ak-space-2);
|
|
404
|
+
margin: 0 0 var(--ak-space-4);
|
|
405
|
+
color: var(--ak-color-text);
|
|
406
|
+
font-size: var(--ak-font-size-lg);
|
|
407
|
+
font-weight: var(--ak-font-weight-semibold);
|
|
408
|
+
|
|
409
|
+
.fa {
|
|
410
|
+
color: var(--ak-color-muted);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
label.block {
|
|
414
|
+
margin-bottom: var(--ak-space-3);
|
|
415
|
+
}
|
|
416
|
+
.btn {
|
|
417
|
+
@include bp.up(sm) {
|
|
418
|
+
min-width: 120px;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
// the login box's own Bootstrap column is narrower than the box: let the box decide
|
|
423
|
+
.login-box,
|
|
424
|
+
.position-relative {
|
|
425
|
+
width: 100%;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
// Dropdowns, tabs and breadcrumbs. Open state is the Bootstrap 3 contract: `.open` on the parent
|
|
2
|
+
// (toggled by the compat JS — no bootstrap.js needed).
|
|
3
|
+
|
|
4
|
+
.dropdown,
|
|
5
|
+
.dropup,
|
|
6
|
+
.btn-group {
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.dropdown-menu {
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 100%;
|
|
13
|
+
left: 0;
|
|
14
|
+
z-index: var(--ak-z-dropdown);
|
|
15
|
+
display: none;
|
|
16
|
+
min-width: 180px;
|
|
17
|
+
margin: var(--ak-space-1) 0 0;
|
|
18
|
+
padding: var(--ak-space-1);
|
|
19
|
+
border: 1px solid var(--ak-color-border);
|
|
20
|
+
border-radius: var(--ak-radius-card);
|
|
21
|
+
background: var(--ak-color-surface);
|
|
22
|
+
box-shadow: var(--ak-shadow-float);
|
|
23
|
+
list-style: none;
|
|
24
|
+
text-align: left;
|
|
25
|
+
transform-origin: top left;
|
|
26
|
+
|
|
27
|
+
.open > & {
|
|
28
|
+
display: block;
|
|
29
|
+
animation: ak-dropdown-in var(--ak-duration-base) var(--ak-ease-out);
|
|
30
|
+
}
|
|
31
|
+
&.pull-right,
|
|
32
|
+
.pull-right > & {
|
|
33
|
+
right: 0;
|
|
34
|
+
left: auto;
|
|
35
|
+
float: none !important;
|
|
36
|
+
transform-origin: top right;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
> li > a {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: var(--ak-space-2);
|
|
43
|
+
min-height: var(--ak-control-height);
|
|
44
|
+
padding: 0 var(--ak-space-3);
|
|
45
|
+
border-radius: var(--ak-radius-control);
|
|
46
|
+
color: var(--ak-color-text);
|
|
47
|
+
font-size: var(--ak-font-size-md);
|
|
48
|
+
white-space: nowrap;
|
|
49
|
+
text-decoration: none;
|
|
50
|
+
|
|
51
|
+
&:hover,
|
|
52
|
+
&:focus-visible {
|
|
53
|
+
background: var(--ak-color-raised);
|
|
54
|
+
outline: none;
|
|
55
|
+
}
|
|
56
|
+
.fa {
|
|
57
|
+
width: 16px;
|
|
58
|
+
color: var(--ak-color-muted);
|
|
59
|
+
text-align: center;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
> .active > a {
|
|
63
|
+
background: var(--ak-color-active);
|
|
64
|
+
font-weight: var(--ak-font-weight-medium);
|
|
65
|
+
}
|
|
66
|
+
> .disabled > a {
|
|
67
|
+
color: var(--ak-color-faint);
|
|
68
|
+
pointer-events: none;
|
|
69
|
+
}
|
|
70
|
+
.divider {
|
|
71
|
+
height: 1px;
|
|
72
|
+
margin: var(--ak-space-1) calc(-1 * var(--ak-space-1));
|
|
73
|
+
background: var(--ak-color-border);
|
|
74
|
+
}
|
|
75
|
+
.dropdown-header {
|
|
76
|
+
padding: var(--ak-space-2) var(--ak-space-3) var(--ak-space-1);
|
|
77
|
+
color: var(--ak-color-muted);
|
|
78
|
+
font-size: var(--ak-font-size-sm);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
// Ace caret/colour modifiers carry no meaning in the kit
|
|
82
|
+
.dropdown-caret::before,
|
|
83
|
+
.dropdown-caret::after {
|
|
84
|
+
display: none !important;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@keyframes ak-dropdown-in {
|
|
88
|
+
from {
|
|
89
|
+
opacity: 0;
|
|
90
|
+
transform: scale(0.97) translateY(-2px);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
@media (prefers-reduced-motion: reduce) {
|
|
94
|
+
.open > .dropdown-menu {
|
|
95
|
+
animation: none;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// ---- tabs
|
|
100
|
+
.nav {
|
|
101
|
+
margin: 0;
|
|
102
|
+
padding: 0;
|
|
103
|
+
list-style: none;
|
|
104
|
+
}
|
|
105
|
+
.nav-tabs {
|
|
106
|
+
display: flex;
|
|
107
|
+
flex-wrap: wrap;
|
|
108
|
+
gap: var(--ak-space-1);
|
|
109
|
+
margin-bottom: var(--ak-space-4);
|
|
110
|
+
border-bottom: 1px solid var(--ak-color-border);
|
|
111
|
+
|
|
112
|
+
> li > a {
|
|
113
|
+
display: block;
|
|
114
|
+
margin-bottom: -1px;
|
|
115
|
+
padding: var(--ak-space-2) var(--ak-space-3);
|
|
116
|
+
border-bottom: 2px solid transparent;
|
|
117
|
+
color: var(--ak-color-muted);
|
|
118
|
+
font-weight: var(--ak-font-weight-medium);
|
|
119
|
+
text-decoration: none;
|
|
120
|
+
|
|
121
|
+
&:hover {
|
|
122
|
+
color: var(--ak-color-text);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
> li.active > a {
|
|
126
|
+
border-bottom-color: var(--ak-color-text);
|
|
127
|
+
color: var(--ak-color-text);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
.nav-pills {
|
|
131
|
+
display: flex;
|
|
132
|
+
gap: var(--ak-space-1);
|
|
133
|
+
|
|
134
|
+
> li > a {
|
|
135
|
+
display: block;
|
|
136
|
+
padding: var(--ak-space-1) var(--ak-space-3);
|
|
137
|
+
border-radius: var(--ak-radius-control);
|
|
138
|
+
color: var(--ak-color-muted);
|
|
139
|
+
}
|
|
140
|
+
> li.active > a {
|
|
141
|
+
background: var(--ak-color-active);
|
|
142
|
+
color: var(--ak-color-text);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
.tab-content > .tab-pane {
|
|
146
|
+
display: none;
|
|
147
|
+
}
|
|
148
|
+
.tab-content > .active {
|
|
149
|
+
display: block;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// ---- breadcrumbs (Bootstrap .breadcrumb inside Ace .breadcrumbs bar)
|
|
153
|
+
.breadcrumb {
|
|
154
|
+
display: flex;
|
|
155
|
+
flex-wrap: wrap;
|
|
156
|
+
align-items: center;
|
|
157
|
+
margin: 0;
|
|
158
|
+
padding: 0;
|
|
159
|
+
list-style: none;
|
|
160
|
+
font-size: var(--ak-font-size-sm);
|
|
161
|
+
|
|
162
|
+
> li {
|
|
163
|
+
display: inline-flex;
|
|
164
|
+
align-items: center;
|
|
165
|
+
color: var(--ak-color-muted);
|
|
166
|
+
}
|
|
167
|
+
> li + li::before {
|
|
168
|
+
padding: 0 var(--ak-space-2);
|
|
169
|
+
color: var(--ak-color-faint);
|
|
170
|
+
content: '/';
|
|
171
|
+
}
|
|
172
|
+
> li > a {
|
|
173
|
+
color: var(--ak-color-muted);
|
|
174
|
+
}
|
|
175
|
+
> li > a:hover {
|
|
176
|
+
color: var(--ak-color-text);
|
|
177
|
+
}
|
|
178
|
+
> .active {
|
|
179
|
+
color: var(--ak-color-text);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// Skins for the jQuery plugins legacy admins still load, so they sit with the kit's controls.
|
|
2
|
+
// Plugin CSS files stay loaded; these rules only align heights, borders and colours.
|
|
3
|
+
|
|
4
|
+
// ---- Select2 v4 (default theme)
|
|
5
|
+
.select2-container {
|
|
6
|
+
width: 100% !important;
|
|
7
|
+
font-size: var(--ak-font-size-md);
|
|
8
|
+
}
|
|
9
|
+
.select2-container--default {
|
|
10
|
+
.select2-selection--single,
|
|
11
|
+
.select2-selection--multiple {
|
|
12
|
+
min-height: var(--ak-control-height-lg);
|
|
13
|
+
border: 1px solid var(--ak-color-control);
|
|
14
|
+
border-radius: var(--ak-radius-control);
|
|
15
|
+
background: var(--ak-color-surface);
|
|
16
|
+
}
|
|
17
|
+
.select2-selection--single {
|
|
18
|
+
height: var(--ak-control-height-lg);
|
|
19
|
+
|
|
20
|
+
.select2-selection__rendered {
|
|
21
|
+
padding: 0 var(--ak-space-8) 0 var(--ak-space-3);
|
|
22
|
+
color: var(--ak-color-text);
|
|
23
|
+
line-height: calc(var(--ak-control-height-lg) - 2px);
|
|
24
|
+
}
|
|
25
|
+
.select2-selection__arrow {
|
|
26
|
+
height: calc(var(--ak-control-height-lg) - 2px);
|
|
27
|
+
right: var(--ak-space-2);
|
|
28
|
+
}
|
|
29
|
+
.select2-selection__placeholder {
|
|
30
|
+
color: var(--ak-color-faint);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
.select2-selection--multiple {
|
|
34
|
+
padding: 3px var(--ak-space-1);
|
|
35
|
+
|
|
36
|
+
.select2-selection__choice {
|
|
37
|
+
margin: 3px;
|
|
38
|
+
padding: 2px var(--ak-space-2);
|
|
39
|
+
border: 1px solid var(--ak-color-border);
|
|
40
|
+
border-radius: var(--ak-radius-chip);
|
|
41
|
+
background: var(--ak-color-raised);
|
|
42
|
+
color: var(--ak-color-text);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
&.select2-container--focus,
|
|
46
|
+
&.select2-container--open {
|
|
47
|
+
.select2-selection--single,
|
|
48
|
+
.select2-selection--multiple {
|
|
49
|
+
border-color: var(--ak-color-accent);
|
|
50
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--ak-color-accent) 22%, transparent);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
.select2-results__option--highlighted[aria-selected] {
|
|
54
|
+
background: var(--ak-color-active);
|
|
55
|
+
color: var(--ak-color-text);
|
|
56
|
+
}
|
|
57
|
+
.select2-results__option[aria-selected='true'] {
|
|
58
|
+
background: var(--ak-color-raised);
|
|
59
|
+
font-weight: var(--ak-font-weight-medium);
|
|
60
|
+
}
|
|
61
|
+
.select2-search--dropdown .select2-search__field {
|
|
62
|
+
border: 1px solid var(--ak-color-control);
|
|
63
|
+
border-radius: var(--ak-radius-control);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
.select2-dropdown {
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
border: 1px solid var(--ak-color-border);
|
|
69
|
+
border-radius: var(--ak-radius-card);
|
|
70
|
+
background: var(--ak-color-surface);
|
|
71
|
+
box-shadow: var(--ak-shadow-float);
|
|
72
|
+
z-index: var(--ak-z-popover);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// ---- bootstrap-datepicker / vanillajs-datepicker: above modals, kit colours
|
|
76
|
+
.datepicker,
|
|
77
|
+
.datepicker-dropdown {
|
|
78
|
+
z-index: var(--ak-z-popover) !important;
|
|
79
|
+
border: 1px solid var(--ak-color-border);
|
|
80
|
+
border-radius: var(--ak-radius-card);
|
|
81
|
+
background: var(--ak-color-surface);
|
|
82
|
+
box-shadow: var(--ak-shadow-float);
|
|
83
|
+
font-variant-numeric: tabular-nums;
|
|
84
|
+
|
|
85
|
+
td.active,
|
|
86
|
+
td.active:hover,
|
|
87
|
+
.datepicker-cell.selected {
|
|
88
|
+
background: var(--ak-color-primary) !important;
|
|
89
|
+
color: var(--ak-color-on-primary) !important;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// ---- CodeMirror 5: framed like an input
|
|
94
|
+
.CodeMirror {
|
|
95
|
+
height: 240px; // fixed: the editor scrolls inside instead of stretching the page
|
|
96
|
+
|
|
97
|
+
border: 1px solid var(--ak-color-control);
|
|
98
|
+
border-radius: var(--ak-radius-control);
|
|
99
|
+
font-family: var(--ak-font-mono);
|
|
100
|
+
font-size: var(--ak-font-size-sm);
|
|
101
|
+
}
|
|
102
|
+
.CodeMirror-gutters {
|
|
103
|
+
border-right: 1px solid var(--ak-color-rule);
|
|
104
|
+
background: var(--ak-color-raised);
|
|
105
|
+
}
|