-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
94 lines (80 loc) · 1.41 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/*===== Base =====*/
*, *:before, *:after {
box-sizing: border-box ;
padding: 0 ;
margin: 0 ;
}
body {
font-family: Arial;
}
/*===== Layout =====*/
#grid-wrapper {
display: grid;
grid-template-areas: "nav main";
grid-template-rows: auto;
grid-template-columns: 250px auto;
}
#navbar {
grid-area: nav;
position: fixed;
width: 250px;
height: 100vh;
padding: 1rem;
font-size: 1.25rem;
text-align: center;
border-right: 1px solid gray;
}
#navbar header {
margin-top: 1.25rem;
margin-bottom: 1.25rem;
}
#main-doc {
grid-area: main;
padding: 3rem;
}
@media (max-width: 600px) {
#grid-wrapper {
grid-template-areas: "nav"
"main";
grid-template-rows: 200px auto;
grid-template-columns: auto;
}
#navbar {
position: relative;
overflow: scroll;
height: 200px;
width: 100vw;
}
}
/*===== Classes & Styles =====*/
.nav-link {
display: block;
padding-top: 1.25rem;
padding-bottom: 1.25rem;
border-top: 1px solid gray;
text-decoration: none;
color: black;
transition: 500ms ease;
}
.nav-link:hover {
background-color: gainsboro;
}
.main-section {
margin-bottom: 4rem;
padding: 2rem;
border: 1px solid gray;
border-radius: 10px;
}
.main-section header, p, code, ul li {
margin-bottom: 2rem;
}
.content-section {
padding-left: 2rem;
padding-right: 2rem;
}
code {
display: block;
}
p {
text-indent: 10%;
}