Pinned navigation

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv)
2017-10-11 20:56:32 +02:00
parent f64fa83397
commit 1b40465d6a
2 changed files with 26 additions and 1 deletions

View File

@@ -265,7 +265,7 @@ Edit entry
* The input **must** have the same value as the entry link text.
.. figure:: ../images/navigation-edit.*
:alt: Navigation entry with undo action
:alt: Editable navigation entry
:figclass: figure-with-code
.. code:: html
@@ -290,3 +290,28 @@ Edit entry
Pinned entry
=============
Every top-level entry can be `pinned` at the bottom.
* All the pinned entries can be mixed between non-pinned entries.
* All the pinned entries **must** have the ``pinned`` class.
* The **first** pinned entry **must** also have the ``first-pinned`` class.
.. figure:: ../images/navigation-pinned.png
:alt: Pinned navigation entries
:figclass: figure-with-code
.. code:: html
<ul>
<li><a href="#">Non-pinned entry</a></li>
<li><a href="#">Non-pinned entry</a></li>
<li class="pinned first-pinned">
<a href="#">Pinned entry</a>
</li>
<li class="pinned"><a href="#">Pinned entry</a></li>
<li><a href="#">Non-pinned entry</a></li>
<li><a href="#">Non-pinned entry</a></li>
<li class="pinned"><a href="#">Pinned entry</a></li>
<li class="pinned"><a href="#">Pinned entry</a></li>
</ul>

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB