|
| 1 | +/* Reset and Base Styles */ |
| 2 | +* { |
| 3 | + margin: 0; |
| 4 | + padding: 0; |
| 5 | + box-sizing: border-box; |
| 6 | + font-family: 'Poppins', sans-serif; |
| 7 | +} |
| 8 | + |
| 9 | +/* Body Styling */ |
| 10 | +body { |
| 11 | + background-color: darkblue; |
| 12 | + color: white; |
| 13 | + font-size: 16px; |
| 14 | +} |
| 15 | + |
| 16 | +/* Wrapper Styling */ |
| 17 | +.wrapper { |
| 18 | + width: 90%; |
| 19 | + margin: 0 auto; |
| 20 | +} |
| 21 | + |
| 22 | +/* Menu Toggle Styling */ |
| 23 | +.menu-toggle { |
| 24 | + float: right; |
| 25 | + height: 30px; |
| 26 | + width: 40px; |
| 27 | + margin-top: 20px; |
| 28 | + display: flex; |
| 29 | + flex-direction: column; |
| 30 | + justify-content: space-between; |
| 31 | + align-items: center; |
| 32 | + cursor: pointer; |
| 33 | +} |
| 34 | + |
| 35 | +/* Hamburger Menu Icon */ |
| 36 | +.menulogo { |
| 37 | + background-color: snow; |
| 38 | + height: 4px; |
| 39 | + width: 30px; |
| 40 | + border-radius: 2px; |
| 41 | +} |
| 42 | + |
| 43 | +/* Navigation Menu */ |
| 44 | +.menu { |
| 45 | + background-color: slateblue; |
| 46 | + width: 75%; |
| 47 | + height: 100vh; |
| 48 | + padding: 50px; |
| 49 | + position: fixed; |
| 50 | + top: 0; |
| 51 | + left: -100%; |
| 52 | + transition: left 0.5s ease-in-out; |
| 53 | +} |
| 54 | + |
| 55 | +.menu.showmenu { |
| 56 | + left: 0; |
| 57 | +} |
| 58 | + |
| 59 | +.menu ul { |
| 60 | + list-style-type: none; |
| 61 | +} |
| 62 | + |
| 63 | +.menu li { |
| 64 | + border-bottom: 1px solid rgb(130, 117, 218); |
| 65 | + padding: 20px 0; |
| 66 | + text-align: center; |
| 67 | +} |
| 68 | + |
| 69 | +.menu li:last-child { |
| 70 | + border-bottom: none; |
| 71 | +} |
| 72 | + |
| 73 | +.menu li a { |
| 74 | + color: snow; |
| 75 | + text-decoration: none; |
| 76 | + font-size: 20px; |
| 77 | + display: block; |
| 78 | + transition: color 0.3s ease-in-out; |
| 79 | +} |
| 80 | + |
| 81 | +.menu li a:hover { |
| 82 | + color: lightgray; |
| 83 | +} |
| 84 | + |
| 85 | +/* Media Queries for Responsiveness */ |
| 86 | +@media screen and (min-width: 1000px) { |
| 87 | + .menu { |
| 88 | + width: 500px; |
| 89 | + } |
| 90 | +} |
| 91 | + |
| 92 | +@media screen and (max-width: 600px) { |
| 93 | + .menu { |
| 94 | + width: 80%; |
| 95 | + } |
| 96 | + |
| 97 | + .menu li a { |
| 98 | + font-size: 16px; |
| 99 | + } |
| 100 | +} |
0 commit comments