nav { font-size: 1.3em; height: 3em; background: var(--nav-background); width: 100%; font-family: var(--light-font); } nav .nav-flex { display: flex; flex-direction: row; } nav .navbar-brand { padding-top: 1em; padding-left: 0.5em; display: flex; } nav .navbar-brand .icon-brand { width: 2.5em; height: 2.5em; margin-top: -0.7em; margin-right: 5px; } nav .navbar-menu { flex: auto; display: block; width: 2em; } nav .navbar-list { float:right; flex: auto; display: flex; margin-top: 0px; list-style-type: none; text-transform: uppercase; } .navbar-list li { padding: 1em; margin-left: 0; display: flex; } .navbar-list li.active { background-color: var(--primary-color); } .navbar-list li.background { background-color: var(--nav-background); } .menu-with-sub { display: block; } .menu-with-sub .sub-menu { display: none; position: absolute; margin-left: -1.2em; width: 100%; } .menu-with-sub.toggled .sub-menu { display: block; } .menu-with-sub:hover .sub-menu { display: block; } .menu-with-sub .sub-menu:hover { display: block; } #navbar-toggler { border: 0; background: none; box-shadow: none; border-radius: 0px; display: none; cursor: pointer; padding-right: 1em; } @media screen and (max-width: 700px) { #navbar-toggler { display: block; } nav { position: absolute; } nav.menuShown { position: fixed; } nav .nav-flex { display: block; } .nav-mobile { display: flex; width: 100%; } .navbar-brand { flex: auto; } .navbar-menu { height: calc(100vh - 3em); width: 100% !important; display: none !important; background: var(--nav-background); } .navbar-menu.shown { display: block !important; } .navbar-list { display: block !important; width: 100vw; height: 100%; padding-left: 0; } .navbar-list li { width: 100% !important; display: flex; } .menu-with-sub { display: block; } .menu-with-sub .sub-menu { margin-left: 1em; display: ruby; } #content { padding-top: 4em; } }