Files
training-software/frontend/public/attendance.css
Paperclip CTO 4a46c14857
All checks were successful
CI / lint (push) Successful in 10s
CI / test (push) Successful in 23s
CI / build-container (push) Successful in 8s
feat(frontend): add theming, branding sync, and improved frontend error UX
2026-05-19 09:09:04 +02:00

309 lines
5.0 KiB
CSS

/* Shared styles for attendance and meetings pages */
.topbar {
display: flex;
align-items: center;
gap: 1rem;
padding: 0.75rem 1.5rem;
background: var(--card);
box-shadow: 0 2px 8px rgba(15, 41, 73, 0.08);
position: sticky;
top: 0;
z-index: 10;
}
.topbar .logo {
max-height: 32px;
margin: 0;
}
.topbar nav {
margin-left: auto;
display: flex;
gap: 1rem;
}
.topbar nav a {
color: var(--accent);
text-decoration: none;
font-weight: 500;
}
.topbar nav a:hover {
text-decoration: underline;
}
.page-content {
max-width: 900px;
margin: 2rem auto;
padding: 0 1rem;
}
.section-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1rem;
}
.section-header h2,
.section-header h3 {
margin: 0;
}
/* Buttons */
.btn-primary {
border: 0;
border-radius: 8px;
padding: 0.55rem 1rem;
background: var(--accent);
color: #fff;
cursor: pointer;
font-size: 0.9rem;
}
.btn-ghost {
border: 1px solid var(--border);
border-radius: 8px;
padding: 0.5rem 0.9rem;
background: transparent;
color: var(--text);
cursor: pointer;
font-size: 0.9rem;
}
.btn-ghost:hover {
background: var(--subtle);
}
.back-btn {
margin-bottom: 1rem;
}
/* Forms */
form label {
display: block;
font-weight: 600;
margin: 0.75rem 0 0.25rem;
font-size: 0.875rem;
}
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="datetime-local"] {
width: 100%;
padding: 0.55rem 0.75rem;
border: 1px solid var(--border);
border-radius: 6px;
font-size: 0.9rem;
box-sizing: border-box;
}
form input:focus {
outline: 2px solid var(--accent);
outline-offset: 1px;
}
.form-actions {
display: flex;
gap: 0.5rem;
margin-top: 1rem;
}
.inset-card {
background: var(--subtle);
border: 1px solid var(--border);
border-radius: 10px;
padding: 1.25rem;
margin-bottom: 1.5rem;
}
/* Tables */
.data-table {
width: 100%;
border-collapse: collapse;
font-size: 0.9rem;
margin-top: 0.5rem;
}
.data-table th {
text-align: left;
padding: 0.6rem 0.75rem;
background: var(--subtle);
border-bottom: 2px solid var(--border);
font-weight: 600;
color: #3a5068;
}
.data-table td {
padding: 0.6rem 0.75rem;
border-bottom: 1px solid var(--border);
}
.data-table tr:last-child td {
border-bottom: none;
}
/* Status badges */
.status-badge {
display: inline-block;
padding: 0.2rem 0.55rem;
border-radius: 12px;
font-size: 0.8rem;
font-weight: 600;
}
.status-present { background: #d4f1e4; color: #1a7a44; }
.status-absent { background: #fde8e8; color: #b91c1c; }
.status-late { background: #fef3c7; color: #92400e; }
.status-unknown { background: #e8eef5; color: #5a7a96; }
/* Meeting cards */
.meeting-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 10px;
padding: 1rem 1.25rem;
margin-bottom: 0.75rem;
display: flex;
align-items: center;
justify-content: space-between;
}
.meeting-card-info h4 {
margin: 0 0 0.25rem;
font-size: 1rem;
}
.meeting-card-info .sub-label {
margin: 0;
font-size: 0.85rem;
color: #5a7a96;
}
.sub-label {
color: #5a7a96;
font-size: 0.875rem;
}
/* Misc */
.error-msg {
color: #b91c1c;
background: #fde8e8;
border-radius: 6px;
padding: 0.5rem 0.75rem;
font-size: 0.875rem;
margin-top: 0.5rem;
}
.loading-msg {
color: #5a7a96;
padding: 1rem 0;
font-size: 0.9rem;
}
.empty-msg {
color: #5a7a96;
padding: 1rem 0;
font-style: italic;
}
.badge {
background: #e8f4fd;
color: var(--accent);
border-radius: 12px;
padding: 0.2rem 0.65rem;
font-size: 0.8rem;
font-weight: 600;
}
/* Login card (re-use .card from styles.css, add layout tweaks) */
#login-section {
max-width: 420px;
margin: 4rem auto;
}
#login-section h2 {
margin-top: 0;
}
#login-section button[type="submit"] {
margin-top: 1.25rem;
width: 100%;
padding: 0.7rem;
font-size: 1rem;
}
.groupcall-controls {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 0.75rem;
}
.video-grid {
display: grid;
gap: 0.75rem;
}
.video-tile {
border: 1px solid var(--border);
border-radius: 10px;
background: #fff;
padding: 0.75rem;
}
:root[data-theme="dark"] .topbar {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
:root[data-theme="dark"] .error-msg {
background: #4a1f26;
color: #ffd8dd;
}
:root[data-theme="dark"] .status-unknown {
background: #2a3850;
color: #d5e3f2;
}
.tile-head {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5rem;
}
.video-tile video {
width: 100%;
min-height: 180px;
border-radius: 8px;
background: #0c1621;
}
.remote-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 0.75rem;
}
.remote-placeholder {
border: 1px dashed #c7d8ea;
border-radius: 8px;
min-height: 140px;
display: grid;
place-items: center;
background: #f7fbff;
color: #5a7a96;
font-size: 0.85rem;
text-align: center;
padding: 0.75rem;
}
.moderation-controls {
margin-top: 0.5rem;
display: flex;
gap: 0.5rem;
}