@apo100l/ace-ui-kit 0.2.1 → 0.3.1
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 +21 -2
- package/dist/ace-compat.css +1 -1
- package/dist/ace-compat.js +1 -1
- package/dist/ace-compat.js.map +1 -1
- package/dist/ace-ui-kit.css +1 -1
- package/dist/ace-ui-kit.js +186 -148
- package/dist/ace-ui-kit.js.map +1 -1
- package/dist/icons.svg +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/js/init.d.ts +2 -2
- package/dist/js/mode.d.ts +6 -0
- package/package.json +1 -1
- package/src/icons/icons.json +10 -0
- package/src/scss/_tokens.scss +84 -13
- package/src/scss/compat/_feedback.scss +3 -1
- package/src/scss/compat/_layout.scss +60 -26
- package/src/scss/compat/_plugins.scss +47 -0
- package/src/scss/compat/_theme-ace.scss +79 -0
- package/src/scss/compat/index.scss +1 -0
- package/src/scss/components/_auth.scss +199 -0
- package/src/scss/components/_icon.scss +7 -0
- package/src/scss/components/_shell.scss +32 -15
- package/src/scss/index.scss +1 -0
- package/src/scss/mixins/_card.scss +1 -0
- package/src/scss/mixins/_table.scss +1 -1
|
@@ -18,9 +18,10 @@
|
|
|
18
18
|
min-height: 0;
|
|
19
19
|
margin: 0;
|
|
20
20
|
border: 0;
|
|
21
|
-
border-bottom: 1px solid var(--ak-
|
|
21
|
+
border-bottom: 1px solid var(--ak-topbar-border);
|
|
22
22
|
border-radius: 0;
|
|
23
|
-
background: var(--ak-
|
|
23
|
+
background: var(--ak-topbar-bg);
|
|
24
|
+
color: var(--ak-topbar-fg);
|
|
24
25
|
box-shadow: none;
|
|
25
26
|
}
|
|
26
27
|
body:has(> .navbar),
|
|
@@ -32,24 +33,33 @@ body:has(> * > .navbar) {
|
|
|
32
33
|
align-items: center;
|
|
33
34
|
justify-content: space-between;
|
|
34
35
|
height: 100%;
|
|
35
|
-
padding: 0 var(--ak-space-4) 0
|
|
36
|
+
padding: 0 var(--ak-space-4) 0 0;
|
|
36
37
|
}
|
|
37
38
|
.navbar-header {
|
|
38
39
|
display: flex;
|
|
39
40
|
align-items: center;
|
|
40
41
|
height: 100%;
|
|
41
42
|
float: none !important;
|
|
43
|
+
|
|
44
|
+
// the brand block sits on its own (darker in Ace) cell as wide as the sidebar
|
|
45
|
+
&:first-child {
|
|
46
|
+
min-width: var(--ak-sidebar-width);
|
|
47
|
+
padding: 0 var(--ak-space-4);
|
|
48
|
+
background: var(--ak-topbar-brand-bg);
|
|
49
|
+
}
|
|
42
50
|
}
|
|
43
51
|
.navbar-brand {
|
|
44
52
|
display: flex;
|
|
45
53
|
align-items: center;
|
|
46
54
|
height: 100%;
|
|
47
|
-
color: var(--ak-
|
|
55
|
+
color: var(--ak-topbar-fg);
|
|
48
56
|
font-size: var(--ak-font-size-md);
|
|
49
57
|
font-weight: var(--ak-font-weight-semibold);
|
|
50
58
|
text-decoration: none;
|
|
51
59
|
|
|
52
|
-
&:hover
|
|
60
|
+
&:hover,
|
|
61
|
+
&:focus {
|
|
62
|
+
color: var(--ak-topbar-fg);
|
|
53
63
|
text-decoration: none;
|
|
54
64
|
}
|
|
55
65
|
> small {
|
|
@@ -59,7 +69,7 @@ body:has(> * > .navbar) {
|
|
|
59
69
|
font-size: inherit;
|
|
60
70
|
}
|
|
61
71
|
.fa {
|
|
62
|
-
color: var(--ak-
|
|
72
|
+
color: var(--ak-topbar-muted);
|
|
63
73
|
}
|
|
64
74
|
}
|
|
65
75
|
|
|
@@ -86,18 +96,22 @@ body:has(> * > .navbar) {
|
|
|
86
96
|
padding: 0 var(--ak-space-3);
|
|
87
97
|
border-radius: var(--ak-radius-control);
|
|
88
98
|
background: none;
|
|
89
|
-
color: var(--ak-
|
|
99
|
+
color: var(--ak-topbar-fg);
|
|
90
100
|
text-decoration: none;
|
|
101
|
+
cursor: pointer;
|
|
91
102
|
|
|
92
|
-
&:hover
|
|
93
|
-
|
|
103
|
+
&:hover,
|
|
104
|
+
&:focus-visible {
|
|
105
|
+
background: var(--ak-topbar-hover);
|
|
106
|
+
color: var(--ak-topbar-fg);
|
|
107
|
+
text-decoration: none;
|
|
94
108
|
}
|
|
95
109
|
> .fa {
|
|
96
|
-
color: var(--ak-
|
|
110
|
+
color: var(--ak-topbar-muted);
|
|
97
111
|
}
|
|
98
112
|
}
|
|
99
113
|
&.open > a {
|
|
100
|
-
background: var(--ak-
|
|
114
|
+
background: var(--ak-topbar-hover);
|
|
101
115
|
}
|
|
102
116
|
}
|
|
103
117
|
// Ace colour cells (light-green, light-blue, …) carried no meaning
|
|
@@ -122,7 +136,7 @@ body:has(> * > .navbar) {
|
|
|
122
136
|
white-space: nowrap;
|
|
123
137
|
|
|
124
138
|
> small {
|
|
125
|
-
color: var(--ak-
|
|
139
|
+
color: var(--ak-topbar-muted);
|
|
126
140
|
font-size: var(--ak-font-size-xs);
|
|
127
141
|
}
|
|
128
142
|
}
|
|
@@ -147,8 +161,9 @@ body:has(> * > .navbar) {
|
|
|
147
161
|
padding: var(--ak-space-2) 0;
|
|
148
162
|
overflow-x: hidden;
|
|
149
163
|
overflow-y: auto;
|
|
150
|
-
border-right: 1px solid var(--ak-
|
|
151
|
-
background: var(--ak-
|
|
164
|
+
border-right: 1px solid var(--ak-sidebar-border);
|
|
165
|
+
background: var(--ak-sidebar-bg);
|
|
166
|
+
color: var(--ak-sidebar-fg);
|
|
152
167
|
scrollbar-color: var(--ak-color-control) transparent;
|
|
153
168
|
scrollbar-width: thin;
|
|
154
169
|
|
|
@@ -167,8 +182,8 @@ body:has(> * > .navbar) {
|
|
|
167
182
|
|
|
168
183
|
> .btn {
|
|
169
184
|
--_bg: transparent;
|
|
170
|
-
--_bg-hover: var(--ak-
|
|
171
|
-
--_fg: var(--ak-
|
|
185
|
+
--_bg-hover: var(--ak-sidebar-hover);
|
|
186
|
+
--_fg: var(--ak-sidebar-icon);
|
|
172
187
|
--_border: transparent;
|
|
173
188
|
width: var(--ak-control-height);
|
|
174
189
|
padding: 0;
|
|
@@ -194,29 +209,38 @@ body:has(> * > .navbar) {
|
|
|
194
209
|
min-height: var(--ak-nav-row);
|
|
195
210
|
padding: var(--ak-space-1) var(--ak-space-3);
|
|
196
211
|
border-radius: var(--ak-radius-control);
|
|
197
|
-
color: var(--ak-
|
|
212
|
+
color: var(--ak-sidebar-fg);
|
|
198
213
|
font-size: var(--ak-font-size-md);
|
|
199
214
|
line-height: var(--ak-line-height-tight);
|
|
200
215
|
text-decoration: none;
|
|
201
216
|
|
|
202
217
|
&:hover {
|
|
203
|
-
background: var(--ak-
|
|
218
|
+
background: var(--ak-sidebar-hover);
|
|
219
|
+
color: var(--ak-sidebar-fg);
|
|
204
220
|
text-decoration: none;
|
|
205
221
|
}
|
|
206
222
|
> .fa:first-child,
|
|
207
223
|
> [class^='icon-']:first-child {
|
|
208
224
|
flex: none;
|
|
209
225
|
width: 16px;
|
|
210
|
-
color: var(--ak-
|
|
226
|
+
color: var(--ak-sidebar-icon);
|
|
211
227
|
font-size: 14px;
|
|
212
228
|
text-align: center;
|
|
213
229
|
}
|
|
214
230
|
}
|
|
215
231
|
> li.active > a,
|
|
216
232
|
.submenu > li.active > a {
|
|
217
|
-
background: var(--ak-
|
|
218
|
-
|
|
233
|
+
background: var(--ak-nav-active-bg);
|
|
234
|
+
color: var(--ak-nav-active-fg);
|
|
235
|
+
font-weight: var(--ak-nav-active-weight);
|
|
236
|
+
box-shadow:
|
|
237
|
+
inset 0 1px 0 var(--ak-nav-active-rule),
|
|
238
|
+
inset 0 -1px 0 var(--ak-nav-active-rule);
|
|
219
239
|
|
|
240
|
+
> .fa:first-child,
|
|
241
|
+
> [class^='icon-']:first-child {
|
|
242
|
+
color: var(--ak-nav-active-icon);
|
|
243
|
+
}
|
|
220
244
|
&::after {
|
|
221
245
|
display: none; // Ace's blue arrow on the active item
|
|
222
246
|
}
|
|
@@ -224,7 +248,13 @@ body:has(> * > .navbar) {
|
|
|
224
248
|
// a group whose child is active is open, but not highlighted itself
|
|
225
249
|
> li.active.open > a:has(+ .submenu) {
|
|
226
250
|
background: none;
|
|
251
|
+
color: var(--ak-sidebar-fg);
|
|
227
252
|
font-weight: var(--ak-font-weight-regular);
|
|
253
|
+
box-shadow: none;
|
|
254
|
+
|
|
255
|
+
> .fa:first-child {
|
|
256
|
+
color: var(--ak-sidebar-icon);
|
|
257
|
+
}
|
|
228
258
|
}
|
|
229
259
|
.menu-text {
|
|
230
260
|
flex: 1 1 auto;
|
|
@@ -246,11 +276,14 @@ body:has(> * > .navbar) {
|
|
|
246
276
|
padding: 0 0 0 var(--ak-space-6);
|
|
247
277
|
list-style: none;
|
|
248
278
|
|
|
249
|
-
.open
|
|
279
|
+
// Ace's own scripts open submenus with jQuery slideToggle() right after toggling .open — if CSS also
|
|
280
|
+
// showed .open > .submenu, the first click would slide it shut. Only the kit's Ace behaviour
|
|
281
|
+
// (initCompat({ ace: true }), which marks <html data-ak-ace-nav>) relies on the class.
|
|
282
|
+
:root[data-ak-ace-nav] .open > & {
|
|
250
283
|
display: block;
|
|
251
284
|
}
|
|
252
285
|
> li > a {
|
|
253
|
-
color: var(--ak-
|
|
286
|
+
color: color-mix(in srgb, var(--ak-sidebar-fg) 80%, var(--ak-sidebar-bg));
|
|
254
287
|
|
|
255
288
|
> .fa-double-angle-right,
|
|
256
289
|
> .fa-angle-double-right {
|
|
@@ -258,7 +291,7 @@ body:has(> * > .navbar) {
|
|
|
258
291
|
}
|
|
259
292
|
}
|
|
260
293
|
> li.active > a {
|
|
261
|
-
color: var(--ak-
|
|
294
|
+
color: var(--ak-nav-active-fg);
|
|
262
295
|
}
|
|
263
296
|
}
|
|
264
297
|
|
|
@@ -296,6 +329,7 @@ body:has(> * > .navbar) {
|
|
|
296
329
|
min-height: calc(100vh - var(--ak-topbar-height));
|
|
297
330
|
margin-left: var(--ak-sidebar-width);
|
|
298
331
|
padding: 0;
|
|
332
|
+
background: var(--ak-main-bg);
|
|
299
333
|
}
|
|
300
334
|
.breadcrumbs {
|
|
301
335
|
position: static !important;
|
|
@@ -318,9 +352,9 @@ body:has(> * > .navbar) {
|
|
|
318
352
|
|
|
319
353
|
h1 {
|
|
320
354
|
margin: 0;
|
|
321
|
-
color: var(--ak-color
|
|
355
|
+
color: var(--ak-page-title-color);
|
|
322
356
|
font-size: var(--ak-font-size-2xl);
|
|
323
|
-
font-weight: var(--ak-
|
|
357
|
+
font-weight: var(--ak-page-title-weight);
|
|
324
358
|
line-height: var(--ak-line-height-tight);
|
|
325
359
|
|
|
326
360
|
small {
|
|
@@ -108,3 +108,50 @@
|
|
|
108
108
|
border-right: 1px solid var(--ak-color-rule);
|
|
109
109
|
background: var(--ak-color-raised);
|
|
110
110
|
}
|
|
111
|
+
|
|
112
|
+
// CodeMirror follows the kit surface; in dark mode the default syntax colours get readable variants
|
|
113
|
+
.CodeMirror {
|
|
114
|
+
background: var(--ak-color-surface);
|
|
115
|
+
color: var(--ak-color-text);
|
|
116
|
+
}
|
|
117
|
+
.CodeMirror-cursor {
|
|
118
|
+
border-left-color: var(--ak-color-text);
|
|
119
|
+
}
|
|
120
|
+
.CodeMirror-scrollbar-filler,
|
|
121
|
+
.CodeMirror-gutter-filler {
|
|
122
|
+
background: var(--ak-color-raised);
|
|
123
|
+
}
|
|
124
|
+
.CodeMirror-linenumber {
|
|
125
|
+
color: var(--ak-color-faint); // #999 on the gutter was 2.6:1
|
|
126
|
+
}
|
|
127
|
+
:root:is([data-ak-mode='dark'], [data-ak-theme='dark']) .cm-s-default {
|
|
128
|
+
.cm-tag {
|
|
129
|
+
color: #7fb4ff;
|
|
130
|
+
}
|
|
131
|
+
.cm-attribute {
|
|
132
|
+
color: #c3a6ff;
|
|
133
|
+
}
|
|
134
|
+
.cm-string {
|
|
135
|
+
color: #f0a7a1;
|
|
136
|
+
}
|
|
137
|
+
.cm-keyword {
|
|
138
|
+
color: #e6a0ff;
|
|
139
|
+
}
|
|
140
|
+
.cm-comment {
|
|
141
|
+
color: #8b949e;
|
|
142
|
+
}
|
|
143
|
+
.cm-number,
|
|
144
|
+
.cm-atom {
|
|
145
|
+
color: #79c0ff;
|
|
146
|
+
}
|
|
147
|
+
.cm-variable-2,
|
|
148
|
+
.cm-def {
|
|
149
|
+
color: #a5d6ff;
|
|
150
|
+
}
|
|
151
|
+
.CodeMirror-selected {
|
|
152
|
+
background: #264f78;
|
|
153
|
+
}
|
|
154
|
+
.CodeMirror-linenumber {
|
|
155
|
+
color: var(--ak-color-faint);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// Ace palette for legacy markup — only under <html data-ak-theme="ace">. The neutral theme keeps colour
|
|
2
|
+
// on data (docs/PRINCIPLES.md §2); the Ace theme brings back Ace Admin's coloured buttons, sidebar
|
|
3
|
+
// shortcuts and solid status labels (values from the Ace v3 demo), in light and dark mode alike.
|
|
4
|
+
// Fills that carry white text are darkened to 4.5:1 (WCAG 1.4.3); the icon-only sidebar shortcuts
|
|
5
|
+
// need 3:1 (WCAG 1.4.11), so they keep the brighter Ace colours.
|
|
6
|
+
|
|
7
|
+
@mixin fill($bg) {
|
|
8
|
+
--_bg: #{$bg};
|
|
9
|
+
--_bg-hover: color-mix(in srgb, #{$bg} 86%, black);
|
|
10
|
+
--_fg: #ffffff;
|
|
11
|
+
--_border: transparent;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:root[data-ak-theme='ace'] {
|
|
15
|
+
// ---- buttons
|
|
16
|
+
.btn.btn-success {
|
|
17
|
+
@include fill(#398439);
|
|
18
|
+
}
|
|
19
|
+
.btn.btn-info {
|
|
20
|
+
@include fill(#007fa3);
|
|
21
|
+
}
|
|
22
|
+
.btn.btn-warning {
|
|
23
|
+
@include fill(#af6100);
|
|
24
|
+
}
|
|
25
|
+
.btn.btn-danger:not(.dropdown-toggle) {
|
|
26
|
+
@include fill(#d53d21);
|
|
27
|
+
}
|
|
28
|
+
.btn.btn-inverse {
|
|
29
|
+
@include fill(#41464d);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// ---- the four shortcut buttons at the top of the sidebar
|
|
33
|
+
.sidebar-shortcuts-large > .btn {
|
|
34
|
+
width: 44px;
|
|
35
|
+
height: 36px;
|
|
36
|
+
|
|
37
|
+
&:nth-child(1) {
|
|
38
|
+
@include fill(#3f923f);
|
|
39
|
+
}
|
|
40
|
+
&:nth-child(2) {
|
|
41
|
+
@include fill(#008bb2);
|
|
42
|
+
}
|
|
43
|
+
&:nth-child(3) {
|
|
44
|
+
@include fill(#dc7800);
|
|
45
|
+
}
|
|
46
|
+
&:nth-child(4) {
|
|
47
|
+
@include fill(#df4b30);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// ---- solid status labels (white text), as in Ace tables
|
|
52
|
+
.label-info {
|
|
53
|
+
--_bg: #007ea2;
|
|
54
|
+
--_fg: #ffffff;
|
|
55
|
+
}
|
|
56
|
+
.label-primary {
|
|
57
|
+
--_bg: #2878bc;
|
|
58
|
+
--_fg: #ffffff;
|
|
59
|
+
}
|
|
60
|
+
.label-success {
|
|
61
|
+
--_bg: #418241;
|
|
62
|
+
--_fg: #ffffff;
|
|
63
|
+
}
|
|
64
|
+
.label-danger,
|
|
65
|
+
.label-important {
|
|
66
|
+
--_bg: #d24026;
|
|
67
|
+
--_fg: #ffffff;
|
|
68
|
+
}
|
|
69
|
+
.label-warning {
|
|
70
|
+
--_bg: #af6100;
|
|
71
|
+
--_fg: #ffffff;
|
|
72
|
+
}
|
|
73
|
+
.label-grey,
|
|
74
|
+
.label-default,
|
|
75
|
+
.label-light {
|
|
76
|
+
--_bg: #d3dadf;
|
|
77
|
+
--_fg: rgb(0 0 0 / 70%);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
@use '../breakpoints' as bp;
|
|
2
|
+
|
|
3
|
+
// Sign-in screen: a card split in two — a picture on the left, the form on the right (Ace-style).
|
|
4
|
+
//
|
|
5
|
+
// <main class="ak-auth">
|
|
6
|
+
// <div class="ak-auth__card">
|
|
7
|
+
// <figure class="ak-auth__media">
|
|
8
|
+
// <img class="ak-auth__image" src="…" alt="Озеро Байкал зимой"> (fades in when loaded: data-loaded)
|
|
9
|
+
// <div class="ak-auth__brand"><img src="logo.png" alt=""> Смарт-ЭК</div>
|
|
10
|
+
// <figcaption class="ak-auth__caption">
|
|
11
|
+
// <span class="ak-auth__place">Байкал</span>
|
|
12
|
+
// <a class="ak-auth__credit" href="…">Фото: Сергей Пестерев · CC BY-SA 4.0</a>
|
|
13
|
+
// </figcaption>
|
|
14
|
+
// </figure>
|
|
15
|
+
// <section class="ak-auth__panel">
|
|
16
|
+
// <header class="ak-auth__header"><h1 class="ak-auth__title">Вход</h1><p class="ak-auth__lead">…</p></header>
|
|
17
|
+
// <form class="ak-form">…</form>
|
|
18
|
+
// <p class="ak-auth__footer">…</p>
|
|
19
|
+
// </section>
|
|
20
|
+
// </div>
|
|
21
|
+
// </main>
|
|
22
|
+
//
|
|
23
|
+
// Without a picture (no JS, no image) the media half stays a calm dark panel with the brand.
|
|
24
|
+
// Under 768px the media half is hidden and the form fills the card.
|
|
25
|
+
|
|
26
|
+
.ak-auth {
|
|
27
|
+
display: grid;
|
|
28
|
+
place-items: center;
|
|
29
|
+
min-height: 100vh;
|
|
30
|
+
min-height: 100dvh;
|
|
31
|
+
margin: 0;
|
|
32
|
+
padding: var(--ak-space-8) var(--ak-space-4);
|
|
33
|
+
background: var(--ak-auth-bg);
|
|
34
|
+
color: var(--ak-color-text);
|
|
35
|
+
font-family: var(--ak-font-family);
|
|
36
|
+
font-size: var(--ak-font-size-md);
|
|
37
|
+
line-height: var(--ak-line-height);
|
|
38
|
+
|
|
39
|
+
@include bp.down(sm) {
|
|
40
|
+
align-items: start;
|
|
41
|
+
padding: var(--ak-space-4) var(--ak-space-3);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ak-auth__card {
|
|
46
|
+
display: grid;
|
|
47
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
48
|
+
width: min(1020px, 100%);
|
|
49
|
+
min-height: 560px;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
border: 1px solid var(--ak-color-border);
|
|
52
|
+
border-radius: var(--ak-radius-card);
|
|
53
|
+
background: var(--ak-color-surface);
|
|
54
|
+
box-shadow: var(--ak-shadow-dialog);
|
|
55
|
+
|
|
56
|
+
@include bp.down(sm) {
|
|
57
|
+
grid-template-columns: minmax(0, 1fr);
|
|
58
|
+
min-height: 0;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// ---- picture half
|
|
63
|
+
.ak-auth__media {
|
|
64
|
+
position: relative;
|
|
65
|
+
margin: 0;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
background: var(--ak-auth-media-bg);
|
|
68
|
+
color: #ffffff;
|
|
69
|
+
|
|
70
|
+
// legibility: darken the top (brand) and the bottom (caption) of any photo
|
|
71
|
+
&::after {
|
|
72
|
+
position: absolute;
|
|
73
|
+
inset: 0;
|
|
74
|
+
background: linear-gradient(
|
|
75
|
+
to bottom,
|
|
76
|
+
rgb(0 0 0 / 45%) 0%,
|
|
77
|
+
rgb(0 0 0 / 0%) 28%,
|
|
78
|
+
rgb(0 0 0 / 0%) 62%,
|
|
79
|
+
rgb(0 0 0 / 60%) 100%
|
|
80
|
+
);
|
|
81
|
+
content: '';
|
|
82
|
+
pointer-events: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@include bp.down(sm) {
|
|
86
|
+
display: none;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
.ak-auth__image {
|
|
90
|
+
position: absolute;
|
|
91
|
+
inset: 0;
|
|
92
|
+
width: 100%;
|
|
93
|
+
height: 100%;
|
|
94
|
+
object-fit: cover;
|
|
95
|
+
opacity: 0;
|
|
96
|
+
transition: opacity 600ms ease;
|
|
97
|
+
|
|
98
|
+
&[data-loaded] {
|
|
99
|
+
opacity: 1;
|
|
100
|
+
}
|
|
101
|
+
@media (prefers-reduced-motion: reduce) {
|
|
102
|
+
transition: none;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
.ak-auth__brand {
|
|
106
|
+
position: absolute;
|
|
107
|
+
top: var(--ak-space-6);
|
|
108
|
+
left: var(--ak-space-6);
|
|
109
|
+
z-index: 1;
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
gap: var(--ak-space-3);
|
|
113
|
+
font-size: var(--ak-font-size-xl);
|
|
114
|
+
font-weight: var(--ak-font-weight-semibold);
|
|
115
|
+
text-shadow: 0 1px 2px rgb(0 0 0 / 40%);
|
|
116
|
+
|
|
117
|
+
img {
|
|
118
|
+
width: 40px;
|
|
119
|
+
height: 40px;
|
|
120
|
+
border-radius: var(--ak-radius-control);
|
|
121
|
+
}
|
|
122
|
+
small {
|
|
123
|
+
display: block;
|
|
124
|
+
font-size: var(--ak-font-size-sm);
|
|
125
|
+
font-weight: var(--ak-font-weight-regular);
|
|
126
|
+
opacity: 0.85;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
.ak-auth__caption {
|
|
130
|
+
position: absolute;
|
|
131
|
+
right: var(--ak-space-6);
|
|
132
|
+
bottom: var(--ak-space-5);
|
|
133
|
+
left: var(--ak-space-6);
|
|
134
|
+
z-index: 1;
|
|
135
|
+
display: grid;
|
|
136
|
+
gap: 2px;
|
|
137
|
+
text-shadow: 0 1px 2px rgb(0 0 0 / 50%);
|
|
138
|
+
}
|
|
139
|
+
.ak-auth__place {
|
|
140
|
+
font-size: var(--ak-font-size-lg);
|
|
141
|
+
font-weight: var(--ak-font-weight-semibold);
|
|
142
|
+
}
|
|
143
|
+
.ak-auth__credit {
|
|
144
|
+
color: rgb(255 255 255 / 80%);
|
|
145
|
+
font-size: var(--ak-font-size-xs);
|
|
146
|
+
text-decoration: none;
|
|
147
|
+
|
|
148
|
+
&:hover {
|
|
149
|
+
color: #ffffff;
|
|
150
|
+
text-decoration: underline;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// ---- form half
|
|
155
|
+
.ak-auth__panel {
|
|
156
|
+
display: flex;
|
|
157
|
+
flex-direction: column;
|
|
158
|
+
justify-content: center;
|
|
159
|
+
padding: var(--ak-space-12) var(--ak-space-10);
|
|
160
|
+
|
|
161
|
+
// one centred column; the extra class keeps it over legacy margins (e.g. compat .alert)
|
|
162
|
+
.ak-auth & > * {
|
|
163
|
+
width: 100%;
|
|
164
|
+
max-width: 340px;
|
|
165
|
+
margin-right: auto;
|
|
166
|
+
margin-left: auto;
|
|
167
|
+
}
|
|
168
|
+
.ak-auth & > .alert,
|
|
169
|
+
.ak-auth & > .ak-alert,
|
|
170
|
+
.ak-auth & > .ak-auth__alerts {
|
|
171
|
+
margin-bottom: var(--ak-space-4);
|
|
172
|
+
}
|
|
173
|
+
@include bp.down(md) {
|
|
174
|
+
padding: var(--ak-space-8) var(--ak-space-6);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
.ak-auth__header {
|
|
178
|
+
margin-bottom: var(--ak-space-6);
|
|
179
|
+
}
|
|
180
|
+
.ak-auth__title {
|
|
181
|
+
margin: 0;
|
|
182
|
+
color: var(--ak-page-title-color);
|
|
183
|
+
font-size: var(--ak-font-size-2xl);
|
|
184
|
+
font-weight: var(--ak-page-title-weight);
|
|
185
|
+
line-height: var(--ak-line-height-tight);
|
|
186
|
+
}
|
|
187
|
+
.ak-auth__lead {
|
|
188
|
+
margin: var(--ak-space-1) 0 0;
|
|
189
|
+
color: var(--ak-color-muted);
|
|
190
|
+
}
|
|
191
|
+
.ak-auth__footer {
|
|
192
|
+
margin-top: var(--ak-space-6);
|
|
193
|
+
color: var(--ak-color-muted);
|
|
194
|
+
font-size: var(--ak-font-size-sm);
|
|
195
|
+
text-align: center;
|
|
196
|
+
}
|
|
197
|
+
.ak-auth__alerts > :last-child {
|
|
198
|
+
margin-bottom: 0;
|
|
199
|
+
}
|
|
@@ -27,3 +27,10 @@
|
|
|
27
27
|
order: 1;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
+
|
|
31
|
+
// light/dark toggle: show the icon for the mode you'd switch to (moon in light, sun in dark)
|
|
32
|
+
:root:not([data-ak-mode='dark']):not([data-ak-theme='dark']) [data-ak-mode-icon='dark'],
|
|
33
|
+
:root[data-ak-mode='dark'] [data-ak-mode-icon='light'],
|
|
34
|
+
:root[data-ak-theme='dark'] [data-ak-mode-icon='light'] {
|
|
35
|
+
display: none !important;
|
|
36
|
+
}
|
|
@@ -50,8 +50,14 @@
|
|
|
50
50
|
gap: var(--ak-space-3);
|
|
51
51
|
height: var(--ak-topbar-height);
|
|
52
52
|
padding: 0 var(--ak-space-4);
|
|
53
|
-
border-bottom: 1px solid var(--ak-
|
|
54
|
-
background: var(--ak-
|
|
53
|
+
border-bottom: 1px solid var(--ak-topbar-border);
|
|
54
|
+
background: var(--ak-topbar-bg);
|
|
55
|
+
color: var(--ak-topbar-fg);
|
|
56
|
+
|
|
57
|
+
.ak-btn--ghost {
|
|
58
|
+
--_fg: var(--ak-topbar-fg);
|
|
59
|
+
--_bg-hover: var(--ak-topbar-hover);
|
|
60
|
+
}
|
|
55
61
|
}
|
|
56
62
|
.ak-topbar__menu {
|
|
57
63
|
display: none;
|
|
@@ -60,11 +66,12 @@
|
|
|
60
66
|
display: flex;
|
|
61
67
|
align-items: center;
|
|
62
68
|
gap: var(--ak-space-2);
|
|
63
|
-
color: var(--ak-
|
|
69
|
+
color: var(--ak-topbar-fg);
|
|
64
70
|
font-weight: var(--ak-font-weight-semibold);
|
|
65
71
|
text-decoration: none;
|
|
66
72
|
|
|
67
73
|
&:hover {
|
|
74
|
+
color: var(--ak-topbar-fg);
|
|
68
75
|
text-decoration: none;
|
|
69
76
|
}
|
|
70
77
|
}
|
|
@@ -80,7 +87,7 @@
|
|
|
80
87
|
font-weight: var(--ak-font-weight-bold);
|
|
81
88
|
}
|
|
82
89
|
.ak-topbar__scope {
|
|
83
|
-
color: var(--ak-
|
|
90
|
+
color: var(--ak-topbar-muted);
|
|
84
91
|
font-size: var(--ak-font-size-md);
|
|
85
92
|
|
|
86
93
|
&::before {
|
|
@@ -104,8 +111,9 @@
|
|
|
104
111
|
height: calc(100vh - var(--ak-topbar-height));
|
|
105
112
|
padding: var(--ak-space-3) var(--ak-space-2) var(--ak-space-6);
|
|
106
113
|
overflow-y: auto;
|
|
107
|
-
border-right: 1px solid var(--ak-
|
|
108
|
-
background: var(--ak-
|
|
114
|
+
border-right: 1px solid var(--ak-sidebar-border);
|
|
115
|
+
background: var(--ak-sidebar-bg);
|
|
116
|
+
color: var(--ak-sidebar-fg);
|
|
109
117
|
scrollbar-color: var(--ak-color-control) transparent;
|
|
110
118
|
scrollbar-width: thin;
|
|
111
119
|
}
|
|
@@ -129,7 +137,7 @@
|
|
|
129
137
|
min-height: var(--ak-nav-row);
|
|
130
138
|
padding: var(--ak-space-1) var(--ak-space-3);
|
|
131
139
|
border-radius: var(--ak-radius-control);
|
|
132
|
-
color: var(--ak-
|
|
140
|
+
color: var(--ak-sidebar-fg);
|
|
133
141
|
font-size: var(--ak-font-size-md);
|
|
134
142
|
line-height: var(--ak-line-height-tight);
|
|
135
143
|
text-decoration: none;
|
|
@@ -140,13 +148,13 @@
|
|
|
140
148
|
display: none;
|
|
141
149
|
}
|
|
142
150
|
> .ak-icon {
|
|
143
|
-
color: var(--ak-
|
|
151
|
+
color: var(--ak-sidebar-icon);
|
|
144
152
|
}
|
|
145
153
|
> .ak-badge {
|
|
146
154
|
margin-left: auto;
|
|
147
155
|
}
|
|
148
156
|
&:hover {
|
|
149
|
-
background: var(--ak-
|
|
157
|
+
background: var(--ak-sidebar-hover);
|
|
150
158
|
text-decoration: none;
|
|
151
159
|
}
|
|
152
160
|
&:focus-visible {
|
|
@@ -154,14 +162,22 @@
|
|
|
154
162
|
box-shadow: var(--ak-focus-ring);
|
|
155
163
|
}
|
|
156
164
|
&[aria-current='page'] {
|
|
157
|
-
background: var(--ak-
|
|
158
|
-
|
|
165
|
+
background: var(--ak-nav-active-bg);
|
|
166
|
+
color: var(--ak-nav-active-fg);
|
|
167
|
+
font-weight: var(--ak-nav-active-weight);
|
|
168
|
+
box-shadow:
|
|
169
|
+
inset 0 1px 0 var(--ak-nav-active-rule),
|
|
170
|
+
inset 0 -1px 0 var(--ak-nav-active-rule);
|
|
171
|
+
|
|
172
|
+
> .ak-icon {
|
|
173
|
+
color: var(--ak-nav-active-icon);
|
|
174
|
+
}
|
|
159
175
|
}
|
|
160
176
|
.ak-nav .ak-nav & {
|
|
161
|
-
color: var(--ak-
|
|
177
|
+
color: color-mix(in srgb, var(--ak-sidebar-fg) 80%, var(--ak-sidebar-bg));
|
|
162
178
|
|
|
163
179
|
&[aria-current='page'] {
|
|
164
|
-
color: var(--ak-
|
|
180
|
+
color: var(--ak-nav-active-fg);
|
|
165
181
|
}
|
|
166
182
|
}
|
|
167
183
|
}
|
|
@@ -192,6 +208,7 @@
|
|
|
192
208
|
.ak-main {
|
|
193
209
|
grid-area: main;
|
|
194
210
|
min-width: 0;
|
|
211
|
+
background: var(--ak-main-bg);
|
|
195
212
|
padding: var(--ak-space-4) var(--ak-space-6) var(--ak-space-10);
|
|
196
213
|
}
|
|
197
214
|
|
|
@@ -233,9 +250,9 @@
|
|
|
233
250
|
}
|
|
234
251
|
.ak-page-header__title {
|
|
235
252
|
margin: 0;
|
|
236
|
-
color: var(--ak-color
|
|
253
|
+
color: var(--ak-page-title-color);
|
|
237
254
|
font-size: var(--ak-font-size-2xl);
|
|
238
|
-
font-weight: var(--ak-
|
|
255
|
+
font-weight: var(--ak-page-title-weight);
|
|
239
256
|
line-height: var(--ak-line-height-tight);
|
|
240
257
|
}
|
|
241
258
|
.ak-page-header__lead {
|
package/src/scss/index.scss
CHANGED