app/static/style.css aktualisiert
This commit is contained in:
parent
66cf1ce66b
commit
db118af2e8
@ -12,75 +12,73 @@ body {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
max-width: 500px; /* Etwas schmaler, sieht auf Handy besser aus */
|
max-width: 500px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center; /* Vertikal zentrieren */
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 { text-align: center; color: #333; margin-bottom: 30px; }
|
h1 { text-align: center; margin-bottom: 20px; color: #333; }
|
||||||
|
|
||||||
/* SETUP SCREEN */
|
/* SETUP & BUTTONS */
|
||||||
.section-title {
|
.section-title {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin: 25px 0 10px;
|
margin: 20px 0 10px;
|
||||||
|
text-align: center;
|
||||||
color: #555;
|
color: #555;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-size: 0.9rem;
|
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* WICHTIG: Buttons untereinander erzwingen */
|
/* WICHTIG: Erzwingt vertikale Anordnung */
|
||||||
.button-group {
|
.button-group, .quiz-controls {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column !important; /* WICHTIG */
|
||||||
gap: 15px;
|
gap: 15px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
padding: 18px; /* Große Klickfläche */
|
display: block !important; /* WICHTIG */
|
||||||
border: 2px solid #ddd;
|
|
||||||
border-radius: 8px;
|
|
||||||
background: white;
|
|
||||||
font-size: 1.1rem;
|
|
||||||
cursor: pointer;
|
|
||||||
font-weight: 600;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: block; /* Erzwingt neue Zeile */
|
padding: 16px;
|
||||||
transition: all 0.2s;
|
border: 2px solid #ddd;
|
||||||
|
background: white;
|
||||||
|
border-radius: 8px;
|
||||||
|
font-size: 1.1rem;
|
||||||
|
font-weight: bold;
|
||||||
|
cursor: pointer;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
margin-bottom: 0; /* Gap regelt den Abstand */
|
||||||
}
|
}
|
||||||
|
|
||||||
button:hover { background: #f0f0f0; }
|
button:hover { background: #f0f0f0; }
|
||||||
|
|
||||||
/* Active States */
|
|
||||||
button.active {
|
button.active {
|
||||||
border-color: var(--primary);
|
|
||||||
background: #e3f2fd;
|
background: #e3f2fd;
|
||||||
|
border-color: var(--primary);
|
||||||
color: var(--primary);
|
color: var(--primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.special-btn.active {
|
.special-btn.active {
|
||||||
border-color: var(--accent);
|
|
||||||
background: #fff3e0;
|
background: #fff3e0;
|
||||||
|
border-color: var(--accent);
|
||||||
color: #e65100;
|
color: #e65100;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Action Buttons (Start, Check, Next) */
|
/* Action Buttons (Start, Check, Next) */
|
||||||
.action-btn {
|
.action-btn {
|
||||||
border: none;
|
|
||||||
color: white;
|
color: white;
|
||||||
margin-top: 15px;
|
border: none;
|
||||||
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
.primary { background: var(--primary); }
|
.primary { background: var(--primary); }
|
||||||
.secondary { background: #6c757d; }
|
.secondary { background: #6c757d; }
|
||||||
@ -90,61 +88,44 @@ button:disabled { opacity: 0.5; cursor: not-allowed; }
|
|||||||
/* QUIZ CARD */
|
/* QUIZ CARD */
|
||||||
.card {
|
.card {
|
||||||
background: white;
|
background: white;
|
||||||
padding: 30px 20px;
|
padding: 20px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
box-shadow: 0 4px 15px 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: 25px;
|
margin-bottom: 20px;
|
||||||
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; letter-spacing: 1px; }
|
||||||
.question { font-size: 2rem; font-weight: bold; margin: 20px 0; color: #222; }
|
.question { font-size: 1.8rem; font-weight: bold; margin: 15px 0; color: #222; }
|
||||||
.hint { color: #888; font-style: italic; margin-bottom: 20px; }
|
.hint { color: #888; font-style: italic; margin-bottom: 15px; }
|
||||||
|
|
||||||
input {
|
input {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 15px;
|
padding: 14px;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 10px;
|
||||||
border: 2px solid #ddd;
|
border: 2px solid #ddd;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
box-sizing: border-box;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: block;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
input:focus { border-color: var(--primary); outline: none; }
|
input:focus { border-color: var(--primary); outline: none; }
|
||||||
|
|
||||||
#verb-inputs {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Quiz Controls Container */
|
|
||||||
.quiz-controls {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 10px;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* FEEDBACK */
|
/* FEEDBACK */
|
||||||
.feedback { font-weight: bold; min-height: 25px; font-size: 1.1rem; margin-top: 10px; }
|
.feedback { font-weight: bold; min-height: 25px; margin-top: 5px; font-size: 1.1rem; }
|
||||||
.correct { color: var(--success); }
|
.correct { color: var(--success); }
|
||||||
.wrong { color: var(--danger); }
|
.wrong { color: var(--danger); }
|
||||||
.typo { color: var(--accent); }
|
.typo { color: var(--accent); }
|
||||||
|
|
||||||
/* OVERLAY */
|
/* OVERLAY (Seitenauswahl) */
|
||||||
.overlay {
|
.overlay {
|
||||||
display: none;
|
display: none;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top:0; left:0; right:0; bottom:0;
|
top: 0; left: 0; width: 100%; height: 100%;
|
||||||
background: rgba(0,0,0,0.5);
|
background: rgba(0,0,0,0.5);
|
||||||
z-index: 999;
|
z-index: 1000;
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
.overlay-content {
|
.overlay-content {
|
||||||
@ -153,7 +134,7 @@ input:focus { border-color: var(--primary); outline: none; }
|
|||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
max-height: 85vh;
|
max-height: 80vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
@ -169,29 +150,27 @@ input:focus { border-color: var(--primary); outline: none; }
|
|||||||
display: block;
|
display: block;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
background: #f8f9fa;
|
background: #f8f9fa;
|
||||||
text-align: center;
|
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
cursor: pointer;
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #555;
|
color: #555;
|
||||||
border: 2px solid transparent;
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.page-item input { display: none; }
|
.page-item input { display: none; }
|
||||||
.page-item input:checked + label {
|
.page-item input:checked + label {
|
||||||
background: #e3f2fd;
|
background: #e3f2fd;
|
||||||
border-color: var(--primary);
|
|
||||||
color: var(--primary);
|
color: var(--primary);
|
||||||
|
border: 1px solid var(--primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PROGRESS BAR (STICKY BOTTOM) */
|
/* PROGRESS BAR */
|
||||||
.progress-container {
|
.progress-container {
|
||||||
background: white;
|
background: white;
|
||||||
padding: 15px 20px;
|
padding: 10px;
|
||||||
border-top: 1px solid #eee;
|
border-top: 1px solid #eee;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
position: fixed; /* Fixiert unten */
|
position: fixed;
|
||||||
bottom: 0; left: 0; right: 0;
|
bottom: 0; left: 0; right: 0;
|
||||||
}
|
}
|
||||||
#stats-text { margin-bottom: 5px; color: #666; font-size: 0.9rem; }
|
.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;}
|
|
||||||
.progress-bar-fill { height: 100%; background: var(--success); width: 0%; transition: width 0.3s; }
|
.progress-bar-fill { height: 100%; background: var(--success); width: 0%; transition: width 0.3s; }
|
||||||
Loading…
x
Reference in New Issue
Block a user