mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-08 17:22:31 +03:00
Rename pull-*-{left|right} classes to .float-*-left and .float-*-right
This commit is contained in:
@@ -33,7 +33,7 @@ The following example shows how the clearfix can be used. Without the clearfix t
|
||||
|
||||
{% example html %}
|
||||
<div class="bg-info clearfix">
|
||||
<button class="btn btn-secondary pull-xs-left">Example Button pulled left</button>
|
||||
<button class="btn btn-secondary pull-xs-right">Example Button pullred right</button>
|
||||
<button class="btn btn-secondary float-xs-left">Example Button pulled left</button>
|
||||
<button class="btn btn-secondary float-xs-right">Example Button pullred right</button>
|
||||
</div>
|
||||
{% endexample %}
|
||||
|
||||
@@ -46,25 +46,25 @@ Aspect ratios can be customized with modifier classes.
|
||||
|
||||
These utility classes float an element to the left or right, or disable floating, based on the current viewport size using the [CSS `float` property](https://developer.mozilla.org/en-US/docs/Web/CSS/float). `!important` is included to avoid specificity issues. These use the same viewport width breakpoints as the grid system.
|
||||
|
||||
Two similar non-responsive Sass mixins (`pull-left` and `pull-right`) are also available.
|
||||
Two similar non-responsive Sass mixins (`float-left` and `float-right`) are also available.
|
||||
|
||||
{% example html %}
|
||||
<div class="pull-xs-left">Float left on all viewport sizes</div><br>
|
||||
<div class="pull-xs-right">Float right on all viewport sizes</div><br>
|
||||
<div class="pull-xs-none">Don't float on all viewport sizes</div><br>
|
||||
<div class="float-xs-left">Float left on all viewport sizes</div><br>
|
||||
<div class="float-xs-right">Float right on all viewport sizes</div><br>
|
||||
<div class="float-xs-none">Don't float on all viewport sizes</div><br>
|
||||
|
||||
<div class="pull-sm-left">Float left on viewports sized SM (small) or wider</div><br>
|
||||
<div class="pull-md-left">Float left on viewports sized MD (medium) or wider</div><br>
|
||||
<div class="pull-lg-left">Float left on viewports sized LG (large) or wider</div><br>
|
||||
<div class="pull-xl-left">Float left on viewports sized XL (extra-large) or wider</div><br>
|
||||
<div class="float-sm-left">Float left on viewports sized SM (small) or wider</div><br>
|
||||
<div class="float-md-left">Float left on viewports sized MD (medium) or wider</div><br>
|
||||
<div class="float-lg-left">Float left on viewports sized LG (large) or wider</div><br>
|
||||
<div class="float-xl-left">Float left on viewports sized XL (extra-large) or wider</div><br>
|
||||
{% endexample %}
|
||||
|
||||
{% highlight scss %}
|
||||
// Related simple non-responsive mixins
|
||||
.element {
|
||||
@include pull-left;
|
||||
@include float-left;
|
||||
}
|
||||
.another-element {
|
||||
@include pull-right;
|
||||
@include float-right;
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
Reference in New Issue
Block a user