File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,26 +65,25 @@ main {
6565 padding : 0 var (--space );
6666}
6767
68+ main > article : first-child {
69+ grid-column : span 2 ;
70+ }
71+
72+ @media (max-width : 768px ) {
73+ main {
74+ grid-template-columns : 1fr ;
75+ }
76+ main > article : first-child {
77+ grid-column : span 1 ;
78+ }
79+ }
80+
6881footer {
6982 position : fixed;
7083 bottom : 0 ;
7184 text-align : center;
7285}
73- /* ====== Articles Grid Layout ====
74- Setting the rules for how articles are placed in the main element.
75- Inspect this in Devtools and click the "grid" button in the Elements view
76- Play with the options that come up.
77- https://developer.chrome.com/docs/devtools/css/grid
78- https://gridbyexample.com/learn/
79- */
80- main {
81- display : grid;
82- grid-template-columns : 1fr 1fr ;
83- gap : var (--space );
84- > * : first-child {
85- grid-column : span 2 ;
86- }
87- }
86+
8887/* ====== Article Layout ======
8988Setting the rules for how elements are placed in the article.
9089Now laying out just the INSIDE of the repeated card/article design.
You can’t perform that action at this time.
0 commit comments