uci-hugo-landingpage/static/css/navbar.css

127 lines
1.9 KiB
CSS
Raw Normal View History

2017-03-10 22:59:27 -08:00
/* NAVIGATION BAR */
2017-03-10 22:59:27 -08:00
.nav-bar {
display: flex;
flex-direction: column;
position: fixed;
top: 0;
left: 0;
z-index: 10000;
width: 100vw;
color: black;
background-color: white;
border-bottom: 1px solid grey;
font-size: 1em;
font-weight: bold;
}
2017-03-10 22:59:27 -08:00
.nav-bar__header {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-content: center;
padding-top: 0.9em;
padding-bottom: 0.9em;
}
.nav-bar__logo,
.nav-bar__menu-button {
font-size: 1.8em;
padding-left: 1em;
}
2017-03-10 22:59:27 -08:00
.nav-bar__logo {
order: 2;
}
2017-03-10 22:59:27 -08:00
.nav-bar__menu-button {
order: 1;
cursor: pointer;
2017-03-10 22:59:27 -08:00
}
2017-03-10 22:59:27 -08:00
.nav-bar__menu {
overflow-y: scroll;
max-height: 100vh;
2017-03-10 22:59:27 -08:00
}
2017-03-11 20:11:20 -08:00
.hide-menu {
height: 0;
2017-03-10 22:59:27 -08:00
}
2017-03-11 20:11:20 -08:00
.nav-bar__menu-item {
display: flex;
justify-content: center;
transition: 200ms;
border-top: 2px solid;
font-size: 1.8em;
2017-04-07 01:40:29 -07:00
padding: .35em;
2017-03-11 20:11:20 -08:00
}
.nav-bar__menu-item > a {
flex-grow: 1;
text-align: center;
opacity: 1;
}
2017-03-11 20:11:20 -08:00
.nav-bar__menu-item:hover {
background-color: black;
color: white;
2017-03-11 20:11:20 -08:00
}
@media only screen and (min-width: 1000px) {
.nav-bar {
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between;
align-items: center;
padding-right: 1em;
}
.nav-bar__menu {
display: flex;
overflow-y: hidden;
}
2017-03-11 20:11:20 -08:00
.hide-menu {
height: auto;
}
.nav-bar__menu {
display: flex;
justify-content: flex-end;
overflow-y: hidden;
overflow-x: auto;
}
.nav-bar__header {
padding-top: 0;
padding-bottom: 0;
}
.nav-bar__menu-item,
.nav-bar__logo {
font-size: 1.5em;
padding-left: 0.3em;
padding-right: 0.3em;
padding-top: 0.7em;
padding-bottom: 0.7em;
border-top: 0;
}
2017-03-11 20:11:20 -08:00
.nav-bar__menu-button {
display: none;
}
}
2017-03-11 20:11:20 -08:00
2017-03-10 22:59:27 -08:00
/* Desktop */
2017-03-11 20:11:20 -08:00
@media screen and (min-width: 1400px) {
.nav-bar__menu-item,
.nav-bar__logo {
font-size: 2em;
padding-left: 0.5em;
padding-right: 0.5em;
2017-03-11 20:11:20 -08:00
}
}