@apo100l/ace-ui-kit 0.2.0 → 0.3.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 +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 +83 -13
- package/src/scss/compat/_feedback.scss +13 -1
- package/src/scss/compat/_layout.scss +67 -31
- package/src/scss/compat/_plugins.scss +49 -0
- package/src/scss/compat/_theme-ace.scss +77 -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 {
|
|
@@ -379,6 +413,8 @@ body:has(> * > .navbar) {
|
|
|
379
413
|
max-width: 1100px;
|
|
380
414
|
}
|
|
381
415
|
}
|
|
416
|
+
// Ace colours the title words with .red / .white / .green — utilities with !important,
|
|
417
|
+
// so the login overrides need !important too.
|
|
382
418
|
.login-container h1 {
|
|
383
419
|
margin: 0 0 var(--ak-space-6);
|
|
384
420
|
font-size: var(--ak-font-size-2xl);
|
|
@@ -386,13 +422,13 @@ body:has(> * > .navbar) {
|
|
|
386
422
|
|
|
387
423
|
span,
|
|
388
424
|
.fa {
|
|
389
|
-
color: var(--ak-color-text);
|
|
425
|
+
color: var(--ak-color-text) !important;
|
|
390
426
|
}
|
|
391
427
|
}
|
|
392
428
|
.login-box {
|
|
393
429
|
max-width: 400px;
|
|
394
430
|
margin: 0 auto;
|
|
395
|
-
border: 1px solid var(--ak-color-border);
|
|
431
|
+
border: 1px solid var(--ak-color-border) !important; // the box carries .no-border
|
|
396
432
|
|
|
397
433
|
.widget-main {
|
|
398
434
|
padding: var(--ak-space-6);
|
|
@@ -402,12 +438,12 @@ body:has(> * > .navbar) {
|
|
|
402
438
|
align-items: center;
|
|
403
439
|
gap: var(--ak-space-2);
|
|
404
440
|
margin: 0 0 var(--ak-space-4);
|
|
405
|
-
color: var(--ak-color-text);
|
|
406
|
-
font-size: var(--ak-font-size-lg);
|
|
441
|
+
color: var(--ak-color-text) !important; // carries .blue
|
|
442
|
+
font-size: var(--ak-font-size-lg) !important; // carries .bigger
|
|
407
443
|
font-weight: var(--ak-font-weight-semibold);
|
|
408
444
|
|
|
409
445
|
.fa {
|
|
410
|
-
color: var(--ak-color-muted);
|
|
446
|
+
color: var(--ak-color-muted) !important; // carries .green
|
|
411
447
|
}
|
|
412
448
|
}
|
|
413
449
|
label.block {
|
|
@@ -90,6 +90,11 @@
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
// ---- elFinder in a modal: its toolbar needs ~900px to stay on one row (and keep its own height)
|
|
94
|
+
.modal-dialog:has(.elfinder) {
|
|
95
|
+
max-width: 900px;
|
|
96
|
+
}
|
|
97
|
+
|
|
93
98
|
// ---- CodeMirror 5: framed like an input
|
|
94
99
|
.CodeMirror {
|
|
95
100
|
height: 240px; // fixed: the editor scrolls inside instead of stretching the page
|
|
@@ -103,3 +108,47 @@
|
|
|
103
108
|
border-right: 1px solid var(--ak-color-rule);
|
|
104
109
|
background: var(--ak-color-raised);
|
|
105
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
|
+
:root:is([data-ak-mode='dark'], [data-ak-theme='dark']) .cm-s-default {
|
|
125
|
+
.cm-tag {
|
|
126
|
+
color: #7fb4ff;
|
|
127
|
+
}
|
|
128
|
+
.cm-attribute {
|
|
129
|
+
color: #c3a6ff;
|
|
130
|
+
}
|
|
131
|
+
.cm-string {
|
|
132
|
+
color: #f0a7a1;
|
|
133
|
+
}
|
|
134
|
+
.cm-keyword {
|
|
135
|
+
color: #e6a0ff;
|
|
136
|
+
}
|
|
137
|
+
.cm-comment {
|
|
138
|
+
color: #8b949e;
|
|
139
|
+
}
|
|
140
|
+
.cm-number,
|
|
141
|
+
.cm-atom {
|
|
142
|
+
color: #79c0ff;
|
|
143
|
+
}
|
|
144
|
+
.cm-variable-2,
|
|
145
|
+
.cm-def {
|
|
146
|
+
color: #a5d6ff;
|
|
147
|
+
}
|
|
148
|
+
.CodeMirror-selected {
|
|
149
|
+
background: #264f78;
|
|
150
|
+
}
|
|
151
|
+
.CodeMirror-linenumber {
|
|
152
|
+
color: var(--ak-color-faint);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
|
|
5
|
+
@mixin fill($bg) {
|
|
6
|
+
--_bg: #{$bg};
|
|
7
|
+
--_bg-hover: color-mix(in srgb, #{$bg} 86%, black);
|
|
8
|
+
--_fg: #ffffff;
|
|
9
|
+
--_border: transparent;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:root[data-ak-theme='ace'] {
|
|
13
|
+
// ---- buttons
|
|
14
|
+
.btn.btn-success {
|
|
15
|
+
@include fill(#3f923f);
|
|
16
|
+
}
|
|
17
|
+
.btn.btn-info {
|
|
18
|
+
@include fill(#008bb2);
|
|
19
|
+
}
|
|
20
|
+
.btn.btn-warning {
|
|
21
|
+
@include fill(#e57f00);
|
|
22
|
+
}
|
|
23
|
+
.btn.btn-danger:not(.dropdown-toggle) {
|
|
24
|
+
@include fill(#df4b30);
|
|
25
|
+
}
|
|
26
|
+
.btn.btn-inverse {
|
|
27
|
+
@include fill(#41464d);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// ---- the four shortcut buttons at the top of the sidebar
|
|
31
|
+
.sidebar-shortcuts-large > .btn {
|
|
32
|
+
width: 44px;
|
|
33
|
+
height: 36px;
|
|
34
|
+
|
|
35
|
+
&:nth-child(1) {
|
|
36
|
+
@include fill(#3f923f);
|
|
37
|
+
}
|
|
38
|
+
&:nth-child(2) {
|
|
39
|
+
@include fill(#008bb2);
|
|
40
|
+
}
|
|
41
|
+
&:nth-child(3) {
|
|
42
|
+
@include fill(#ff8d03);
|
|
43
|
+
}
|
|
44
|
+
&:nth-child(4) {
|
|
45
|
+
@include fill(#df4b30);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// ---- solid status labels (white text), as in Ace tables
|
|
50
|
+
.label-info {
|
|
51
|
+
--_bg: #00a4d2;
|
|
52
|
+
--_fg: #ffffff;
|
|
53
|
+
}
|
|
54
|
+
.label-primary {
|
|
55
|
+
--_bg: #2c86d1;
|
|
56
|
+
--_fg: #ffffff;
|
|
57
|
+
}
|
|
58
|
+
.label-success {
|
|
59
|
+
--_bg: #4f9f4f;
|
|
60
|
+
--_fg: #ffffff;
|
|
61
|
+
}
|
|
62
|
+
.label-danger,
|
|
63
|
+
.label-important {
|
|
64
|
+
--_bg: #da4e35;
|
|
65
|
+
--_fg: #ffffff;
|
|
66
|
+
}
|
|
67
|
+
.label-warning {
|
|
68
|
+
--_bg: #e57f00;
|
|
69
|
+
--_fg: #ffffff;
|
|
70
|
+
}
|
|
71
|
+
.label-grey,
|
|
72
|
+
.label-default,
|
|
73
|
+
.label-light {
|
|
74
|
+
--_bg: #d3dadf;
|
|
75
|
+
--_fg: rgb(0 0 0 / 70%);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -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
|
+
}
|