Use stickybits on sidenav

This commit is contained in:
leigh-mil 2019-08-29 20:24:56 -04:00
parent a6397bac35
commit c089682a27
3 changed files with 13 additions and 9 deletions

View File

@ -1,11 +1,11 @@
.topbar {
background-color: $color-blue-darkest;
border-bottom: 1px solid $color-black;
z-index: 16;
height: 48px;
&.js-is-sticky {
width: 100%;
z-index: 16;
}
&__navigation {

View File

@ -4,20 +4,20 @@
}
.sidenav-container {
position: relative;
box-shadow: $box-shadow;
width: 19.2%;
min-width: 25rem;
.global-navigation.sidenav {
height: 100%;
}
.sidenav {
@include media($large-screen) {
margin: 0px;
}
width: 25rem;
&.js-is-sticky {
width: 19.2%;
min-width: 25rem;
}
&__title {
@include sidenav__header;
@ -184,5 +184,9 @@
width: 10rem;
margin: 0px;
&.js-is-sticky {
width: 10rem;
}
}
}

View File

@ -4,7 +4,7 @@
<div v-cloak is="SidenavToggler" class="sidenav-container">
<template slot-scope='props'>
<div v-bind:class="{'global-navigation': true, 'sidenav': props.isVisible, 'sidenav--minimized': !props.isVisible}">
<div v-sticky='{ "stickyBitStickyOffset": 48 }' v-bind:class="{'global-navigation': true, 'sidenav': props.isVisible, 'sidenav--minimized': !props.isVisible}">
<a href="#" v-on:click="props.toggle" class="sidenav__toggle">
<template v-if="props.isVisible">
{{ Icon('angle-double-left-solid', classes="toggle-arrows icon--blue") }}