in English
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.
Ma kēia ʻaoʻao
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
. !important
ua 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. E ʻoluʻolu e makaʻala ʻaʻohe hopena o ka float utility i nā mea flex.
Hoʻomaka lana ma luna o nā nui viewport a pau
Lana ka hopena ma nā ʻano nui o ka ʻike
Mai lana ma luna o nā ʻano nui o ka ʻike
<div class="float-start">Float start on all viewport sizes</div><br>
<div class="float-end">Float end on all viewport sizes</div><br>
<div class="float-none">Don't float on all viewport sizes</div>
Pane
Loaʻa nā ʻokoʻa pane no kēlā me kēia float
waiwai.
Hoʻomaka lana ma nā puka ʻike nui SM (liʻiliʻi) a ʻoi aku paha
Hoʻomaka lana ma nā puka ʻike i ka nui MD (medium) a ʻoi aku paha
Hoʻomaka lana ma luna o nā puka ʻike LG (nui) a ʻoi aku paha
Hoʻomaka lana ma nā puka nānā i ka nui XL (nui-nui) a ʻoi aku paha
<div class="float-sm-start">Float start on viewports sized SM (small) or wider</div><br>
<div class="float-md-start">Float start on viewports sized MD (medium) or wider</div><br>
<div class="float-lg-start">Float start on viewports sized LG (large) or wider</div><br>
<div class="float-xl-start">Float start on viewports sized XL (extra-large) or wider</div><br>
Eia nā papa kākoʻo a pau:
.float-start
.float-end
.float-none
.float-sm-start
.float-sm-end
.float-sm-none
.float-md-start
.float-md-end
.float-md-none
.float-lg-start
.float-lg-end
.float-lg-none
.float-xl-start
.float-xl-end
.float-xl-none
.float-xxl-start
.float-xxl-end
.float-xxl-none
Sass
API no nā pono hana
Hōʻike ʻia nā pono lana ma kā mākou API ponoʻī ma scss/_utilities.scss
. E aʻo pehea e hoʻohana ai i nā pono API.
"float": (
responsive: true,
property: float,
values: (
start: left,
end: right,
none: none,
)
),