eb77b1f32b
Search and import courses with layouts from Tjing's GraphQL API. Total par is calculated from individual hole data. Courses are saved with a tjing.se link as unique identifier to prevent duplicates.
168 lines
3.7 KiB
CSS
168 lines
3.7 KiB
CSS
/* ═══════════════════════════════════════════════════
|
|
Courses Page
|
|
═══════════════════════════════════════════════════ */
|
|
|
|
/* ── Controls ─────────────────────────────────── */
|
|
|
|
.controls {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
/* ── Search ───────────────────────────────────── */
|
|
|
|
.search-results-info {
|
|
text-align: center;
|
|
margin: 10px 0;
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* ── Layouts ──────────────────────────────────── */
|
|
|
|
.layouts-container {
|
|
padding: 16px;
|
|
}
|
|
|
|
.layouts-container h4 {
|
|
margin: 0 0 12px 0;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.layout-item {
|
|
padding: 12px 14px;
|
|
margin: 4px 0;
|
|
background: var(--surface-1);
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
transition: border-color var(--transition), box-shadow var(--transition);
|
|
}
|
|
|
|
.layout-item:hover {
|
|
border-color: var(--accent-border);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.layout-name {
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.layout-par {
|
|
color: var(--accent);
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
font-variant-numeric: tabular-nums;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.no-layouts {
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
padding: 24px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* ── Inactive Layouts Accordion ───────────────── */
|
|
|
|
.inactive-layouts-accordion {
|
|
margin-top: 16px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
background: var(--surface-2);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.accordion-header {
|
|
padding: 12px 16px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background: var(--surface-3);
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.accordion-header:hover {
|
|
background: var(--border);
|
|
}
|
|
|
|
.accordion-header-text {
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.accordion-icon {
|
|
transition: transform 0.3s ease;
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.accordion-icon.expanded {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.accordion-content {
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: max-height 0.3s ease-out;
|
|
padding: 0 12px;
|
|
}
|
|
|
|
.accordion-content.expanded {
|
|
max-height: 2000px;
|
|
padding: 12px;
|
|
transition: max-height 0.5s ease-in;
|
|
}
|
|
|
|
.layout-item.inactive {
|
|
opacity: 0.6;
|
|
border-style: dashed;
|
|
}
|
|
|
|
/* ── Tjing Import ────────────────────────────── */
|
|
|
|
.tjing-result {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 12px 14px;
|
|
margin: 6px 0;
|
|
background: var(--surface-2);
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.tjing-result-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.tjing-result-name {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.tjing-result-address {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
#tjing-results {
|
|
margin-top: 12px;
|
|
}
|