56 lines
No EOL
1.6 KiB
HTML
56 lines
No EOL
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Holy Grail Layout with BeerCSS</title>
|
|
|
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
font-family: 'Roboto', sans-serif;
|
|
}
|
|
.container {
|
|
display: grid;
|
|
grid-template-rows: auto 1fr auto;
|
|
min-height: 100vh;
|
|
}
|
|
.main-layout {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 1rem;
|
|
padding: 1rem;
|
|
}
|
|
@media (min-width: 768px) {
|
|
.main-layout {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
}
|
|
@media (min-width: 1024px) {
|
|
.main-layout {
|
|
grid-template-columns: 200px 1fr 200px;
|
|
}
|
|
}
|
|
@media (max-width: 767px) {
|
|
.main-layout {
|
|
grid-template-areas:
|
|
"main"
|
|
"left-sidebar"
|
|
"right-sidebar";
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<header class="primary padding large">Header</header>
|
|
<div class="main-layout">
|
|
<nav class="left-sidebar surface padding">Left Sidebar</nav>
|
|
<main class="padding">Main Content</main>
|
|
<aside class="right-sidebar surface padding">Right Sidebar</aside>
|
|
</div>
|
|
<footer class="primary padding large">Footer</footer>
|
|
</div>
|
|
</body>
|
|
</html> |