Yɔrɔjanbɔli
Bootstrap bɛ ni shorthand responsive margin ani padding utility classes caman ye walasa ka fɛn dɔ cogoya sɛmɛntiya.
A bɛ baara kɛ cogo min na
A’ ye jaabi-terikɛ margin
walima padding
nafaw Di fɛn dɔ ma walima a fanw kulu fitinin dɔ ma ni sɛbɛnni surun kalanw ye. Dɛmɛ bɛ sɔrɔ nafolo kelen-kelenw na, nafolo bɛɛ, ani nafolo jɔlenw ni jɔlenw na. Kalansow bɛ jɔ ka bɔ Sass karti dafalen na min bɛ daminɛ ka .25rem
se 3rem
.
Kɔlɔsili
Spacing utilities minnu bɛ tali kɛ breakpoints bɛɛ la, k’a ta xs
ka se xl
, breakpoint surunyalen tɛ olu la. O bɛ Kɛ k’a sababu Kɛ o kàlanw bɛ Kɛ ka Bɔ min-width: 0
ka Taa san fɛ, wa o cogo la u tɛ siri ni kunnafonidilan ɲininkali ye. Nka, kari-yɔrɔ tɔw la, kari-yɔrɔ surunyalen dɔ bɛ yen.
Kalansow tɔgɔ bɛ fɔ ni cogoya {property}{sides}-{size}
ye , , , ani .xs
{property}{sides}-{breakpoint}-{size}
sm
md
lg
xl
Yɔrɔ min na nafolo ye dɔ ye:
m
- ka ɲɛsin kalanw ma minnu bɛ sigimargin
p
- ka ɲɛsin kalanw ma minnu bɛ sigipadding
Yɔrɔ min na fanw ye kelen ye:
t
- ka ɲɛsin kalanw ma minnu bɛ sigimargin-top
walimapadding-top
b
- ka ɲɛsin kalanw ma minnu bɛ sigimargin-bottom
walimapadding-bottom
l
- ka ɲɛsin kalanw ma minnu bɛ sigimargin-left
walimapadding-left
r
- ka ɲɛsin kalanw ma minnu bɛ sigimargin-right
walimapadding-right
x
- ka ɲɛsin kalanw ma minnu bɛ u fila bɛɛ sigi*-left
ani*-right
y
- ka ɲɛsin kalanw ma minnu bɛ u fila bɛɛ sigi*-top
ani*-bottom
- blank - ka ɲɛsin kalanw ma minnu bɛ a
margin
walimapadding
a sigi element fan 4 bɛɛ kan
Yɔrɔ min na bonya ye dɔ ye:
0
- ka ɲɛsin kalanw ma minnu bɛmargin
walimapadding
ni a sigili ye0
1
- (ka da a kan) ka ɲɛsin kalansenw ma minnu bɛmargin
walimapadding
ka sigi$spacer * .25
2
- (ka da a kan) ka ɲɛsin kalansenw ma minnu bɛmargin
walimapadding
ka sigi$spacer * .5
3
- (ka da a kan) ka ɲɛsin kalansenw ma minnu bɛmargin
walimapadding
ka sigi$spacer
4
- (ka da a kan) ka ɲɛsin kalansenw ma minnu bɛmargin
walimapadding
ka sigi$spacer * 1.5
5
- (ka da a kan) ka ɲɛsin kalansenw ma minnu bɛmargin
walimapadding
ka sigi$spacer * 3
auto
- ka ɲɛsin kalanw ma minnu bɛ sigi kamargin
to auto
(Aw bɛ se ka hakɛ wɛrɛw fara a kan ni aw ye sɛbɛnniw fara $spacers
Sass karti sɛgɛsɛgɛli kan.)
Misaliw
Nin kalan ninnu misali jiralen dɔw filɛ nin ye:
Cɛmancɛ-yɔrɔ-ko-yɔrɔ-ko-yɔrɔ-ko
Ka fara o kan, Bootstrap fana bɛ .mx-auto
kalasi dɔ kɔnɔ min bɛ kɛ ka fixed-width block level kɔnɔkow cɛmancɛ kɛ tilennen na—o kɔrɔ ye ko kɔnɔkow minnu bɛ yen display: block
ani width
set dɔ—ni u bɛ margins horizontalw sigi auto
.