Spacing
Bootstrap inosanganisira huwandu hwakasiyana hweshorthand inopindura margin uye padding utility makirasi kugadzirisa chitarisiko chechinhu.
Ipa inopindura-inoshamwaridzika margin
kana padding
kukosha kune chinhu kana subset yemativi ayo ane shorthand makirasi. Inosanganisira tsigiro yezvivakwa zvega, zvese zvivakwa, uye zvakamira uye zvakachinjika zvivakwa. Makirasi anovakwa kubva kune yakasarudzika mepu yeSass kubva .25rem
pa 3rem
.
Spacing utilities anoshanda kune ese mabreakpoints, kubva xs
kuenda ku xl
, haana breakpoint pfupiso mazviri. Izvi zvinodaro nekuti iwo makirasi anoiswa kubva min-width: 0
nekukwira, uye nekudaro haana kusungwa nemubvunzo wenhau. Iwo asara mabreakpoints, zvisinei, anosanganisira chidimbu chebreakpoint.
Makirasi anopihwa mazita pachishandiswa manyorerwo {property}{sides}-{size}
ekuti xs
uye {property}{sides}-{breakpoint}-{size}
, sm
, md
, lg
uye xl
.
Ipo pfuma iri imwe ye:
m
- kumakirasi anogadzikamargin
p
- kumakirasi anogadzikapadding
Iko mativi ndeimwe ye:
t
- kumakirasi anoisamargin-top
kanapadding-top
b
- kumakirasi anoisamargin-bottom
kanapadding-bottom
l
- kumakirasi anoisamargin-left
kanapadding-left
r
- kumakirasi anoisamargin-right
kanapadding-right
x
- kumakirasi anoisa zvese*-left
uye*-right
y
- kumakirasi anoisa zvese*-top
uye*-bottom
- blank - yemakirasi anoisa a
margin
kanapadding
pamativi ese mana echinhu
Uko saizi imwe ye:
0
- kumakirasi anobvisa iyomargin
kanapadding
nekuiisa kwairi0
1
- (nekusarudzika) kumakirasi anosetamargin
kanapadding
ku$spacer * .25
2
- (nekusarudzika) kumakirasi anosetamargin
kanapadding
ku$spacer * .5
3
- (nekusarudzika) kumakirasi anosetamargin
kanapadding
ku$spacer
4
- (nekusarudzika) kumakirasi anosetamargin
kanapadding
ku$spacer * 1.5
5
- (nekusarudzika) kumakirasi anosetamargin
kanapadding
ku$spacer * 3
auto
- kumakirasi anoisa iyomargin
otomatiki
(Unogona kuwedzera mamwe saizi nekuwedzera zvinyorwa kune iyo $spacers
Sass mepu inosiyana.)
Heano mimwe mienzaniso inomiririra yemakirasi aya:
Pamusoro pezvo, Bootstrap inosanganisirawo .mx-auto
kirasi yekudzikamisa-yakafara nhanho yemukati yemukati-kureva, zvirimo zvine display: block
uye width
seti-nekuisa yakachinjika miganho ku auto
.