bulma/docs/_includes/navbar.html

179 lines
6.9 KiB
HTML
Raw Normal View History

2017-07-02 15:52:20 +00:00
<nav class="navbar {% if include.transparent %}is-transparent{% endif %}">
<div class="navbar-brand">
<a class="navbar-item" href="{{ site.url }}">
<img src="{{ site.url }}/images/bulma-logo.png" alt="{{ site.title }}" width="112" height="28">
</a>
2017-06-30 21:34:13 +00:00
2017-07-02 15:52:20 +00:00
<a class="navbar-item is-hidden-desktop" href="{{ site.github }}" target="_blank">
<span class="icon" style="color: #333;">
<i class="fa fa-github"></i>
</span>
</a>
2017-06-30 21:34:13 +00:00
2017-07-02 15:52:20 +00:00
<a class="navbar-item is-hidden-desktop" href="{{ site.twitter }}" target="_blank">
<span class="icon" style="color: #55acee;">
<i class="fa fa-twitter"></i>
</span>
</a>
2017-06-30 21:34:13 +00:00
2017-07-02 16:34:44 +00:00
<div class="navbar-burger burger" data-target="navMenu{{ include.id }}">
2017-07-02 15:52:20 +00:00
<span></span>
<span></span>
<span></span>
2017-06-30 21:34:13 +00:00
</div>
2017-07-02 15:52:20 +00:00
</div>
2017-06-30 21:34:13 +00:00
2017-07-02 16:34:44 +00:00
<div id="navMenu{{ include.id }}" class="navbar-menu">
2017-07-02 15:52:20 +00:00
<div class="navbar-start">
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link {% if page.route == 'documentation' %}is-active{% endif %} {% if page.layout == 'documentation' %}is-active{% endif %}" href="{{ site.documentation }}">
Docs
2017-06-30 21:34:13 +00:00
</a>
2017-07-02 15:52:20 +00:00
<div class="navbar-dropdown {% if include.boxed %}is-boxed{% endif %}">
<a class="navbar-item {% if page.doc-tab == 'overview' %}is-active{% endif %}" href="{{ site.documentation }}">
Overview
2017-06-30 21:34:13 +00:00
</a>
2017-07-02 15:52:20 +00:00
<a class="navbar-item {% if page.doc-tab == 'modifiers' %}is-active{% endif %}" href="{{ site.url }}/documentation/modifiers/syntax/">
Modifiers
</a>
<a class="navbar-item {% if page.doc-tab == 'grid' %}is-active{% endif %}" href="{{ site.url }}/documentation/grid/columns/">
Grid
</a>
2017-07-17 18:17:57 +00:00
<a class="navbar-item {% if page.doc-tab == 'form' %}is-active{% endif %}" href="{{ site.url }}/documentation/form/general/">
Form
</a>
2017-07-02 15:52:20 +00:00
<a class="navbar-item {% if page.doc-tab == 'elements' %}is-active{% endif %}" href="{{ site.url }}/documentation/elements/box/">
Elements
</a>
2017-07-05 20:14:30 +00:00
{% if site.vernum >= 43 %}
2017-07-02 23:17:42 +00:00
<a class="navbar-item {% if page.doc-tab == 'components' %}is-active{% endif %}" href="{{ site.url }}/documentation/components/breadcrumb/">
Components
</a>
{% else %}
<a class="navbar-item {% if page.doc-tab == 'components' %}is-active{% endif %}" href="{{ site.url }}/documentation/components/card/">
Components
</a>
{% endif %}
2017-07-02 15:52:20 +00:00
<a class="navbar-item {% if page.doc-tab == 'layout' %}is-active{% endif %}" href="{{ site.url }}/documentation/layout/container/">
Layout
</a>
<hr class="navbar-divider">
<div class="navbar-item">
2017-07-24 13:44:24 +00:00
<div>
2017-07-29 16:58:13 +00:00
<p class="is-size-6-desktop">
<strong class="has-text-info">{{ site.version }}</strong>
</p>
2017-07-24 13:44:24 +00:00
{{#unless site.deprecated}}
<small>
<a class="view-all-versions" href="/versions">View all versions</a>
</small>
{{/unless}}
</div>
2017-06-30 21:34:13 +00:00
</div>
</div>
2017-07-02 15:52:20 +00:00
</div>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link {% if page.route == 'blog' %}is-active{% endif %}" href="{{ site.url }}/blog/">
Blog
</a>
<div id="blogDropdown" class="navbar-dropdown {% if include.boxed %}is-boxed{% endif %}" data-style="width: 18rem;">
{% for post in site.posts limit:3 %}
<a class="navbar-item" href="{{ post.url }}">
2017-07-01 17:30:39 +00:00
<div class="navbar-content">
2017-07-02 15:52:20 +00:00
<p>
2017-07-02 22:20:04 +00:00
<small class="has-text-info">{{ post.date | date_to_string }}</small>
2017-07-02 15:52:20 +00:00
</p>
<p>{{ post.title }}</p>
</div>
</a>
{% endfor %}
<a class="navbar-item" href="{{ site.url }}/blog/">
More posts
</a>
<hr class="navbar-divider">
<div class="navbar-item">
<div class="navbar-content">
<div class="level is-mobile">
<div class="level-left">
<div class="level-item">
<strong>Stay up to date!</strong>
2017-06-30 21:34:13 +00:00
</div>
2017-07-02 15:52:20 +00:00
</div>
<div class="level-right">
<div class="level-item">
<a class="button is-rss is-small" href="{{ site.url }}/atom.xml">
<span class="icon is-small">
<i class="fa fa-rss"></i>
</span>
<span>Subscribe</span>
</a>
2017-06-30 21:34:13 +00:00
</div>
</div>
</div>
</div>
</div>
</div>
</div>
2017-07-19 21:52:22 +00:00
<div class="navbar-item has-dropdown is-hoverable">
<div class="navbar-link">
More
</div>
<div id="moreDropdown" class="navbar-dropdown {% if include.boxed %}is-boxed{% endif %}">
<a class="navbar-item {% if page.route == 'extensions' %}is-active{% endif %}" href="{{ site.url }}/extensions/">
<div class="level is-mobile">
<div class="level-left">
<div class="level-item">
<p>
<strong>Extensions</strong>
<br>
<small>Side projects to enhance Bulma</small>
</p>
</div>
</div>
<div class="level-right">
<div class="level-item">
<span class="icon has-text-info">
<i class="fa fa-plug"></i>
</span>
</div>
</div>
</div>
</a>
</div>
</div>
2017-07-30 21:27:54 +00:00
<a class="navbar-item {% if page.route == 'expo' %}is-active{% endif %}" href="{{ site.url }}/expo/">
<span class="emoji">🎨</span>
Expo
</a>
2017-07-30 17:22:13 +00:00
<a class="navbar-item {% if page.route == 'love' %}is-active{% endif %}" href="{{ site.url }}/love/">
<span class="emoji">❤️</span>
Love
</a>
2017-07-02 15:52:20 +00:00
</div>
2017-06-30 21:34:13 +00:00
2017-07-02 15:52:20 +00:00
<div class="navbar-end">
2017-07-30 21:27:54 +00:00
<a class="navbar-item is-hidden-desktop-only" href="{{ site.github }}" target="_blank">
2017-07-02 15:52:20 +00:00
Github
</a>
2017-07-30 21:27:54 +00:00
<a class="navbar-item is-hidden-desktop-only" href="{{ site.twitter }}" target="_blank">
2017-07-02 15:52:20 +00:00
Twitter
</a>
<div class="navbar-item">
<div class="field is-grouped">
<p class="control">
2017-07-30 17:22:13 +00:00
{% include elements/tw-button.html label="Tweet" %}
2017-07-02 15:52:20 +00:00
</p>
<p class="control">
<a class="button is-primary" href="{{ site.download }}">
<span class="icon">
<i class="fa fa-download"></i>
</span>
<span>Download</span>
</a>
</p>
2017-06-30 21:34:13 +00:00
</div>
</div>
</div>
2017-07-02 15:52:20 +00:00
</div>
</nav>