-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
46 lines (39 loc) · 790 Bytes
/
style.css
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
div.main-body {
display: grid;
grid-template-columns: minmax(300px, auto) 1fr;
grid-gap: 20px;
grid-template-areas: "navbar mainContent";
}
nav#navbar {
grid-area: navbar;
position: fixed;
}
nav#navbar a {
display: block;
border: 1px solid black;
padding: 5px;
margin: 10px 0;
text-decoration: none;
color: black;
}
main#main-doc {
grid-area: mainContent;
}
header {
font-size: 1.5em;
font-weight: bold;
}
code {
background-color: #ccc;
padding: 20px;
display: block;
}
@media screen and (max-width: 750px) {
div.main-body {
grid-template-columns: 1fr;
grid-template-areas: "navbar" "mainContent";
}
nav#navbar {
position: inherit;
}
}