feat: application shell, localized texts and user preferences (M3, part 1)
The pages built so far now live inside the shell of the mockups instead of the M0 placeholder, every interface text comes from Resources/it-IT, and each user keeps their own look and start page. - Shell: top bar, collapsible side menu with fly-out sub-menus, status bar and tabs that keep each page alive (page type and route values per tab, so a tab never shows another page); at most 12 tabs, least-used clean tab evicted. - One shortcut table with Alt variants for the combinations browsers keep (Ctrl+W, Ctrl+Tab, Ctrl+N); command palette for pages and commands. - ITexts over embedded JSON; tests forbid literal texts in .razor components and check that every key used exists. - User settings in sys_user_settings / user_settings; theme written on the server; profile page with live preview, start page, sessions and shortcuts. - Home, coming-soon pages for later milestones, localized sign-in and error pages; ADR 0020; wiki, CHANGELOG, STATUS and data model updated. Refs #25 #26 #31 #33 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1c30054e3d
commit
cf6f849cc1
72 files changed
+5785
-259
No files matched your search
@@ -1,82 +1,135 @@
|
||||
/* Khaemhat: minimal styles of M0. The full token set (tokens.css from docs/mockups/mockup.css) arrives in M3. */
|
||||
:root {
|
||||
--kh-font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
|
||||
--kh-brand: #C8962E;
|
||||
--kh-brand-deep: #8B6318;
|
||||
--kh-topbar: #17243A;
|
||||
--kh-bg: #F3F5F8;
|
||||
--kh-err: #C2453A;
|
||||
}
|
||||
/* Khaemhat: styles of the pages built so far, on top of css/tokens.css and css/components.css. Colours come from the
|
||||
tokens, so every page follows the theme, the accent and the text size of the user. */
|
||||
|
||||
/* Without data-accent (a page rendered before the preferences are known) the default accent applies. */
|
||||
:root:not([data-accent]) { --kh-accent: #1F5FA8; --kh-accent-strong: #174A85; --kh-accent-soft: #E3ECF8; --kh-accent-text: #174A85; }
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
html, body { margin: 0; height: 100%; }
|
||||
body { font-family: var(--kh-font); font-size: 13px; background: var(--kh-bg); -webkit-font-smoothing: antialiased; }
|
||||
body { font-family: var(--kh-font); font-size: var(--kh-fs); background: var(--kh-bg); color: var(--kh-text); -webkit-font-smoothing: antialiased; }
|
||||
|
||||
.kh-construction { min-height: 100vh; display: grid; place-items: center; padding: 32px;
|
||||
background: radial-gradient(1200px 600px at 20% 10%, #243A5E 0%, #17243A 55%, #0F1826 100%); color: #E8EDF5; }
|
||||
.kh-construction .hero { max-width: 560px; text-align: center; }
|
||||
.kh-construction .mark { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
|
||||
.kh-construction h1 { font-size: 40px; letter-spacing: -.8px; margin: 26px 0 8px; font-weight: 650; }
|
||||
.kh-construction h1 .ver { font-size: 15px; font-weight: 600; color: var(--kh-brand); vertical-align: middle; margin-left: 6px; }
|
||||
.kh-construction .lead { font-size: 15px; color: #B8C5DA; line-height: 1.5; margin: 0; }
|
||||
.kh-construction .state { margin: 22px auto 0; padding: 12px 16px; border-radius: 10px; font-size: 13px; color: #D5DEEB;
|
||||
background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
|
||||
.kh-construction .links { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 18px; justify-content: center; }
|
||||
.kh-construction a { color: #F0C86A; text-decoration: none; font-weight: 600; }
|
||||
.kh-construction a:hover { text-decoration: underline; }
|
||||
.kh-construction .build { margin-top: 28px; font-size: 11.5px; color: #8391A3; font-variant-numeric: tabular-nums; }
|
||||
|
||||
#blazor-error-ui { background: #FADEDC; color: #1E2733; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
|
||||
#blazor-error-ui { background: var(--kh-err-soft); color: var(--kh-err-text); bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
|
||||
display: none; left: 0; padding: .6rem 1.25rem .7rem 1.25rem; position: fixed; width: 100%; z-index: 1000; }
|
||||
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
|
||||
|
||||
/* Sign-in pages (mockups 001-003): brand panel on the left, form card on the right. */
|
||||
.kh-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 52%) 1fr; color: #1E2733; }
|
||||
.kh-auth .brand { display: flex; flex-direction: column; justify-content: space-between; padding: 48px 44px 36px; color: #E8EDF5;
|
||||
/* ---- the page shown while the instance starts or is in maintenance (Middleware, without the theme files) ---- */
|
||||
.kh-unavailable { min-height: 100vh; display: grid; place-items: center; padding: 32px; text-align: center; color: #E8EDF5;
|
||||
background: radial-gradient(1200px 600px at 20% 10%, #243A5E 0%, #17243A 55%, #0F1826 100%); font-family: "Segoe UI", system-ui, sans-serif; }
|
||||
.kh-unavailable section { max-width: 560px; }
|
||||
.kh-unavailable img { border-radius: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
|
||||
.kh-unavailable h1 { font-size: 36px; margin: 22px 0 8px; font-weight: 650; }
|
||||
.kh-unavailable p { margin: 0; padding: 12px 16px; border-radius: 10px; color: #D5DEEB; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
|
||||
|
||||
/* ---- messages: not found, access denied, error, coming soon ---- */
|
||||
.kh-message { max-width: 560px; margin: 48px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
|
||||
.kh-message > svg.i.lg { width: 40px; height: 40px; color: var(--kh-accent); }
|
||||
.kh-message h1 { font-size: var(--kh-fs-xl); margin: 4px 0 0; font-weight: 650; }
|
||||
.kh-message .lead { color: var(--kh-text-2); line-height: 1.5; margin: 0; }
|
||||
.kh-auth .kh-message { margin: 0 auto; }
|
||||
.kh-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
|
||||
.kh-actions { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
|
||||
.muted { color: var(--kh-text-3); }
|
||||
|
||||
/* ---- home ---- */
|
||||
.kh-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
|
||||
.kh-area { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--kh-border); border-radius: var(--kh-radius-lg);
|
||||
color: var(--kh-text); text-decoration: none; background: var(--kh-surface); }
|
||||
.kh-area:hover { border-color: var(--kh-accent); background: var(--kh-row-hover); }
|
||||
.kh-area .ico-box { width: 30px; height: 30px; }
|
||||
.kh-area .grow { font-weight: 500; }
|
||||
|
||||
/* ---- profile (mockup 008) ---- */
|
||||
fieldset.fgroup { margin: 0; padding: 0; min-width: 0; }
|
||||
fieldset.fgroup > legend.fgh { float: left; width: 100%; }
|
||||
fieldset.fgroup > legend + * { clear: both; }
|
||||
fieldset.fgroup > :not(legend) { margin: 10px 11px; }
|
||||
.kh-choices { display: flex; flex-wrap: wrap; gap: 10px; }
|
||||
button.themecard { padding: 0; text-align: left; color: var(--kh-text); background: var(--kh-surface); }
|
||||
.themecard .pv .tb { display: block; } .themecard .pv .sb { display: block; } .themecard .pv .ct { background: var(--pv-bg); }
|
||||
.themecard .pv .tb { background: var(--pv-top); } .themecard .pv .sb { background: var(--pv-side); border-right: 1px solid var(--pv-line); }
|
||||
.themecard .pv .ct i { background: var(--pv-line); } .themecard .pv .ct i:first-child { width: 60%; background: var(--kh-accent); }
|
||||
.themecard .lbl .muted { margin-left: auto; font-size: 11px; }
|
||||
.kh-pv-light { --pv-top: #17243A; --pv-side: #FFFFFF; --pv-bg: #F3F5F8; --pv-line: #DDE3EA; }
|
||||
.kh-pv-dark { --pv-top: #0E131A; --pv-side: #171C23; --pv-bg: #12161C; --pv-line: #2E3744; }
|
||||
.kh-pv-auto { --pv-top: #17243A; --pv-side: #FFFFFF; --pv-bg: linear-gradient(135deg, #F3F5F8 50%, #12161C 50%); --pv-line: #9AA6B4; }
|
||||
.kh-pv-high-contrast { --pv-top: #000000; --pv-side: #FFFFFF; --pv-bg: #FFFFFF; --pv-line: #000000; }
|
||||
button.sw { text-align: left; color: var(--kh-text); }
|
||||
.sw .c.kh-acc-nilo { background: #1F5FA8; } .sw .c.kh-acc-lapislazzuli { background: #3F51B5; } .sw .c.kh-acc-malachite { background: #1E8E5A; }
|
||||
.sw .c.kh-acc-turchese { background: #0F8A96; } .sw .c.kh-acc-ocra { background: #C27A1A; } .sw .c.kh-acc-corniola { background: #C2453A; }
|
||||
.sw .c.kh-acc-ametista { background: #7E57C2; } .sw .c.kh-acc-grafite { background: #4B5563; }
|
||||
.kh-seg { display: inline-flex; border: 1px solid var(--kh-border-strong); border-radius: var(--kh-radius); overflow: hidden; align-self: flex-start; }
|
||||
.kh-seg button { border: 0; border-right: 1px solid var(--kh-border); background: var(--kh-surface); color: var(--kh-text-2); font: inherit; font-size: 12.5px;
|
||||
padding: 6px 12px; cursor: pointer; }
|
||||
.kh-seg button:last-child { border-right: 0; }
|
||||
.kh-seg button.on { background: var(--kh-accent-soft); color: var(--kh-accent-text); font-weight: 600; }
|
||||
.kh-switches { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4px 16px; }
|
||||
.kh-switch-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--kh-border);
|
||||
background: transparent; font: inherit; color: var(--kh-text); text-align: left; cursor: pointer; }
|
||||
.kh-switch-row .t { display: block; font-weight: 500; }
|
||||
.kh-switch-row .s { display: block; font-size: var(--kh-fs-sm); color: var(--kh-text-3); }
|
||||
.kh-radios { display: flex; flex-direction: column; gap: 2px; }
|
||||
.kh-radios .chk { cursor: pointer; }
|
||||
.kh-pick { max-width: 360px; }
|
||||
.kh-input { height: 30px; border: 1px solid var(--kh-border-strong); border-radius: var(--kh-radius); background: var(--kh-input); color: var(--kh-text);
|
||||
padding: 0 8px; font: inherit; }
|
||||
.kh-inset { margin: 0 14px 14px; }
|
||||
.kh-h2 { font-size: var(--kh-fs-lg); font-weight: 600; margin: 6px 0 0; }
|
||||
.kh-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
|
||||
.kh-table th { text-align: left; font-weight: 600; color: var(--kh-text-2); font-size: var(--kh-fs-sm); padding: 6px 10px; border-bottom: 1px solid var(--kh-border-strong); }
|
||||
.kh-table td { padding: 7px 10px; border-bottom: 1px solid var(--kh-border); vertical-align: middle; }
|
||||
.kh-table td kbd + kbd { margin-left: 6px; }
|
||||
.kh-table .badge { margin-left: 6px; }
|
||||
.kh-nowrap { white-space: nowrap; font-variant-numeric: tabular-nums; }
|
||||
/* The heading focused after navigation (FocusOnNavigate) is not a control: no focus ring. */
|
||||
h1[tabindex="-1"]:focus { outline: none; box-shadow: none; }
|
||||
|
||||
/* ---- sign-in pages (mockups 001-003): brand panel on the left, form card on the right ---- */
|
||||
.kh-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 52%) 1fr; color: var(--kh-text); }
|
||||
.kh-auth .side { display: flex; flex-direction: column; justify-content: space-between; padding: 48px 44px 36px; color: #E8EDF5;
|
||||
background: radial-gradient(1100px 620px at 15% 0%, #243A5E 0%, #17243A 55%, #0F1826 100%); }
|
||||
.kh-auth .brand .mark { border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
|
||||
.kh-auth .brand h2 { font-size: 30px; letter-spacing: -.5px; margin: 18px 0 10px; font-weight: 650; }
|
||||
.kh-auth .brand p { max-width: 460px; color: #B8C5DA; font-size: 14px; line-height: 1.5; margin: 0; }
|
||||
.kh-auth .side .mark { border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
|
||||
.kh-auth .side h2 { font-size: 30px; letter-spacing: -.5px; margin: 18px 0 10px; font-weight: 650; }
|
||||
.kh-auth .side p { max-width: 460px; color: #B8C5DA; font-size: 14px; line-height: 1.5; margin: 0; }
|
||||
.kh-auth .features { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
|
||||
.kh-auth .features li { padding: 10px 12px; border-radius: 8px; font-size: 11.5px; color: #B8C5DA; line-height: 1.4;
|
||||
background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
|
||||
.kh-auth .features strong { display: block; color: #E8EDF5; font-weight: 600; margin-bottom: 2px; }
|
||||
.kh-auth .panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; background: var(--kh-bg); }
|
||||
.kh-auth .form-side { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; background: var(--kh-bg); }
|
||||
.kh-auth .card { width: 100%; max-width: 380px; }
|
||||
.kh-auth h1 { font-size: 20px; margin: 0 0 4px; font-weight: 650; }
|
||||
.kh-auth .sub { color: #5B6776; margin: 0 0 18px; line-height: 1.45; }
|
||||
.kh-auth footer { margin-top: 28px; font-size: 11.5px; color: #8A95A3; }
|
||||
.kh-auth footer a { color: #1F5FA8; text-decoration: none; }
|
||||
.kh-auth .sub { color: var(--kh-text-2); margin: 0 0 18px; line-height: 1.45; }
|
||||
.kh-auth footer { margin-top: 28px; font-size: 11.5px; color: var(--kh-text-3); }
|
||||
.kh-auth footer a { color: var(--kh-accent-text); text-decoration: none; }
|
||||
|
||||
.kh-form { display: flex; flex-direction: column; gap: 4px; }
|
||||
.kh-form label { font-size: 11.5px; font-weight: 600; color: #5B6776; margin-top: 8px; }
|
||||
.kh-form label { font-size: 11.5px; font-weight: 600; color: var(--kh-text-2); margin-top: 8px; }
|
||||
.kh-form input[type=text], .kh-form input[type=password], .kh-form input:not([type]), .kh-form select {
|
||||
height: 32px; padding: 0 10px; border: 1px solid #C5CDD7; border-radius: 6px; background: #FFF; font: inherit; color: inherit; }
|
||||
.kh-form input:focus, .kh-form select:focus { outline: 2px solid #1F5FA8; outline-offset: -1px; border-color: #1F5FA8; }
|
||||
.kh-form .check { display: flex; align-items: center; gap: 8px; font-weight: 400; color: #1E2733; margin-top: 12px; }
|
||||
height: 32px; padding: 0 10px; border: 1px solid var(--kh-border-strong); border-radius: 6px; background: var(--kh-input); font: inherit; color: inherit; }
|
||||
.kh-form input:focus, .kh-form select:focus { outline: 2px solid var(--kh-accent); outline-offset: -1px; border-color: var(--kh-accent); }
|
||||
.kh-form .check { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--kh-text); margin-top: 12px; }
|
||||
.kh-form .otp { height: 44px; font-size: 22px; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }
|
||||
.kh-form .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
|
||||
.kh-form .row .kh-btn { margin-top: 0; }
|
||||
.kh-form .hint { font-size: 11.5px; color: #8A95A3; }
|
||||
.kh-form .hint { font-size: 11.5px; color: var(--kh-text-3); }
|
||||
.kh-btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; margin-top: 16px; border-radius: 6px;
|
||||
border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
|
||||
.kh-btn.primary { background: #1F5FA8; color: #FFF; align-self: flex-start; }
|
||||
.kh-btn.primary:hover { background: #174A85; }
|
||||
.kh-btn.ghost { background: transparent; color: #F0C86A; border-color: rgba(240, 200, 106, .5); }
|
||||
.kh-btn.primary { background: var(--kh-accent); color: #FFF; align-self: flex-start; }
|
||||
.kh-btn.primary:hover { background: var(--kh-accent-strong); }
|
||||
.kh-alert { padding: 10px 12px; border-radius: 6px; margin: 12px 0; line-height: 1.45; font-size: 12.5px; }
|
||||
.kh-alert.err { background: #FADEDC; color: #9E362D; }
|
||||
.kh-alert.warn { background: #FBEFD9; color: #8B5511; margin-top: 20px; }
|
||||
.kh-alert.info { background: #E3ECF8; color: #174A85; margin-top: 20px; }
|
||||
.kh-rules { margin: 10px 0 0; padding-left: 18px; color: #5B6776; font-size: 11.5px; line-height: 1.6; }
|
||||
.kh-alert.err { background: var(--kh-err-soft); color: var(--kh-err-text); }
|
||||
.kh-alert.warn { background: var(--kh-warn-soft); color: var(--kh-warn-text); margin-top: 20px; }
|
||||
.kh-alert.info { background: var(--kh-info-soft); color: var(--kh-info-text); margin-top: 20px; }
|
||||
.kh-rules { margin: 10px 0 0; padding-left: 18px; color: var(--kh-text-2); font-size: 11.5px; line-height: 1.6; }
|
||||
.kh-secret { margin: 0 0 6px; }
|
||||
.kh-secret dt { font-size: 11.5px; font-weight: 600; color: #5B6776; margin-top: 8px; }
|
||||
.kh-secret dt { font-size: 11.5px; font-weight: 600; color: var(--kh-text-2); margin-top: 8px; }
|
||||
.kh-secret dd { margin: 4px 0 0; }
|
||||
.kh-secret code { font-size: 15px; letter-spacing: 1px; word-break: break-all; }
|
||||
.kh-codes { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
|
||||
.kh-codes code { display: block; padding: 6px 8px; background: #FFF; border: 1px solid #DDE3EA; border-radius: 6px; text-align: center; font-size: 14px; }
|
||||
.kh-codes code { display: block; padding: 6px 8px; background: var(--kh-surface); border: 1px solid var(--kh-border); border-radius: 6px; text-align: center; font-size: 14px; }
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.kh-auth { grid-template-columns: 1fr; }
|
||||
.kh-auth .brand { padding: 24px; }
|
||||
.kh-auth .side { padding: 24px; }
|
||||
.kh-auth .features { display: none; }
|
||||
.cols-3 { grid-template-columns: 1fr; }
|
||||
}
|
||||
Reference in new issue
Block a user