Summary Files Commits Branches @commit @diff @stats
path: root / docs / src / components
diff options
context:
space:
mode:
Commit2513e31f732794e54f62edaf3fde9fe5ab129dfe (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2018-12-23 14:05:04 +0800
Committer
 GitHub <noreply@github.com>
2018-12-23 14:05:04 +0800
Files9726dd318fa7f01d939ece804aad28fc5661e700 /docs/src/components
Spectre-Dark-Gruvbox-2513e31f732794e54f62edaf3fde9fe5ab129dfe.tar
Spectre-Dark-Gruvbox-2513e31f732794e54f62edaf3fde9fe5ab129dfe.tar.gz
Spectre-Dark-Gruvbox-2513e31f732794e54f62edaf3fde9fe5ab129dfe.zip
Parentb27f43a679e259ce11d3c084f3d18c628e198924 (diff)
Parentcb542639988948295b0dd3afb36a5117b8572169 (diff)
Merge pull request #551 from picturepan2/0.5.8 v0.5.8
0.5.8
1 files changed, 21 insertions, 6 deletions
-rw-r--r--docs/src/components/menu.pug27
diff --git a/docs/src/components/menu.pug b/docs/src/components/menu.pug
index a41a4a5..e5331c0 100644
--- a/docs/src/components/menu.pug
+++ b/docs/src/components/menu.pug
@@ -23,13 +23,18 @@ block docs-content
| Steve Rogers
li.divider
li.menu-item
- .menu-badge
- label.label.label-primary 2
a.active(href="#menus")
| My profile
+ .menu-badge
+ label.form-checkbox
+ input(type="checkbox")
+ i.form-icon
+ | Public
li.menu-item
a(href="#menus")
| Settings
+ .menu-badge
+ label.label.label-primary 2
li.menu-item
a(href="#menus")
| Logout
@@ -66,7 +71,7 @@ block docs-content
| You can separate menu items with a #[code divider].
| Spectre.css does not include JavaScript code, you will need to implement your JS to interact with the menus.
p
- | Menus also have #[a(href="elements.html#forms" target="_blank") Form controls] (checkbox, radio and checkbox) support.
+ | Menus also have #[a(href="../elements/forms.html" target="_blank") Form controls] (checkbox, radio and checkbox) support.
pre.code(data-lang='HTML')
code
@@ -92,12 +97,22 @@ block docs-content
<li class="divider"></li>
<!-- menu item with badge -->
<li class="menu-item">
- <div class="menu-badge">
- <label class="label label-primary">2</label>
- </div>
<a href="#">
<i class="icon icon-link"></i> Settings
</a>
+ <div class="menu-badge">
+ <label class="label label-primary">2</label>
+ </div>
+ </li>
+
+ <li class="menu-item">
+ <a href="#">My profile</a>
+ <div class="menu-badge">
+ <label class="form-checkbox">
+ <input type="checkbox">
+ <i class="form-icon"></i> Public
+ </label>
+ </div>
</li>
</ul>