This commit is contained in:
Jeremy Thomas 2017-12-04 21:03:01 +00:00
parent 1fa3bc806d
commit 6176c2c9f5
7 changed files with 49 additions and 72 deletions

View File

@ -13,6 +13,7 @@
### Bug fixes ### Bug fixes
* #1456 Fix customize documentation * #1456 Fix customize documentation
* #1190 Add `$variable-columns` to disable `--columnGap`
## 0.6.2 ## 0.6.2

View File

@ -221,10 +221,20 @@
"name": "$radius-large", "name": "$radius-large",
"value": "5px" "value": "5px"
}, },
"radius-rounded": {
"id": "radius-rounded",
"name": "$radius-rounded",
"value": "290486px"
},
"speed": { "speed": {
"id": "speed", "id": "speed",
"name": "$speed", "name": "$speed",
"value": "86ms" "value": "86ms"
},
"variable-columns": {
"id": "variable-columns",
"name": "$variable-columns",
"value": "true"
} }
} }
} }

View File

@ -9,29 +9,29 @@
{% assign table_class = include.table_class | default: 'is-bordered' %} {% assign table_class = include.table_class | default: 'is-bordered' %}
{% if include.custom_message %} {% if include.custom_message %}
{{ include.custom_message }} {{ include.custom_message }}
{% else %} {% else %}
{% assign variables_link_text = "these variables" %} {% assign variables_link_text = "these variables" %}
{% capture variables_link %} {% capture variables_link %}
{% if data.file_url %} {% if data.file_url %}
<a href="{{ data.file_url }}" target="_blank">{{ variables_link_text }}</a> <a href="{{ data.file_url }}" target="_blank">{{ variables_link_text }}</a>
{% else %} {% else %}
{{ variables_link_text }} {{ variables_link_text }}
{% endif %} {% endif %}
{% endcapture %} {% endcapture %}
You can use {{ variables_link | strip }} to <strong>customize</strong> this {{ type }}. Simply set one or multiple of these variables <em>before</em> importing Bulma. <a href="{{ site.url }}/documentation/overview/customize/">Learn how</a>. You can use {{ variables_link | strip }} to <strong>customize</strong> this {{ type }}. Simply set one or multiple of these variables <em>before</em> importing Bulma. <a href="{{ site.url }}/documentation/overview/customize/">Learn how</a>.
{% endif %} {% endif %}
{% endcapture %} {% endcapture %}
@ -59,8 +59,8 @@
{% for variable_hash in variables %} {% for variable_hash in variables %}
{% assign variable = variable_hash[1] %} {% assign variable = variable_hash[1] %}
<tr> <tr>
<td> <td >
<code>{{ variable.name }}</code> <code style="white-space: nowrap;">{{ variable.name }}</code>
</td> </td>
<td> <td>
<code>{{ variable.value }}</code> <code>{{ variable.value }}</code>

View File

@ -9597,53 +9597,6 @@ label.panel-block:hover {
} }
} }
.columns.is-variable {
--columnGap: 0.75rem;
margin-left: calc(-1 * var(--columnGap));
margin-right: calc(-1 * var(--columnGap));
}
.columns.is-variable .column {
padding-left: var(--columnGap);
padding-right: var(--columnGap);
}
.columns.is-variable.is-0 {
--columnGap: 0rem;
}
.columns.is-variable.is-1 {
--columnGap: 0.25rem;
}
.columns.is-variable.is-2 {
--columnGap: 0.5rem;
}
.columns.is-variable.is-3 {
--columnGap: 0.75rem;
}
.columns.is-variable.is-4 {
--columnGap: 1rem;
}
.columns.is-variable.is-5 {
--columnGap: 1.25rem;
}
.columns.is-variable.is-6 {
--columnGap: 1.5rem;
}
.columns.is-variable.is-7 {
--columnGap: 1.75rem;
}
.columns.is-variable.is-8 {
--columnGap: 2rem;
}
.tile { .tile {
-webkit-box-align: stretch; -webkit-box-align: stretch;
-ms-flex-align: stretch; -ms-flex-align: stretch;

View File

@ -209,5 +209,13 @@ doc-subtab: gap
</div> </div>
</div> </div>
<div class="message is-info">
<div class="message-body">
<p>
If your Sass setup doesn't support CSS Variables, you can <strong>disable this feature</strong> by setting <code>$variable-columns</code> to <code>false</code>.
</p>
</div>
</div>
</div> </div>
</section> </section>

View File

@ -464,13 +464,14 @@ $column-gap: 0.75rem !default
&.is-desktop &.is-desktop
display: flex display: flex
.columns.is-variable @if $variable-columns
--columnGap: 0.75rem .columns.is-variable
margin-left: calc(-1 * var(--columnGap)) --columnGap: 0.75rem
margin-right: calc(-1 * var(--columnGap)) margin-left: calc(-1 * var(--columnGap))
.column margin-right: calc(-1 * var(--columnGap))
padding-left: var(--columnGap) .column
padding-right: var(--columnGap) padding-left: var(--columnGap)
@for $i from 0 through 8 padding-right: var(--columnGap)
&.is-#{$i} @for $i from 0 through 8
--columnGap: #{$i * 0.25rem} &.is-#{$i}
--columnGap: #{$i * 0.25rem}

View File

@ -64,3 +64,7 @@ $radius: 3px !default
$radius-large: 5px !default $radius-large: 5px !default
$radius-rounded: 290486px !default $radius-rounded: 290486px !default
$speed: 86ms !default $speed: 86ms !default
// Flags
$variable-columns: false !default