@import "../config"; .menu { background-color: var(--background-secondary-color); color: var(--text-primary-color); width: 100%; clear: both; height: 6rem; line-height: 6rem; a { padding: 0 1rem; color: var(--text-primary-color); height: 100%; display: inline-block; font-family: $menuFont; font-weight: normal; font-size: 1.1rem; position: relative; text-transform: uppercase; white-space: nowrap; z-index: 6; &::after { content: ''; display: block; position: absolute; left: 1rem; right: 1rem; bottom: 1.8em; height: 0.25rem; background: transparent; transition: background-color $transitionTime; } &.active::after { background: var(--text-primary-color); } &:hover { background-color: var(--table-border-color); &::after { background: var(--primary-color); } } } & ~ * { content: ''; clear: both; } } .menu-left { float: left; } .menu-right { float: right; .menu-icon { display: block; cursor: default; padding: 0 1rem; color: var(--text-primary-color); height: 100%; font-size: 2rem; position: relative; } .menu-content { display: none; position: absolute; background-color: var(--background-secondary-color); z-index: 5; left: 0; right: 0; &::before { content: ''; top: -8rem; left: 0; right: 0; height: 8rem; display: block; position: absolute; } a { display: block; line-height: 3rem; &:after { bottom: 0.55rem; } &:last-child { margin-bottom: 0.5rem; } } } &:hover { .menu-content { display: block; } } } @media (min-width: 992px) { .menu-right { .menu-icon { display: none; } .menu-content { display: block; position: static; background-color: transparent; z-index: unset; a { display: inline-block; line-height: unset; &:after { bottom: 1.8em } } } } }