Skip to content

Commit 295f9c6

Browse files
committed
change design
1 parent 9029715 commit 295f9c6

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

css/style.css

+9-6
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@
22
display: grid;
33
grid-template-columns: minmax(300px, auto) 1fr;
44
grid-template-areas: "navbar content";
5-
grid-gap: 20px;
65
padding-top: 3rem;
6+
max-width: 60rem;
7+
margin: 0 auto;
78
}
89

910
#navbar {
1011
position: fixed;
11-
margin-left: 10px;
1212
}
1313

1414
#navbar a {
1515
display: block;
16-
border: 1px solid #000;
16+
border-bottom: 1px solid #000;
1717
padding: 5px;
1818
margin: 10px 0;
1919
text-decoration: none;
2020
color: #000;
21+
transition: all 0.3s;
2122
}
2223

2324
#main-doc {
2425
grid-area: content;
25-
padding-right: 3rem;
2626
}
2727

2828
html {
@@ -31,6 +31,8 @@ html {
3131

3232
body {
3333
font-family: "Roboto", sans-serif;
34+
margin: 0;
35+
padding: 0;
3436
}
3537

3638
.bold {
@@ -50,15 +52,16 @@ header {
5052
code {
5153
background-color: #ddd;
5254
display: block;
53-
margin: 15px 5px;
55+
margin: 15px 0px;
5456
padding: 15px;
5557
border-radius: 10px;
5658
line-height: 20px;
5759
}
5860

59-
@media screen and (max-width: 750px) {
61+
@media screen and (max-width: 768px) {
6062
.main-body {
6163
grid-template-columns: 1fr;
64+
grid-gap: 20px;
6265
grid-template-areas: "navabar" "content";
6366
}
6467

0 commit comments

Comments
 (0)