app/static/style_v2.css aktualisiert

This commit is contained in:
sascha 2026-01-28 18:45:38 +00:00
parent 67b42ca989
commit 8a692c3d04

View File

@ -1,7 +1,9 @@
:root {
--primary: #007bff;
/* HIER: Primary ist jetzt GRÜN */
--primary: #28a745;
--primary-hover: #218838;
--accent: #ff9800;
--success: #28a745;
--danger: #dc3545;
--bg: #f4f4f9;
}
@ -27,7 +29,6 @@ body {
justify-content: center;
}
/* WICHTIG: Damit Quiz-Elemente untereinander sind */
#quiz-screen {
display: flex;
flex-direction: column;
@ -45,7 +46,6 @@ h1 { text-align: center; margin-bottom: 20px; color: #333; }
text-transform: uppercase;
}
/* BUTTONS UNTEREINANDER ERZWINGEN */
.button-group, .quiz-controls {
display: flex;
flex-direction: column !important;
@ -69,7 +69,7 @@ button {
button:hover { background: #f0f0f0; }
button.active {
background: #e3f2fd;
background: #e9f7ef; /* Hellgrün */
border-color: var(--primary);
color: var(--primary);
}
@ -80,8 +80,11 @@ button.active {
color: #e65100;
}
.action-btn { color: white; border: none; margin-top: 0; } /* margin-top regelt der gap */
/* Der Action Button ist jetzt GRÜN (über --primary) */
.action-btn { color: white; border: none; margin-top: 0; transition: background 0.2s; }
.primary { background: var(--primary); }
.primary:hover { background: var(--primary-hover); }
.secondary { background: #6c757d; }
.danger { background: var(--danger); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
@ -114,11 +117,10 @@ input {
input:focus { border-color: var(--primary); outline: none; }
.feedback { font-weight: bold; margin-top: 10px; font-size: 1.1rem; min-height: 25px;}
.correct { color: var(--success); }
.correct { color: var(--primary); }
.wrong { color: var(--danger); }
.typo { color: var(--accent); }
/* OVERLAY */
.overlay {
display: none;
position: fixed;
@ -160,7 +162,7 @@ input:focus { border-color: var(--primary); outline: none; }
}
.page-item input { display: none; }
.page-item input:checked + label {
background: #e3f2fd;
background: #e9f7ef;
border-color: var(--primary);
color: var(--primary);
}
@ -174,4 +176,4 @@ input:focus { border-color: var(--primary); outline: none; }
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-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; }