Ntam a ɛwɔ ntam
Bootstrap no ka shorthand responsive margin ne padding utility class ahorow pii ho de sesa element bi hwɛbea.
Fa mmuae-adamfofa margin
anaa padding
gyinapɛn ahorow ma element bi anaa n’afã horow no fã ketewaa bi a ɛwɔ nkyerɛwde tiawa adesua ahorow. Nea ɛka ho ne mmoa ma ankorankoro agyapade, agyapade nyinaa, ne vertical ne horizontal agyapade. Wɔkyekye adesua ahorow no fi Sass map a wɔahyɛ da ayɛ a efi .25rem
kosi 3rem
.
Spacing utilities a ɛfa breakpoints nyinaa ho, efi xs
to xl
, nni breakpoint abbreviation biara wɔ mu. Eyi te saa efisɛ wɔde saa adesua ahorow no di dwuma fi min-width: 0
ne soro, na ɛnam saa kwan yi so no wɔmfa media asɛmmisa nkyekyere wɔn. Nanso, breakpoints a aka no, breakpoint a wɔatwa no tiawa ka ho.
Wɔde ɔkwan a wɔfa so {property}{sides}-{size}
yɛ xs
ne {property}{sides}-{breakpoint}-{size}
nea wɔde yɛ sm
, md
, lg
, ne xl
.
Baabi a agyapade yɛ biako a:
m
- ma adesua ahoroo a eto somargin
p
- ma adesua ahoroo a eto sopadding
Baabi a afã horow no yɛ biako:
t
- ma adesua a wode simargin-top
anaapadding-top
b
- ma adesua a wode simargin-bottom
anaapadding-bottom
l
- ma adesua a wode simargin-left
anaapadding-left
r
- ma adesua a wode simargin-right
anaapadding-right
x
- ma adesua ahorow a wode abien no nyinaa si*-left
ne*-right
y
- ma adesua ahorow a wode abien no nyinaa si*-top
ne*-bottom
- blank - ma adesua a wode a
margin
anaasepadding
wo element no afã 4 nyinaa so
Baabi a kɛseyɛ yɛ biako wɔ:
0
- ma adesua ahoroo a eyimargin
anaasepadding
enam se wode besi so0
1
- (defato) ma adesua a wodemargin
anaasepadding
to$spacer * .25
2
- (defato) ma adesua a wodemargin
anaasepadding
to$spacer * .5
3
- (defato) ma adesua a wodemargin
anaasepadding
to$spacer
4
- (defato) ma adesua a wodemargin
anaasepadding
to$spacer * 1.5
5
- (defato) ma adesua a wodemargin
anaasepadding
to$spacer * 3
auto
- ma adesua a wodemargin
to auto
(Wubetumi de akɛse pii aka ho denam nsɛm a wode bɛka $spacers
Sass map variable no ho no so.)
Saa adesuakuw ahorow yi ho nhwɛso ahorow bi a egyina hɔ ma ni:
Bio nso, Bootstrap nso de .mx-auto
adesuakuw bi a wɔde hyɛ mfinimfini a ɛkɔ soro a ɛwɔ fixed-width block level content —kyerɛ sɛ, nsɛm a ɛwɔ display: block
ne width
set bi —denam horizontal margins a wɔde besi hɔ sɛ auto
.