File tree 2 files changed +42
-3
lines changed
Curso-em-Video-Html-CSS/Html-css/Exercicios/ex026-media-query/mq005
2 files changed +42
-3
lines changed Original file line number Diff line number Diff line change 6
6
< title > Media Query</ title >
7
7
< link rel ="stylesheet " href ="https://fonts.googleapis.com/icon?family=Material+Icons ">
8
8
< link rel ="stylesheet " href ="style.css ">
9
+ < link rel ="stylesheet " href ="media-query.css ">
9
10
</ head >
10
- < body >
11
+ < body onresize =" mudouTamanhoTela() " >
11
12
< header >
12
13
< h1 > Meu Site</ h1 >
13
14
< i id ="burguer " class ="material-icons " onclick ="clickMenu() "> menu</ i >
@@ -37,8 +38,16 @@ <h2>Testando Media Queries</h2>
37
38
itens . style . display = 'none' ;
38
39
} else {
39
40
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
+ } */
42
51
}
43
52
</ script >
44
53
</ body >
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments