File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,49 +24,53 @@ As well as useful links to learn more */
2424 --line : 1px solid;
2525 --container : 1280px ;
2626}
27+
2728/* ====== Base Elements ======
2829 General rules for basic HTML elements in any context */
29-
30- body {
30+ body {
3131 background : var (--paper );
3232 color : var (--ink );
3333 font : var (--font );
3434 text-align : center;
3535 display : grid;
36-
3736}
37+
3838a {
3939 padding : var (--space );
4040 border : var (--line );
4141 max-width : fit-content;
4242}
43+
4344img ,
4445svg {
4546 width : 100% ;
4647 object-fit : cover;
4748}
49+
4850p {
4951 padding : 0 0 30px 0 ;
5052}
53+
5154.image-wrapper img {
5255 width : 100% ;
5356 /* aspect ratio for image */
5457 aspect-ratio : 16 / 9 ;
5558}
5659
57-
5860/* ====== Site Layout ======
5961Setting the overall rules for page regions
6062https://www.w3.org/WAI/tutorials/page-structure/regions/
6163*/
62- header , main {
64+ header , main {
6365 width : 80% ;
6466 margin-inline : auto;
6567}
68+
6669main {
6770 max-width : var (--container );
6871 margin : 0 auto calc (var (--space ) * 4 ) auto;
6972}
73+
7074footer {
7175 width : 100% ;
7276 position : relative;
@@ -75,6 +79,7 @@ footer {
7579 font-size : 0.8rem ;
7680 padding : 60px 120px ;
7781}
82+
7883/* ====== Articles Grid Layout ====
7984Setting the rules for how articles are placed in the main element.
8085Inspect this in Devtools and click the "grid" button in the Elements view
9095 grid-column : span 2 ;
9196 }
9297}
98+
9399/* ====== Article Layout ======
94100Setting the rules for how elements are placed in the article.
95101Now laying out just the INSIDE of the repeated card/article design.
You can’t perform that action at this time.
0 commit comments