hubl/src/scss/_menu.scss

47 lines
821 B
SCSS
Raw Normal View History

2018-09-09 11:51:56 +00:00
// #navbar{}
// #navbar-router{}
2018-04-19 16:24:42 +00:00
2018-09-11 23:34:13 +00:00
#navbar {
2018-09-09 11:51:56 +00:00
background-color: $col-dark-bg;
color: $col-dark-fg;
position: relative;
2018-09-11 23:34:13 +00:00
max-width: 16rem;
position: relative;
&.open{
transform: translateX(0);
}
.btn-toggle {
display: none;
position: absolute;
top: 0;
right: 0;
background-color: $col-alt-bg;
color: $col-alt-fg;
font-size: 1.5em;
padding: 0.5em;
cursor: pointer;
transform: translateX(100%);
}
@media (max-width: 32rem) {
transform: translateX(-100%);
transition: transform 0.5s ease;
position: absolute;
z-index: 1;
.btn-toggle {
display: block;
}
}
2018-03-11 23:42:46 +00:00
}
2018-04-20 06:58:30 +00:00
2018-09-11 23:34:13 +00:00
#menu-items {
> sib-route {
2018-09-09 11:51:56 +00:00
display: block;
padding: 2em;
border-top: 1px solid white;
cursor: pointer;
2018-09-11 23:34:13 +00:00
&[id-prefix] {
2018-09-09 11:51:56 +00:00
display: none;
}
2018-04-20 06:58:30 +00:00
}
2018-09-11 23:34:13 +00:00
}