Source

Lanakila

E hoʻololi i nā lana ma luna o kēlā me kēia mea, ma kēlā me kēia wahi haʻihaʻi, me ka hoʻohana ʻana i kā mākou mea hoʻohana lana pane.

Nānā nui

Ke lana nei kēia mau papa pono i kahi mea ma ka hema a ʻākau paha, a i ʻole e hoʻopau i ka lana ʻana, e pili ana i ka nui o ka nānā ʻana i kēia manawa me ka hoʻohana ʻana i ka waiwai CSSfloat . !importantua hoʻokomo ʻia e pale i nā pilikia kikoʻī. Hoʻohana kēia mau mea i nā hiʻohiʻona hiʻohiʻona like me kā mākou ʻōnaehana grid.

Nā papa

Hoʻololi i kahi lana me kahi papa:

Lana ka waiho ʻana ma nā ʻano nui o ka ʻike

Holo pololei ma nā ʻano nui o ka ʻike

Mai lana ma luna o nā ʻano nui o ka ʻike
<div class="float-left">Float left on all viewport sizes</div><br>
<div class="float-right">Float right on all viewport sizes</div><br>
<div class="float-none">Don't float on all viewport sizes</div>

Mea huikau

A i ʻole na Sass mixin:

.element {
  @include float-left;
}
.another-element {
  @include float-right;
}
.one-more {
  @include float-none;
}

Pane

Loaʻa nā ʻokoʻa pane no kēlā me kēia floatwaiwai.

Lana ka waiho ʻana ma nā puka nānā i ka nui SM (liʻiliʻi) a ʻoi aku paha

Lana ka waiho ʻana ma nā puka ʻike i ka nui MD (medium) a i ʻole ka laulā

Lana ka waiho ʻana ma nā puka ʻike LG (nui) a ʻoi aku paha

Lana ka waiho ʻana ma nā puka ʻike i ka nui XL (nui-nui) a ʻoi aku paha

<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>

Eia nā papa kākoʻo a pau;

  • .float-left
  • .float-right
  • .float-none
  • .float-sm-left
  • .float-sm-right
  • .float-sm-none
  • .float-md-left
  • .float-md-right
  • .float-md-none
  • .float-lg-left
  • .float-lg-right
  • .float-lg-none
  • .float-xl-left
  • .float-xl-right
  • .float-xl-none