Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 31 additions & 3 deletions src/src/components/HardwareHero/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,20 @@

@media (max-width: 480px) {
.model {
font-size: 1.625rem;
font-size: 1.5rem;
}

.tagline {
font-size: 0.9375rem;
line-height: 1.45;
}

.statValue {
font-size: 1rem;
}

.statLabel {
font-size: 0.75rem;
}

/* 3-count stacks to a single column; values like "Jetson Orin NX"
Expand All @@ -337,12 +350,27 @@
display: none;
}

/* 6-count keeps the 2x3 layout from the tablet breakpoint. The 2n
suppression rules from the tablet block already apply here. */
/* 6-count keeps a 2-column layout on small phones as well; mobile
spacing/divider rules are defined explicitly in the blocks below. */
.stats[data-count="6"] {
grid-template-columns: 1fr 1fr;
}
Comment thread
cesartevisual marked this conversation as resolved.

/* Recompute padding for the 2-column mobile layout. Reset the base
3-column row-edge behavior, then apply 2-column row-edge rules. */
.stats[data-count="6"] .stat:nth-child(3n) {
padding-right: 1rem;
}
.stats[data-count="6"] .stat:nth-child(3n + 1) {
padding-left: 1rem;
}
.stats[data-count="6"] .stat:nth-child(2n) {
padding-right: 0;
}
.stats[data-count="6"] .stat:nth-child(2n + 1) {
padding-left: 0;
}

/* Single divider at 50% for the 2-col layout (mirror of the tablet
rule, since that media query does not cascade below 481px). */
.stats[data-count="6"]::before {
Expand Down
Loading