From 52decc3e5fea21520719b62cbbc3d7f828946eb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Gervreau-Mercier?= Date: Fri, 6 Feb 2026 14:31:23 +0100 Subject: [PATCH] admin css: expand stylesheet with reusable component classes --- public/assets/admin.css | 161 ++++++++++++++++++++++++++++++++++++--- public/assets/common.css | 2 +- 2 files changed, 153 insertions(+), 10 deletions(-) diff --git a/public/assets/admin.css b/public/assets/admin.css index 1cdfdc4..df7aa12 100644 --- a/public/assets/admin.css +++ b/public/assets/admin.css @@ -1,7 +1,59 @@ +/* Base Styles */ +body { + max-width: 95vw; + margin: auto; + /* background-color: yellow; */ +} main { - margin: 1.2rem 0; + max-width: 80vw; + margin: auto 1.2rem; + /* background-color: yellow; */ } +nav { + margin-top: 1rem; +} + +/* Alert Messages */ +.error-message, +.alert-error { + background: #fee; + border: 2px solid #c00; + padding: 1rem; + margin-bottom: 1rem; + border-radius: 4px; + color: #c00; +} + +.success-message, +.alert-success { + background: #efe; + border: 2px solid #0a0; + padding: 1rem; + margin-bottom: 1rem; + border-radius: 4px; + color: #0a0; +} + +.info-message { + background: #f5f5f5; + padding: 1rem; + border-radius: 4px; + max-height: 400px; + overflow-y: auto; +} + +.info-message pre { + margin: 0; + font-size: 0.9em; +} + +/* Lists */ +ul.no-style { + list-style: none; +} + +/* Filters */ .filters { padding: 1rem; margin-bottom: 2rem; @@ -22,6 +74,7 @@ main { min-width: 200px; } +/* Tables */ .thesis-table { width: 100%; border-collapse: collapse; @@ -31,18 +84,12 @@ main { .thesis-table td { padding: 0.75rem; text-align: left; - /* border-bottom: 1px solid #ddd; */ } .thesis-table th { - /* background: #f0f0f0; */ font-weight: bold; } -.thesis-table tr:hover { - /* background: #f9f9f9; */ -} - .thesis-title { font-weight: bold; } @@ -53,6 +100,7 @@ main { font-size: 0.9em; } +/* Status Badges */ .status-badge { display: inline-block; padding: 0.25rem 0.5rem; @@ -70,6 +118,7 @@ main { color: #000; } +/* Buttons */ .actions { display: flex; gap: 0.5rem; @@ -112,6 +161,7 @@ main { margin: 0; } +/* Statistics */ .stats { display: flex; gap: 2rem; @@ -129,14 +179,13 @@ main { .stat-number { font-size: 2em; font-weight: bold; - /* color: #4a90e2; */ } .stat-label { - /* color: #666; */ font-size: 0.9em; } +/* Bulk Actions */ .bulk-actions { background: #f5f5f5; padding: 1rem; @@ -177,3 +226,97 @@ main { .select-all-checkbox { cursor: pointer; } + +#bulk-actions { + display: none; +} + +#bulk-form { + display: none; +} + +/* Thesis Info (Thanks page) */ +.thesis-info { + /* background: #f5f5f5; */ + border: 1px white solid; + padding: 2rem; + border-radius: 8px; + margin: 2rem 0; +} + +.thesis-info h2 { + margin-top: 0; + border-bottom: 2px solid #333; + padding-bottom: 0.5rem; +} + +.thesis-info h3 { + margin-top: 2rem; + margin-bottom: 1rem; + /* color: #555; */ +} + +.thesis-info dl { + display: grid; + grid-template-columns: 200px 1fr; + gap: 0.5rem 1rem; + margin-bottom: 1.5rem; +} + +.thesis-info dt { + font-weight: bold; + /* color: #666; */ +} + +.thesis-info dd { + margin: 0; +} + +.thesis-info table { + width: 100%; + margin-top: 1rem; +} + +.thesis-info table th { + text-align: left; + background: #ddd; + padding: 0.5rem; +} + +.thesis-info table td { + padding: 0.5rem; + border-bottom: 1px solid #ddd; +} + +.submitted-date { + margin-top: 2rem; + font-style: italic; + color: #666; +} + +.error { + background: #fee; + border: 2px solid #c00; + padding: 1.5rem; + border-radius: 8px; + color: #c00; +} + +/* Form Elements */ +label.checkbox-label { + display: flex; + align-items: center; + gap: 0.5rem; +} + +/* Responsive */ +@media (max-width: 768px) { + .thesis-info dl { + grid-template-columns: 1fr; + gap: 0.25rem; + } + + .thesis-info dt { + margin-top: 1rem; + } +} diff --git a/public/assets/common.css b/public/assets/common.css index f22e3f1..027f7a2 100644 --- a/public/assets/common.css +++ b/public/assets/common.css @@ -22,7 +22,7 @@ /* } */ body { - background-color: white; + background-color: yellow; margin: 0; }