app/static/style.css aktualisiert

This commit is contained in:
sascha 2026-01-28 18:55:30 +00:00
parent 560c6932e6
commit 4b4d5d117e

View File

@ -1,7 +1,7 @@
:root { :root {
--primary: #007bff; --primary: #28a745;
--primary-hover: #218838;
--accent: #ff9800; --accent: #ff9800;
--success: #28a745;
--danger: #dc3545; --danger: #dc3545;
--bg: #f4f4f9; --bg: #f4f4f9;
} }
@ -27,9 +27,15 @@ body {
justify-content: center; justify-content: center;
} }
#quiz-screen {
display: flex;
flex-direction: column;
width: 100%;
align-items: center;
}
h1 { text-align: center; margin-bottom: 20px; color: #333; } h1 { text-align: center; margin-bottom: 20px; color: #333; }
/* SETUP & BUTTONS */
.section-title { .section-title {
font-weight: bold; font-weight: bold;
margin: 20px 0 10px; margin: 20px 0 10px;
@ -38,16 +44,15 @@ h1 { text-align: center; margin-bottom: 20px; color: #333; }
text-transform: uppercase; text-transform: uppercase;
} }
/* WICHTIG: Erzwingt vertikale Anordnung */
.button-group, .quiz-controls { .button-group, .quiz-controls {
display: flex; display: flex;
flex-direction: column !important; /* WICHTIG */ flex-direction: column !important;
gap: 15px; gap: 15px;
width: 100%; width: 100%;
} }
button { button {
display: block !important; /* WICHTIG */ display: block !important;
width: 100%; width: 100%;
padding: 16px; padding: 16px;
border: 2px solid #ddd; border: 2px solid #ddd;
@ -57,13 +62,12 @@ button {
font-weight: bold; font-weight: bold;
cursor: pointer; cursor: pointer;
text-align: center; text-align: center;
margin-bottom: 0; /* Gap regelt den Abstand */
} }
button:hover { background: #f0f0f0; } button:hover { background: #f0f0f0; }
button.active { button.active {
background: #e3f2fd; background: #e9f7ef;
border-color: var(--primary); border-color: var(--primary);
color: var(--primary); color: var(--primary);
} }
@ -74,29 +78,27 @@ button.active {
color: #e65100; color: #e65100;
} }
/* Action Buttons (Start, Check, Next) */ .action-btn { color: white; border: none; margin-top: 0; transition: background 0.2s; }
.action-btn {
color: white;
border: none;
margin-top: 10px;
}
.primary { background: var(--primary); } .primary { background: var(--primary); }
.primary:hover { background: var(--primary-hover); }
.secondary { background: #6c757d; } .secondary { background: #6c757d; }
.danger { background: var(--danger); } .danger { background: var(--danger); }
button:disabled { opacity: 0.5; cursor: not-allowed; } button:disabled { opacity: 0.5; cursor: not-allowed; }
/* QUIZ CARD */
.card { .card {
background: white; background: white;
padding: 20px; padding: 25px;
border-radius: 12px; border-radius: 12px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1); box-shadow: 0 4px 10px rgba(0,0,0,0.1);
text-align: center; text-align: center;
margin-bottom: 20px; margin-bottom: 25px;
width: 100%;
box-sizing: border-box;
} }
.label { font-size: 0.9rem; color: #888; text-transform: uppercase; letter-spacing: 1px; } .label { font-size: 0.9rem; color: #888; text-transform: uppercase; }
.question { font-size: 1.8rem; font-weight: bold; margin: 15px 0; color: #222; } .question { font-size: 2rem; font-weight: bold; margin: 15px 0; color: #222; }
.hint { color: #888; font-style: italic; margin-bottom: 15px; } .hint { color: #888; font-style: italic; margin-bottom: 15px; }
input { input {
@ -111,13 +113,11 @@ input {
} }
input:focus { border-color: var(--primary); outline: none; } input:focus { border-color: var(--primary); outline: none; }
/* FEEDBACK */ .feedback { font-weight: bold; margin-top: 10px; font-size: 1.1rem; min-height: 25px;}
.feedback { font-weight: bold; min-height: 25px; margin-top: 5px; font-size: 1.1rem; } .correct { color: var(--primary); }
.correct { color: var(--success); }
.wrong { color: var(--danger); } .wrong { color: var(--danger); }
.typo { color: var(--accent); } .typo { color: var(--accent); }
/* OVERLAY (Seitenauswahl) */
.overlay { .overlay {
display: none; display: none;
position: fixed; position: fixed;
@ -140,7 +140,7 @@ input:focus { border-color: var(--primary); outline: none; }
} }
.page-grid { .page-grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
gap: 10px; gap: 10px;
overflow-y: auto; overflow-y: auto;
margin: 15px 0; margin: 15px 0;
@ -155,15 +155,15 @@ input:focus { border-color: var(--primary); outline: none; }
color: #555; color: #555;
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
border: 2px solid transparent;
} }
.page-item input { display: none; } .page-item input { display: none; }
.page-item input:checked + label { .page-item input:checked + label {
background: #e3f2fd; background: #e9f7ef;
border-color: var(--primary);
color: var(--primary); color: var(--primary);
border: 1px solid var(--primary);
} }
/* PROGRESS BAR */
.progress-container { .progress-container {
background: white; background: white;
padding: 10px; padding: 10px;
@ -173,4 +173,4 @@ input:focus { border-color: var(--primary); outline: none; }
bottom: 0; left: 0; right: 0; bottom: 0; left: 0; right: 0;
} }
.progress-bar-bg { height: 8px; background: #eee; width: 100%; border-radius: 4px; overflow: hidden; margin-top: 5px; } .progress-bar-bg { height: 8px; background: #eee; width: 100%; border-radius: 4px; overflow: hidden; margin-top: 5px; }
.progress-bar-fill { height: 100%; background: var(--success); width: 0%; transition: width 0.3s; } .progress-bar-fill { height: 100%; background: var(--primary); width: 0%; transition: width 0.3s; }