-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
100 lines (86 loc) · 1.52 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
96
97
98
99
100
/* Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
/* Body Styling */
body {
background-color: darkblue;
color: white;
font-size: 16px;
}
/* Wrapper Styling */
.wrapper {
width: 90%;
margin: 0 auto;
}
/* Menu Toggle Styling */
.menu-toggle {
float: right;
height: 30px;
width: 40px;
margin-top: 20px;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
cursor: pointer;
}
/* Hamburger Menu Icon */
.menulogo {
background-color: snow;
height: 4px;
width: 30px;
border-radius: 2px;
}
/* Navigation Menu */
.menu {
background-color: slateblue;
width: 75%;
height: 100vh;
padding: 50px;
position: fixed;
top: 0;
left: -100%;
transition: left 0.5s ease-in-out;
}
.menu.showmenu {
left: 0;
}
.menu ul {
list-style-type: none;
}
.menu li {
border-bottom: 1px solid rgb(130, 117, 218);
padding: 20px 0;
text-align: center;
}
.menu li:last-child {
border-bottom: none;
}
.menu li a {
color: snow;
text-decoration: none;
font-size: 20px;
display: block;
transition: color 0.3s ease-in-out;
}
.menu li a:hover {
color: lightgray;
}
/* Media Queries for Responsiveness */
@media screen and (min-width: 1000px) {
.menu {
width: 500px;
}
}
@media screen and (max-width: 600px) {
.menu {
width: 80%;
}
.menu li a {
font-size: 16px;
}
}