Files
ronan c3cc578d1c
Build and Push Docker Image / build (push) Failing after 5m2s
Initial commit: saint-malo navigation quiz
2026-06-11 10:04:44 +02:00

418 lines
7.0 KiB
CSS

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
--bg: #0a1628;
--surface: #0d1f3c;
--border: #1e3a5f;
--blue: #4a9ece;
--blue-dark: #3a8abe;
--text: #e8f4f8;
--muted: #8ab4cc;
--dim: #4a6a82;
--green: #2ecc71;
--yellow: #f39c12;
--orange: #e67e22;
--red: #e74c3c;
}
body {
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
background: var(--bg);
color: var(--text);
height: 100vh;
overflow: hidden;
}
#app { display: flex; flex-direction: column; height: 100vh; }
/* Topbar */
#topbar {
display: flex;
align-items: center;
gap: 16px;
padding: 0 16px;
height: 50px;
background: var(--surface);
border-bottom: 1px solid var(--border);
flex-shrink: 0;
z-index: 10;
}
#logo {
font-size: 1rem;
font-weight: 700;
color: var(--blue);
letter-spacing: 0.3px;
white-space: nowrap;
}
#mode-toggle {
display: flex;
background: var(--bg);
border-radius: 6px;
padding: 3px;
gap: 2px;
}
#mode-toggle button {
padding: 4px 14px;
border: none;
border-radius: 4px;
background: transparent;
color: var(--muted);
cursor: pointer;
font-size: 0.85rem;
transition: all 0.15s;
}
#mode-toggle button.active {
background: var(--blue);
color: #fff;
font-weight: 600;
}
#tiles-status {
margin-left: auto;
font-size: 0.72rem;
color: var(--dim);
white-space: nowrap;
}
/* Main layout */
#main {
display: flex;
flex: 1;
overflow: hidden;
}
#map { flex: 1; }
#map.edit-cursor { cursor: crosshair !important; }
/* Panel */
.panel {
width: 270px;
min-width: 270px;
background: var(--surface);
border-left: 1px solid var(--border);
display: flex;
flex-direction: column;
overflow: hidden;
}
/* Quiz panel */
#quiz-empty, #quiz-end {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex: 1;
padding: 24px 20px;
text-align: center;
gap: 12px;
color: var(--muted);
font-size: 0.875rem;
line-height: 1.6;
}
.empty-icon { font-size: 2.5rem; }
#quiz-end { gap: 16px; }
#final-score {
font-size: 2rem;
font-weight: 700;
color: var(--blue);
}
#btn-restart {
padding: 10px 20px;
background: var(--blue);
color: #fff;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 0.875rem;
font-weight: 600;
}
#quiz-question {
display: flex;
flex-direction: column;
padding: 16px;
gap: 6px;
flex: 1;
}
#quiz-score {
font-size: 0.78rem;
color: var(--dim);
display: flex;
align-items: center;
gap: 6px;
padding-bottom: 6px;
border-bottom: 1px solid var(--border);
}
#score-value {
font-size: 1rem;
font-weight: 700;
color: var(--blue);
}
#quiz-progress { margin-left: auto; }
#quiz-prompt {
font-size: 0.78rem;
color: var(--muted);
margin-top: 10px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
#quiz-name {
font-size: 1.5rem;
font-weight: 700;
line-height: 1.2;
color: var(--text);
}
#quiz-category {
font-size: 0.75rem;
color: var(--blue);
font-weight: 500;
}
#quiz-hint {
font-size: 0.8rem;
color: var(--dim);
font-style: italic;
min-height: 16px;
}
#quiz-instruction {
margin-top: 8px;
font-size: 0.82rem;
color: var(--muted);
background: rgba(74,158,206,0.08);
border: 1px dashed var(--border);
border-radius: 6px;
padding: 8px 12px;
text-align: center;
}
#quiz-feedback {
display: none;
flex-direction: column;
gap: 8px;
margin-top: 10px;
padding-top: 12px;
border-top: 1px solid var(--border);
}
#feedback-distance {
font-size: 0.9rem;
color: var(--muted);
}
#feedback-label {
font-size: 1.5rem;
font-weight: 700;
}
#btn-next {
width: 100%;
padding: 10px;
background: var(--blue);
color: #fff;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 0.875rem;
font-weight: 600;
transition: background 0.15s;
}
#btn-next:hover { background: var(--blue-dark); }
/* Edit panel */
.panel-header {
padding: 12px 16px;
border-bottom: 1px solid var(--border);
display: flex;
flex-direction: column;
gap: 2px;
font-size: 0.85rem;
font-weight: 600;
flex-shrink: 0;
}
.panel-hint {
font-size: 0.75rem;
color: var(--dim);
font-weight: 400;
}
#points-list {
flex: 1;
overflow-y: auto;
padding: 8px;
display: flex;
flex-direction: column;
gap: 4px;
}
#points-list::-webkit-scrollbar { width: 4px; }
#points-list::-webkit-scrollbar-track { background: transparent; }
#points-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.point-item {
display: flex;
align-items: center;
gap: 8px;
background: var(--bg);
border-radius: 6px;
padding: 8px 10px;
font-size: 0.8rem;
}
.point-item-info { flex: 1; min-width: 0; }
.point-item-name {
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: var(--text);
}
.point-item-cat {
font-size: 0.7rem;
color: var(--dim);
margin-top: 1px;
}
.point-item-actions {
display: flex;
gap: 2px;
flex-shrink: 0;
}
.btn-icon {
background: none;
border: none;
color: var(--dim);
cursor: pointer;
font-size: 0.95rem;
padding: 3px 5px;
border-radius: 4px;
transition: all 0.1s;
line-height: 1;
}
.btn-icon:hover { background: var(--border); color: var(--text); }
.btn-icon.del:hover { background: rgba(231,76,60,0.15); color: var(--red); }
.empty-list {
font-size: 0.8rem;
color: var(--dim);
text-align: center;
padding: 20px;
}
/* Modal */
#modal-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.65);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
#modal {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 10px;
padding: 22px 24px;
width: 340px;
max-width: 90vw;
}
#modal h3 {
margin-bottom: 18px;
color: var(--blue);
font-size: 1rem;
}
.form-group { margin-bottom: 12px; }
.form-group label {
display: block;
font-size: 0.78rem;
color: var(--muted);
margin-bottom: 4px;
}
.form-group input,
.form-group select {
width: 100%;
padding: 8px 10px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text);
font-size: 0.875rem;
transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus {
outline: none;
border-color: var(--blue);
}
.form-group select option { background: var(--bg); }
.form-actions {
display: flex;
gap: 8px;
justify-content: flex-end;
margin-top: 18px;
}
.form-actions button {
padding: 8px 16px;
border-radius: 6px;
cursor: pointer;
font-size: 0.85rem;
transition: all 0.15s;
}
.btn-cancel {
background: transparent;
border: 1px solid var(--border);
color: var(--muted);
}
.btn-cancel:hover { border-color: var(--muted); }
.btn-primary {
background: var(--blue);
border: 1px solid var(--blue);
color: #fff;
font-weight: 600;
}
.btn-primary:hover { background: var(--blue-dark); }
/* Map markers */
.map-pin {
font-size: 20px;
line-height: 1;
text-align: center;
filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
cursor: pointer;
}