From: Jeremy Thomas Date: Wed, 30 Aug 2017 21:33:52 +0000 (+0100) Subject: Textarea snippets X-Git-Tag: 0.5.2~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51866c41828a80db3a09b9bde18d1e97bb3d2206;p=thirdparty%2Fbulma.git Textarea snippets --- diff --git a/docs/_includes/snippet.html b/docs/_includes/snippet.html index fc8907752..20ebe4961 100644 --- a/docs/_includes/snippet.html +++ b/docs/_includes/snippet.html @@ -1,13 +1,26 @@ -
-
- {{ include.content }} +{% if include.plain %} +
+
+
+ {{ include.content }} +
+
+
+ {% highlight html %}{{ include.content }}{% endhighlight %} +
-
- {% highlight html %}{{ include.content }}{% endhighlight %} +{% else %} +
+
+ {{ include.content }} +
+
+ {% highlight html %}{{ include.content }}{% endhighlight %} +
-
+{% endif %} diff --git a/docs/documentation/form/textarea.html b/docs/documentation/form/textarea.html index 3998f39ad..937af7fe2 100644 --- a/docs/documentation/form/textarea.html +++ b/docs/documentation/form/textarea.html @@ -134,23 +134,7 @@ doc-subtab: textarea
-
-

The following modifiers are supported:

- -
- -
-
- {{textarea_example}} -
-
- {% highlight html %}{{textarea_example}}{% endhighlight %} -
-
+ {% include snippet.html content=textarea_example %}

@@ -162,79 +146,33 @@ doc-subtab: textarea

-
-
- {{textarea_rows_example}} -
-
- {% highlight html %}{{textarea_rows_example}}{% endhighlight %} -
-
+ {% include snippet.html content=textarea_rows_example %} {% include anchor.html name="Colors" %} -
-
- {{colors_example}} -
-
- {% highlight html %}{{colors_example}}{% endhighlight %} -
-
+ {% include snippet.html content=colors_example %} {% include anchor.html name="Sizes" %} -
-
- {{sizes_example}} -
-
- {% highlight html %}{{sizes_example}}{% endhighlight %} -
-
+ {% include snippet.html content=sizes_example %} -
+ {% include anchor.html name="States" %} -

States

Normal

-
-
- {{normal_example}} -
-
- {% highlight html %}{{normal_example}}{% endhighlight %} -
-
+ + {% include snippet.html content=normal_example %}

Hover

-
-
- {{hover_example}} -
-
- {% highlight html %}{{hover_example}}{% endhighlight %} -
-
+ + {% include snippet.html content=hover_example %}

Focus

-
-
- {{focus_example}} -
-
- {% highlight html %}{{focus_example}}{% endhighlight %} -
-
+ + {% include snippet.html content=focus_example %}

Loading

-
-
- {{loading_example}} -
-
- {% highlight html %}{{loading_example}}{% endhighlight %} -
-
+ + {% include snippet.html content=loading_example %} {% if site.vernum >= 43 %}
@@ -257,14 +195,8 @@ doc-subtab: textarea {% endif %}

Disabled

-
-
- {{disabled_example}} -
-
- {% highlight html %}{{disabled_example}}{% endhighlight %} -
-
+ + {% include snippet.html content=disabled_example %}