@@ -177,14 +177,25 @@ $colors: (
177177
178178 // Home page new contributors: single row of 5, smaller cards, more gap
179179 & .entries-grid--contributors {
180- grid-template-columns : repeat ( 5 , 1fr );
180+ grid-template-columns : 1fr ; // Mobile: 1 column
181181 grid-gap : 1rem ;
182182 justify-items : center ;
183183 > * {
184184 max-width : 200px ;
185185 min-width : 0 ;
186186 width : 100% ;
187187 }
188+ @media (min-width : $small ) {
189+ grid-template-columns : repeat (2 , 1fr ); // Small: 2 columns
190+ }
191+
192+ @media (min-width : $medium ) {
193+ grid-template-columns : repeat (3 , 1fr ); // Medium: 3 columns
194+ }
195+
196+ @media (min-width : $large ) {
197+ grid-template-columns : repeat (5 , 1fr ); // Large: 5 columns
198+ }
188199 .people-card {
189200 h4 .person_name {
190201 font-size : 0.95rem ;
@@ -226,14 +237,14 @@ $colors: (
226237.packages-grid {
227238 display : grid ;
228239 grid-gap : 10px ;
229- grid-template-columns : 1fr ; // Mobile: 1 column
240+ grid-template-columns : minmax ( 0 , 1fr ) ; // Mobile: 1 column, allow shrink
230241
231242 @media (min-width : $small ) {
232- grid-template-columns : repeat (2 , 1fr ); // Small: 2 columns
243+ grid-template-columns : repeat (2 , minmax ( 0 , 1fr ) ); // Small: 2 columns
233244 }
234245
235246 @media (min-width : $medium ) {
236- grid-template-columns : repeat (3 , 1fr ); // Medium and above: 3 columns (max)
247+ grid-template-columns : repeat (3 , minmax ( 0 , 1fr ) ); // Medium and above: 3 columns (max)
237248 }
238249
239250 // Feature package cards - compact display
@@ -564,16 +575,26 @@ $colors: (
564575
565576
566577
567- /* max 480 px */
578+ /* max 480 px - unified home page card scale */
568579 @media screen and (max-width : $mobile ) {
569- // large buttons are disproportionately large
570- // Elements outside of notice blocks such as the blog page
580+ // Shared scale: card padding 0.75em, title 1rem, body 0.875rem
581+ .cards.highlight .card-body {
582+ padding : 0.75em ;
583+ p {
584+ font-size : 0.875rem ;
585+ }
586+ h2 .card-title {
587+ font-size : 1rem ;
588+ }
589+ }
590+
571591 .blog__grid {
572592 h3 .card__title-container {
573593 padding : 0 ;
574594 }
575595 .card-excerpt p {
576- line-height : 1.8rem ;
596+ line-height : 1.5 ;
597+ font-size : 0.875rem ;
577598 }
578599 .card__bkg .card__title-container {
579600 padding : 0 ;
@@ -590,30 +611,35 @@ $colors: (
590611
591612 // the home page has this grid in a notice block
592613 .notice {
593- .card-body p , .card-body h2 {
594- line-height : 1.1 ;
595- padding : 0rem 1rem ;
596- font-size : .9rem ;
597- }
598614
599615 .blog__grid {
600- font-size : 1.3 em ;
601- grid-template-columns : repeat (auto-fill , minmax (95% , 1fr ))!important ;
616+ font-size : 1 rem ;
617+ grid-template-columns : repeat (auto-fill , minmax (95% , 1fr )) !important ;
602618 grid-auto-rows : 0fr !important ;
603619 grid-column-gap : 7px ;
604620 grid-row-gap : 1rem !important ;
605621 margin-bottom : 5rem ;
606622 padding : 0 ;
607623
608624 .card-body {
609- font-size : .95rem ;
625+ padding : 0.75em ;
626+ font-size : 0.875rem ;
627+ }
628+ .card-body p ,
629+ .card-body h2 {
630+ line-height : 1.4 ;
631+ padding : 0 ;
632+ font-size : 0.875rem ;
633+ }
634+ h3 .card-title {
635+ font-size : 1rem ;
610636 }
611637 .cards {
612- margin : 0 0 ! important;
638+ margin : 0 0 ! important ;
613639 }
614640
615- & a {
616- font-size : 1.3 em ;
641+ a {
642+ font-size : 1 em ;
617643 }
618644 }
619645
0 commit comments