Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jgthms/bulma.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Thomas <bbxdesign@gmail.com>2021-09-19 20:08:24 +0300
committerJeremy Thomas <bbxdesign@gmail.com>2021-09-20 02:36:58 +0300
commite145c9d68092e0b266cb0a31295928d316cc9ca0 (patch)
tree7d2a3f0d495591650a323eca8d6c5aa275282620
parente3eb763bfb79ee418dac924492a6b747d638ddda (diff)
Finish direction mixins
-rw-r--r--docs/_includes/elements/anchor-bis.html8
-rw-r--r--docs/_includes/index/beautified.html2
-rw-r--r--docs/_sass/components/content.scss5
-rw-r--r--docs/_sass/examples/mixins.scss138
-rw-r--r--docs/css/bulma-docs.css161
-rw-r--r--docs/documentation/utilities/mixins.html404
-rw-r--r--docs/documentation/utilities/responsive-mixins.html63
-rw-r--r--sass/utilities/mixins.sass1
8 files changed, 690 insertions, 92 deletions
diff --git a/docs/_includes/elements/anchor-bis.html b/docs/_includes/elements/anchor-bis.html
new file mode 100644
index 00000000..c22e6909
--- /dev/null
+++ b/docs/_includes/elements/anchor-bis.html
@@ -0,0 +1,8 @@
+<h4 id="{{ include.name | slugify }}" class="title is-5 is-spaced bd-anchor-title">
+ <span class="bd-anchor-name">
+ {{ include.name }}
+ </span>
+ <a class="bd-anchor-link" href="#{{ include.name | slugify }}">
+ #
+ </a>
+</h4>
diff --git a/docs/_includes/index/beautified.html b/docs/_includes/index/beautified.html
index a835ffdf..91e86dab 100644
--- a/docs/_includes/index/beautified.html
+++ b/docs/_includes/index/beautified.html
@@ -9,7 +9,7 @@
</h2>
<div class="subtitle mb-0 mt-0 has-text-grey-light is-size-4-widescreen">
- See what Bulma developers are bulding
+ See what Bulma developers are building
</div>
<a class="button bd-fat-button is-expo is-light is-size-4-widescreen" href="{{ site.data.links.by_id.expo.path }}">
diff --git a/docs/_sass/components/content.scss b/docs/_sass/components/content.scss
index 7d46166a..4d953c50 100644
--- a/docs/_sass/components/content.scss
+++ b/docs/_sass/components/content.scss
@@ -32,6 +32,11 @@
&.title {
font-size: 1.5em;
+
+ &.is-5 {
+ font-size: 1.25em;
+ margin-top: 0 !important;
+ }
}
@include until($widescreen) {
diff --git a/docs/_sass/examples/mixins.scss b/docs/_sass/examples/mixins.scss
index a328582e..07328603 100644
--- a/docs/_sass/examples/mixins.scss
+++ b/docs/_sass/examples/mixins.scss
@@ -22,3 +22,141 @@
@include fa(1rem, 2rem);
background-color: lavender;
}
+
+.bulma-overlay-mixin-parent {
+ background-image: url(https://source.unsplash.com/La2kOu2dmH4/640x320);
+ background-size: cover;
+ border-radius: 0.5em;
+ position: relative;
+ height: 11.25rem;
+ width: 20rem;
+}
+
+.bulma-overlay-mixin {
+ @include overlay(1.5rem);
+ background-color: darkorange;
+ border-radius: 0.25em;
+ color: white;
+ opacity: 0.9;
+ padding: 1em;
+}
+
+.bulma-placeholder-mixin {
+ @include placeholder {
+ color: lightblue;
+ }
+
+ border-color: hsl(195deg, 53%, 79%);
+
+ &:hover {
+ border-color: hsl(195deg, 83%, 66%);
+ }
+
+ &:focus,
+ &:active {
+ border-color: hsl(195deg, 100%, 56%) !important;
+ box-shadow: 0 0 0 0.125em hsla(195deg, 100%, 56%, 0.25) !important;
+ }
+}
+
+.bulma-clearfix-mixin {
+ @include clearfix;
+
+ img {
+ border-radius: 0.25em;
+ margin-right: 0.5em;
+ }
+}
+
+.bulma-center-mixin-parent {
+ background-image: url(https://source.unsplash.com/xo3Bd2tYeqg/640x320);
+ background-size: cover;
+ border-radius: 0.5em;
+ position: relative;
+ height: 11.25rem;
+ width: 20rem;
+}
+
+.bulma-center-mixin {
+ @include center(96px);
+ border-radius: 8px;
+ height: 96px;
+ width: 96px;
+}
+
+.bulma-reset-mixin {
+ @include reset;
+}
+
+.bulma-unselectable-mixin {
+ @include unselectable;
+}
+
+.bulma-ltr-rtl-mixin {
+ background-color: lightgreen;
+ padding: 0.5em 1em;
+ border: 1px solid seagreen;
+ margin-right: -1px;
+
+ &:first-child {
+ @include ltr {
+ border-bottom-left-radius: 0.5em;
+ border-top-left-radius: 0.5em;
+ }
+
+ @include rtl {
+ border-bottom-right-radius: 0.5em;
+ border-top-right-radius: 0.5em;
+ }
+ }
+
+ &:last-child {
+ @include ltr {
+ border-bottom-right-radius: 0.5em;
+ border-top-right-radius: 0.5em;
+ }
+
+ @include rtl {
+ border-bottom-left-radius: 0.5em;
+ border-top-left-radius: 0.5em;
+ }
+ }
+}
+
+.bulma-ltr-position-mixin-parent {
+ background-color: beige;
+ border-radius: 0.5em;
+ padding: 1rem;
+ padding-left: 5rem;
+ position: relative;
+
+ p {
+ margin-top: -0.25rem;
+ }
+}
+
+.bulma-ltr-position-mixin {
+ @include ltr-position(1rem, false);
+ border-radius: 0.25em;
+ position: absolute;
+ top: 1rem;
+}
+
+.bulma-ltr-property-mixin-parent {
+ align-items: flex-start;
+ background-color: midnightblue;
+ border-radius: 0.5em;
+ color: lightskyblue;
+ display: flex;
+ padding: 1.5rem;
+ position: relative;
+
+ p {
+ margin-top: -0.25rem;
+ }
+}
+
+.bulma-ltr-property-mixin {
+ @include ltr-property("margin", 1rem, false);
+ border-radius: 0.25em;
+}
diff --git a/docs/css/bulma-docs.css b/docs/css/bulma-docs.css
index 240a8390..ae72e638 100644
--- a/docs/css/bulma-docs.css
+++ b/docs/css/bulma-docs.css
@@ -17887,6 +17887,11 @@ a.has-text-bootstrap-dark:hover, a.has-text-bootstrap-dark:focus {
font-size: 1.5em;
}
+.bd-anchor-title.title.is-5 {
+ font-size: 1.25em;
+ margin-top: 0 !important;
+}
+
@media screen and (max-width: 1215px) {
.bd-anchor-title {
padding-left: 1em;
@@ -22390,3 +22395,159 @@ a.has-text-bootstrap-dark:hover, a.has-text-bootstrap-dark:focus {
width: 2rem;
background-color: lavender;
}
+
+.bulma-overlay-mixin-parent {
+ background-image: url(https://source.unsplash.com/La2kOu2dmH4/640x320);
+ background-size: cover;
+ border-radius: 0.5em;
+ position: relative;
+ height: 11.25rem;
+ width: 20rem;
+}
+
+.bulma-overlay-mixin {
+ bottom: 1.5rem;
+ left: 1.5rem;
+ position: absolute;
+ right: 1.5rem;
+ top: 1.5rem;
+ background-color: darkorange;
+ border-radius: 0.25em;
+ color: white;
+ opacity: 0.9;
+ padding: 1em;
+}
+
+.bulma-placeholder-mixin {
+ border-color: lightblue;
+}
+
+.bulma-placeholder-mixin::-moz-placeholder {
+ color: lightblue;
+}
+
+.bulma-placeholder-mixin::-webkit-input-placeholder {
+ color: lightblue;
+}
+
+.bulma-placeholder-mixin:-moz-placeholder {
+ color: lightblue;
+}
+
+.bulma-placeholder-mixin:-ms-input-placeholder {
+ color: lightblue;
+}
+
+.bulma-placeholder-mixin:hover {
+ border-color: #60ccf0;
+}
+
+.bulma-placeholder-mixin:focus, .bulma-placeholder-mixin:active {
+ border-color: #1fc7ff !important;
+ box-shadow: 0 0 0 0.125em rgba(31, 199, 255, 0.25) !important;
+}
+
+.bulma-clearfix-mixin::after {
+ clear: both;
+ content: " ";
+ display: table;
+}
+
+.bulma-clearfix-mixin img {
+ border-radius: 0.25em;
+ margin-right: 0.5em;
+}
+
+.bulma-center-mixin-parent {
+ background-image: url(https://source.unsplash.com/xo3Bd2tYeqg/640x320);
+ background-size: cover;
+ border-radius: 0.5em;
+ position: relative;
+ height: 11.25rem;
+ width: 20rem;
+}
+
+.bulma-center-mixin {
+ position: absolute;
+ left: calc(50% - (96px * 0.5));
+ top: calc(50% - (96px * 0.5));
+ border-radius: 8px;
+ height: 96px;
+ width: 96px;
+}
+
+.bulma-reset-mixin {
+ -moz-appearance: none;
+ -webkit-appearance: none;
+ appearance: none;
+ background: none;
+ border: none;
+ color: currentColor;
+ font-family: inherit;
+ font-size: 1em;
+ margin: 0;
+ padding: 0;
+}
+
+.bulma-unselectable-mixin {
+ -webkit-touch-callout: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+}
+
+.bulma-ltr-rtl-mixin {
+ background-color: lightgreen;
+ padding: 0.5em 1em;
+ border: 1px solid seagreen;
+ margin-right: -1px;
+}
+
+.bulma-ltr-rtl-mixin:first-child {
+ border-bottom-left-radius: 0.5em;
+ border-top-left-radius: 0.5em;
+}
+
+.bulma-ltr-rtl-mixin:last-child {
+ border-bottom-right-radius: 0.5em;
+ border-top-right-radius: 0.5em;
+}
+
+.bulma-ltr-position-mixin-parent {
+ background-color: beige;
+ border-radius: 0.5em;
+ padding: 1rem;
+ padding-left: 5rem;
+ position: relative;
+}
+
+.bulma-ltr-position-mixin-parent p {
+ margin-top: -0.25rem;
+}
+
+.bulma-ltr-position-mixin {
+ left: 1rem;
+ border-radius: 0.25em;
+ position: absolute;
+ top: 1rem;
+}
+
+.bulma-ltr-property-mixin-parent {
+ align-items: flex-start;
+ background-color: midnightblue;
+ border-radius: 0.5em;
+ color: lightskyblue;
+ display: flex;
+ padding: 1.5rem;
+ position: relative;
+}
+
+.bulma-ltr-property-mixin-parent p {
+ margin-top: -0.25rem;
+}
+
+.bulma-ltr-property-mixin {
+ margin-left: 1rem;
+ border-radius: 0.25em;
+}
diff --git a/docs/documentation/utilities/mixins.html b/docs/documentation/utilities/mixins.html
index cecb47b7..99ecf7f5 100644
--- a/docs/documentation/utilities/mixins.html
+++ b/docs/documentation/utilities/mixins.html
@@ -18,7 +18,11 @@ breadcrumb:
{% include elements/anchor.html name="Element Mixins" %}
-<h4 class="title is-5">Arrow</h4>
+<p class="block">
+ These mixins create a <strong>visual</strong> HTML element.
+</p>
+
+{% include elements/anchor-bis.html name="Arrow" %}
<div class="content">
<p>
@@ -38,7 +42,7 @@ breadcrumb:
<!-- -->
-<h4 class="title is-5">Hamburger</h4>
+{% include elements/anchor-bis.html name="Hamburger" %}
<div class="content">
<p>
@@ -62,7 +66,7 @@ breadcrumb:
<!-- -->
-<h4 class="title is-5">Delete</h4>
+{% include elements/anchor-bis.html name="Delete" %}
<div class="content">
<p>
@@ -85,7 +89,7 @@ breadcrumb:
<!-- -->
-<h4 class="title is-5">Loader</h4>
+{% include elements/anchor-bis.html name="Loader" %}
<div class="content">
<p>
@@ -105,7 +109,42 @@ breadcrumb:
<!-- -->
-<h4 class="title is-5">Block</h4>
+{% include elements/anchor-bis.html name="Font Awesome container" %}
+
+<div class="content">
+ <p>
+ The <code>fa()</code> mixin creates a <strong>square inline-block element</strong>, ideal for containing a Font Awesome icon, or any other type of icon font.
+ <br>
+ The first <code>$size</code> parameter defines the icon font size.
+ <br>
+ The second <code>$dimensions</code> parameter defines the dimensions of the square container.
+ </p>
+</div>
+
+{% highlight sass %}.bulma-fa-mixin {
+ @include fa(1rem, 2rem);
+ background-color: lavender; // For demo purposes
+}{% endhighlight %}
+
+{% capture fa %}
+<span class="bulma-fa-mixin">
+ <i class="fas fa-thumbs-up"></i>
+</span>
+{% endcapture %}
+
+{% include elements/snippet.html content=fa %}
+
+<!-- -->
+
+{% include elements/anchor.html name="CSS Mixins" %}
+
+<p class="block">
+ These mixins add <strong>CSS rules</strong> to the element.
+</p>
+
+<!-- -->
+
+{% include elements/anchor-bis.html name="Block" %}
<div class="content">
<p>
@@ -129,56 +168,361 @@ breadcrumb:
<!-- -->
-<h4 class="title is-5">Font Awesome container</h4>
+{% include elements/anchor-bis.html name="Overlay" %}
<div class="content">
<p>
- The <code>fa()</code> mixin creates a <strong>square inline-block element</strong>, ideal for containing a Font Awesome icon, or any other type of icon font.
+ The <code>overlay()</code> mixin makes the element <strong>cover</strong> its closest positioned ancestor.
<br>
- The first <code>$size</code> parameter defines the icon font size.
+ The <code>$offset</code> parameter defines how far inside the element is positioned from each edge (top, bottom, left and right).
+ </p>
+</div>
+
+{% highlight sass %}.bulma-overlay-mixin {
+ @include overlay(1.5rem);
+ background-color: darkorange;
+ border-radius: 0.25em;
+ color: white;
+ opacity: 0.9;
+ padding: 1em;
+}{% endhighlight %}
+
+{% capture overlay %}
+<div class="bulma-overlay-mixin-parent">
+ <div class="bulma-overlay-mixin">Overlay element</div>
+</div>
+{% endcapture %}
+
+{% include elements/snippet.html content=overlay %}
+
+<!-- -->
+
+{% include elements/anchor-bis.html name="Center" %}
+
+<div class="content">
+ <p>
+ The <code>center()</code> mixin allows you to absolutely position an element with <strong>fixed dimensions</strong> at the <strong>center</strong> of its closest positioned ancestor.
<br>
- The second <code>$dimensions</code> parameter defines the dimensions of the square container.
+ The value of the <code>$width</code> parameter should be the width of the element the mixin is applied on.
+ <br>
+ Unless the element has square dimensions, the second parameter <code>$height</code> is required and its value should be the height of the element the mixin is applied on.
</p>
</div>
-{% highlight sass %}.bulma-fa-mixin {
- @include fa(1rem, 2rem);
- background-color: lavender; // For demo purposes
+{% highlight sass %}.bulma-center-mixin {
+ @include center;
}{% endhighlight %}
-{% capture fa %}
-<span class="bulma-fa-mixin">
- <i class="fas fa-thumbs-up"></i>
-</span>
+{% capture center %}
+<div class="bulma-center-mixin-parent">
+ <img class="bulma-center-mixin" height="96" width="96" src="https://source.unsplash.com/mEZ3PoFGs_k/192x192">
+</div>
{% endcapture %}
-{% include elements/snippet.html content=fa %}
+{% include elements/snippet.html content=center %}
+
+<!-- -->
+
+{% include elements/anchor-bis.html name="Placeholder" %}
+
+<div class="content">
+ <p>
+ The <code>placeholder()</code> mixin allows you to change the style of an <strong>input's placeholder</strong>.
+ <br>
+ The <code>$offset</code> parameter defines how far inside the element is positioned from each edge (top, bottom, left and right).
+ </p>
+</div>
+
+{% highlight sass %}.bulma-placeholder-mixin {
+ @include placeholder {
+ color: lightblue;
+ }
+}{% endhighlight %}
+
+{% capture placeholder %}
+<input
+ class="input bulma-placeholder-mixin"
+ type="text"
+ placeholder="I am a styled placeholder"
+>
+{% endcapture %}
+
+{% include elements/snippet.html content=placeholder %}
<!-- -->
-@include overlay($offset: 0)
+{% include elements/anchor-bis.html name="Clearfix" %}
+
+<div class="content">
+ <p>
+ The <code>clearfix()</code> mixin adds a <code>::after</code></strong> pseudo-element with a <code>clear: both</code> rule.
+ </p>
+</div>
-@include placeholder
+{% highlight sass %}.bulma-clearfix-mixin {
+ @include clearfix;
+}{% endhighlight %}
-// Tools
+{% capture clearfix %}
+<div class="bulma-clearfix-mixin">
+ <img height="80" width="80" style="float: left;" src="https://source.unsplash.com/La2kOu2dmH4/160x160">
+ <p>This is a short image description.</p>
+</div>
-@include clearfix
+<p>This text is following the clearfix element and is correctly placed after.</p>
+{% endcapture %}
-@include center($width, $height: 0)
+{% include elements/snippet.html content=clearfix %}
-@include overflow-touch
+<!-- -->
-@include reset
+{% include elements/anchor-bis.html name="Reset" %}
-@include unselectable
+<div class="content">
+ <p>
+ The <code>reset()</code> mixin applies a soft style reset. This is especially useful for <code>&lt;button&gt;</code> elements.
+ </p>
+</div>
-// RTL
+{% highlight sass %}.bulma-reset-mixin {
+ @include reset;
+}{% endhighlight %}
-@include ltr
+{% capture reset %}
+<button>Default button</button>
+<button class="bulma-reset-mixin">Reset button</button>
+{% endcapture %}
-@include rtl
+{% include elements/snippet.html content=reset %}
-@include ltr-property($property, $spacing, $right: true)
+<!-- -->
-@include ltr-position($spacing, $right: true)
+{% include elements/anchor-bis.html name="Unselectable" %}
+
+<div class="content">
+ <p>
+ The <code>unselectable()</code> mixin makes an element not selectable. This is to prevent the text to be selected when double-clicked.
+ </p>
+</div>
+
+{% highlight sass %}.bulma-unselectable-mixin {
+ @include unselectable;
+}{% endhighlight %}
+
+{% capture unselectable %}
+<p>This text is selectable.</p>
+<p class="bulma-unselectable-mixin">This text is not selectable.</p>
+{% endcapture %}
+
+{% include elements/snippet.html content=unselectable %}
+
+<!-- -->
+
+{% include elements/anchor-bis.html name="Overflow Touch" %}
+
+<div class="content">
+ <p>
+ The <code>overflow-touch()</code> mixin add the <code>-webkit-overflow-scrolling: touch;</code> rule to the element.
+ </p>
+</div>
+
+<!-- -->
+
+{% include elements/anchor.html name="Direction Mixins" %}
+
+{% include elements/anchor-bis.html name="Left-to-right and Right-to-left Mixins" %}
+
+<div class="content">
+ <p>
+ Bulma has a global <code>$rtl</code> flag, which allows the framework to output a Right-to-left version of the CSS. By default, this flag's value is set to <code>false</code>. This means the framework output a Left-to-right version.
+ </p>
+
+ <p>
+ The mixins <code>@mixin ltr</code> and <code>@mixin rtl</code> are here to output CSS rules based on the value of <code>$rtl</code>:
+ </p>
+
+ <ul>
+ <li>
+ if <code>$rtl: true</code>, <code>@include ltr</code> outputs nothing
+ </li>
+ <li>
+ if <code>$rtl: false</code>, <code>@include rtl</code> outputs nothing
+ </li>
+ </ul>
+
+ <p>
+ This is useful for properties that are specific to the side of an element.
+ </p>
+</div>
+
+{% highlight sass %}.bulma-ltr-rtl-mixin {
+ background-color: lightgreen;
+ padding: 0.5em 1em;
+ border: 1px solid seagreen;
+ margin-right: -1px;
+
+ &:first-child {
+ @include ltr {
+ border-bottom-left-radius: 0.5em;
+ border-top-left-radius: 0.5em;
+ }
+
+ @include rtl {
+ border-bottom-right-radius: 0.5em;
+ border-top-right-radius: 0.5em;
+ }
+ }
+
+ &:last-child {
+ @include ltr {
+ border-bottom-right-radius: 0.5em;
+ border-top-right-radius: 0.5em;
+ }
+
+ @include rtl {
+ border-bottom-left-radius: 0.5em;
+ border-top-left-radius: 0.5em;
+ }
+ }
+}{% endhighlight %}
+
+{% capture ltr-rtl %}
+<div style="display: flex;">
+ <span class="bulma-ltr-rtl-mixin">One</span>
+ <span class="bulma-ltr-rtl-mixin">Two</span>
+ <span class="bulma-ltr-rtl-mixin">Three</span>
+</div>
+{% endcapture %}
+
+{% include elements/snippet.html content=ltr-rtl %}
+
+<!-- -->
+
+{% include elements/anchor-bis.html name="LTR Position" %}
+
+<div class="content">
+ <p>
+ The <code>ltr-position()</code> mixin is a quick way to switch between <code>left</code> and <code>right</code> CSS properties when dealing with positioned elements.
+ <br>
+ The first <code>$spacing</code> parameter defines the value of the offset, whether it's right or left.
+ <br>
+ The second <code>$right</code> parameter defines if the property outputs <code>right</code> (default) or <code>left</code>.
+ </p>
+
+ <p>
+ Here is what the output looks like with a <code>$spacing</code> parameter set to <code>1rem</code>:
+ </p>
+
+ <table class="table is-bordered">
+ <thead>
+ <tr>
+ <th>Flag →</th>
+ <th><code>$rtl: false;</code></th>
+ <th><code>$rtl: true;</code></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><code>@include ltr-position(1rem, true)</code></td>
+ <td><code>right: 1rem</code></td>
+ <td><code>left: 1rem</code></td>
+ </tr>
+ <tr>
+ <td><code>@include ltr-position(1rem, false)</code></td>
+ <td><code>left: 1rem</code></td>
+ <td><code>right: 1rem</code></td>
+ </tr>
+ </tbody>
+ </table>
+</div>
+
+<p class="title is-6">Sass source</p>
+
+{% highlight sass %}.bulma-ltr-position-mixin {
+ @include ltr-position(1rem, false);
+ border-radius: 0.25em;
+ position: absolute;
+ top: 1rem;
+}{% endhighlight %}
+
+<p class="title is-6">CSS output</p>
+
+{% highlight css %}.bulma-ltr-position-mixin {
+ left: 1rem;
+ border-radius: 0.25em;
+ position: absolute;
+ top: 1rem;
+}{% endhighlight %}
+
+{% capture ltr-position %}
+<div class="bulma-ltr-position-mixin-parent">
+ <img class="bulma-ltr-position-mixin" height="48" width="48" src="https://source.unsplash.com/iFgRcqHznqg/96x96">
+ <p>Cras mattis consectetur purus sit amet fermentum. Nulla vitae elit libero, a pharetra augue. Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Curabitur blandit tempus porttitor. Maecenas faucibus mollis interdum.</p>
+</div>
+{% endcapture %}
+
+{% include elements/snippet.html content=ltr-position %}
+<!-- -->
+
+{% include elements/anchor-bis.html name="LTR Property" %}
+
+<div class="content">
+ <p>
+ The <code>ltr-property()</code> mixin works like the <code>ltr-position()</code> mixin but allows you to choose <strong>which CSS property</strong> to set. The mixin will append <code>-right</code> or <code>-left</code> to that property. This is especially useful for <code>margin</code> and <code>padding</code>.
+ <br>
+ The first <code>$property</code> parameter which property you want to "flip" left and right.
+ <br>
+ The second <code>$spacing</code> parameter defines the value of the offset, whether it's right or left.
+ <br>
+ The third <code>$right</code> parameter defines if the property outputs <code>right</code> (default) or <code>left</code>.
+ </p>
+
+ <p>
+ Here is what the output looks like with a <code>$spacing</code> parameter set to <code>1rem</code>:
+ </p>
+
+ <table class="table is-bordered">
+ <thead>
+ <tr>
+ <th>Flag →</th>
+ <th><code>$rtl: false;</code></th>
+ <th><code>$rtl: true;</code></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><code>@include ltr-property("margin", 1rem, true)</code></td>
+ <td><code>margin-right: 1rem</code></td>
+ <td><code>margin-left: 1rem</code></td>
+ </tr>
+ <tr>
+ <td><code>@include ltr-property("margin", 1rem, false)</code></td>
+ <td><code>margin-left: 1rem</code></td>
+ <td><code>margin-right: 1rem</code></td>
+ </tr>
+ </tbody>
+ </table>
+</div>
+
+<p class="title is-6">Sass source</p>
+
+{% highlight sass %}.bulma-ltr-property-mixin {
+ @include ltr-property("margin", 1rem, false);
+ border-radius: 0.25em;
+}{% endhighlight %}
+
+<p class="title is-6">CSS output</p>
+
+{% highlight css %}.bulma-ltr-property-mixin {
+ margin-left: 1rem;
+ border-radius: 0.25em;
+}{% endhighlight %}
+
+{% capture ltr-property %}
+<div class="bulma-ltr-property-mixin-parent">
+ <p>Cras mattis consectetur purus sit amet fermentum. Nulla vitae elit libero, a pharetra augue. Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Curabitur blandit tempus porttitor. Maecenas faucibus mollis interdum.</p>
+ <img class="bulma-ltr-property-mixin" height="96" width="96" src="https://source.unsplash.com/jTSf1xnsoCs/192x192">
+</div>
+{% endcapture %}
+{% include elements/snippet.html content=ltr-property %}
diff --git a/docs/documentation/utilities/responsive-mixins.html b/docs/documentation/utilities/responsive-mixins.html
index 7dcf0a7b..15af10b9 100644
--- a/docs/documentation/utilities/responsive-mixins.html
+++ b/docs/documentation/utilities/responsive-mixins.html
@@ -1,68 +1,11 @@
---
title: Mixins
layout: documentation
-doc-tab: overview
+doc-tab: utilities
doc-subtab: mixins
breadcrumb:
- home
- documentation
-- overview
-- overview-mixins
+- utilities
+- utilities-responsive-mixins
---
-
-<div class="table-container">
- <table class="table is-bordered">
- <tr>
- <td><code>=arrow($color)</code></td>
- <td>Creates a CSS-only down arrow. Used for the dropdown select.</td>
- </tr>
- <tr>
- <td><code>=block</code></td>
- <td>Defines a margin-bottom of 1.5rem, except when the element is the last child. Used for almost all block elements.</td>
- </tr>
- <tr>
- <td><code>=clearfix</code></td>
- <td>Adds a clearfix at the end of the element. Used for the "is-clearfix" helper.</td>
- </tr>
- <tr>
- <td><code>=center($size)</code></td>
- <td>Positions an element in the exact center of its parent. Used for the spinner in a loading button.</td>
- </tr>
- <tr>
- <td><code>=delete</code></td>
- <td>Creates a CSS-only cross. Used for the delete element in modals, messages, tags...</td>
- </tr>
- <tr>
- <td><code>=fa($size, $dimensions)</code></td>
- <td>Sets the style of a Font Awesome icon container.</td>
- </tr>
- <tr>
- <td><code>=hamburger($dimensions)</code></td>
- <td>Creates a CSS-only hamburger menu with 3 bars. Used for the "nav-toggle".</td>
- </tr>
- <tr>
- <td><code>=loader</code></td>
- <td>Creates a CSS-only loading spinner. Used for the ".loader" element, and for input and button spinners.</td>
- </tr>
- <tr>
- <td><code>=overflow-touch</code></td>
- <td>Sets the style of a container so that it keeps momentum when scrolling on iOS devices.</td>
- </tr>
- <tr>
- <td><code>=overlay($offset: 0)</code></td>
- <td>Makes the element overlay its parent container, like the transparent modal background.</td>
- </tr>
- <tr>
- <td><code>=placeholder</code></td>
- <td>Sets the styles of an input placeholder.</td>
- </tr>
- <tr>
- <td><code>=unselectable</code></td>
- <td>Turns the element unselectable. Used for buttons to prevent selection when clicking.</td>
- </tr>
- </table>
-</div>
-
-<div class="content">
- <p>These mixins are already used throughout Bulma, but you can use them as well to extend your own styles.</p>
-</div>
diff --git a/sass/utilities/mixins.sass b/sass/utilities/mixins.sass
index 248d2827..4d2e5b53 100644
--- a/sass/utilities/mixins.sass
+++ b/sass/utilities/mixins.sass
@@ -282,4 +282,3 @@
position: absolute
right: $offset
top: $offset
-