-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
107 lines (88 loc) · 1.76 KB
/
style.css
File metadata and controls
107 lines (88 loc) · 1.76 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
:root {
--text-color: #f0f4f5;
--background-color: #263343;
--accent-color: #d49466;
}
* {
/* Tells the browser to account for any border and padding in the values you specify for an element's width and height. */
box-sizing: border-box;
}
body {
margin: 0;
font-family: 'Source Sans Pro';
}
a {
text-decoration: none;
color: var(--text-color);
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: var(--background-color);
padding: 8px 12px;
}
.navbar__logo {
font-size: 24px;
color: var(--text-color);
}
.navbar__logo i {
color: var(--accent-color);
}
.navbar__menu{
display: flex;
list-style-type: none;
padding-left: 0px;
}
.navbar__menu li {
padding: 8px 12px;
}
.navbar__menu li:hover{
background-color: #d49466;
border-radius: 4px;
}
.navbar__icons {
list-style-type: none;
color: var(--text-color);
display: flex;
padding-left: 0px;
}
.navbar__icons i {
padding: 8px 12px;
}
.navbar__toggleBtn {
position: absolute;
right: 24px;
font-size: 24px;
color: var(--accent-color);
display: none;
}
@media screen and (max-width: 768px) {
.navbar {
flex-direction: column;
align-items: flex-start;
padding: 8px 24px;
}
.navbar__menu {
display: none;
flex-direction: column;
align-items: center;
width: 100%;
}
.navbar__menu li {
width: 100%;
text-align: center;
}
.navbar__icons {
display: none;
justify-content: center;
width: 100%;
}
.navbar__toggleBtn{
display: block;
}
.navbar__menu.active,
.navbar__icons.active {
display: flex;
}
}