Line 1: school name (bold) + school type (muted gray) Line 2: R,W&M % · Progress score + band · Pupil count Line 3: local authority · distance (location searches) Actions (View / Add) are vertically centred on the right across all lines. Progress uses reading score, falling back to writing then maths. Removed the old nameScore grouping and separate meta/progress rows in favour of the cleaner 3-line structure. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
244 lines
4.8 KiB
CSS
244 lines
4.8 KiB
CSS
.row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
background: var(--bg-card, white);
|
|
border: 1px solid var(--border-color, #e5dfd5);
|
|
border-left: 3px solid transparent;
|
|
border-radius: 8px;
|
|
padding: 0.75rem 1rem;
|
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
animation: rowFadeIn 0.3s ease-out both;
|
|
}
|
|
|
|
.row:hover {
|
|
border-left-color: var(--accent-coral, #e07256);
|
|
box-shadow: 0 2px 8px rgba(26, 22, 18, 0.06);
|
|
}
|
|
|
|
.rowInCompare {
|
|
border-left-color: var(--accent-teal, #2d7d7d);
|
|
background: var(--bg-secondary, #f3ede4);
|
|
}
|
|
|
|
@keyframes rowFadeIn {
|
|
from { opacity: 0; transform: translateY(6px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
/* ── Left content column ─────────────────────────────── */
|
|
.rowContent {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.2rem;
|
|
}
|
|
|
|
/* Line 1: name + type */
|
|
.line1 {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 0.625rem;
|
|
min-width: 0;
|
|
}
|
|
|
|
.schoolName {
|
|
font-size: 0.9375rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary, #1a1612);
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
flex-shrink: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.schoolName:hover {
|
|
color: var(--accent-coral, #e07256);
|
|
}
|
|
|
|
.schoolType {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted, #8a847a);
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Line 2: stats */
|
|
.line2 {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 0 1.25rem;
|
|
}
|
|
|
|
.stat {
|
|
display: inline-flex;
|
|
align-items: baseline;
|
|
gap: 0.3rem;
|
|
}
|
|
|
|
.statValue {
|
|
font-size: 0.9375rem;
|
|
font-weight: 700;
|
|
color: var(--text-primary, #1a1612);
|
|
font-family: var(--font-playfair), 'Playfair Display', serif;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.2rem;
|
|
}
|
|
|
|
.statLabel {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted, #8a847a);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Trend arrows */
|
|
.trend {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
margin-left: 1px;
|
|
}
|
|
|
|
.trendUp { color: var(--accent-teal, #2d7d7d); }
|
|
.trendDown { color: var(--accent-coral, #e07256); }
|
|
.trendStable { color: var(--text-muted, #8a847a); }
|
|
|
|
/* Line 3: location */
|
|
.line3 {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 0 0;
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted, #8a847a);
|
|
}
|
|
|
|
.line3 span:not(:last-child)::after {
|
|
content: '·';
|
|
margin: 0 0.4rem;
|
|
color: var(--border-color, #e5dfd5);
|
|
}
|
|
|
|
.distanceBadge {
|
|
display: inline-block;
|
|
padding: 0.0625rem 0.375rem;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
background: var(--accent-teal, #2d7d7d);
|
|
color: white;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
/* ── Right actions column ────────────────────────────── */
|
|
.rowActions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Equalise <a> and <button> */
|
|
.rowActions > * {
|
|
height: 2rem;
|
|
line-height: 1;
|
|
font-family: inherit;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.btnView {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 0.5rem 1rem;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary, #5c564d);
|
|
border: 1px solid var(--border-color, #e5dfd5);
|
|
border-radius: 6px;
|
|
text-decoration: none;
|
|
transition: all 0.15s ease;
|
|
white-space: nowrap;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.btnView:hover {
|
|
background: var(--bg-secondary, #f3ede4);
|
|
color: var(--text-primary, #1a1612);
|
|
border-color: var(--text-muted, #8a847a);
|
|
}
|
|
|
|
.btnCompare {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 0.5rem 1rem;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
color: white;
|
|
background: var(--accent-coral, #e07256);
|
|
border: 1px solid transparent;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: background 0.15s ease;
|
|
white-space: nowrap;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.btnCompare:hover {
|
|
background: var(--accent-coral-dark, #c45a3f);
|
|
}
|
|
|
|
.btnRemove {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 0.5rem 1rem;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary, #5c564d);
|
|
background: var(--bg-secondary, #f3ede4);
|
|
border: 1px solid var(--border-color, #e5dfd5);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
white-space: nowrap;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.btnRemove:hover {
|
|
background: var(--border-color, #e5dfd5);
|
|
color: var(--text-primary, #1a1612);
|
|
}
|
|
|
|
/* ── Mobile ──────────────────────────────────────────── */
|
|
@media (max-width: 640px) {
|
|
.row {
|
|
flex-wrap: wrap;
|
|
padding: 0.75rem;
|
|
gap: 0.625rem;
|
|
}
|
|
|
|
.rowContent {
|
|
flex-basis: 100%;
|
|
}
|
|
|
|
.schoolName {
|
|
white-space: normal;
|
|
}
|
|
|
|
.line2 {
|
|
gap: 0 1rem;
|
|
}
|
|
|
|
.rowActions {
|
|
width: 100%;
|
|
gap: 0.375rem;
|
|
}
|
|
|
|
.rowActions > * {
|
|
flex: 1;
|
|
justify-content: center;
|
|
}
|
|
}
|