omegamma/static/css/header.css

166 lines
2.8 KiB
CSS

nav {
font-size: 1.3em;
height: 3em;
position: absolute;
width: 100%;
font-family: var(--light-font);
}
nav .nav-flex {
display: flex;
max-width: 99%;
}
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);
color: black;
}
.menu-with-sub {
display: block;
}
.menu-with-sub .sub-menu {
display: none;
position: absolute;
padding: 0;
margin-top: -2px;
}
.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 {
/*background: var(--nav-background);*/
}
nav.menu-shown {
position: fixed;
z-index: 1;
background: var(--nav-background);
}
/* positioning for mobile */
nav .nav-flex {
display: block;
max-width: 100%;
}
.nav-mobile {
display: flex;
width: 100%;
}
.navbar-brand {
flex: auto;
}
.navbar-menu {
height: 100vh;
width: 100% !important;
display: none !important;
background: var(--nav-background);
}
.navbar-menu.shown {
display: block !important;
}
.navbar-list {
display: block !important;
width: 100%;
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;
}
/* removing white text from menu with light background */
nav.menu-shown.text-white a[role=button], nav.menu-shown .text-white a[role=button], nav.menu-shown a[role=button].text-white {
color: black;
}
nav.menu-shown.text-white .icon-monochrome {
filter: unset;
}
nav.menu-shown.text-white .navbar-list li.background {
background-color: var(--nav-background);
}
}