-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.html
More file actions
85 lines (84 loc) · 2.14 KB
/
base.html
File metadata and controls
85 lines (84 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="es-CL" >
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Blob UI - HTML5 Basico</title>
<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700|Roboto:400,300,500,700,900" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="css/blob.css">
<style>
body{
color: black !important;
}
.row{
grid-template-columns: [header] 1fr [content] 3fr !important;
grid-template-rows: auto 1fr auto !important;
height: calc(100vh - 0px);
grid-template-areas:
"header header"
"aside main"
"footer footer"
}
nav{
/*background: #2D2926;*/
grid-area: nav;
}
main{
grid-area: main;
}
section{
grid-area: section;
}
header{
background: var(--black-lite);
grid-area: header;
}
aside{
background: var(--yellow-lite);
grid-area: aside;
}
footer{
background: var(--gray-lite);
grid-area: footer;
}
@media (max-width: 860px) {
.row{
grid-template-areas: "header header"
"main main"
"aside aside"
"footer footer"
}
}
</style>
</head>
<body>
<div class="css-grid row">
<header>
<input type="checkbox" id="toggle">
<nav>
<a class="logo" href="#">Logo</a>
<label class="navbar-toggle" for="toggle">☰</label>
<ul>
<li><a href="#">item 1</a></li>
<li><a href="#">item 2</a></li>
<li><a href="#">item 3</a></li>
<li><a href="#">item 4</a></li>
</ul>
<!--<a class="btn">Share Me</a>-->
</nav>
</header>
<main>Main</main>
<aside>Aside</aside>
<footer>
<p><span class="u-rotate-180"> ©</span>Blob.cl</p>
</footer>
</div>
<script type="text/javascript">
let mainNav = document.querySelector('.navbar-toggle');
let navBarToggle = document.querySelector('header');
mainNav.addEventListener('click', e => {
navBarToggle.classList.toggle('ico-movil');
});
</script>
</body>
</html>