moving the link to the section index page inside the submenu in the mobile menu (#978)

This commit is contained in:
trean
2024-06-25 20:20:11 +02:00
committed by GitHub
parent 43c889bef7
commit 1d8da0490a
2 changed files with 20 additions and 7 deletions
@@ -136,6 +136,16 @@
height: rem(16);
width: rem(16);
}
&__section-link {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
margin-bottom: rem(4);
text-transform: uppercase;
a {
line-height: $font-size-s;
}
}
}
.menu-mobile__item--active {
@@ -8,17 +8,20 @@
{{ range .Params.menuItems }}
<li class="menu-mobile__item" data-path="{{ .id }}">
<div class="menu-mobile__item-content">
{{ if .url }}
<a href="{{ .url }}">{{ .name }}</a>
{{ else }}
{{ .name }}
{{ end }}
{{ .name }}
{{ if .subMenuItems }}
<button type="button" class="menu-mobile__expand">{{ partial "svg" "arrow-sm-down.svg" }}</button>
{{ end }}
</div>
{{ if .subMenuItems }}
<ul class="menu-mobile__subitems">
{{ if .url }}
<li class="menu-mobile__section-link">
<a class="link link_neutral link_sm" href="{{ .url }}">
{{ .name }}
</a>
</li>
{{ end }}
{{ range .subMenuItems }}
<a href="{{ .url }}">
<li class="menu-mobile__subitem">
@@ -34,9 +37,9 @@
</ul>
<div class="menu-mobile__controls">
<a href="{{ .Params.logIn.url }}" class="button button_outlined button_lg menu-mobile__login"
>{{ .Params.logIn.text }}</a>
>{{ .Params.logIn.text }}</a
>
<a href="{{ .Params.startFree.url }}" class="button button_contained button_lg">{{ .Params.startFree.text }}</a>
</div>
</div>
{{ end }}