components/sass/navigation/_index.scss
2019-02-07 17:55:31 -06:00

87 lines
1.3 KiB
SCSS

drawer-navigation {
width: 100%; height: 5rem;
display: inline-flex;
flex: 1;
position: relative;
z-index: 1;
}
drawer-section {
&:not(:last-of-type) {
padding-right: 1rem;
}
&:not(:hover) {
drawer-title::after {
background-color: transparent;
}
drawer-wrap {
display: none;
}
}
&:hover {
drawer-title::after {
background-color: $lbry-teal-3;
}
}
}
drawer-title {
height: 100%;
align-items: center;
cursor: default;
display: flex;
line-height: 3;
position: relative;
&::after {
width: 100%; height: 1px;
bottom: -1px; left: 0;
content: "";
position: absolute;
z-index: 1;
}
}
drawer-wrap {
width: 100%;
top: 5rem; left: 0;
background-color: $lbry-white;
border-top: 1px solid $lbry-gray-1;
padding-top: 2rem;
padding-bottom: 2rem;
position: absolute;
&::after {
width: 100vw; height: calc(100vh - 5rem);
top: 5rem; left: 0;
background-color: $lbry-black;
content: "";
opacity: 0.3;
pointer-events: none;
position: absolute;
z-index: -1;
}
}
drawer-children {
display: flex;
flex-wrap: wrap;
position: relative;
}
drawer-child {
&:not(:last-of-type) {
margin-bottom: 1rem;
}
span {
display: block;
}
}