Gutɛriw
Gutters ye padding ye i ka kuluw ni ɲɔgɔn cɛ, min bɛ Kɛ ka jaabiw di yɔrɔ ma ani ka kɔnɔkow Labɛn Bootstrap grid system kɔnɔ.
U bɛ baara kɛ cogo min na
-
Gutters ye yɔrɔw ye minnu bɛ koloma kɔnɔkow ni ɲɔgɔn cɛ, minnu bɛ dabɔ ni horizontal ye
padding
. An bɛ sigipadding-right
anipadding-left
kulu kelen-kelen bɛɛ kan, ka baara kɛ ni negetifmargin
ye walasa k’o offset kɛ jirisun kelen-kelen bɛɛ daminɛ na ani a laban na walasa ka kɔnɔkow labɛn. -
Gutters bɛ daminɛ ni
1.5rem
(24px
) bonya ye. O b’a To an bɛ Se k’an ka jatebɔlan Bɛn ni padding ani margin spacers scale ye. -
Gutters bɛ se ka ladilan ka kɛɲɛ ni jaabi ye. Aw bɛ baara kɛ ni kariyɔrɔ kɛrɛnkɛrɛnnenw ka jibolisiraw ye walasa ka jibolisira jɔlenw, jibolisira jɔlenw, ani jibolisiraw bɛɛ ladilan.
Gutters horizontales (jibɔlanw).
.gx-*
kalanw bɛ se ka kɛ ka jibolisiraw bonya tilennenw kɔlɔsi. A bɛ se ka kɛ ko .container
a walima .container-fluid
bangebaga ka kan ka ladilan ni jibolisira belebelebaw fana bɛ kɛ walasa ka jibɔlanw bali minnu man ɲi, ka baara kɛ ni padding utility ye min bɛ bɛn o ma. Misali la, misali nata la an ye dɔ fara padding kan ni .px-4
:
<div class="container px-4">
<div class="row gx-5">
<div class="col">
<div class="p-3 border bg-light">Custom column padding</div>
</div>
<div class="col">
<div class="p-3 border bg-light">Custom column padding</div>
</div>
</div>
</div>
Fɛn wɛrɛ min bɛ se ka kɛ, o ye ka finimugu dɔ fara a kan ka a lamini .row
ni .overflow-hidden
kalan ye:
<div class="container overflow-hidden">
<div class="row gx-5">
<div class="col">
<div class="p-3 border bg-light">Custom column padding</div>
</div>
<div class="col">
<div class="p-3 border bg-light">Custom column padding</div>
</div>
</div>
</div>
Gutters jɔlenw
.gy-*
kalanw bɛ se ka kɛ ka jibolisira jɔlenw bonya kɔlɔsi. I n’a fɔ jibolisiraw jɔlenw, jibolisiraw jɔlenw bɛ se ka kɛ sababu ye ka jibɔ dɔw .row
kɛ ɲɛ dɔ laban na duguma. N’o Kɛra, i bɛ dakun dɔ Fàra a kan .row
ni .overflow-hidden
kalasi ye:
<div class="container overflow-hidden">
<div class="row gy-5">
<div class="col-6">
<div class="p-3 border bg-light">Custom column padding</div>
</div>
<div class="col-6">
<div class="p-3 border bg-light">Custom column padding</div>
</div>
<div class="col-6">
<div class="p-3 border bg-light">Custom column padding</div>
</div>
<div class="col-6">
<div class="p-3 border bg-light">Custom column padding</div>
</div>
</div>
</div>
Gutters horizontales & verticales (jibɔlanw).
.g-*
kalasi bɛ se ka kɛ ka jibolisiraw bonya tilennenw kɔlɔsi, misali nata in na an bɛ baara kɛ ni jibolisiraw bonya fitinin ye, o la, mago tɛna kɛ ka wuluwulu .overflow-hidden
kalasi fara a kan.
<div class="container">
<div class="row g-2">
<div class="col-6">
<div class="p-3 border bg-light">Custom column padding</div>
</div>
<div class="col-6">
<div class="p-3 border bg-light">Custom column padding</div>
</div>
<div class="col-6">
<div class="p-3 border bg-light">Custom column padding</div>
</div>
<div class="col-6">
<div class="p-3 border bg-light">Custom column padding</div>
</div>
</div>
</div>
Row kolonw gutters
Gutter classes fana bɛ se ka fara jirisunw kan . Misali nata la, an bɛ baara kɛ ni jaabiw ye minnu bɛ wele ko row columns ani responsive gutter classes.
<div class="container">
<div class="row row-cols-2 row-cols-lg-5 g-2 g-lg-3">
<div class="col">
<div class="p-3 border bg-light">Row column</div>
</div>
<div class="col">
<div class="p-3 border bg-light">Row column</div>
</div>
<div class="col">
<div class="p-3 border bg-light">Row column</div>
</div>
<div class="col">
<div class="p-3 border bg-light">Row column</div>
</div>
<div class="col">
<div class="p-3 border bg-light">Row column</div>
</div>
<div class="col">
<div class="p-3 border bg-light">Row column</div>
</div>
<div class="col">
<div class="p-3 border bg-light">Row column</div>
</div>
<div class="col">
<div class="p-3 border bg-light">Row column</div>
</div>
<div class="col">
<div class="p-3 border bg-light">Row column</div>
</div>
<div class="col">
<div class="p-3 border bg-light">Row column</div>
</div>
</div>
</div>
Gutters tɛ yen
kuluw ni ɲɔgɔn cɛ jibolisiraw an ka jatebɔ kalansenw kɔnɔ minnu ɲɛfɔlen don ka kɔn , olu bɛ se ka bɔ ni .g-0
. margin
O bɛ s juguw bɔ .row
ani horizontal padding
ka bɔ denmisɛnw ka kuluw bɛɛ la.
Aw mago bɛ dilan na min bɛ bɔ dakun na ka taa a dan na wa? Aw bɛ bangebaga .container
walima .container-fluid
.
Tiɲɛ na, a bɛ cogo min na, o filɛ nin ye. A kɔlɔsi aw bɛ se ka t’a fɛ ka baara kɛ ni nin ye ni jatebɔlan tɔw bɛɛ ye minnu ɲɛfɔlen don ka kɔn (o la, kuluw bonya, jaabiw, jatebɔw, ani fɛn wɛrɛw).
<div class="row g-0">
<div class="col-sm-6 col-md-8">.col-sm-6 .col-md-8</div>
<div class="col-6 col-md-4">.col-6 .col-md-4</div>
</div>
Aw bɛ jibolisiraw Changer
Kalansow bɛ jɔ ka bɔ $gutters
Sass karti la min bɛ ciyɛn ta ka bɔ $spacers
Sass karti la.
$grid-gutter-width: 1.5rem;
$gutters: (
0: 0,
1: $spacer * .25,
2: $spacer * .5,
3: $spacer,
4: $spacer * 1.5,
5: $spacer * 3,
);