File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 --space : clamp (6px , 6px + 2vw , 15px );
66 --line : 1px solid;
77 --container : 1280px ;
8- --footer-height : 50 px ;
8+ --footer-height : 80 px ;
99}
1010
1111html ,
3030 display : flex;
3131 flex-direction : column;
3232 overflow : auto;
33+ padding-bottom : var (--footer-height );
3334}
3435
3536a {
@@ -52,18 +53,18 @@ article img {
5253header {
5354 max-width : var (--container );
5455 margin : 0 auto;
55- padding : var (--space );
56+ padding-bottom : var (--space );
5657 text-align : center;
5758}
5859
5960main {
6061 flex : 1 ;
6162 max-width : var (--container );
62- margin : 0 auto;
63+ margin : 0 auto calc ( var ( --space ) * 4 ) ;
6364 display : grid;
6465 grid-template-columns : 1fr 1fr ;
6566 gap : var (--space );
66- overflow : hidden ;
67+ overflow : visible ;
6768 padding-bottom : 60px ;
6869}
6970
@@ -72,15 +73,14 @@ main > *:first-child {
7273}
7374
7475footer {
75- height : var (--footer-h );
7676 position : fixed;
77- left : 0 ;
7877 bottom : 0 ;
79- width : 100% ;
80- padding : var (--space );
81- text-align : center;
82- background : var (--paper );
83- border-top : 1px solid black;
78+ left : 50% ;
79+ transform : translateX (-50% );
80+ width : 50% ;
81+ height : var (--footer-h );
82+ display : grid;
83+ place-items : center;
8484 box-sizing : border-box;
8585}
8686
You can’t perform that action at this time.
0 commit comments