Umwanya
Bootstrap ikubiyemo intera nini ya shorthand yitabiriye margin hamwe na padding yingirakamaro kugirango uhindure ikintu kigaragara.
Shinga igisubizo-cyiza margin
cyangwa padding
indangagaciro kubintu cyangwa igice cyimpande zacyo hamwe namasomo magufi. Harimo inkunga kubintu byihariye, ibintu byose, hamwe na vertical na horizontal. Amasomo yubatswe kuva ikarita ya Sass isanzwe kuva .25rem
kuri 3rem
.
Umwanya utanga ibikoresho bikoreshwa mubice byose, kuva xs
kuri xl
, nta magambo ahinnye muri byo. Ibi ni ukubera ko ayo masomo akoreshwa kuva min-width: 0
hejuru no hejuru, bityo ntagahuzwa nibibazo byitangazamakuru. Ibice bisigaye, ariko, birimo amagambo ahinnye.
Amasomo yitiriwe ukoresheje imiterere {property}{sides}-{size}
ya xs
na {property}{sides}-{breakpoint}-{size}
,,, na sm
.md
lg
xl
Aho umutungo ari umwe muri:
m
- ku masomo yashizehomargin
p
- ku masomo yashizehopadding
Aho impande ari imwe muri:
t
- ku masomo ashyirahomargin-top
cyangwapadding-top
b
- ku masomo ashyirahomargin-bottom
cyangwapadding-bottom
l
- ku masomo ashyirahomargin-left
cyangwapadding-left
r
- ku masomo ashyirahomargin-right
cyangwapadding-right
x
- kumasomo ashyiraho byombi*-left
na*-right
y
- kumasomo ashyiraho byombi*-top
na*-bottom
- ubusa - kumasomo ashyiraho a
margin
cyangwapadding
kumpande 4 zose yibintu
Aho ingano ari imwe muri:
0
- kumasomo akurahomargin
cyangwa cyangwapadding
kuyashyiraho0
1
- (Mburabuzi) kumasomo ashyirahomargin
cyangwapadding
kuri$spacer * .25
2
- (Mburabuzi) kumasomo ashyirahomargin
cyangwapadding
kuri$spacer * .5
3
- (Mburabuzi) kumasomo ashyirahomargin
cyangwapadding
kuri$spacer
4
- (Mburabuzi) kumasomo ashyirahomargin
cyangwapadding
kuri$spacer * 1.5
5
- (Mburabuzi) kumasomo ashyirahomargin
cyangwapadding
kuri$spacer * 3
auto
- kumasomo ashyirahomargin
imodoka
(Urashobora kongeramo ubunini wongeyeho ibyanditswe kuri $spacers
Sass ikarita ihinduka.)
Dore ingero zimwe zihagarariye aya masomo:
Byongeye kandi, Bootstrap ikubiyemo kandi .mx-auto
icyiciro cyo gutambukiranya hagati yubugari bwagutse buringaniye-ni ukuvuga ibirimo bifite display: block
hamwe width
nugushiraho - mugushiraho impande zombi auto
.