Dulmar
Qaybaha iyo xulashooyinka dejinta mashruucaaga Bootstrap, oo ay ku jiraan weelasha duubida, nidaam awood badan, shay warbaahin oo dabacsan, iyo fasalo tasiilaad ah.
Konteenarada ayaa ah sheyga ugu aasaasiga ah ee qaabaynta ee Bootstrap waxaana loo baahan yahay marka la isticmaalayo nidaamkayaga khadka caadiga ah . Ka dooro weel jawaab celin leh, oo ballac go'an (macneheedu waa max-width
isbeddelkiisa barta jabinta) ama ballac dareere ah (macneheedu waa 100%
ballaaran yahay mar walba).
Iyadoo weelasha buul la dhigi karo, badi qaabaynta uma baahna weel buul leh.
U isticmaal .container-fluid
weel ballac buuxa ah, oo ku dhereraya ballaca goobta daawashada oo dhan.
Maadaama Bootstrap loo horumariyay inuu noqdo mobilka ugu horreeya, waxaan isticmaalnaa sacab muggeed oo weydiimo warbaahin ah si aan u abuurno meelo macquul ah qaab-dhismeedkayada iyo is-dhexgalkayada. Meelahan jaban waxay inta badan ku salaysan yihiin ballaadhka ugu yar ee daawashada waxayna noo ogolaanayaan inaan kor u qaadno walxaha marka aragtidu is beddesho.
Bootstrap waxay u isticmaashaa kala duwanaanshaha su'aalaha warbaahinta ee soo socda-ama meelaha jaban-ee ishayada faylasha Sass ee qaabayntayada, nidaamka grid, iyo qaybahayada.
Maadaama aan ku qorno ishayada CSS ee Sass, dhammaan weydiimahayada warbaahinta waxaa laga heli karaa Sass mixins:
Waxaan marmar isticmaalnaa weydiimaha warbaahinta ee jihada kale u socda ( cabbirka shaashadda la bixiyay ama ka yar ):
Ogsoonow maadaama daalacayaashu aysan hadda taageerin su'aalaha macnaha guud , waxaan ka shaqeyneynaa xaddidaadaha min-
iyo max-
horgalayaasha iyo muuqaallada leh ballacyada jajabka ah (kuwaas oo ku dhici kara xaalado gaar ah aaladaha-dpi-ga sare, tusaale ahaan) annaga oo adeegsanayna qiimayaal leh saxsanaan sare oo isbarbardhiggan ah. .
Mar labaad, weydiimahan warbaahinta ayaa sidoo kale laga heli karaa Sass mixins:
Waxa kale oo jira su'aalo warbaahineed iyo iskudhafyo lagu beegsanayo hal qayb oo cabbirrada shaashadda ah iyadoo la adeegsanayo ballaadhka ugu yar iyo ugu badnaan.
Weydiimahan warbaahinta waxaa sidoo kale laga heli karaa Sass mixins:
Sidoo kale, su'aalaha warbaahintu waxay koobi karaan balaadhyo kala duwan:
Isku darka Sass ee lagu beegsanayo cabbirka cabbirka isku midka ah wuxuu noqon lahaa:
Qaybo badan oo Bootstrap ah ayaa isticmaala z-index
, hantida CSS ee ka caawisa xakamaynta qaabeynta iyadoo la siinayo dhidibka saddexaad si loo habeeyo nuxurka. Waxaan u isticmaalnaa cabbirka z-index-ka caadiga ah ee Bootstrap kaas oo loo qaabeeyey inuu si sax ah lakabka ugu dhejiyo navigation, tabaha aaladaha iyo popovers, moodooyinka, iyo in ka badan.
Qiimayaashan sare waxay ku bilowdaan tiro aan sabab lahayn, sare oo gaar ah oo ku filan si looga fogaado isku dhacyada. Waxaan u baahanahay jaangooyooyin kuwan ka kooban qaybahayada lakabyada ah - qalab-tips, popovers, navbars, dropdowns, modals - si aan si macquul ah ugu socono dabeecadaha. Ma jirto sabab aanaan u isticmaali karin 100
+ ama 500
+.
Ma dhiirigelineyno habeynta qiyamkan shaqsiyeed; Haddii aad mid bedesho, waxay u badan tahay inaad u baahan tahay inaad wada beddesho.
Si loo xakameeyo soohdimaha is dulsaaran ee ka kooban qaybaha (tusaale, badhamada iyo gelinta kooxaha wax galinta), waxaanu isticmaalnaa z-index
qiimayaasha hal lambar oo hooseeya ee 1
, 2
, iyo 3
kuwa caadiga ah, duleelka, iyo gobolada firfircoon. Markay duleellaan/fiirsasho/firfircoon tahay, waxaanu keenaynaa shay gaar ah safka hore oo leh z-index
qiime sare si ay u muujiyaan xuduudkooda canaasirta walaalaha ah.