2016-09-11 11:00:49 +00:00
|
|
|
---
|
2017-07-29 12:02:00 +00:00
|
|
|
title: Modifiers syntax
|
2016-09-11 11:00:49 +00:00
|
|
|
layout: documentation
|
|
|
|
doc-tab: modifiers
|
|
|
|
doc-subtab: syntax
|
2018-04-09 16:11:24 +00:00
|
|
|
breadcrumb:
|
|
|
|
- home
|
|
|
|
- documentation
|
|
|
|
- modifiers
|
|
|
|
- modifiers-syntax
|
2016-09-11 11:00:49 +00:00
|
|
|
---
|
|
|
|
|
2017-10-09 14:38:12 +00:00
|
|
|
{% capture button_example %}
|
|
|
|
<a class="button">
|
|
|
|
Button
|
|
|
|
</a>
|
|
|
|
{% endcapture %}
|
|
|
|
|
|
|
|
{% capture button_primary_example %}
|
|
|
|
<a class="button is-primary">
|
|
|
|
Button
|
|
|
|
</a>
|
|
|
|
{% endcapture %}
|
|
|
|
|
2018-04-09 16:11:24 +00:00
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<p>Let's start with a simple <strong>button</strong> that uses the <code>"button"</code> CSS class:</p>
|
|
|
|
</div>
|
|
|
|
<div class="column">
|
|
|
|
<p>
|
|
|
|
{{button_example}}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="column is-half">
|
|
|
|
{% highlight html %}{{button_example}}{% endhighlight %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<p>By <strong>adding</strong> the <code>"is-primary"</code> CSS class, you can modify the <strong>color</strong>:</p>
|
|
|
|
</div>
|
|
|
|
<div class="column">
|
|
|
|
<p>
|
|
|
|
{{button_primary_example}}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="column is-half">
|
|
|
|
{% highlight html %}{{button_primary_example}}{% endhighlight %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<div class="content">
|
|
|
|
<p>You can use one of the <strong>6 main colors</strong>:</p>
|
|
|
|
<ul>
|
|
|
|
<li><code>is-primary</code></li>
|
|
|
|
<li><code>is-link</code></li>
|
|
|
|
<li><code>is-info</code></li>
|
|
|
|
<li><code>is-success</code></li>
|
|
|
|
<li><code>is-warning</code></li>
|
|
|
|
<li><code>is-danger</code></li>
|
|
|
|
</ul>
|
2016-09-11 11:00:49 +00:00
|
|
|
</div>
|
2018-04-09 16:11:24 +00:00
|
|
|
</div>
|
|
|
|
<div class="column">
|
|
|
|
<p class="field">
|
|
|
|
<a class="button is-primary">Button</a>
|
|
|
|
</p>
|
|
|
|
<p class="field">
|
|
|
|
<a class="button is-link">Button</a>
|
|
|
|
</p>
|
|
|
|
<p class="field">
|
|
|
|
<a class="button is-info">Button</a>
|
|
|
|
</p>
|
|
|
|
<p class="field">
|
|
|
|
<a class="button is-success">Button</a>
|
|
|
|
</p>
|
|
|
|
<p class="field">
|
|
|
|
<a class="button is-warning">Button</a>
|
|
|
|
</p>
|
|
|
|
<p class="field">
|
|
|
|
<a class="button is-danger">Button</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="column is-half">
|
|
|
|
<div class="highlight-full">
|
2016-09-11 11:00:49 +00:00
|
|
|
{% highlight html %}
|
|
|
|
<a class="button is-primary">
|
|
|
|
Button
|
|
|
|
</a>
|
2017-11-02 09:52:17 +00:00
|
|
|
<a class="button is-link">
|
|
|
|
Button
|
|
|
|
</a>
|
2016-09-11 11:00:49 +00:00
|
|
|
<a class="button is-info">
|
|
|
|
Button
|
|
|
|
</a>
|
|
|
|
<a class="button is-success">
|
|
|
|
Button
|
|
|
|
</a>
|
|
|
|
<a class="button is-warning">
|
|
|
|
Button
|
|
|
|
</a>
|
|
|
|
<a class="button is-danger">
|
|
|
|
Button
|
|
|
|
</a>
|
|
|
|
{% endhighlight %}
|
|
|
|
</div>
|
2018-04-09 16:11:24 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<div class="content">
|
|
|
|
<p>You can also alter the <strong>size</strong>:</p>
|
|
|
|
<ul>
|
|
|
|
<li><code>is-small</code></li>
|
|
|
|
<li><code>is-medium</code></li>
|
|
|
|
<li><code>is-large</code></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="column">
|
|
|
|
<p class="field">
|
|
|
|
<a class="button is-small">Button</a>
|
|
|
|
</p>
|
|
|
|
<p class="field">
|
|
|
|
<a class="button">Button</a>
|
|
|
|
</p>
|
|
|
|
<p class="field">
|
|
|
|
<a class="button is-medium">Button</a>
|
|
|
|
</p>
|
|
|
|
<p class="field">
|
|
|
|
<a class="button is-large">Button</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="column is-half">
|
2016-09-11 11:00:49 +00:00
|
|
|
{% highlight html %}
|
2016-12-23 12:13:50 +00:00
|
|
|
<a class="button is-small">
|
|
|
|
Button
|
|
|
|
</a>
|
|
|
|
<a class="button">
|
|
|
|
Button
|
|
|
|
</a>
|
|
|
|
<a class="button is-medium">
|
|
|
|
Button
|
|
|
|
</a>
|
|
|
|
<a class="button is-large">
|
|
|
|
Button
|
|
|
|
</a>
|
2016-09-11 11:00:49 +00:00
|
|
|
{% endhighlight %}
|
|
|
|
</div>
|
2018-04-09 16:11:24 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<div class="content">
|
|
|
|
<p>Or the <strong>style</strong> or <strong>state</strong>:</p>
|
|
|
|
<ul>
|
|
|
|
<li><code>is-outlined</code></li>
|
|
|
|
<li><code>is-loading</code></li>
|
|
|
|
<li><code>[disabled]</code></li>
|
|
|
|
</ul>
|
2016-09-11 11:00:49 +00:00
|
|
|
</div>
|
2018-04-09 16:11:24 +00:00
|
|
|
</div>
|
|
|
|
<div class="column">
|
|
|
|
<p class="field">
|
|
|
|
<a class="button is-primary is-outlined">Button</a>
|
|
|
|
</p>
|
|
|
|
<p class="field">
|
|
|
|
<a class="button is-primary is-loading">Button</a>
|
|
|
|
</p>
|
|
|
|
<p class="field">
|
|
|
|
<a class="button is-primary" disabled>Button</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="column is-half">
|
2016-09-11 11:00:49 +00:00
|
|
|
{% highlight html %}
|
|
|
|
<a class="button is-primary is-outlined">
|
|
|
|
Button
|
|
|
|
</a>
|
|
|
|
<a class="button is-primary is-loading">
|
|
|
|
Button
|
|
|
|
</a>
|
2017-03-31 21:36:47 +00:00
|
|
|
<a class="button is-primary" disabled>
|
2016-09-11 11:00:49 +00:00
|
|
|
Button
|
|
|
|
</a>
|
|
|
|
{% endhighlight %}
|
|
|
|
</div>
|
2018-04-09 16:11:24 +00:00
|
|
|
</div>
|