mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-15 04:57:56 +00:00
docs: update the navbar versions menu
Make it hidden, by default. Unify style with other items in the navbar
(making version list horizontal, for example). Show current version next
to the caret mark that opens the menu.
(cherry picked from commit e036d26953
)
This commit is contained in:
parent
f570c5f96c
commit
c3844a63c5
1 changed files with 31 additions and 28 deletions
|
@ -1,7 +1,19 @@
|
|||
<div class="addons-wrap d-flex flex-column overflow-y-auto">
|
||||
<div class="branch">
|
||||
<dl>
|
||||
<div class="status d-flex flex-justify-between p-2">
|
||||
<div class="title p-1">
|
||||
<i class="fa fa-book"></i> {{ site.title }}
|
||||
</div>
|
||||
<div class="branch p-1">
|
||||
<span class="name">
|
||||
{{ site.version }}
|
||||
</span>
|
||||
<i class="fa fa-caret-down"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="addons d-flex flex-column height-full p-2 d-none">
|
||||
{% if site.display_version_list %}
|
||||
<div>
|
||||
<dl>
|
||||
<dt id="versions">Versions:</dt>
|
||||
|
||||
{% comment %}
|
||||
|
@ -24,18 +36,9 @@
|
|||
dt.appendChild(dd);
|
||||
}
|
||||
</script>
|
||||
{% endif %}
|
||||
</dl>
|
||||
</div>
|
||||
<div class="status d-flex flex-justify-between p-2">
|
||||
<div class="title p-1">
|
||||
<i class="fa fa-book"></i> {{ site.title }}
|
||||
</div>
|
||||
<div class="branch p-1">
|
||||
<i class="fa fa-caret-down"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="addons d-flex flex-column height-full p-2 d-none">
|
||||
{% endif %}
|
||||
{%- assign items = "github" | split: ", " -%}
|
||||
{% for item in items -%}
|
||||
{% include addons/{{ item }}.liquid %}
|
||||
|
|
Loading…
Add table
Reference in a new issue