@poadio/starter-angular 0.0.0-stage → 0.2.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/.dockerignore +9 -0
- package/.env.example +7 -0
- package/Dockerfile +20 -0
- package/README.md +91 -2
- package/angular.json +119 -0
- package/bun.lock +1057 -0
- package/docker/40-env-json.sh +39 -0
- package/docker/nginx.conf +24 -0
- package/package.json +86 -4
- package/public/logo.svg +1 -0
- package/public/providers/google.svg +1 -0
- package/public/providers/keycloak.svg +1 -0
- package/scripts/dev.mjs +30 -0
- package/scripts/env.mjs +96 -0
- package/scripts/routes.mjs +155 -0
- package/src/app/app.config.ts +16 -0
- package/src/app/app.meta.ts +43 -0
- package/src/app/app.routes.gen.ts +7 -0
- package/src/app/app.routes.ts +32 -0
- package/src/app/app.ts +17 -0
- package/src/app/core/auth.service.ts +117 -0
- package/src/app/core/captcha.ts +94 -0
- package/src/app/core/config.ts +17 -0
- package/src/app/core/env.ts +27 -0
- package/src/app/core/guards.ts +33 -0
- package/src/app/core/messages.ts +38 -0
- package/src/app/core/poad.ts +46 -0
- package/src/app/core/providers.ts +32 -0
- package/src/app/core/theme.service.ts +37 -0
- package/src/app/layout/_layout.scss +799 -0
- package/src/app/layout/app-layout.ts +263 -0
- package/src/app/layout/app-menu.ts +68 -0
- package/src/app/layout/app-menuitem.ts +105 -0
- package/src/app/layout/brand.ts +50 -0
- package/src/app/layout/canvas-head.ts +78 -0
- package/src/app/layout/layout.service.ts +159 -0
- package/src/app/pages/(auth)/login.html +128 -0
- package/src/app/pages/(auth)/login.ts +194 -0
- package/src/app/pages/(auth)/mfa.ts +61 -0
- package/src/app/pages/(auth)/reset.ts +53 -0
- package/src/app/pages/app/_layout.ts +5 -0
- package/src/app/pages/app/account.html +233 -0
- package/src/app/pages/app/account.ts +262 -0
- package/src/app/pages/app/hello/[name].ts +35 -0
- package/src/app/pages/app/index.ts +82 -0
- package/src/app/pages/app/public.ts +33 -0
- package/src/app/pages/index.ts +280 -0
- package/src/app/pages/setup.ts +51 -0
- package/src/index.html +13 -0
- package/src/main.ts +9 -0
- package/src/styles.scss +151 -0
- package/tsconfig.app.json +15 -0
- package/tsconfig.json +31 -0
|
@@ -0,0 +1,799 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Layout Cerema.
|
|
3
|
+
*
|
|
4
|
+
* Un rail de navigation, une barre supérieure, un canevas flottant.
|
|
5
|
+
* Le rail obéit à un seul concept — sa visibilité :
|
|
6
|
+
* .rail-drawer il a quitté le flux et devient un tiroir
|
|
7
|
+
* .drawer-open le tiroir est déployé
|
|
8
|
+
* .is-narrow la fenêtre impose le tiroir, sans choix offert
|
|
9
|
+
*
|
|
10
|
+
* Aucune couleur en dur : tout vient des tokens `--cad-*` (voir `_tokens.scss`).
|
|
11
|
+
* Le thème sombre est porté par `.theme-dark` sur <html>.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
/* ═══════════════ ossature ═══════════════ */
|
|
16
|
+
|
|
17
|
+
.layout-container {
|
|
18
|
+
--lay-rail: 238px;
|
|
19
|
+
|
|
20
|
+
display: grid;
|
|
21
|
+
grid-template-columns: var(--lay-rail) 1fr;
|
|
22
|
+
min-height: 100vh;
|
|
23
|
+
background: var(--cad-bg);
|
|
24
|
+
color: var(--cad-fg);
|
|
25
|
+
font-family: var(--cad-font);
|
|
26
|
+
font-size: var(--cad-font-size);
|
|
27
|
+
line-height: var(--cad-line);
|
|
28
|
+
position: relative;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/*
|
|
32
|
+
* Hors du flux, le rail est en `position: absolute`. Une colonne résiduelle à 0
|
|
33
|
+
* ferait basculer la colonne de droite dedans, qui s'effondrerait : on n'en
|
|
34
|
+
* garde qu'une seule.
|
|
35
|
+
*/
|
|
36
|
+
.layout-container.rail-drawer {
|
|
37
|
+
grid-template-columns: 1fr;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* ═══════════════ rail ═══════════════ */
|
|
41
|
+
|
|
42
|
+
.layout-rail {
|
|
43
|
+
position: relative;
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
min-width: 0;
|
|
47
|
+
padding: 10px 10px 8px 12px;
|
|
48
|
+
/*
|
|
49
|
+
* Pas de filet à droite quand le rail est dans le flux : le canevas a déjà
|
|
50
|
+
* sa bordure et son angle arrondi — deux traits parallèles à quelques
|
|
51
|
+
* pixels d'écart, c'est laid.
|
|
52
|
+
*/
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.rail-drawer .layout-rail {
|
|
56
|
+
position: absolute;
|
|
57
|
+
inset: 0 auto 0 0;
|
|
58
|
+
width: 250px;
|
|
59
|
+
z-index: 1200;
|
|
60
|
+
background: var(--cad-surface);
|
|
61
|
+
border-right: 1px solid var(--cad-border-strong);
|
|
62
|
+
box-shadow: var(--cad-shadow-lg);
|
|
63
|
+
transform: translateX(-100%);
|
|
64
|
+
transition: transform 180ms var(--cad-ease);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.rail-drawer.drawer-open .layout-rail {
|
|
68
|
+
transform: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Bande sensible du bord : rappelle le tiroir au survol. */
|
|
72
|
+
.rail-hot {
|
|
73
|
+
position: absolute;
|
|
74
|
+
inset: 0 auto 0 0;
|
|
75
|
+
width: 14px;
|
|
76
|
+
z-index: 1150;
|
|
77
|
+
|
|
78
|
+
&::after {
|
|
79
|
+
content: '';
|
|
80
|
+
position: absolute;
|
|
81
|
+
left: 3px;
|
|
82
|
+
top: 16px;
|
|
83
|
+
bottom: 16px;
|
|
84
|
+
width: 2px;
|
|
85
|
+
border-radius: 2px;
|
|
86
|
+
background: var(--cad-accent);
|
|
87
|
+
opacity: 0;
|
|
88
|
+
transition: opacity var(--cad-dur) var(--cad-ease);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:hover::after {
|
|
92
|
+
opacity: 0.5;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.layout-scrim {
|
|
97
|
+
position: absolute;
|
|
98
|
+
inset: 0;
|
|
99
|
+
z-index: 1180;
|
|
100
|
+
border: none;
|
|
101
|
+
padding: 0;
|
|
102
|
+
background: var(--cad-backdrop);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* ---- en-tête du rail ---- */
|
|
106
|
+
|
|
107
|
+
.rail-head {
|
|
108
|
+
display: flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
gap: 2px;
|
|
111
|
+
height: 44px;
|
|
112
|
+
padding: 0 2px 0 4px;
|
|
113
|
+
flex: none;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.rail-brand {
|
|
117
|
+
display: flex;
|
|
118
|
+
align-items: center;
|
|
119
|
+
gap: 9px;
|
|
120
|
+
min-width: 0;
|
|
121
|
+
flex: 1;
|
|
122
|
+
text-decoration: none;
|
|
123
|
+
color: inherit;
|
|
124
|
+
|
|
125
|
+
/* Seule tache d'accent pleine de l'interface. Ce qu'elle montre dit de quoi
|
|
126
|
+
parle l'application : logo, à défaut une icône choisie, à défaut l'initiale. */
|
|
127
|
+
.brand-mark {
|
|
128
|
+
flex: none;
|
|
129
|
+
width: 28px;
|
|
130
|
+
height: 28px;
|
|
131
|
+
border-radius: 8px;
|
|
132
|
+
background: var(--cad-accent);
|
|
133
|
+
color: var(--cad-fg-on-accent);
|
|
134
|
+
display: grid;
|
|
135
|
+
place-items: center;
|
|
136
|
+
overflow: hidden;
|
|
137
|
+
|
|
138
|
+
img {
|
|
139
|
+
width: 100%;
|
|
140
|
+
height: 100%;
|
|
141
|
+
object-fit: cover;
|
|
142
|
+
display: block;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.brand-initial {
|
|
147
|
+
font-size: 12.5px;
|
|
148
|
+
font-weight: 600;
|
|
149
|
+
letter-spacing: -0.02em;
|
|
150
|
+
line-height: 1;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.brand-name {
|
|
154
|
+
min-width: 0;
|
|
155
|
+
font-weight: 600;
|
|
156
|
+
font-size: 14.5px;
|
|
157
|
+
letter-spacing: -0.025em;
|
|
158
|
+
color: var(--cad-fg);
|
|
159
|
+
white-space: nowrap;
|
|
160
|
+
overflow: hidden;
|
|
161
|
+
text-overflow: ellipsis;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.rail-btn {
|
|
166
|
+
flex: none;
|
|
167
|
+
width: 26px;
|
|
168
|
+
height: 26px;
|
|
169
|
+
display: grid;
|
|
170
|
+
place-items: center;
|
|
171
|
+
border: none;
|
|
172
|
+
background: none;
|
|
173
|
+
border-radius: var(--cad-radius-sm);
|
|
174
|
+
color: var(--cad-fg-muted);
|
|
175
|
+
cursor: pointer;
|
|
176
|
+
transition: background var(--cad-dur) var(--cad-ease), color var(--cad-dur) var(--cad-ease);
|
|
177
|
+
|
|
178
|
+
&:hover {
|
|
179
|
+
background: var(--cad-accent-soft);
|
|
180
|
+
color: var(--cad-fg);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&:focus-visible {
|
|
184
|
+
outline: 2px solid var(--cad-ring);
|
|
185
|
+
outline-offset: 1px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* Le cadenas est une commande d'état : il reste visible et coloré. */
|
|
189
|
+
&.is-lock {
|
|
190
|
+
color: var(--cad-accent);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/* ---- recherche ---- */
|
|
195
|
+
|
|
196
|
+
.rail-search {
|
|
197
|
+
display: flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
gap: 8px;
|
|
200
|
+
height: 32px;
|
|
201
|
+
padding: 0 10px;
|
|
202
|
+
margin: 6px 2px 12px;
|
|
203
|
+
flex: none;
|
|
204
|
+
background: var(--cad-bg-subtle);
|
|
205
|
+
border: 1px solid var(--cad-border-strong);
|
|
206
|
+
border-radius: 9px;
|
|
207
|
+
color: var(--cad-fg-muted);
|
|
208
|
+
|
|
209
|
+
&:focus-within {
|
|
210
|
+
border-color: var(--cad-accent);
|
|
211
|
+
box-shadow: 0 0 0 3px var(--cad-ring);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
input {
|
|
215
|
+
min-width: 0;
|
|
216
|
+
flex: 1;
|
|
217
|
+
border: none;
|
|
218
|
+
background: none;
|
|
219
|
+
outline: none;
|
|
220
|
+
font: inherit;
|
|
221
|
+
font-size: 12.5px;
|
|
222
|
+
color: var(--cad-fg);
|
|
223
|
+
|
|
224
|
+
&::placeholder {
|
|
225
|
+
color: var(--cad-fg-muted);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&::-webkit-search-cancel-button {
|
|
229
|
+
appearance: none;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.rail-drawer .rail-search {
|
|
235
|
+
background: var(--cad-bg);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/* ---- menu ---- */
|
|
239
|
+
|
|
240
|
+
/* L'hôte est l'enfant flex du rail : c'est lui qui occupe l'espace restant. */
|
|
241
|
+
.layout-menu-host {
|
|
242
|
+
flex: 1;
|
|
243
|
+
min-height: 0;
|
|
244
|
+
display: flex;
|
|
245
|
+
flex-direction: column;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.layout-menu {
|
|
249
|
+
flex: 1;
|
|
250
|
+
min-height: 0;
|
|
251
|
+
overflow-y: auto;
|
|
252
|
+
list-style: none;
|
|
253
|
+
margin: 0;
|
|
254
|
+
padding: 0 2px;
|
|
255
|
+
scrollbar-width: thin;
|
|
256
|
+
scrollbar-color: var(--cad-border-strong) transparent;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.menu-group-label {
|
|
260
|
+
font-weight: 500;
|
|
261
|
+
font-size: 10px;
|
|
262
|
+
line-height: 1;
|
|
263
|
+
letter-spacing: 0.12em;
|
|
264
|
+
text-transform: uppercase;
|
|
265
|
+
color: var(--cad-fg-muted);
|
|
266
|
+
padding: 14px 8px 6px;
|
|
267
|
+
|
|
268
|
+
&:first-child {
|
|
269
|
+
padding-top: 2px;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.menu-empty {
|
|
274
|
+
padding: 12px 8px;
|
|
275
|
+
font-size: 12.5px;
|
|
276
|
+
color: var(--cad-fg-muted);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.menu-item {
|
|
280
|
+
display: flex;
|
|
281
|
+
align-items: center;
|
|
282
|
+
gap: 10px;
|
|
283
|
+
width: 100%;
|
|
284
|
+
height: 32px;
|
|
285
|
+
padding: 0 8px;
|
|
286
|
+
border: none;
|
|
287
|
+
background: none;
|
|
288
|
+
border-radius: 8px;
|
|
289
|
+
font: inherit;
|
|
290
|
+
text-align: left;
|
|
291
|
+
color: var(--cad-fg-secondary);
|
|
292
|
+
text-decoration: none;
|
|
293
|
+
cursor: pointer;
|
|
294
|
+
transition: background var(--cad-dur) var(--cad-ease), color var(--cad-dur) var(--cad-ease);
|
|
295
|
+
|
|
296
|
+
&:hover {
|
|
297
|
+
background: var(--cad-accent-soft);
|
|
298
|
+
color: var(--cad-fg);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
&:focus-visible {
|
|
302
|
+
outline: 2px solid var(--cad-ring);
|
|
303
|
+
outline-offset: 1px;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
&.is-active {
|
|
307
|
+
background: var(--cad-accent-soft);
|
|
308
|
+
color: var(--cad-accent);
|
|
309
|
+
font-weight: 600;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
cad-icon {
|
|
313
|
+
flex: none;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/*
|
|
318
|
+
* Un libellé long se tronque, il ne passe pas sur deux lignes : l'entrée a une
|
|
319
|
+
* hauteur fixe et déborderait. `min-width: 0` est indispensable — sans lui, un
|
|
320
|
+
* enfant flex refuse de rétrécir sous la largeur de son contenu, et
|
|
321
|
+
* `text-overflow` ne peut rien faire.
|
|
322
|
+
*/
|
|
323
|
+
.menu-label {
|
|
324
|
+
min-width: 0;
|
|
325
|
+
flex: 1;
|
|
326
|
+
white-space: nowrap;
|
|
327
|
+
overflow: hidden;
|
|
328
|
+
text-overflow: ellipsis;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.menu-count,
|
|
332
|
+
.menu-caret {
|
|
333
|
+
flex: none;
|
|
334
|
+
margin-left: auto;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.menu-count {
|
|
338
|
+
font-family: var(--cad-font-mono);
|
|
339
|
+
font-size: 10.5px;
|
|
340
|
+
color: var(--cad-fg-muted);
|
|
341
|
+
font-variant-numeric: tabular-nums;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/* Sous-menu : indentation par la typographie et une puce, sans trait. */
|
|
345
|
+
.menu-submenu {
|
|
346
|
+
list-style: none;
|
|
347
|
+
margin: 2px 0;
|
|
348
|
+
padding: 0 0 0 16px;
|
|
349
|
+
display: flex;
|
|
350
|
+
flex-direction: column;
|
|
351
|
+
gap: 1px;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.menu-subitem {
|
|
355
|
+
display: flex;
|
|
356
|
+
align-items: center;
|
|
357
|
+
gap: 9px;
|
|
358
|
+
height: 27px;
|
|
359
|
+
padding: 0 8px;
|
|
360
|
+
border-radius: 7px;
|
|
361
|
+
font-size: 12.5px;
|
|
362
|
+
color: var(--cad-fg-muted);
|
|
363
|
+
text-decoration: none;
|
|
364
|
+
transition: color var(--cad-dur) var(--cad-ease), background var(--cad-dur) var(--cad-ease);
|
|
365
|
+
|
|
366
|
+
&:hover {
|
|
367
|
+
color: var(--cad-fg);
|
|
368
|
+
background: var(--cad-accent-soft);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
&:focus-visible {
|
|
372
|
+
outline: 2px solid var(--cad-ring);
|
|
373
|
+
outline-offset: 1px;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
&.is-active {
|
|
377
|
+
color: var(--cad-accent);
|
|
378
|
+
font-weight: 600;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.menu-dot {
|
|
382
|
+
flex: none;
|
|
383
|
+
width: 5px;
|
|
384
|
+
height: 5px;
|
|
385
|
+
border-radius: 50%;
|
|
386
|
+
background: currentColor;
|
|
387
|
+
opacity: 0.5;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
&.is-active .menu-dot {
|
|
391
|
+
opacity: 1;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/* ---- pied du rail ---- */
|
|
396
|
+
|
|
397
|
+
.rail-foot {
|
|
398
|
+
display: flex;
|
|
399
|
+
align-items: center;
|
|
400
|
+
flex: none;
|
|
401
|
+
padding: 8px 8px 2px;
|
|
402
|
+
margin-top: 6px;
|
|
403
|
+
border-top: 1px solid var(--cad-border);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.rail-version {
|
|
407
|
+
margin-left: auto;
|
|
408
|
+
font-family: var(--cad-font-mono);
|
|
409
|
+
font-size: 10px;
|
|
410
|
+
color: var(--cad-fg-muted);
|
|
411
|
+
font-variant-numeric: tabular-nums;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/* ---- poignée de redimensionnement ---- */
|
|
415
|
+
|
|
416
|
+
.rail-handle {
|
|
417
|
+
position: absolute;
|
|
418
|
+
top: 0;
|
|
419
|
+
bottom: 0;
|
|
420
|
+
right: -5px;
|
|
421
|
+
width: 11px;
|
|
422
|
+
z-index: 5;
|
|
423
|
+
cursor: col-resize;
|
|
424
|
+
touch-action: none;
|
|
425
|
+
|
|
426
|
+
&::after {
|
|
427
|
+
content: '';
|
|
428
|
+
position: absolute;
|
|
429
|
+
top: 14px;
|
|
430
|
+
bottom: 14px;
|
|
431
|
+
left: 5px;
|
|
432
|
+
width: 1px;
|
|
433
|
+
border-radius: 1px;
|
|
434
|
+
background: var(--cad-accent);
|
|
435
|
+
opacity: 0;
|
|
436
|
+
transition: opacity var(--cad-dur) var(--cad-ease), width var(--cad-dur) var(--cad-ease);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
&:hover::after,
|
|
440
|
+
&:focus-visible::after,
|
|
441
|
+
&.is-active::after {
|
|
442
|
+
opacity: 1;
|
|
443
|
+
width: 2px;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
&:focus-visible {
|
|
447
|
+
outline: none;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.layout-container.is-resizing {
|
|
452
|
+
cursor: col-resize;
|
|
453
|
+
user-select: none;
|
|
454
|
+
|
|
455
|
+
.layout-rail,
|
|
456
|
+
.menu-item,
|
|
457
|
+
.menu-subitem {
|
|
458
|
+
transition: none;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/* ═══════════════ barre supérieure ═══════════════ */
|
|
463
|
+
|
|
464
|
+
.layout-main {
|
|
465
|
+
display: flex;
|
|
466
|
+
flex-direction: column;
|
|
467
|
+
min-width: 0;
|
|
468
|
+
padding: 9px 9px 9px 0;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.rail-drawer .layout-main {
|
|
472
|
+
padding-left: 9px;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.layout-topbar {
|
|
476
|
+
display: flex;
|
|
477
|
+
align-items: center;
|
|
478
|
+
gap: 10px;
|
|
479
|
+
height: 44px;
|
|
480
|
+
flex: none;
|
|
481
|
+
padding: 0 4px 0 6px;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.topbar-btn {
|
|
485
|
+
flex: none;
|
|
486
|
+
width: 28px;
|
|
487
|
+
height: 28px;
|
|
488
|
+
display: grid;
|
|
489
|
+
place-items: center;
|
|
490
|
+
border: none;
|
|
491
|
+
background: none;
|
|
492
|
+
border-radius: var(--cad-radius);
|
|
493
|
+
color: var(--cad-fg-muted);
|
|
494
|
+
cursor: pointer;
|
|
495
|
+
transition: background var(--cad-dur) var(--cad-ease), color var(--cad-dur) var(--cad-ease);
|
|
496
|
+
|
|
497
|
+
&:hover {
|
|
498
|
+
background: var(--cad-accent-soft);
|
|
499
|
+
color: var(--cad-fg);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
&:focus-visible {
|
|
503
|
+
outline: 2px solid var(--cad-ring);
|
|
504
|
+
outline-offset: 1px;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.project-mark {
|
|
509
|
+
flex: none;
|
|
510
|
+
width: 26px;
|
|
511
|
+
height: 26px;
|
|
512
|
+
border-radius: 8px;
|
|
513
|
+
background: var(--cad-accent-soft);
|
|
514
|
+
color: var(--cad-accent);
|
|
515
|
+
display: grid;
|
|
516
|
+
place-items: center;
|
|
517
|
+
font-size: 10px;
|
|
518
|
+
font-weight: 600;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.project-title {
|
|
522
|
+
min-width: 0;
|
|
523
|
+
font-weight: 600;
|
|
524
|
+
font-size: 14px;
|
|
525
|
+
letter-spacing: -0.02em;
|
|
526
|
+
white-space: nowrap;
|
|
527
|
+
overflow: hidden;
|
|
528
|
+
text-overflow: ellipsis;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.topbar-spacer {
|
|
532
|
+
flex: 1;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.topbar-user {
|
|
536
|
+
display: flex;
|
|
537
|
+
align-items: center;
|
|
538
|
+
gap: 7px;
|
|
539
|
+
height: 30px;
|
|
540
|
+
padding: 0 8px 0 4px;
|
|
541
|
+
border: none;
|
|
542
|
+
background: none;
|
|
543
|
+
border-radius: var(--cad-radius-pill);
|
|
544
|
+
font: inherit;
|
|
545
|
+
color: inherit;
|
|
546
|
+
cursor: pointer;
|
|
547
|
+
transition: background var(--cad-dur) var(--cad-ease);
|
|
548
|
+
|
|
549
|
+
&:hover {
|
|
550
|
+
background: var(--cad-accent-soft);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
&:focus-visible {
|
|
554
|
+
outline: 2px solid var(--cad-ring);
|
|
555
|
+
outline-offset: 1px;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.user-avatar {
|
|
559
|
+
flex: none;
|
|
560
|
+
width: 24px;
|
|
561
|
+
height: 24px;
|
|
562
|
+
border-radius: 50%;
|
|
563
|
+
background: var(--cad-accent);
|
|
564
|
+
color: var(--cad-fg-on-accent);
|
|
565
|
+
display: grid;
|
|
566
|
+
place-items: center;
|
|
567
|
+
font-size: 9.5px;
|
|
568
|
+
font-weight: 600;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.user-name {
|
|
572
|
+
font-size: 12.5px;
|
|
573
|
+
font-weight: 500;
|
|
574
|
+
white-space: nowrap;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.user-chevron {
|
|
578
|
+
flex: none;
|
|
579
|
+
color: var(--cad-fg-muted);
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
/* ═══════════════ canevas ═══════════════ */
|
|
584
|
+
|
|
585
|
+
.layout-canvas {
|
|
586
|
+
flex: 1;
|
|
587
|
+
min-height: 0;
|
|
588
|
+
background: var(--cad-surface);
|
|
589
|
+
border: 1px solid var(--cad-border);
|
|
590
|
+
border-radius: var(--cad-radius-lg);
|
|
591
|
+
box-shadow: var(--cad-shadow-md);
|
|
592
|
+
display: flex;
|
|
593
|
+
flex-direction: column;
|
|
594
|
+
min-width: 0;
|
|
595
|
+
overflow: hidden;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.canvas-head {
|
|
599
|
+
display: flex;
|
|
600
|
+
align-items: flex-start;
|
|
601
|
+
gap: 16px;
|
|
602
|
+
padding: 20px 24px 16px;
|
|
603
|
+
flex: none;
|
|
604
|
+
|
|
605
|
+
.canvas-crumb {
|
|
606
|
+
font-size: 11.5px;
|
|
607
|
+
line-height: 1;
|
|
608
|
+
color: var(--cad-fg-muted);
|
|
609
|
+
margin-bottom: 7px;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
.canvas-title {
|
|
613
|
+
font-weight: 600;
|
|
614
|
+
font-size: 21px;
|
|
615
|
+
line-height: 1.15;
|
|
616
|
+
letter-spacing: -0.028em;
|
|
617
|
+
margin: 0;
|
|
618
|
+
color: var(--cad-fg);
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.canvas-actions {
|
|
622
|
+
margin-left: auto;
|
|
623
|
+
display: flex;
|
|
624
|
+
align-items: center;
|
|
625
|
+
gap: 7px;
|
|
626
|
+
padding-top: 2px;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
.canvas-body {
|
|
631
|
+
flex: 1;
|
|
632
|
+
min-height: 0;
|
|
633
|
+
overflow: auto;
|
|
634
|
+
padding: 0 24px 24px;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.layout-icon-button {
|
|
638
|
+
width: 28px;
|
|
639
|
+
height: 28px;
|
|
640
|
+
flex: none;
|
|
641
|
+
border: none;
|
|
642
|
+
background: none;
|
|
643
|
+
border-radius: var(--cad-radius);
|
|
644
|
+
color: var(--cad-fg-muted);
|
|
645
|
+
display: grid;
|
|
646
|
+
place-items: center;
|
|
647
|
+
cursor: pointer;
|
|
648
|
+
|
|
649
|
+
&:hover {
|
|
650
|
+
background: var(--cad-accent-soft);
|
|
651
|
+
color: var(--cad-fg);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
&:focus-visible {
|
|
655
|
+
outline: 2px solid var(--cad-ring);
|
|
656
|
+
outline-offset: 1px;
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
/* ═══════════════ fenêtre étroite ═══════════════ */
|
|
661
|
+
|
|
662
|
+
/*
|
|
663
|
+
* On ne garde que des ICÔNES à droite de la barre : thème et identité.
|
|
664
|
+
* Et le titre de projet disparaît entièrement — entier ou rien, un titre
|
|
665
|
+
* tronqué dans une barre exiguë n'est que du bruit. La pastille suffit à
|
|
666
|
+
* identifier le projet, et le canevas porte le titre de page.
|
|
667
|
+
*/
|
|
668
|
+
.layout-container.is-narrow {
|
|
669
|
+
.project-title,
|
|
670
|
+
.topbar-user .user-name,
|
|
671
|
+
.topbar-user .user-chevron {
|
|
672
|
+
display: none;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.topbar-user {
|
|
676
|
+
padding: 0;
|
|
677
|
+
gap: 0;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
.layout-main {
|
|
681
|
+
padding: 0;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.layout-canvas {
|
|
685
|
+
border: none;
|
|
686
|
+
border-radius: 0;
|
|
687
|
+
box-shadow: none;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
.layout-topbar {
|
|
691
|
+
padding: 0 8px;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
.canvas-head {
|
|
695
|
+
padding: 14px 16px 12px;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
.canvas-body {
|
|
699
|
+
padding: 0 16px 16px;
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
@media (prefers-reduced-motion: reduce) {
|
|
704
|
+
.layout-rail,
|
|
705
|
+
.menu-item,
|
|
706
|
+
.menu-subitem,
|
|
707
|
+
.rail-btn,
|
|
708
|
+
.topbar-btn,
|
|
709
|
+
.topbar-user {
|
|
710
|
+
transition: none;
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
/* ═══════════════ ajouts du starter poad ═══════════════ */
|
|
715
|
+
|
|
716
|
+
/* Bascule clair / sombre au pied du rail */
|
|
717
|
+
.theme-switch {
|
|
718
|
+
display: inline-flex;
|
|
719
|
+
gap: 2px;
|
|
720
|
+
padding: 2px;
|
|
721
|
+
border-radius: var(--cad-radius-pill);
|
|
722
|
+
background: var(--cad-bg-subtle);
|
|
723
|
+
border: 1px solid var(--cad-border);
|
|
724
|
+
|
|
725
|
+
button {
|
|
726
|
+
width: 26px;
|
|
727
|
+
height: 26px;
|
|
728
|
+
display: grid;
|
|
729
|
+
place-items: center;
|
|
730
|
+
border: none;
|
|
731
|
+
background: none;
|
|
732
|
+
border-radius: 50%;
|
|
733
|
+
color: var(--cad-fg-muted);
|
|
734
|
+
cursor: pointer;
|
|
735
|
+
transition: background var(--cad-dur) var(--cad-ease), color var(--cad-dur) var(--cad-ease);
|
|
736
|
+
|
|
737
|
+
&:hover {
|
|
738
|
+
color: var(--cad-fg);
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
&.is-on {
|
|
742
|
+
background: var(--cad-surface);
|
|
743
|
+
color: var(--cad-accent);
|
|
744
|
+
box-shadow: var(--cad-shadow-sm);
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
&:focus-visible {
|
|
748
|
+
outline: 2px solid var(--cad-ring);
|
|
749
|
+
outline-offset: 1px;
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
/* Utilisateur : nom + adresse sur deux lignes */
|
|
755
|
+
.topbar-user {
|
|
756
|
+
height: auto;
|
|
757
|
+
min-height: 30px;
|
|
758
|
+
padding-top: 3px;
|
|
759
|
+
padding-bottom: 3px;
|
|
760
|
+
|
|
761
|
+
.user-id {
|
|
762
|
+
display: flex;
|
|
763
|
+
flex-direction: column;
|
|
764
|
+
align-items: flex-start;
|
|
765
|
+
line-height: 1.2;
|
|
766
|
+
min-width: 0;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.user-sub {
|
|
770
|
+
font-size: 10.5px;
|
|
771
|
+
color: var(--cad-fg-muted);
|
|
772
|
+
max-width: 24ch;
|
|
773
|
+
overflow: hidden;
|
|
774
|
+
text-overflow: ellipsis;
|
|
775
|
+
white-space: nowrap;
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
.is-narrow .topbar-user .user-id {
|
|
780
|
+
display: none;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
.topbar-signin {
|
|
784
|
+
display: inline-flex;
|
|
785
|
+
align-items: center;
|
|
786
|
+
gap: 6px;
|
|
787
|
+
height: 30px;
|
|
788
|
+
padding: 0 12px;
|
|
789
|
+
border-radius: var(--cad-radius-pill);
|
|
790
|
+
background: var(--cad-accent);
|
|
791
|
+
color: var(--cad-fg-on-accent);
|
|
792
|
+
font-size: 12.5px;
|
|
793
|
+
font-weight: 500;
|
|
794
|
+
text-decoration: none;
|
|
795
|
+
|
|
796
|
+
&:hover {
|
|
797
|
+
background: var(--cad-accent-hover);
|
|
798
|
+
}
|
|
799
|
+
}
|