Files
NTBug/web/Helpdesk.Web/wwwroot/css/site.css
T
PatTheEvil 3965a8a2a1 web: registrace, ověření e-mailu, obnova hesla a profil
Stránky na cestách z e-mailových odkazů API (/confirm-email, /reset-password).
Token se spotřebuje až tlačítkem, ne otevřením odkazu (poštovní skenery).
Profil s úpravou jména, telefonu a e-mailových upozornění, odhlášení ze všech
zařízení. Chyby validace z API se zobrazují u polí formuláře.

Refs #21
2026-12-02 00:31:07 +01:00

106 lines
4.9 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* Vzhled NTBug nad Bootstrapem 5. Barvy stavů závad odpovídají kap. 13.2 návrhu
a jsou stejné jako v mobilní aplikaci. */
:root {
--app-accent: #0d6b66;
--app-accent-hover: #0a5551;
--app-accent-soft: #e0f0ee;
--app-surface: #f4f6f8;
--app-line: #d9dfe6;
--status-received: #6c757d; /* Přijata – šedá */
--status-assigned: #2563eb; /* Přiřazena – modrá */
--status-in-progress: #d97706; /* V řešení – oranžová */
--status-verification: #7c3aed; /* Čeká na ověření – fialová */
--status-resolved: #15803d; /* Vyřešena – zelená */
--status-rejected: #dc2626; /* Zamítnuta – červená */
--bs-primary: var(--app-accent);
--bs-primary-rgb: 13, 107, 102;
--bs-link-color: var(--app-accent);
--bs-link-color-rgb: 13, 107, 102;
--bs-link-hover-color: var(--app-accent-hover);
--bs-link-hover-color-rgb: 10, 85, 81;
--bs-body-bg: var(--app-surface);
--bs-border-color: var(--app-line);
}
.btn-primary {
--bs-btn-bg: var(--app-accent);
--bs-btn-border-color: var(--app-accent);
--bs-btn-hover-bg: var(--app-accent-hover);
--bs-btn-hover-border-color: var(--app-accent-hover);
--bs-btn-active-bg: var(--app-accent-hover);
--bs-btn-active-border-color: var(--app-accent-hover);
--bs-btn-disabled-bg: var(--app-accent);
--bs-btn-disabled-border-color: var(--app-accent);
}
.btn-outline-primary {
--bs-btn-color: var(--app-accent);
--bs-btn-border-color: var(--app-accent);
--bs-btn-hover-bg: var(--app-accent);
--bs-btn-hover-border-color: var(--app-accent);
--bs-btn-active-bg: var(--app-accent-hover);
--bs-btn-active-border-color: var(--app-accent-hover);
}
/* Bootstrap bere pozadí polí z --bs-body-bg (šedé pozadí stránky); pole na kartách mají být bílá. */
.form-control, .form-select { background-color: #fff; }
.form-control:focus, .form-select:focus, .form-check-input:focus {
border-color: var(--app-accent);
box-shadow: 0 0 0 .2rem rgba(13, 107, 102, .2);
}
.form-check-input:checked { background-color: var(--app-accent); border-color: var(--app-accent); }
body { min-height: 100vh; display: flex; flex-direction: column; }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 1100; background: #fff; padding: .5rem .75rem; border-radius: .375rem; }
/* hlavička */
.app-header { background: #fff; }
.app-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: inherit; }
.app-brand-mark {
display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: .45rem;
background: var(--app-accent); color: #fff; font-size: .8rem; letter-spacing: .02em;
}
.app-brand-sub { font-weight: 400; color: var(--bs-secondary-color); }
.navbar .nav-link.active { color: var(--app-accent); font-weight: 600; }
.app-user-toggle { color: inherit; text-decoration: none; }
.app-role-badge { background: var(--app-accent-soft); color: var(--app-accent); font-weight: 600; }
/* obsah */
.app-main { flex: 1; padding-block: 2rem 3rem; }
.app-page-head { margin-bottom: 1.5rem; }
.app-page-head h1 { font-size: 1.75rem; font-weight: 700; text-wrap: balance; }
.app-page-head .lead { max-width: 65ch; }
.app-card { background: #fff; border: 1px solid var(--app-line); border-radius: .6rem; padding: 1.5rem; }
.app-facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin-bottom: 1.5rem; }
.app-facts dt { font-weight: 600; color: var(--bs-secondary-color); }
.app-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
/* přihlášení, registrace a další jednoduché formuláře */
.app-auth { max-width: 26rem; margin: 1rem auto 0; }
.app-auth h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: .25rem; }
.app-auth .app-card { padding: 1.75rem; }
.input-validation-error { border-color: var(--bs-form-invalid-border-color); }
.app-auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 1rem; font-size: .925rem; }
/* prázdné a chybové stavy */
.app-empty { max-width: 32rem; margin: 3rem auto; text-align: center; }
.app-empty-code { font-size: 3rem; font-weight: 700; color: var(--app-accent); margin-bottom: 0; font-variant-numeric: tabular-nums; }
.app-footer { padding-block: 1.25rem; color: var(--bs-secondary-color); font-size: .875rem; border-top: 1px solid var(--app-line); }
/* štítky stavů závad */
.status-badge { display: inline-block; padding: .2em .6em; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #fff; white-space: nowrap; }
.status-RECEIVED { background: var(--status-received); }
.status-ASSIGNED { background: var(--status-assigned); }
.status-IN_PROGRESS { background: var(--status-in-progress); }
.status-PENDING_VERIFICATION { background: var(--status-verification); }
.status-RESOLVED { background: var(--status-resolved); }
.status-REJECTED { background: var(--status-rejected); }
@media (prefers-reduced-motion: reduce) {
.fade, .collapsing { transition: none !important; }
}