forked from SukhjinderArora/Responsive-Navbar-using-FlexBox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
93 lines (76 loc) · 1.49 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
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
body {
font-family: "Josefin Sans", sans-serif;
}
.navbar {
font-size: 18px;
background-image: linear-gradient(260deg, #2376ae 0%, #c16ecf 100%);
border: 1px solid rgba(0, 0, 0, 0.2);
padding-bottom: 10px;
}
#main-nav {
list-style-type: none;
display: none;
flex-direction: column;
}
#main-nav li {
text-align: center;
margin: 15px auto;
}
.nav-links,
#logo {
text-decoration: none;
color: rgba(255, 255, 255, 0.7);
}
#logo:hover,
.nav-links:hover {
color: rgba(255, 255, 255, 1);
}
#logo {
display: inline-block;
font-size: 22px;
margin-top: 10px;
margin-left: 20px;
}
#navbar-toggle {
position: absolute;
top: 10px;
right: 20px;
cursor: pointer;
color: rgba(255, 255, 255, 0.8);
font-size: 24px;
}
#navbar-toggle:hover {
color: rgba(255, 255, 255, 1);
}
@media screen and (min-width: 768px) {
.navbar {
display: flex;
justify-content: space-between;
padding-bottom: 0;
height: 70px;
align-items: center;
}
#main-nav {
display: flex !important;
margin-right: 30px;
flex-direction: row;
justify-content: flex-end;
}
#main-nav li {
margin: 0;
}
.nav-links {
margin-left: 40px;
}
#logo {
margin-top: 0;
}
#navbar-toggle {
display: none;
}
}