app/static/style_v2.css aktualisiert
This commit is contained in:
parent
67b42ca989
commit
8a692c3d04
@ -1,7 +1,9 @@
|
|||||||
:root {
|
:root {
|
||||||
--primary: #007bff;
|
/* HIER: Primary ist jetzt GRÜN */
|
||||||
|
--primary: #28a745;
|
||||||
|
--primary-hover: #218838;
|
||||||
|
|
||||||
--accent: #ff9800;
|
--accent: #ff9800;
|
||||||
--success: #28a745;
|
|
||||||
--danger: #dc3545;
|
--danger: #dc3545;
|
||||||
--bg: #f4f4f9;
|
--bg: #f4f4f9;
|
||||||
}
|
}
|
||||||
@ -27,7 +29,6 @@ body {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* WICHTIG: Damit Quiz-Elemente untereinander sind */
|
|
||||||
#quiz-screen {
|
#quiz-screen {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -45,7 +46,6 @@ h1 { text-align: center; margin-bottom: 20px; color: #333; }
|
|||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* BUTTONS UNTEREINANDER ERZWINGEN */
|
|
||||||
.button-group, .quiz-controls {
|
.button-group, .quiz-controls {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column !important;
|
flex-direction: column !important;
|
||||||
@ -69,7 +69,7 @@ button {
|
|||||||
button:hover { background: #f0f0f0; }
|
button:hover { background: #f0f0f0; }
|
||||||
|
|
||||||
button.active {
|
button.active {
|
||||||
background: #e3f2fd;
|
background: #e9f7ef; /* Hellgrün */
|
||||||
border-color: var(--primary);
|
border-color: var(--primary);
|
||||||
color: var(--primary);
|
color: var(--primary);
|
||||||
}
|
}
|
||||||
@ -80,8 +80,11 @@ button.active {
|
|||||||
color: #e65100;
|
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 { 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; }
|
||||||
@ -114,11 +117,10 @@ input {
|
|||||||
input:focus { border-color: var(--primary); outline: none; }
|
input:focus { border-color: var(--primary); outline: none; }
|
||||||
|
|
||||||
.feedback { font-weight: bold; margin-top: 10px; font-size: 1.1rem; min-height: 25px;}
|
.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); }
|
.wrong { color: var(--danger); }
|
||||||
.typo { color: var(--accent); }
|
.typo { color: var(--accent); }
|
||||||
|
|
||||||
/* OVERLAY */
|
|
||||||
.overlay {
|
.overlay {
|
||||||
display: none;
|
display: none;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@ -160,7 +162,7 @@ input:focus { border-color: var(--primary); outline: none; }
|
|||||||
}
|
}
|
||||||
.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);
|
border-color: var(--primary);
|
||||||
color: var(--primary);
|
color: var(--primary);
|
||||||
}
|
}
|
||||||
@ -174,4 +176,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; }
|
||||||
Loading…
x
Reference in New Issue
Block a user