2018-01-22 05:02:32 +01:00
|
|
|
<a class='main-nav-link {{forceCurrent || page === name ? "selected" : ""}}'
|
|
|
|
aria-label='{{forceCurrent || page === name ? `${label} (current page)` : label}}'
|
|
|
|
aria-current="{{forceCurrent || page === name}}"
|
2018-01-18 08:00:33 +01:00
|
|
|
href='{{href}}'>
|
2018-01-13 08:24:05 +01:00
|
|
|
<svg>
|
|
|
|
<use xlink:href="{{svg}}" />
|
|
|
|
</svg>
|
|
|
|
<span>{{label}}</span>
|
|
|
|
</a>
|
|
|
|
<style>
|
2018-01-20 21:35:38 +01:00
|
|
|
.main-nav-link {
|
2018-01-13 08:24:05 +01:00
|
|
|
border-bottom: 1px solid var(--nav-a-border);
|
|
|
|
text-decoration: none;
|
|
|
|
padding: 25px 20px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2018-01-20 21:35:38 +01:00
|
|
|
.main-nav-link.selected {
|
2018-01-13 08:24:05 +01:00
|
|
|
border-bottom: 1px solid var(--nav-a-selected-border);
|
|
|
|
background: var(--nav-a-selected-bg);
|
|
|
|
}
|
|
|
|
|
2018-01-20 21:35:38 +01:00
|
|
|
.main-nav-link.selected:hover {
|
2018-01-13 08:24:05 +01:00
|
|
|
border-bottom: 1px solid var(--nav-a-selected-border-hover);
|
|
|
|
background: var(--nav-a-selected-bg-hover);
|
|
|
|
}
|
|
|
|
|
2018-01-20 21:35:38 +01:00
|
|
|
.main-nav-link:hover {
|
2018-01-13 08:24:05 +01:00
|
|
|
background-color: var(--nav-a-bg-hover);
|
|
|
|
border-bottom: 1px solid var(--nav-a-border-hover);
|
|
|
|
}
|
|
|
|
|
2018-01-20 21:35:38 +01:00
|
|
|
.main-nav-link:hover span {
|
2018-01-13 08:24:05 +01:00
|
|
|
color: var(--nav-text-color-hover);
|
|
|
|
}
|
2018-01-20 21:35:38 +01:00
|
|
|
.main-nav-link:hover svg {
|
2018-01-13 08:24:05 +01:00
|
|
|
fill: var(--nav-svg-fill-hover);
|
|
|
|
}
|
|
|
|
|
2018-01-20 21:35:38 +01:00
|
|
|
.main-nav-link svg {
|
2018-01-13 08:24:05 +01:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
display: inline-block;
|
|
|
|
fill: var(--nav-svg-fill);
|
|
|
|
}
|
|
|
|
|
2018-01-20 21:35:38 +01:00
|
|
|
.main-nav-link span {
|
2018-01-13 08:24:05 +01:00
|
|
|
font-size: 16px;
|
|
|
|
color: var(--nav-text-color);
|
|
|
|
padding-left: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 767px) {
|
2018-01-20 21:35:38 +01:00
|
|
|
.main-nav-link span {
|
2018-01-13 08:24:05 +01:00
|
|
|
display: none;
|
|
|
|
}
|
2018-01-20 21:35:38 +01:00
|
|
|
.main-nav-link svg {
|
2018-01-13 08:24:05 +01:00
|
|
|
width: 25px;
|
|
|
|
height: 25px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
</script>
|