Files
racing-data/public/styles.css
2026-05-19 15:38:16 +10:00

430 lines
6.2 KiB
CSS

:root {
color-scheme: dark;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background: #101316;
color: #eef3f5;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-width: 320px;
background: #101316;
}
.topbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
padding: 24px clamp(16px, 4vw, 48px);
border-bottom: 1px solid #273039;
background: #171c20;
}
.page-nav {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.page-nav a {
display: inline-flex;
align-items: center;
min-height: 36px;
padding: 8px 12px;
border: 1px solid #32404a;
border-radius: 8px;
color: #dce8ed;
background: #11171b;
font-size: 0.9rem;
text-decoration: none;
}
.page-nav a:hover {
border-color: #5a6b75;
background: #1e252a;
}
h1,
h2,
p {
margin: 0;
}
h1 {
font-size: clamp(1.5rem, 3vw, 2.3rem);
font-weight: 720;
}
h2 {
font-size: 1rem;
font-weight: 700;
}
p,
td,
th {
font-size: 0.92rem;
}
#status {
margin-top: 6px;
color: #9fb0ba;
}
.stat {
min-width: 110px;
padding: 12px 14px;
border: 1px solid #32404a;
border-radius: 8px;
background: #11171b;
text-align: right;
}
.stat span {
display: block;
color: #9fb0ba;
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.stat strong {
display: block;
margin-top: 2px;
font-size: 1.8rem;
}
main {
display: grid;
gap: 18px;
padding: 18px clamp(12px, 3vw, 32px) 36px;
}
.overview-strip {
display: grid;
grid-template-columns: 1.5fr repeat(4, minmax(140px, 1fr));
gap: 12px;
}
.overview-strip div {
min-width: 0;
padding: 14px;
border: 1px solid #273039;
border-radius: 8px;
background: #171c20;
}
.overview-strip span,
.subtle {
display: block;
color: #9fb0ba;
font-size: 0.78rem;
}
.overview-strip strong {
display: block;
margin-top: 4px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 1.05rem;
}
.panel {
min-width: 0;
border: 1px solid #273039;
border-radius: 8px;
background: #171c20;
overflow: hidden;
}
details.panel summary {
cursor: pointer;
list-style: none;
}
details.panel summary::-webkit-details-marker {
display: none;
}
details.panel summary::before {
content: ">";
display: inline-grid;
place-items: center;
width: 22px;
height: 22px;
margin-right: 8px;
border: 1px solid #3d4b55;
border-radius: 6px;
color: #a8bbc4;
font-size: 0.82rem;
transition: transform 140ms ease;
}
details.panel[open] summary::before {
transform: rotate(90deg);
}
.panel-header {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 10px;
min-height: 44px;
padding: 12px 14px;
border-bottom: 1px solid #273039;
background: #1e252a;
}
.panel-header span {
margin-left: auto;
color: #9fb0ba;
font-size: 0.82rem;
}
.packet-sections {
display: grid;
gap: 18px;
}
.nested-groups {
display: grid;
gap: 10px;
padding: 14px;
border-top: 1px solid #273039;
}
.nested-groups h3 {
margin: 0;
color: #a8bbc4;
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.05em;
text-transform: uppercase;
}
.subpanel {
border: 1px solid #273039;
border-radius: 8px;
background: #11171b;
overflow: hidden;
}
.subpanel summary {
display: flex;
align-items: center;
gap: 10px;
min-height: 40px;
padding: 10px 12px;
cursor: pointer;
list-style: none;
background: #1b2227;
}
.subpanel summary::-webkit-details-marker {
display: none;
}
.subpanel summary::before {
content: ">";
display: inline-grid;
place-items: center;
width: 20px;
height: 20px;
border: 1px solid #3d4b55;
border-radius: 6px;
color: #a8bbc4;
font-size: 0.76rem;
transition: transform 140ms ease;
}
.subpanel[open] summary::before {
transform: rotate(90deg);
}
.subpanel strong {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.subpanel span {
margin-left: auto;
color: #9fb0ba;
font-size: 0.82rem;
}
.subpanel .table-wrap {
border-top: 1px solid #273039;
}
.table-wrap {
width: 100%;
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
}
.leaderboard thead th {
position: sticky;
top: 0;
z-index: 1;
background: #1e252a;
}
.leaderboard tbody tr:nth-child(even) {
background: #141a1e;
}
.leaderboard td strong {
display: block;
}
.leaderboard .pos {
min-width: 52px;
color: #eef3f5;
font-size: 1.05rem;
font-weight: 800;
}
.pos-inner {
display: flex;
align-items: center;
gap: 8px;
}
.position-change {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 20px;
padding: 0 4px;
border-radius: 6px;
font-size: 0.76rem;
font-weight: 800;
line-height: 1;
}
.position-change-placeholder {
display: inline-block;
width: 24px;
height: 20px;
flex: 0 0 24px;
}
.position-up {
color: #68d391;
background: rgba(104, 211, 145, 0.12);
}
.position-down {
color: #ff7b7b;
background: rgba(255, 123, 123, 0.12);
}
.nat-badge {
display: inline-flex;
align-items: center;
justify-content: center;
width: 34px;
height: 24px;
padding: 2px;
border: 1px solid #3d4b55;
border-radius: 6px;
color: #dce8ed;
background: #11171b;
font-size: 0.76rem;
font-weight: 800;
overflow: hidden;
}
.flag-img {
display: block;
width: 28px;
height: 18px;
border-radius: 3px;
object-fit: cover;
}
.inactive-row {
opacity: 0.62;
}
th,
td {
padding: 10px 12px;
border-bottom: 1px solid #273039;
text-align: left;
white-space: nowrap;
}
th {
color: #a8bbc4;
font-size: 0.74rem;
font-weight: 700;
letter-spacing: 0.05em;
text-transform: uppercase;
}
tbody th {
width: 38%;
color: #c5d3da;
font-size: 0.86rem;
letter-spacing: 0;
text-transform: none;
}
td {
color: #eef3f5;
}
tbody tr:last-child td {
border-bottom: 0;
}
.empty {
color: #7f9099;
}
.good {
color: #68d391;
}
.warn {
color: #f6c177;
}
@media (max-width: 850px) {
.topbar {
display: grid;
}
.overview-strip {
grid-template-columns: 1fr;
}
.stat {
text-align: left;
}
.panel-header {
align-items: flex-start;
flex-wrap: wrap;
}
.panel-header span {
width: 100%;
margin-left: 30px;
}
}