-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
73 lines (63 loc) · 1.08 KB
/
index.css
File metadata and controls
73 lines (63 loc) · 1.08 KB
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
body {
margin: 0;
font-family: sans-serif;
overflow-x: hidden;
overflow-y: scroll;
}
#nav-bar {
position: fixed;
z-index: 1;
width: 100%;
height: 3rem;
background-color: black;
text-align: center;
}
#nav-bar > span {
position: relative;
display: inline-block;
margin: 0.1rem;
width: 8rem;
line-height: 2.8rem;
color: white;
font-size: 150%;
cursor: pointer;
}
#nav-bar > span::before {
position: absolute;
bottom: 0;
left: 0;
width: 8rem;
height: 0.2rem;
background-color: white;
content: '';
}
#nav-bar > span:hover::before {
background-color: red;
}
#content {
position: absolute;
top: 3rem;
left: 0;
right: 0;
}
#content > div {
position: absolute;
padding: 0.5rem;
top: 1rem;
width: calc(100% - 3rem);
height: 60rem;
background-color: beige;
transition: left 1s;
}
#content.blog #blog {
left: 1rem;
}
#content.blog #bio {
left: calc(100% + 1rem);
}
#content.bio #blog {
left: calc(-100% + 1rem);
}
#content.bio #bio {
left: 1rem;
}