Skip to content

Commit

Permalink
more events styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mayfield committed Dec 15, 2024
1 parent 740865d commit 97b7735
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions pages/scss/events.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ html {
font-size: 4.1mm;

@media (max-width: 768px) and (min-width: 375px) {
font-size: 4.8mm;
font-size: 4.7mm;
}
}

Expand Down Expand Up @@ -844,6 +844,7 @@ table {
&.summary > td {
--name-width: 55%;
--row-padding: 0.7em;
font-variant-numeric: normal;
padding: var(--row-padding) var(--cell-padding);

&:empty {
Expand Down Expand Up @@ -874,15 +875,6 @@ table {
max-width: none;
}

&.place {
order: -3;
font-weight: 700;
font-size: 1.2em;
width: var(--place-width);
margin-bottom: -0.4em;
overflow: visible;
}

&.name {
order: -2;
width: var(--name-width);
Expand Down Expand Up @@ -924,9 +916,19 @@ table {
}

&.results {
--place-width: 3rem;
--place-width: 2.6rem;

> tbody > tr.summary > td {
&.place {
order: -3;
text-align: left;
font-weight: 600;
font-size: 1em;
width: var(--place-width);
margin-bottom: -0.4em;
overflow: visible;
}

&.racing-score,
&.time, // or distance
&.distance, // or time
Expand All @@ -941,9 +943,14 @@ table {
&.crit-power,
&.hr,
&.weight {
min-width: 3ch;
font-size: 0.88em;
}

abbr.unit {
font-stretch: 90%;
font-size: 0.7em;
}
}
}
}
Expand Down

0 comments on commit 97b7735

Please sign in to comment.