-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
68 lines (57 loc) · 933 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
html {
scroll-behavior: smooth;
}
body {
display: flex;
font-family: 'Helvetica', 'Arial', sans-serif;
}
section {
line-height: 1.5em;
}
nav {
width: 320px;
height: 100%;
display: flex;
flex-direction: column;
position: fixed;
overflow: auto;
}
nav > a {
color: black;
margin-right: 10px;
text-decoration: none;
border-top: 1px solid black;
border-right: 1px solid black;
border-left: 1px solid black;
padding: 10px;
transition: background-color 1s;
}
nav > a:hover {
background-color: silver;
}
a:nth-child(n+6) {
border-bottom: 1px solid black;
}
main {
margin-left: 340px;
}
code {
display: inline-block;
padding: 10px;
background-color: silver;
}
@media (max-width: 640px) {
body {
display: flex;
flex-direction: column;
}
nav {
width: 100%;
height: 200px;
position: relative;
overflow: auto;
}
main {
margin-left: auto;
}
}