-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
117 lines (113 loc) · 2.02 KB
/
index.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,500;1,200&display=swap");
* {
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
padding: 0;
margin: 0;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: rgb(14, 14, 39);
color: #fff;
}
.logo {
font-size: 1.5rem;
margin: 0.5rem;
cursor: pointer;
}
.navlinks ul {
display: flex;
margin: 0;
padding: 0;
}
.navlinks li a {
color: #fff;
padding: 1rem;
display: block;
text-decoration: none;
}
.navlinks li {
list-style: none;
}
.navlinks li a:hover {
text-decoration: underline;
text-decoration-color: rgb(238, 230, 228);
-moz-text-decoration-color: rgb(240, 235, 233);
text-decoration-thickness: 3px;
}
.toggle {
position: absolute;
top: 0.75rem;
right: 1rem;
/* display: flex; */
display: none;
flex-direction: column;
justify-content: space-between;
width: 60px;
height: 30px;
}
a {
text-decoration: none;
}
.toggle button {
right: 1em;
top: 0.4em;
display: flex;
align-items: center;
justify-content: center;
padding: 4px;
outline: none;
text-decoration: none;
overflow: hidden;
border: 2px solid #fff;
border-radius: 5px;
font-size: 0.8em;
background: transparent;
color: #fff;
}
button:focus {
background: #fff;
color: #000;
text-decoration: none;
}
button:hover {
background: #fff;
color: #000;
}
/* .toggle .bar {
height: 2px;
width: 100%;
background-color: #fff;
border-radius: 10px;
} */
@media (max-width: 540px) {
.navbar {
flex-direction: column;
align-items: flex-start;
}
.toggle {
display: flex;
}
.navlinks {
display: none;
width: 100%;
}
.navlinks ul {
width: 100%;
flex-direction: column;
}
.navlinks.active {
display: flex;
}
.logo {
font-size: 1rem;
margin: 1rem;
}
.navlinks li a {
font-size: 0.8rem;
}
}