Use fixed position instead of sticky for sidenav and top bar so it works in IE
This commit is contained in:
parent
c089682a27
commit
8b78b2a553
@ -25,9 +25,12 @@ body {
|
||||
margin: $gap;
|
||||
flex-grow: 1;
|
||||
-ms-flex-negative: 1;
|
||||
top: 68px;
|
||||
position: relative;
|
||||
|
||||
@include media($medium-screen) {
|
||||
margin: $gap * 2;
|
||||
top: 68px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,7 @@
|
||||
}
|
||||
|
||||
&.js-is-sticky {
|
||||
width: 80.8%;
|
||||
width: calc(100% - 25rem);
|
||||
}
|
||||
|
||||
.sticky-cta-container {
|
||||
|
@ -2,11 +2,10 @@
|
||||
background-color: $color-blue-darkest;
|
||||
border-bottom: 1px solid $color-black;
|
||||
height: 48px;
|
||||
|
||||
&.js-is-sticky {
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
width: 100%;
|
||||
z-index: 16;
|
||||
}
|
||||
z-index: 10;
|
||||
|
||||
&__navigation {
|
||||
display: flex;
|
||||
|
@ -3,6 +3,9 @@
|
||||
align-items: center;
|
||||
padding: ($gap / 2) $gap;
|
||||
z-index: 15;
|
||||
position: fixed;
|
||||
height: 20px;
|
||||
width: 100%;
|
||||
|
||||
img {
|
||||
flex-grow: 0;
|
||||
|
@ -5,17 +5,30 @@
|
||||
|
||||
.sidenav-container {
|
||||
box-shadow: $box-shadow;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
top: 68px;
|
||||
|
||||
.sidenav {
|
||||
@include media($large-screen) {
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
&__toggler {
|
||||
width: 25rem;
|
||||
|
||||
&.js-is-sticky {
|
||||
width: 19.2%;
|
||||
min-width: 25rem;
|
||||
&--minimized {
|
||||
@extend .sidenav-container__toggler;
|
||||
width: 10rem;
|
||||
}
|
||||
}
|
||||
|
||||
&__fixed {
|
||||
position: fixed;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.sidenav {
|
||||
width: 25rem;
|
||||
overflow: scroll;
|
||||
|
||||
@include media($large-screen) {
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
&__title {
|
||||
@ -184,9 +197,5 @@
|
||||
|
||||
width: 10rem;
|
||||
margin: 0px;
|
||||
|
||||
&.js-is-sticky {
|
||||
width: 10rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% macro StickyCTA(text) -%}
|
||||
<div class="sticky-cta" v-sticky='{ "stickyBitStickyOffset": 48 }'>
|
||||
<div class="sticky-cta" v-sticky='{ "stickyBitStickyOffset": 68 }'>
|
||||
<div class="sticky-cta-container">
|
||||
<div class="sticky-cta-text">
|
||||
<h3>{{ text }}</h3>
|
||||
|
@ -4,7 +4,9 @@
|
||||
|
||||
<div v-cloak is="SidenavToggler" class="sidenav-container">
|
||||
<template slot-scope='props'>
|
||||
<div v-sticky='{ "stickyBitStickyOffset": 48 }' v-bind:class="{'global-navigation': true, 'sidenav': props.isVisible, 'sidenav--minimized': !props.isVisible}">
|
||||
<div v-bind:class="{'sidenav-container__toggler': props.isVisible, 'sidenav-container__toggler--minimized': !props.isVisible}">
|
||||
<div class="sidenav-container__fixed">
|
||||
<div 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") }}
|
||||
@ -31,5 +33,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
|
@ -1,6 +1,6 @@
|
||||
{% from "components/icon.html" import Icon %}
|
||||
|
||||
<header class="topbar" v-sticky>
|
||||
<header class="topbar">
|
||||
<nav class="topbar__navigation">
|
||||
<a href="{{ url_for('atst.home') }}" class="topbar__link topbar__link--home">
|
||||
{{ Icon('shield', classes='topbar__link-icon') }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user