@import url('https://fonts.googleapis.com/css2?family=Martian+Mono&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Martian', monospace; } body { background:#332e33; } .navigation { position: fixed; inset: 20px 0 20px 20px; width: 80px; background: #2b272b; transition: 0.5s; display: flex; justify-content: center; align-items: center; } .navigation.open { width: 250px; } .navigation .menuToggle { position: absolute; top: 0; left: 0; width: 100%; height: 60px; border-bottom: 1px solid rgba(0,0,0,0.25); cursor: pointer; display: flex; align-items: center; justify-content: flex-start; padding: 0 23px; } .navigation .menuToggle::before { content: ''; position: absolute; width: 30px; height: 2px; background: #413b41; transform: translateY(-8px); transition: 0.5s; } .navigation.open .menuToggle::before { transform: translateY(0px) rotate(45deg); } .navigation .menuToggle::after { content: ''; position: absolute; width: 30px; height: 2px; background: #413b41; transform: translateY(8px); transition: 0.5s; box-shadow: 0 -8px 0 #413b41; } .navigation.open .menuToggle::after { transform: translateY(0px) rotate(-45deg); box-shadow: 0 0 0 #413b41; } .navigation ul { display: flex; flex-direction: column; gap: 10px; width: 100% } .navigation ul li { list-style: none; position: relative; width: 100%; height: 60px; padding: 0 10px; transition: 0.5s; } .navigation ul li.active { transform: translateX(30px) } .navigation.open ul li.active { transform: translateX(10px) } .navigation ul li a { position: relative; display: flex; align-items: center; justify-content: flex-start; text-align: center; text-decoration: none; } .navigation ul li a .icon { position: relative; display: block; min-width: 55px; height: 55px; line-height: 60px; transition: 05.s; border-radius: 10px; font-size: 1.75em; color: #222; } .navigation ul li.active a .icon { color: #fff; background: var(--clr); } .navigation ul li a .icon::before { content: ''; position: absolute; top: 10px; left: 0; width: 100%; height: 100%; background: var(--clr); filter: blur(8px); opacity: 0; transition: 0.5s; } .navigation ul li.active a .icon::before { opacity: 0.5; } .navigation ul li a .text { position: relative; padding: 0 15px; height: 60px; display: flex; align-items: center; color: rgb(173, 173, 173); opacity: 0; visibility: hidden; transition: 0.5s; } .navigation.open ul li a .text { opacity: 1; visibility: visible; } .navigation ul li.active a .text { color: var(--clr); }