1
0
mirror of https://github.com/jenil/chota.git synced 2023-08-10 21:13:07 +03:00

Add .row-reverse to reverse direction

This commit is contained in:
nicholaswmin 2018-11-25 17:27:50 +02:00
parent e8aefdd8ec
commit 09f9cb2f5e
4 changed files with 41 additions and 3 deletions

8
dist/chota.css vendored
View File

@ -167,6 +167,12 @@ iframe {
margin-left: calc(var(--grid-gutter) / -2);
margin-right: calc(var(--grid-gutter) / -2);
}
.row-reverse {
-webkit-box-orient: horizontal;
-webkit-box-direction: reverse;
-ms-flex-direction: row-reverse;
flex-direction: row-reverse;
}
.col {
-webkit-box-flex: 1;
-ms-flex: 1;
@ -253,7 +259,7 @@ iframe {
.container {
width: 100%;
}
.col,
[class*=" col-"],
[class^='col-'] {

1
dist/chota.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -165,4 +165,33 @@
{% endhighlight %}
<p><strong>Pro tip:</strong> Create equal-width columns that span multiple rows by inserting a <code>.is-full-width</code> where you want the columns to break to a new line. Here <code>.is-full-width</code> is one of the <a href="#utilities">utility</a> class.</p>
<hr>
<h5>Reverse Direction</h5>
<p>Add <code>.row-reverse</code> to the <code>.row</code> to reverse the column direction. </p>
<div class="row row-reverse">
<div class="col-6">
<div class="card is-center">.col-6</div>
</div>
<div class="col-3">
<div class="card is-center">.col-3</div>
</div>
<div class="col-3">
<div class="card is-center">.col-3</div>
</div>
</div>
{% highlight html %}
<div class="row row-reverse">
<div class="col-6">
<div class="card is-center">.col-6</div>
</div>
<div class="col-3">
<div class="card is-center">.col-3</div>
</div>
<div class="col-3">
<div class="card is-center">.col-3</div>
</div>
</div>
{% endhighlight %}
</section>

View File

@ -13,6 +13,10 @@
margin-right: calc(var(--grid-gutter) / -2);
}
.row-reverse {
flex-direction: row-reverse;
}
.col {
flex: 1;
}
@ -87,7 +91,7 @@
.container {
width: 100%;
}
.col,
[class*=" col-"],
[class^='col-'] {