mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
Textarea snippets
This commit is contained in:
parent
695c72c6a9
commit
51866c4182
@ -1,13 +1,26 @@
|
|||||||
<div class="
|
{% if include.plain %}
|
||||||
bd-snippet
|
<div class="columns">
|
||||||
{% if include.horizontal %}bd-is-horizontal{% else %}bd-is-vertical{% endif %}
|
<div class="column is-half">
|
||||||
{% if include.clipped %}bd-is-clipped{% endif %}
|
<div class="bd-example">
|
||||||
{% if include.size %}bd-is-{{ include.size }}{% endif %}
|
{{ include.content }}
|
||||||
">
|
</div>
|
||||||
<div class="bd-snippet-preview">
|
</div>
|
||||||
{{ include.content }}
|
<div class="column is-half">
|
||||||
|
{% highlight html %}{{ include.content }}{% endhighlight %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bd-snippet-code {% unless include.clipped %}highlight-full{% endunless %}">
|
{% else %}
|
||||||
{% highlight html %}{{ include.content }}{% endhighlight %}
|
<div class="
|
||||||
|
bd-snippet
|
||||||
|
{% if include.horizontal %}bd-is-horizontal{% else %}bd-is-vertical{% endif %}
|
||||||
|
{% if include.clipped %}bd-is-clipped{% 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 %}">
|
||||||
|
{% highlight html %}{{ include.content }}{% endhighlight %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% endif %}
|
||||||
|
@ -134,23 +134,7 @@ doc-subtab: textarea
|
|||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<div class="content">
|
{% include snippet.html content=textarea_example %}
|
||||||
<p>The following <strong>modifiers</strong> are supported:</p>
|
|
||||||
<ul>
|
|
||||||
<li>the <strong><a href="#input-color">color</a></strong></li>
|
|
||||||
<li>the <strong><a href="#input-size">size</a></strong></li>
|
|
||||||
<li>the <strong><a href="#input-state">state</a></strong></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="columns">
|
|
||||||
<div class="column is-half">
|
|
||||||
{{textarea_example}}
|
|
||||||
</div>
|
|
||||||
<div class="column is-half highlight-full">
|
|
||||||
{% highlight html %}{{textarea_example}}{% endhighlight %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>
|
<p>
|
||||||
@ -162,79 +146,33 @@ doc-subtab: textarea
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="columns">
|
{% include snippet.html content=textarea_rows_example %}
|
||||||
<div class="column is-half">
|
|
||||||
{{textarea_rows_example}}
|
|
||||||
</div>
|
|
||||||
<div class="column is-half highlight-full">
|
|
||||||
{% highlight html %}{{textarea_rows_example}}{% endhighlight %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% include anchor.html name="Colors" %}
|
{% include anchor.html name="Colors" %}
|
||||||
|
|
||||||
<div class="columns">
|
{% include snippet.html content=colors_example %}
|
||||||
<div class="column is-half">
|
|
||||||
{{colors_example}}
|
|
||||||
</div>
|
|
||||||
<div class="column is-half highlight-full">
|
|
||||||
{% highlight html %}{{colors_example}}{% endhighlight %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% include anchor.html name="Sizes" %}
|
{% include anchor.html name="Sizes" %}
|
||||||
|
|
||||||
<div class="columns">
|
{% include snippet.html content=sizes_example %}
|
||||||
<div class="column is-half">
|
|
||||||
{{sizes_example}}
|
|
||||||
</div>
|
|
||||||
<div class="column is-half highlight-full">
|
|
||||||
{% highlight html %}{{sizes_example}}{% endhighlight %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<hr>
|
{% include anchor.html name="States" %}
|
||||||
|
|
||||||
<h3 id="input-state" class="title">States</h3>
|
|
||||||
<h4 class="subtitle">Normal</h4>
|
<h4 class="subtitle">Normal</h4>
|
||||||
<div class="columns">
|
|
||||||
<div class="column is-half">
|
{% include snippet.html content=normal_example %}
|
||||||
{{normal_example}}
|
|
||||||
</div>
|
|
||||||
<div class="column is-half">
|
|
||||||
{% highlight html %}{{normal_example}}{% endhighlight %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h4 class="subtitle">Hover</h4>
|
<h4 class="subtitle">Hover</h4>
|
||||||
<div class="columns">
|
|
||||||
<div class="column is-half">
|
{% include snippet.html content=hover_example %}
|
||||||
{{hover_example}}
|
|
||||||
</div>
|
|
||||||
<div class="column is-half">
|
|
||||||
{% highlight html %}{{hover_example}}{% endhighlight %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h4 class="subtitle">Focus</h4>
|
<h4 class="subtitle">Focus</h4>
|
||||||
<div class="columns">
|
|
||||||
<div class="column is-half">
|
{% include snippet.html content=focus_example %}
|
||||||
{{focus_example}}
|
|
||||||
</div>
|
|
||||||
<div class="column is-half">
|
|
||||||
{% highlight html %}{{focus_example}}{% endhighlight %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h4 class="subtitle">Loading</h4>
|
<h4 class="subtitle">Loading</h4>
|
||||||
<div class="columns">
|
|
||||||
<div class="column is-half">
|
{% include snippet.html content=loading_example %}
|
||||||
{{loading_example}}
|
|
||||||
</div>
|
|
||||||
<div class="column is-half">
|
|
||||||
{% highlight html %}{{loading_example}}{% endhighlight %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if site.vernum >= 43 %}
|
{% if site.vernum >= 43 %}
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
@ -257,14 +195,8 @@ doc-subtab: textarea
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<h4 class="subtitle">Disabled</h4>
|
<h4 class="subtitle">Disabled</h4>
|
||||||
<div class="columns">
|
|
||||||
<div class="column is-half">
|
{% include snippet.html content=disabled_example %}
|
||||||
{{disabled_example}}
|
|
||||||
</div>
|
|
||||||
<div class="column is-half">
|
|
||||||
{% highlight html %}{{disabled_example}}{% endhighlight %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
Loading…
Reference in New Issue
Block a user