Use stickybits on sidenav
This commit is contained in:
parent
a6397bac35
commit
c089682a27
@ -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 {
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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") }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user