75 lines
1.3 KiB
CSS
75 lines
1.3 KiB
CSS
body{
|
|
display: grid;
|
|
grid-row: span;
|
|
grid:
|
|
"header header header"
|
|
"main main main"
|
|
"footer footer footer";
|
|
grid-template-columns:250px auto 20%;
|
|
column-gap: 10px;
|
|
|
|
font-family: 'Gowun Dodum', sans-serif;
|
|
background-color: #EAEDF8;
|
|
margin: 0;
|
|
}
|
|
|
|
header{grid-area: header;}
|
|
nav{grid-area: nav;}
|
|
main{grid-area: main;}
|
|
aside{grid-area: aside;}
|
|
footer{grid-area: footer;}
|
|
|
|
footer{
|
|
position: fixed;
|
|
bottom: 0px;
|
|
padding: 15px;
|
|
text-align: center;
|
|
background-color: #343434;
|
|
color: white;
|
|
margin-top: 20px;
|
|
width: 100%;
|
|
}
|
|
|
|
header{
|
|
background-color: white;
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
height: 80px;
|
|
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
|
|
padding-left: 50px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
main{
|
|
margin-top: 75px;
|
|
margin-left: 280px;
|
|
margin-bottom: 110px;
|
|
margin-right: 280px;
|
|
}
|
|
|
|
aside{
|
|
position: fixed;
|
|
right: 0;
|
|
top: 0;
|
|
padding-top: 125px;
|
|
padding-left: 20px;
|
|
padding-right: 40px;
|
|
height: 80vh;
|
|
border-left: 4px;
|
|
border-color: white;
|
|
border-style: dotted;
|
|
}
|
|
|
|
@media screen and (max-width:768px){
|
|
body{
|
|
grid:
|
|
"header"
|
|
"nav"
|
|
"main"
|
|
"aside"
|
|
"footer";
|
|
}
|
|
} |