nav { height: 100%; position: fixed; background-color: var(--primary-dark); width: 12rem; box-shadow: 0 0 0.5rem black; padding-left: 1rem; padding-right: 1rem; } .nav-category { text-transform: uppercase; color: var(--secondary); font-size: 0.75rem; font-weight: normal; margin-top: 5rem; margin-bottom: 0; } nav li { list-style-type: none; } nav ul, nav ul *, nav ul *:hover { color: var(--secondary-light); font-size: 1rem; font-weight: bold; margin: 0; padding: 0.2rem; border-radius: 0.2rem; transition: background-color 0.25s linear; } nav ul:hover { background-color: var(--primary); transition: none; } .nav-selected, .nav-selected:hover { background: none; margin-left: 1rem; transition: none; } nav .icon { display: inline-block; margin-right: 0.5rem; width: 1rem; }