File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 --line : 1px solid;
77 --container : 1280px ;
88}
9- /* ====== Base Elements ======
10- General rules for basic HTML elements in any context */
9+
1110body {
1211 background : var (--paper );
1312 color : var (--ink );
2928 width : 100% ;
3029 object-fit : cover;
3130}
32- /* ====== Site Layout ======
33- Setting the overall rules for page regions
34- https://www.w3.org/WAI/tutorials/page-structure/regions/
35- */
31+
3632main {
3733 max-width : var (--container );
3834 margin : 0 auto calc (var (--space ) * 4 ) auto;
@@ -44,13 +40,7 @@ footer {
4440 width : 100% ;
4541 text-align : center;
4642}
47- /* ====== Articles Grid Layout ====
48- Setting the rules for how articles are placed in the main element.
49- Inspect this in Devtools and click the "grid" button in the Elements view
50- Play with the options that come up.
51- https://developer.chrome.com/docs/devtools/css/grid
52- https://gridbyexample.com/learn/
53- */
43+
5444header {
5545 text-align : center;
5646 margin-bottom : var (--space );
@@ -64,11 +54,7 @@ main {
6454 grid-column : span 2 ;
6555 }
6656}
67- /* ====== Article Layout ======
68- Setting the rules for how elements are placed in the article.
69- Now laying out just the INSIDE of the repeated card/article design.
70- Keeping things orderly and separate is the key to good, simple CSS.
71- */
57+
7258article {
7359 border : var (--line );
7460 padding-bottom : var (--space );
You can’t perform that action at this time.
0 commit comments