Xoog badan, la fidin karo, oo sifo leh xirmooyin agabka hore. Ku dhis oo ku habbee Sass, ka faa'iidayso nidaamka xariijimaha hore loo dhisay iyo qaybaha, oo la imow mashaariicda nolosha ee leh furayaasha JavaScript ee xoogga badan.
Markaad kaliya u baahan tahay inaad ku darto Bootstrap's CSS ama JS la soo ururiyey, waxaad isticmaali kartaa jsDelivr . U arag si ficil ah bilow fudud oo degdeg ah , ama baadh tusaalooyinka si aad u booddo mashruucaaga xiga. Waxa kale oo aad dooran kartaa inaad ku darto Popper iyo JS-kayaga si gaar ah .
<!-- CSS only --><linkhref="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"rel="stylesheet"integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT"crossorigin="anonymous">
<!-- JavaScript Bundle with Popper --><scriptsrc="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8"crossorigin="anonymous"></script>
Akhri hagayaashayada bilawga ah
Hel boodi oo ay ku jiraan faylasha isha Bootstrap ee mashruuc cusub oo wata hagayaashayada rasmiga ah.
Soo rar hal xaashi qaab oo waxaad ka baxdey tartamada sifo kasta oo CSS ah.
// Variable overrides first
$primary:#900;$enable-shadows:true;$prefix:"mo-";// Then import Bootstrap
@import"../node_modules/bootstrap/scss/bootstrap";
Ku habeynta iyada oo loo marayo doorsoomayaasha CSS
Tirtir doorsoomayaal caalami ah, qayb, ama utility si aad u habayso Bootstrap sida aad jeceshahay. Looma baahna in dib loo shaaciyo xeer kasta, kaliya qiime cusub oo doorsooma.
Ku cusub Bootstrap 5, adeegyadeena hadda waxaa soo saaray Utility API . Waxaan u dhisnay khariidad Sass ka kooban oo si dhakhso ah oo fudud loo habeyn karo. Marna may fududayn in lagu daro, ka saaro, ama wax laga beddelo fasal kasta oo utility ah. Samee utilities kuwa jawaaba, ku dar kala duwanaanshiyaha-fasalka been abuurka ah, oo sii magacyo gaar ah.
// Create and extend utilities with the Utility API
@import"bootstrap/scss/bootstrap";$utilities:map-merge($utilities,("cursor":(property:cursor,class:cursor,responsive:true,values:autopointergrab,)));
Quwadaha JavaScript ee xoogga leh oo aan lahayn jQuery
Si fudud ugu dar walxaha qarsoon ee la rogrogi karo, moodal iyo menus-ka-baxsan, popovers iyo aaladaha aaladaha, iyo wax badan oo kale—dhammaan jQuery la'aan. JavaScript ee Bootstrap waa HTML-koowaad, taas oo macnaheedu yahay ku darista plugins waa sida ugu fudud ee lagu daro datasifooyinka. Ma u baahan tahay xakameyn dheeraad ah? Ku dar plugins shaqsi barnaamij ahaan.
Maxaad u qortaa JavaScript badan markaad qori karto HTML? Ku dhawaad dhammaan Bootstrap's JavaScript plugins waxay ka kooban yihiin xogta heerka koowaad API, taasoo kuu oggolaanaysa inaad isticmaasho JavaScript kaliya adigoo ku daraya datasifooyin.
Bootstrap Icons waa maktabad sumadda SVG il furan oo ka kooban in ka badan 1,500 glyphs, iyadoo lagu daray siideyn kasta. Waxaa loogu talagalay inay ka shaqeeyaan mashruuc kasta, haddii aad isticmaasho Bootstrap lafteeda iyo haddii kale. U isticmaal sida SVG-yada ama xarfaha sumadda-labadaba ikhtiyaari waxay ku siinayaan cabbirida vector iyo habaynta fudud ee CSS.