// Rendered content
$res = '<div class="timeline-wrapper">';
- $res .= '<nav class="timeline-nav" id="timeline-nav">';
+ $res .= '<ul class="timeline-nav" id="timeline-nav">';
foreach ($items as $index => $item) {
$arr = explode(' ', trim($item['year'])); // select the first word
- $res .= '<a class="timeline-nav-item" href="#year-' . $index . '">' . $arr[0] . '</a>';
+ $res .= '<li class="timeline-nav-item"><a href="#year-' . $index . '">' . $arr[0] . '</a></li>';
}
- $res .= '</nav>';
+ $res .= '</ul>';
$res .= '<div class="timeline-content">';
foreach ($items as $index => $item) {
-import scrollSpy from 'simple-scrollspy';
+/* eslint-disable */
+import Gumshoe from './gumshoe'; // Custom version for C6
-scrollSpy('#timeline-nav', {
- offset: -200,
- sectionClass: '.timeline-item',
- menuActiveTarget: '.timeline-nav-item',
-});
+new Gumshoe('#timeline-nav a', {
+ offset: 50,
+});
\ No newline at end of file
&-item
display: block
margin-bottom: 1.5em
- &:hover
+ @media (hover) // this stops the hover state getting stuck on touch devices
+ &:hover
+ color: $colors.orange
+ &.active
+ font-size: $font-size.medium
color: $colors.orange
- //&.active
- // font-size: $font-size.medium
- // color: $colors.orange
&-content
padding-right: 144px
<div class="footer-inner content-inner">
<div class="footer-col footer-logo">
- @svg('logo', ['class' => 'footer-logo-svg'])
+ <a href="{{ home_url('/') }}" aria-label="<?= _("Go to the home page") ?>">
+ @svg('logo', ['class' => 'footer-logo-svg'])
+ </a>
</div>
<div class="footer-col footer-info">