first commit
This commit is contained in:
406
css/style.css
Normal file
406
css/style.css
Normal file
@@ -0,0 +1,406 @@
|
||||
:root {
|
||||
--bg: #1a1a2e;
|
||||
--surface: #16213e;
|
||||
--surface2: #0f3460;
|
||||
--accent: #e94560;
|
||||
--accent2: #f5a623;
|
||||
--green: #4caf50;
|
||||
--text: #eaeaea;
|
||||
--text-dim: #888;
|
||||
--nut: #c8a96e;
|
||||
--string: #d4c4a0;
|
||||
--fret: #aaa;
|
||||
--marker: #555;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
body {
|
||||
font-family: 'Segoe UI', system-ui, sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.6rem;
|
||||
letter-spacing: 2px;
|
||||
color: var(--accent);
|
||||
margin-bottom: 4px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.subtitle { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 20px; }
|
||||
|
||||
/* Mode selector */
|
||||
.mode-tabs {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.mode-tab {
|
||||
padding: 8px 20px;
|
||||
border-radius: 20px;
|
||||
border: 2px solid var(--surface2);
|
||||
background: var(--surface);
|
||||
color: var(--text-dim);
|
||||
cursor: pointer;
|
||||
font-size: 0.9rem;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.mode-tab.active {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
background: rgba(233, 69, 96, 0.1);
|
||||
}
|
||||
|
||||
/* Quiz area */
|
||||
.quiz-container {
|
||||
width: 100%;
|
||||
max-width: 900px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
/* Prompt */
|
||||
.prompt-card {
|
||||
background: var(--surface);
|
||||
border-radius: 16px;
|
||||
padding: 20px 32px;
|
||||
text-align: center;
|
||||
border: 1px solid var(--surface2);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.prompt-label {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-dim);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.prompt-text { font-size: 1.4rem; font-weight: 600; }
|
||||
.prompt-note { font-size: 2.5rem; font-weight: 700; color: var(--accent2); }
|
||||
|
||||
/* Fretboard */
|
||||
.fretboard-wrap {
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
padding: 12px 0;
|
||||
}
|
||||
|
||||
svg.fretboard-svg {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* Answer buttons for mode 1 */
|
||||
.note-buttons {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
justify-content: center;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.note-btn {
|
||||
min-width: 56px;
|
||||
height: 56px;
|
||||
padding: 0 10px;
|
||||
border-radius: 28px;
|
||||
border: 2px solid var(--surface2);
|
||||
background: var(--surface);
|
||||
color: var(--text);
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.note-btn:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.08); }
|
||||
.note-btn.correct { background: var(--green); border-color: var(--green); color: #fff; }
|
||||
.note-btn.wrong { background: var(--accent); border-color: var(--accent); color: #fff; }
|
||||
|
||||
/* Feedback */
|
||||
.feedback {
|
||||
font-size: 1.2rem;
|
||||
font-weight: 600;
|
||||
height: 32px;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.feedback.correct { color: var(--green); }
|
||||
.feedback.wrong { color: var(--accent); }
|
||||
|
||||
/* Next button */
|
||||
.next-btn {
|
||||
padding: 12px 36px;
|
||||
border-radius: 24px;
|
||||
border: none;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.next-btn:hover { background: #c73652; transform: scale(1.04); }
|
||||
.next-btn:disabled { opacity: 0.3; cursor: default; transform: none; }
|
||||
|
||||
/* Submit / clear buttons for mode 2 */
|
||||
.submit-btn {
|
||||
padding: 12px 36px;
|
||||
border-radius: 24px;
|
||||
border: 2px solid var(--accent2);
|
||||
background: transparent;
|
||||
color: var(--accent2);
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.submit-btn:hover { background: rgba(245, 166, 35, 0.15); }
|
||||
|
||||
.clear-btn {
|
||||
padding: 12px 36px;
|
||||
border-radius: 24px;
|
||||
border: 2px solid var(--text-dim);
|
||||
background: transparent;
|
||||
color: var(--text-dim);
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.clear-btn:hover { background: rgba(136, 136, 136, 0.1); }
|
||||
|
||||
/* Stats */
|
||||
.stats {
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-dim);
|
||||
}
|
||||
|
||||
.stats span { color: var(--text); font-weight: 600; }
|
||||
|
||||
/* Keyboard hint */
|
||||
.kbd-hint {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text-dim);
|
||||
margin-top: -8px;
|
||||
}
|
||||
|
||||
kbd {
|
||||
background: var(--surface2);
|
||||
border-radius: 4px;
|
||||
padding: 1px 5px;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
/* Settings row */
|
||||
.settings-row {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-dim);
|
||||
}
|
||||
|
||||
.settings-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
|
||||
|
||||
.settings-row input[type="checkbox"] {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
accent-color: var(--accent);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.settings-row select {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--surface2);
|
||||
color: var(--text);
|
||||
padding: 4px 8px;
|
||||
border-radius: 6px;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
/* Stats screen */
|
||||
.stats-page {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 28px;
|
||||
width: 100%;
|
||||
padding: 8px 0 32px;
|
||||
}
|
||||
|
||||
.stats-overview {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--surface2);
|
||||
border-radius: 16px;
|
||||
padding: 24px 36px;
|
||||
text-align: center;
|
||||
min-width: 120px;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 2.2rem;
|
||||
font-weight: 700;
|
||||
color: var(--accent2);
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
font-size: 0.75rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
color: var(--text-dim);
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.stats-modes, .stats-notes {
|
||||
width: 100%;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--surface2);
|
||||
border-radius: 16px;
|
||||
padding: 20px 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.stats-section-title {
|
||||
font-size: 0.75rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
color: var(--text-dim);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.mode-stat-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto 200px;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.mode-stat-label { color: var(--text); }
|
||||
.mode-stat-nums { color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||
|
||||
.acc-bar-wrap {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
height: 10px;
|
||||
position: relative;
|
||||
background: var(--surface2);
|
||||
border-radius: 5px;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.acc-bar {
|
||||
height: 100%;
|
||||
border-radius: 5px;
|
||||
transition: width 0.4s ease;
|
||||
min-width: 2px;
|
||||
}
|
||||
|
||||
.acc-bar-wrap span {
|
||||
position: absolute;
|
||||
right: -40px;
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-dim);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Note table */
|
||||
.note-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.88rem;
|
||||
}
|
||||
|
||||
.note-table th {
|
||||
text-align: left;
|
||||
color: var(--text-dim);
|
||||
font-weight: 500;
|
||||
padding: 4px 8px 10px;
|
||||
font-size: 0.75rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.note-table td {
|
||||
padding: 7px 8px;
|
||||
border-top: 1px solid rgba(255,255,255,0.04);
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.note-table td:nth-child(2),
|
||||
.note-table td:nth-child(3) {
|
||||
color: var(--text-dim);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.note-table .acc-bar-wrap {
|
||||
width: 160px;
|
||||
margin-right: 48px;
|
||||
}
|
||||
|
||||
.note-cell {
|
||||
font-weight: 600;
|
||||
color: var(--accent2);
|
||||
min-width: 56px;
|
||||
}
|
||||
|
||||
.stats-empty {
|
||||
color: var(--text-dim);
|
||||
font-size: 0.95rem;
|
||||
padding: 16px 0;
|
||||
}
|
||||
|
||||
.reset-stats-btn {
|
||||
padding: 10px 28px;
|
||||
border-radius: 20px;
|
||||
border: 2px solid var(--text-dim);
|
||||
background: transparent;
|
||||
color: var(--text-dim);
|
||||
font-size: 0.85rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.reset-stats-btn:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
Reference in New Issue
Block a user