-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b6b22d
commit 6f54e25
Showing
3 changed files
with
94 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
.multi-version { | ||
font-size: var(--sidebar-item-font-size); | ||
border-top: 1px solid var(--color-background-border); | ||
margin-bottom: 1em; | ||
} | ||
|
||
.multi-version summary { | ||
color: var(--color-sidebar-caption-text); | ||
font-size: var(--sidebar-caption-font-size); | ||
font-weight: 700; | ||
text-transform: uppercase; | ||
|
||
margin: 0; | ||
padding: var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal); | ||
} | ||
|
||
.multi-version ul { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
|
||
list-style: none; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.multi-version ul a { | ||
box-sizing: border-box; | ||
display: inline-block; | ||
height: 100%; | ||
line-height: var(--sidebar-item-line-height); | ||
overflow-wrap: anywhere; | ||
padding: var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal); | ||
text-decoration: none; | ||
width: 100%; | ||
} | ||
|
||
.multi-version summary:hover, | ||
.multi-version ul a:hover { | ||
background: var(--color-background-hover); | ||
} | ||
|
||
.multi-version ul a.current { | ||
font-weight: 700; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% if versions %} | ||
<div class="multi-version"> | ||
<details> | ||
<summary>{{ _('Versions') }}:</summary> | ||
<ul> | ||
{%- for item in versions %} | ||
<li> | ||
{% if item.current %} | ||
<a href="{{ item.url }}" class="current">{{ item.name }}</a> | ||
{% else %} | ||
<a href="{{ item.url }}">{{ item.name }}</a> | ||
{% endif %} | ||
</li> | ||
{%- endfor %} | ||
</ul> | ||
</details> | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters