-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
95 lines (82 loc) · 1.64 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
95
body {
font-family: 'Montserrat', sans-serif;
padding: 0px;
margin: 0px;
}
/* navbar design */
nav {
position: fixed;
z-index: 950;
width: 100vw;
transition: all 0.3s;
/* TODO: add background image and remove color */
background-color: orange;
padding: 20px 30px;
}
nav.sticky {
padding: 15px 30px;
}
nav .nav-container {
display: flex;
flex-direction: horizontal;
padding: 0px;
font-size: 25px;
width: calc(100% - 60px);
justify-content: space-between;
}
nav .nav-container .logo {
display: flex;
padding-left: 0px;
flex: 0.8;
}
.menu-btn {
display: none;
}
nav .nav-container ul {
list-style: none;
display: flex;
flex-direction: horizontal;
justify-content: space-between;
padding: 0px 0px;
flex: 2;
margin: 0px 0px;
transition: all 0.3s;
}
nav .nav-container ul li {
display: inline;
padding: 0px 0px;
}
/* responsive design */
@media(max-width:1100px) {
nav .nav-container {
font-size: 20px;
}
}
@media(max-width:870px) {
nav .nav-container .directory {
position: fixed;
width: 100%;
height: 100%;
left: -100%;
top: 0;
padding-top: 80px;
flex-direction: column;
justify-content: space-around;
/* TODO: change color */
background-color: red;
text-align: center;
}
nav .nav-container ul.active {
left: 0;
}
.menu-btn {
display: block;
/* position: fixed;
top: 20px;
right: 30px; */
z-index: 999;
}
.menu-btn i.active:before {
content: "\f00d";
}
}