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:
parent
e8aefdd8ec
commit
09f9cb2f5e
6
dist/chota.css
vendored
6
dist/chota.css
vendored
@ -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;
|
||||
|
1
dist/chota.min.css
vendored
1
dist/chota.min.css
vendored
File diff suppressed because one or more lines are too long
@ -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>
|
||||
|
@ -13,6 +13,10 @@
|
||||
margin-right: calc(var(--grid-gutter) / -2);
|
||||
}
|
||||
|
||||
.row-reverse {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
|
||||
.col {
|
||||
flex: 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user