Kuma bɛɛ lajɛlen
Yɔrɔw ni sugandiliw walasa ka i ka Bootstrap porozɛ labɛn, i n’a fɔ minɛnw sirili, grid system barikama, media fɛn min bɛ se ka wuli ka bɔ a nɔ na, ani utility classes jaabiw.
Minɛnw
minɛnw ye layidu tacogo jɔnjɔn ye Bootstrap kɔnɔ wa u wajibiyalen don ni an ka grid system default ye . Minɛnw bɛ kɛ ka kɔnɔkow mara, ka u pad, ani (tuma dɔw la) u cɛmancɛ la. Hali ni minɛnw bɛ Se ka Kɛ 'kɔnɔ, layidu fanba tɛ 'kɔnɔna-minɛn de wajibiya.
Bootstrap bɛ na ni minɛn saba ye minnu tɛ kelen ye:
.container
, min bɛ a sigimax-width
jaabi kariyɔrɔ kelen-kelen bɛɛ la.container-fluid
, min bɛwidth: 100%
kɛ kariyɔrɔ bɛɛ la.container-{breakpoint}
, o yewidth: 100%
fo ka se kariyɔrɔ kofɔlen ma
Tablo min bɛ duguma, o bɛ a jira cogo min na minɛn kelen-kelen bɛɛ ta max-width
bɛ suma ni fɔlɔ ta ye .container
ani ka .container-fluid
tɛmɛn kariyɔrɔ kelen-kelen bɛɛ kan.
aw ye u ye wale la k' u suma ɲɔgɔn na an ka Grid misali la .
A ka dɔgɔn kosɛbɛ <576px |
A ka dɔgɔn ≥576px |
Cɛmancɛ ≥768px |
A ka bon ≥992px |
A ka bon kosɛbɛ ≥1200px |
|
---|---|---|---|---|---|
.container |
100% ye . | 540px ye | 720px ye | 960px ye | 1140px ye |
.container-sm |
100% ye . | 540px ye | 720px ye | 960px ye | 1140px ye |
.container-md |
100% ye . | 100% ye . | 720px ye | 960px ye | 1140px ye |
.container-lg |
100% ye . | 100% ye . | 100% ye . | 960px ye | 1140px ye |
.container-xl |
100% ye . | 100% ye . | 100% ye . | 100% ye . | 1140px ye |
.container-fluid |
100% ye . | 100% ye . | 100% ye . | 100% ye . | 100% ye . |
Bɛɛ-kɔnɔ-fɛn
An ka .container
kalasi dafalen ye jaabi-minɛn ye, min bonya bɛ jɔ, o kɔrɔ ye ko a max-width
bɛ fɛn caman Changements (Yɛlɛma) kariyɔrɔ kelen-kelen bɛɛ la.
Ji
Baara .container-fluid
kɛ ni minɛn ye min bonya dafalen don, min bɛ jatebɔyɔrɔ bonya bɛɛ lajɛlen na.
Jaabiw
Jaabi-minɛnw ye kura ye Bootstrap v4.4 kɔnɔ. U b’a To i bɛ se ka kalasi dɔ Jira min bonya ye 100% ye fo ka Se kariyɔrɔ kofɔlen ma, o kɔfɛ an bɛ max-width
s Kɛ kariyɔrɔ sanfɛla kelen-kelen bɛɛ la. Misali la, .container-sm
a bɛ 100% bonya ka daminɛ fo ka se sm
kariyɔrɔ ma, a bɛna sɛgɛsɛgɛli kɛ yɔrɔ min na ni md
, lg
, ani xl
.
Jaabiw ka tiɲɛniw
Komin Bootstrap Dabɔra ka Kɛ mobili ye fɔlɔ, an bɛ baara Kɛ ni kunnafonidilanw ɲininkali damadɔ ye walasa ka dakun hakilitigiw Dabɔ an ka labɛnw ni ɲɔgɔn cɛ. O kari-yɔrɔw fanba bɛ Dabɔ filɛli-yɔrɔ bonya fitininw kan wa u b’a To an bɛ se ka fɛnw Sànsan ni filɛli-yɔrɔ bɛ Yɛlɛma.
Bootstrap bɛ baara Kɛ fɔlɔ ni nin kunnafonidilanw ɲininkali-yɔrɔw ye—walima kariyɔrɔw—an ka source Sass filew kɔnɔ an ka layout, grid system ani components (yɔrɔw) kama.
Komin an bɛ an ka source CSS sɛbɛn Sass kɔnɔ, an ka media ɲininkaliw bɛɛ bɛ sɔrɔ Sass mixins fɛ:
An bɛ baara kɛ ni kunnafonidilanw ɲininkaliw ye tuma dɔw la minnu bɛ taa sira wɛrɛ fɛ (ɛkran hakɛ dilen walima a fitinin ):
A kɔlɔsi ko ikomi navigatɔrɔw tɛ dɛmɛ don sisan range context queries , an bɛ baara kɛ ni dantigɛliw ye min-
ani max-
prefixes ani viewports ni fractional widths (min bɛ se ka kɛ cogoya dɔw la dpi sanfɛ minɛnw kan, misali la) ni nafaw ye minnu bɛ ni tiɲɛni caman ye o sangaɲɔgɔnmaw kama .
Nin sen in fana na, nin kunnafonidilaw ka ɲininkaliw fana bɛ sɔrɔ Sass mixins fɛ:
Media ɲininkaliw ni mixins fana bɛ yen walasa ka ekran hakɛw yɔrɔ kelen laɲini ni kariyɔrɔ bonya fitinin ni bonya ye.
Nin kunnafonidi ɲininkaliw fana bɛ sɔrɔ Sass mixins fɛ:
O cogo kelen na, kunnafonidilanw ɲininkaliw bɛ se ka kɛ kariyɔrɔ caman bonya:
Sass mixin min bɛ kɛ ka ɲɛsin ekran hakɛ kelen ma, o bɛna kɛ:
Z-index (Z-index).
Bootstrap yɔrɔ caman bɛ baara Kɛ ni z-index
, CSS nafolo ye min bɛ dɛmɛ Dòn layidu la k'a Labɛn ni aksidan sabanan Dili ye walasa ka kɔnɔkow Labɛn. An bɛ baara Kɛ ni z-index sɛgɛsɛgɛli dafalen ye Bootstrap kɔnɔ min Dabɔra ka navigatiɔn, baarakɛminɛnw ni popovers, modals ani fɛn wɛrɛw layidu ka ɲɛ.
O nafa sanfɛtaw bɛ daminɛ ni jateden ye min bɛ kɛ ni diyagoya ye, min ka bon ani min kɛrɛnkɛrɛnnen don fo ka se ka bɛnbaliyakow bali cogo ɲuman na. An mago bɛ ninnu ka kulu jɔnjɔn dɔ la an ka yɔrɔw la minnu bɛ lamini na — baarakɛminɛnw, popovers, navbars, dropdowns, modals — walasa an ka se ka kɛ cogo bɛnnen na kɛwalew la. Kun t'a la an tun tɛ se ka baara kɛ ni 100
+ walima 500
+ ye.
An t’a ɲini ka nin nafa kelen-kelen ninnu kɛ ka kɛɲɛ ni mɔgɔw sago ye; ni i ye kelen Changé, a ka c’a la i ka kan k’u bɛɛ Changé.
Walasa ka dancɛw kunbɛn minnu bɛ ɲɔgɔn kan yɔrɔw kɔnɔ (misali la, butɔni ni dontaw donna kuluw kɔnɔ), an bɛ baara kɛ ni , , jateden kelen nafa z-index
dɔgɔmanninw ye ani ka ɲɛsin default, hover ani active states ma. Hover/focus/active kan, an bɛ na ni fɛn kɛrɛnkɛrɛnnen dɔ ye ɲɛfɛ ni nafa caman ye walasa k’u dancɛ jira balimakɛ fɛnw kan.1
2
3
z-index