Skip to content

Commit

Permalink
site: fixed menu item selection
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Igrychev <[email protected]>
  • Loading branch information
ToyTox authored and alexey-igrychev committed Feb 16, 2022
1 parent 949dd6e commit c707511
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/_includes/topnav.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@
{%- if folder.url.size>1 and page.url != folder.url and page.url contains folder.url
and page.url != '/installation.html' %} header__menu--item_active{% endif %}
{%- if folder.url.size<2 and page.url.size<2 %} header__menu--item_active{% endif %}
{%- comment -%}
{%- if folder.title == 'Документация' or folder.title == 'Documentation' %} header__menu--item_active{% endif %}">
{%- endcomment -%}
{%- if (folder.title == 'Документация' or folder.title == 'Documentation') %}
{%- if page.url contains 'documentation' %}
header__menu--item_active
{% endif %}
{% endif %}">
{% capture folder_url %}
{%- if folder.external_url -%}
{{- folder.external_url -}}
Expand Down
4 changes: 4 additions & 0 deletions docs/css/components/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
display: none;
}

&:last-child {
padding-right: 0;
}

@include tablets {
padding-bottom: 30px;

Expand Down

0 comments on commit c707511

Please sign in to comment.