Add lots of snippets

This commit is contained in:
Jeremy Thomas
2017-08-30 21:33:49 +01:00
parent 08e082ae07
commit 3b0cb2ad4e
11 changed files with 107 additions and 226 deletions

View File

@@ -1,8 +1,12 @@
<div class="bd-snippet">
<div class="
bd-snippet
{% if include.horizontal %}bd-is-horizontal{% else %}bd-is-vertical{% endif %}
{% if include.size %}bd-is-{{ include.size }}{% endif %}
">
<div class="bd-snippet-preview">
{{ include.content }}
</div>
<div class="bd-snippet-code {%unless include.clipped %}highlight-full{% endunless %}">
<div class="bd-snippet-code {% unless include.clipped %}highlight-full{% endunless %}">
{% highlight html %}{{ include.content }}{% endhighlight %}
</div>
</div>

View File

@@ -1,21 +1,14 @@
<nav class="navbar has-shadow">
<div class="container is-fullhd">
<div class="container">
<div class="navbar-brand">
{% if site.vernum >= 43 %}
<a class="navbar-item is-tab {% if page.doc-subtab == 'breadcrumb' %}is-active{% endif %}" href="{{ site.url }}/documentation/components/breadcrumb/">
Breadcrumb
</a>
{% endif %}
<a class="navbar-item is-tab {% if page.doc-subtab == 'breadcrumb' %}is-active{% endif %}" href="{{ site.url }}/documentation/components/breadcrumb/">
Breadcrumb
</a>
<a class="navbar-item is-tab {% if page.doc-subtab == 'card' %}is-active{% endif %}" href="{{ site.url }}/documentation/components/card/">
Card
</a>
{% if site.vernum >= 44 %}
<a class="navbar-item is-tab {% if page.doc-subtab == 'dropdown' %}is-active{% endif %}" href="{{ site.url }}/documentation/components/dropdown/">
Dropdown
</a>
{% endif %}
<a class="navbar-item is-tab {% if page.doc-subtab == 'media-object' %}is-active{% endif %}" href="{{ site.url }}/documentation/components/media-object/">
Media object
<a class="navbar-item is-tab {% if page.doc-subtab == 'dropdown' %}is-active{% endif %}" href="{{ site.url }}/documentation/components/dropdown/">
Dropdown
</a>
<a class="navbar-item is-tab {% if page.doc-subtab == 'menu' %}is-active{% endif %}" href="{{ site.url }}/documentation/components/menu/">
Menu
@@ -26,15 +19,9 @@
<a class="navbar-item is-tab {% if page.doc-subtab == 'modal' %}is-active{% endif %}" href="{{ site.url }}/documentation/components/modal/">
Modal
</a>
{% if site.vernum >= 43 %}
<a class="navbar-item is-tab {% if page.doc-subtab == 'navbar' %}is-active{% endif %}" href="{{ site.url }}/documentation/components/navbar/">
Navbar
</a>
{% else %}
<a class="navbar-item is-tab {% if page.doc-subtab == 'nav' %}is-active{% endif %}" href="{{ site.url }}/documentation/components/nav/">
Nav
</a>
{% endif %}
<a class="navbar-item is-tab {% if page.doc-subtab == 'navbar' %}is-active{% endif %}" href="{{ site.url }}/documentation/components/navbar/">
Navbar
</a>
<a class="navbar-item is-tab {% if page.doc-subtab == 'pagination' %}is-active{% endif %}" href="{{ site.url }}/documentation/components/pagination/">
Pagination
</a>