/* * myevent - navstyle.css * * Created by Janis Hutz 03/06/2023, Licensed under the GPL V3 License * https://janishutz.com, development@janishutz.com * * */ /* Default rules that are set for mobile interfaces */ #nav-menu { width: 100%; height: 100%; background: repeating-linear-gradient( 45deg, rgba(0, 0, 0, 0.822), rgba(22, 17, 65, 0.822) 5% ); background-size: 150vh 150vh; background-position: 0px; position: fixed; display: block; z-index: 10; width: 100%; top: 0; bottom: 0; left: 1; right: 1; transition: background-position 0.5s ease-in-out; } .nav-container { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; flex-direction: column; } .menuActive { overflow: hidden; } .logo { display: block; width: 60vw; height: auto; margin: 0; border-radius: 10px; } .listtoggle { text-decoration: none; color: rgb(168, 212, 253); font-size: 5vh; cursor: pointer; width: 1.7vw; height: 1.29vw; position: fixed; top: 50px; right: 50px; z-index: 11; transition: 0.8s; display: flex; flex-direction: column; justify-content: space-between; } .listtoggle:hover { width: 2.2vw; height: 1.68vw; } .listtoggle:hover .line { background-color: rgb(29, 69, 105); transition: 0.4s; } /* Nav-Hide-Show button idea from here: https://codepen.io/alvarotrigo/pen/wvrzPWL*/ .line { display: block; width: 100%; height: 3px; background-color: rgb(168, 212, 253); } #line1 { transform-origin: 0% 0%; transition: transform 0.4s ease-in-out; } #line2 { transition: transform 0.2s ease-in-out; } #line3 { transform-origin: 0% 100%; transition: transform 0.4s ease-in-out; } .listtoggle.active #line1 { transform: rotate( 45deg ); } .listtoggle.active #line2 { transform: scaleY(0); } .listtoggle.active #line3 { transform: rotate( -45deg ); } /* This is the list actually containing the menu items */ .nav-list { display: flex; flex-direction: column; width: 100%; justify-content: center; align-items: center; } .navitem { text-decoration: none; text-align: center; color: rgb(29, 69, 105); font-size: 1.4rem; width: fit-content; padding: 2%; } .inactive { transition: 1s; color: white; font-size: 1.3rem; } .inactive:hover { font-size: 1.6rem; color: rgb(29, 69, 105); transition: 0.4s; } /* ~ --> all next & + --> next */ .shaded { color: rgb(29, 69, 105); transition: 0.3s; } @media only screen and (min-width: 999px) { .nav-container { flex-direction: row; } .logo { width: auto; height: 70vh; margin-left: 10%; } }