Dodome dometsotso
Bootstrap lɔ shorthand responsive margin kple padding utility class vovovowo ɖe eme be woatrɔ asi le element aɖe ƒe dzedzeme ŋu.
De ŋuɖoɖo-xɔlɔ̃wɔwɔ margin
alo padding
asixɔxɔwo asi na element alo eƒe axawo ƒe akpa sue aɖe kple nuŋɔŋlɔ kpui ƒe klasswo. Kpekpeɖeŋu na nɔnɔme ɖekaɖekawo, nɔnɔmewo katã, kple nɔnɔme siwo le tsitrenu kple esiwo le tsia dzi la le eme. Wotua klasswo tso Sass ƒe anyigbatata si woɖo ɖi si tso .25rem
vaseɖe 3rem
.
Dometsotso ƒe dɔwɔnu siwo ku ɖe breakpoints katã ŋu, tso xs
vaseɖe xl
, mekpɔ breakpoint ƒe kpukpui aɖeke le wo me o. Esia le alea elabena wowɔa klass mawo ŋudɔ tso min-width: 0
kple dzi, eye to esia me la, womeblaa wo kple nyadzɔdzɔgblɔmɔnuwo ƒe biabia o. Gake breakpoint susɔeawo dometɔ aɖewoe nye breakpoint kpukpui aɖe.
Wozãa nɔnɔme {property}{sides}-{size}
si nye , , , kple , xs
tsɔ naa ŋkɔ klassawo .{property}{sides}-{breakpoint}-{size}
sm
md
lg
xl
Afisiwo nunɔamesiwo nye:
m
- na klass siwo ɖomargin
p
- na klass siwo ɖopadding
Afisi akpawo nye:
t
- na klass siwo ɖomargin-top
alopadding-top
b
- na klass siwo ɖomargin-bottom
alopadding-bottom
l
- na klass siwo ɖomargin-left
alopadding-left
r
- na klass siwo ɖomargin-right
alopadding-right
x
- na klass siwo ɖoa evea siaa*-left
kple*-right
y
- na klass siwo ɖoa evea siaa*-top
kple*-bottom
- blank - na klass siwo ɖo a
margin
alopadding
ɖe element la ƒe akpa 4 katã dzi
Afisi lolome nye:
0
- na klass siwo ɖeamargin
alopadding
to eɖoɖo ɖe0
1
- (le gɔmedzedzea me) na klass siwo ɖomargin
alopadding
to$spacer * .25
2
- (le gɔmedzedzea me) na klass siwo ɖomargin
alopadding
to$spacer * .5
3
- (le gɔmedzedzea me) na klass siwo ɖomargin
alopadding
to$spacer
4
- (le gɔmedzedzea me) na klass siwo ɖomargin
alopadding
to$spacer * 1.5
5
- (le gɔmedzedzea me) na klass siwo ɖomargin
alopadding
to$spacer * 3
auto
- na klass siwo ɖoamargin
be auto
(Àteŋu atsɔ lolome bubuwo akpe ɖe eŋu to nyawo tsɔtsɔ kpe ɖe $spacers
Sass ƒe anyigbatata ƒe tɔtrɔ ŋu me.)
Klass siawo ƒe kpɔɖeŋu aɖewo siwo tsi tre ɖi na lae nye esi:
Tsɔ kpe ɖe eŋu la, Bootstrap hã de .mx-auto
klass aɖe si me woatsɔ aɖo titina le tsia dzi le fixed-width block level content—si fia be, content that has display: block
and a width
set—to ɖoɖowɔwɔ ɖe horizontal margins ɖe auto
.