@@ -27,15 +27,11 @@ As well as useful links to learn more */
2727/* ====== Base Elements ======
2828 General rules for basic HTML elements in any context */
2929body {
30- background : var ( --paper ) ;
30+ background-color : # d6d0d0 ;
3131 color : var (--ink );
3232 font : var (--font );
3333}
34- a {
35- padding : var (--space );
36- border : var (--line );
37- max-width : fit-content;
38- }
34+
3935img ,
4036svg {
4137 width : 100% ;
4541Setting the overall rules for page regions
4642https://www.w3.org/WAI/tutorials/page-structure/regions/
4743*/
48- main {
49- max-width : var (--container );
50- margin : 0 auto;
51- }
44+
5245footer {
5346
5447 text-align : center;
@@ -61,6 +54,8 @@ https://developer.chrome.com/docs/devtools/css/grid
6154https://gridbyexample.com/learn/
6255*/
6356main {
57+ max-width : var (--container );
58+ margin : 0 auto;
6459 display : grid;
6560 grid-template-columns : 1fr 1fr ;
6661 gap : var (--space );
@@ -86,8 +81,11 @@ article {
8681 grid-column : span 3 ;
8782 }
8883}
84+
85+ /* ====== Custom Styling ====== */
86+
8987h1 {
90- color : rgb ( 47 , 159 , 174 ) ;
88+ color : # 006d77 ;
9189 text-align : center;
9290
9391}
@@ -100,34 +98,28 @@ header {
10098}
10199a {
102100 background-color : black;
103- color : white;
104- text-decoration : none;
105- border-radius : 8px ;
106- transition : 0.3s ;
101+ color : white;
102+ text-decoration : none;
103+ border-radius : 8px ;
104+ transition : 0.3s ;
105+ padding : 8px 16px ;
106+ width : 100px ;
107+ height : 20px ;
108+ line-height : 20px ;
109+ text-align : center;
110+ display : inline-block;
111+ max-width : fit-content;
107112}
108- a : hover {
113+ a : hover {
109114 background-color : teal;}
110115
111-
112- article {
113- border : var (-- line);
114- padding-bottom : var (--space );
115- text-align : left;
116- display : grid;
117- grid-template-columns : var (--space ) 1fr var (--space );
118- border-radius : 12px ;
119- overflow : hidden;
120- padding : 16px ;
116+ article : hover {
117+ transform : scale (1.02 );
121118}
122119
123- article : hover { transform : scale (1.02 );}
124-
125- body { background-color : # d6d0d0 ;}
126-
127- h1 { color : rgb (47 , 120 , 120 ); }
128-
129- p { color : # 333333 ; }
130- a { background-color : black;
131- color : white;
132-
120+ p {
121+ color : # 333333 ;
122+ }
123+ article : last-child a {
124+ margin-top : 30px ;
133125}
0 commit comments