Add sticky navigation
This commit is contained in:
parent
47cb55930d
commit
2972e455f3
File diff suppressed because one or more lines are too long
|
|
@ -1,15 +1,18 @@
|
||||||
<template>
|
<template>
|
||||||
<nav class="module-navigation">
|
<div>
|
||||||
<h3 class="module-navigation__heading">Inhalte: Modul 1</h3>
|
<nav class="module-navigation">
|
||||||
<div class="module-navigation__anchors">
|
<h3 class="module-navigation__heading">Inhalte: Modul 1</h3>
|
||||||
<a href="#" class="module-navigation__anchor module-navigation__anchor--active">Einleitung</a>
|
<div class="module-navigation__anchors">
|
||||||
<a href="#" v-scroll-to="'#objectives'" class="module-navigation__anchor">Lernziele</a>
|
<a href="#" class="module-navigation__anchor module-navigation__anchor--active">Einleitung</a>
|
||||||
<a href="#" class="module-navigation__anchor">1.1 Lehrbeginn</a>
|
<a href="#" v-scroll-to="'#objectives'" class="module-navigation__anchor">Lernziele</a>
|
||||||
<a href="#" class="module-navigation__anchor">1.2 Die drei Lernorte</a>
|
<a href="#" class="module-navigation__anchor">1.1 Lehrbeginn</a>
|
||||||
<a href="#" class="module-navigation__anchor">Lernzielkontrolle</a>
|
<a href="#" class="module-navigation__anchor">1.2 Die drei Lernorte</a>
|
||||||
</div>
|
<a href="#" class="module-navigation__anchor">Lernzielkontrolle</a>
|
||||||
<h3 class="module-navigation__heading">Ergebnisse: Modul 1</h3>
|
</div>
|
||||||
</nav>
|
<h3 class="module-navigation__heading">Ergebnisse: Modul 1</h3>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
@ -22,6 +25,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.module-navigation {
|
.module-navigation {
|
||||||
|
position: -webkit-sticky;
|
||||||
|
position: sticky;
|
||||||
|
top: 32px;
|
||||||
|
|
||||||
&__heading {
|
&__heading {
|
||||||
@include module-navigation-typography;
|
@include module-navigation-typography;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue