mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
Undo, bullets & edit navigation
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
c00f12e7ca
commit
c367645bcc
@ -209,11 +209,84 @@ The opening of the menu is activated and animated by the class ``open`` on the m
|
||||
Entry bullet
|
||||
=============
|
||||
|
||||
Every entry can have a colored marker in front of it.
|
||||
We call it a `bullet`.
|
||||
|
||||
* You can **not** combine an icon with a bullet.
|
||||
* You need to use the CSS to define the bullet color.
|
||||
|
||||
.. figure:: ../images/navigation-bullet.png
|
||||
:alt: Navigation entry with bullet
|
||||
:figclass: figure-with-code
|
||||
|
||||
.. code:: html
|
||||
|
||||
<li>
|
||||
<div class="app-navigation-entry-bullet"></div>
|
||||
<a href="#">Entry with bullet</a>
|
||||
</li>
|
||||
|
||||
Undo entry
|
||||
===========
|
||||
|
||||
* Undo entries can be used on any level you want.
|
||||
* When an entry is deleted, please use the usual **7 seconds delay feedback** before final deletion.
|
||||
* Please use the sentence *Deleted XXXX* as the feedback message.
|
||||
* You need to use the ``deleted`` class to trigger the animated hide/show of the undo entry.
|
||||
|
||||
.. figure:: ../images/navigation-undo.*
|
||||
:alt: Navigation entry with undo action
|
||||
:figclass: figure-with-code
|
||||
|
||||
.. code:: html
|
||||
|
||||
<li class="deleted">
|
||||
<a href="#" class="hidden">Important entry</a>
|
||||
<div class="app-navigation-entry-utils">
|
||||
<ul>
|
||||
<li class="app-navigation-entry-utils-menu-button">
|
||||
<button class="icon-delete"></button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="app-navigation-entry-deleted">
|
||||
<div class="app-navigation-entry-deleted-description">Deleted important entry</div>
|
||||
<button class="app-navigation-entry-deleted-button icon-history" title="Undo"></button>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
Edit entry
|
||||
===========
|
||||
|
||||
* Editable entries can be used on any level you want.
|
||||
* You can replace the ``form`` by a ``div`` if you wish to do your request with JS.
|
||||
* You need to use the ``editing`` class to trigger the animated hide/show of the input.
|
||||
* You're allowed to use only one submit input. It **must** be the validation button.
|
||||
* The input **must** have the same value as the entry link text.
|
||||
|
||||
.. figure:: ../images/navigation-edit.*
|
||||
:alt: Navigation entry with undo action
|
||||
:figclass: figure-with-code
|
||||
|
||||
.. code:: html
|
||||
|
||||
<li class="editing">
|
||||
<a href="#" class="icon-folder">Folder entry</a>
|
||||
<div class="app-navigation-entry-utils">
|
||||
<ul>
|
||||
<li class="app-navigation-entry-utils-menu-button">
|
||||
<button class="icon-rename"></button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="app-navigation-entry-edit">
|
||||
<form>
|
||||
<input type="text" value="Folder entry">
|
||||
<input type="submit" value="" class="icon-close">
|
||||
<input type="submit" value="" class="icon-checkmark">
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
Pinned entry
|
||||
=============
|
||||
|
||||
BIN
developer_manual/images/navigation-bullet.png
Normal file
BIN
developer_manual/images/navigation-bullet.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.8 KiB |
BIN
developer_manual/images/navigation-edit.gif
Normal file
BIN
developer_manual/images/navigation-edit.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
BIN
developer_manual/images/navigation-edit.jpg
Normal file
BIN
developer_manual/images/navigation-edit.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.8 KiB |
BIN
developer_manual/images/navigation-undo.gif
Normal file
BIN
developer_manual/images/navigation-undo.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
BIN
developer_manual/images/navigation-undo.jpg
Normal file
BIN
developer_manual/images/navigation-undo.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
Loading…
Reference in New Issue
Block a user