Skip to content

Commit a1b4c39

Browse files
committed
update ex026-mq005
1 parent af274a9 commit a1b4c39

File tree

2 files changed

+42
-3
lines changed

2 files changed

+42
-3
lines changed

Curso-em-Video-Html-CSS/Html-css/Exercicios/ex026-media-query/mq005/index.html

+12-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
<title>Media Query</title>
77
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
88
<link rel="stylesheet" href="style.css">
9+
<link rel="stylesheet" href="media-query.css">
910
</head>
10-
<body>
11+
<body onresize="mudouTamanhoTela()">
1112
<header>
1213
<h1>Meu Site</h1>
1314
<i id="burguer" class="material-icons" onclick="clickMenu()">menu</i>
@@ -37,8 +38,16 @@ <h2>Testando Media Queries</h2>
3738
itens.style.display = 'none';
3839
} else {
3940
itens.style.display = 'block';
40-
}
41-
41+
}
42+
}
43+
44+
function mudouTamanhoTela() {
45+
/*
46+
if(window.innerWidth >= 768) {
47+
itens.style.display = 'block';
48+
} else {
49+
itens.style.display = 'none';
50+
} */
4251
}
4352
</script>
4453
</body>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
@charset "UTF-8";
2+
3+
/*
4+
pesquisar sobre Typical Device Breakpoints
5+
Recomendações do W3C:
6+
Pequenas telas: até 600px
7+
Celular: de 600px até 768px
8+
Tablet: de 768px até 992px
9+
Desktop: de 992px até 1200px
10+
Grandes telas: acima de 1200px
11+
*/
12+
13+
14+
@media screen and (min-width: 768px) {
15+
i#burguer {
16+
display: none;
17+
}
18+
19+
menu {
20+
display: block;
21+
}
22+
23+
menu > ul > li {
24+
display: inline-block;
25+
}
26+
27+
main {
28+
width: 768px
29+
}
30+
}

0 commit comments

Comments
 (0)