colouring-montreal/app/src/frontend/header.css

67 lines
1.2 KiB
CSS
Raw Normal View History

/**
* Main header
*/
2019-04-28 10:57:21 -04:00
.main-header {
z-index: 3000;
position: absolute;
top: 0;
left: 0;
2020-02-03 16:24:14 -05:00
height: 76px;
width: 100%;
text-decoration: none;
}
2020-02-03 16:24:14 -05:00
@media (min-width: 990px){
.main-header {
width: 480px; /* to match .info-container menu width */
}
}
2020-02-03 16:24:14 -05:00
.main-header.navbar {
padding: 0;
}
2020-02-03 16:24:14 -05:00
.nav-header {
z-index: 1;
display: flex;
justify-content: space-between;
width: 100%;
padding: 12px;
background: #fff;
border-right: 1px solid #000;
}
2020-02-03 16:24:14 -05:00
.nav-header a {
padding: 0;
margin: 0;
}
.navbar .navbar-toggler {
padding: .5rem .75rem .5rem .75rem;
}
.navbar .navbar-toggler-icon {
width: 1em;
height: 1em;
}
.navbar .close {
display: inline-block;
vertical-align: middle;
height: 1em;
padding: 0 3px;
2019-09-04 12:04:07 -04:00
}
2020-02-03 16:24:14 -05:00
.main-header .navbar-collapse {
height: calc(100vh - 76px);
display: block;
overflow-y: auto;
transition: transform 0.3s;
transform: translateY(0);
background: #fff;
border-right: 1px solid #000;
}
.navbar-collapse.collapse {
transform: translateY(-100vh);
}
.navbar .nav-link {
padding: .5rem 1rem;
}
.navbar hr {
height: 2px;
width: auto;
margin: 1em;
}