@@ -31,26 +31,10 @@ body {
3131 color : var (--ink );
3232 font : var (--font );
3333}
34- header {
35- text-align : center;
36- }
3734a {
38- display : inline-block;
39- width : fit-content;
40- height : 40px ;
41- line-height : 40px ;
42- padding : 0 1.2em ;
43- background : rgb (154 , 206 , 227 );
44- color : black;
45- text-decoration : none;
46- border-radius : 6px ;
47- font-weight : 600 ;
48- text-align : center;
49- vertical-align : bottom;
50- }
51-
52- a : hover {
53- background : rgb (193 , 214 , 230 );
35+ padding : var (--space );
36+ border : var (--line );
37+ max-width : fit-content;
5438}
5539img ,
5640svg {
@@ -64,16 +48,11 @@ https://www.w3.org/WAI/tutorials/page-structure/regions/
6448main {
6549 max-width : var (--container );
6650 margin : 0 auto calc (var (--space ) * 4 ) auto;
67- padding-bottom : calc (var (--space ) * 6 );
6851}
6952footer {
7053 position : fixed;
7154 bottom : 0 ;
72- width : 100% ;
7355 text-align : center;
74- background : white;
75- border-top : var (--line );
76- padding : var (--space );
7756}
7857/* ====== Articles Grid Layout ====
7958Setting the rules for how articles are placed in the main element.
@@ -85,7 +64,6 @@ https://gridbyexample.com/learn/
8564main {
8665 display : grid;
8766 grid-template-columns : 1fr 1fr ;
88- grid-template-rows : auto 1fr auto; /* Add this */
8967 gap : var (--space );
9068 > * : first-child {
9169 grid-column : span 2 ;
@@ -108,22 +86,4 @@ article {
10886 > img {
10987 grid-column : span 3 ;
11088 }
111-
112- > a {
113- align-self : end; /* Add this */
114- }
115- }
116-
117- article > h2 {
118- padding-top : var (--space );
11989}
120-
121- article : first-child > img {
122- grid-column : span 3 ;
123- /* no aspect-ratio here, so it keeps its natural height */
124- }
125-
126- article : not (: first-child ) > img {
127- grid-column : span 3 ;
128- aspect-ratio : 16 / 9 ; /* force same height for bottom two */
129- object-fit : cover;
0 commit comments