File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 2
2
display : grid;
3
3
grid-template-columns : minmax (300px , auto) 1fr ;
4
4
grid-template-areas : "navbar content" ;
5
- grid-gap : 20px ;
6
5
padding-top : 3rem ;
6
+ max-width : 60rem ;
7
+ margin : 0 auto;
7
8
}
8
9
9
10
# navbar {
10
11
position : fixed;
11
- margin-left : 10px ;
12
12
}
13
13
14
14
# navbar a {
15
15
display : block;
16
- border : 1px solid # 000 ;
16
+ border-bottom : 1px solid # 000 ;
17
17
padding : 5px ;
18
18
margin : 10px 0 ;
19
19
text-decoration : none;
20
20
color : # 000 ;
21
+ transition : all 0.3s ;
21
22
}
22
23
23
24
# main-doc {
24
25
grid-area : content;
25
- padding-right : 3rem ;
26
26
}
27
27
28
28
html {
31
31
32
32
body {
33
33
font-family : "Roboto" , sans-serif;
34
+ margin : 0 ;
35
+ padding : 0 ;
34
36
}
35
37
36
38
.bold {
@@ -50,15 +52,16 @@ header {
50
52
code {
51
53
background-color : # ddd ;
52
54
display : block;
53
- margin : 15px 5 px ;
55
+ margin : 15px 0 px ;
54
56
padding : 15px ;
55
57
border-radius : 10px ;
56
58
line-height : 20px ;
57
59
}
58
60
59
- @media screen and (max-width : 750 px ) {
61
+ @media screen and (max-width : 768 px ) {
60
62
.main-body {
61
63
grid-template-columns : 1fr ;
64
+ grid-gap : 20px ;
62
65
grid-template-areas : "navabar" "content" ;
63
66
}
64
67
You can’t perform that action at this time.
0 commit comments