Zimba emikutu egy'amangu, egy'okuddamu ne Bootstrap
Ekitabo ky’ebikozesebwa mu maaso eky’amaanyi, ekigaziyizibwa, era ekijjudde ebikozesebwa. Zimba n’okulongoosa ne Sass, kozesa enkola ya grid eyazimbibwa nga tezinnabaawo n’ebitundu, era oleete pulojekiti mu bulamu n’ebikozesebwa eby’amaanyi ebya JavaScript.
Teeka fayiro za Bootstrap ez'ensibuko Sass ne JavaScript ng'oyita mu npm, RubyGems, Composer, oba Meteor. Package managed installs tezirimu biwandiiko oba scripts zaffe ez'okuzimba mu bujjuvu. Osobola n'okukozesa npm template repo yaffe okukola amangu pulojekiti ya Bootstrap ng'oyita mu npm.
Bw'oba weetaaga okussaamu CSS oba JS ya Bootstrap ekung'aanyiziddwa yokka, osobola okukozesa jsDelivr . Laba mu bikolwa n'okutandika kwaffe okwangu okw'amangu , oba genda mu byokulabirako okubuuka okutandika pulojekiti yo eddako. Osobola n'okusalawo okussaamu Popper ne JS yaffe okwawukana .
<!-- 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>
Soma ebiragiro byaffe ebikwata ku kutandika
Funa okubuuka ku kussaamu fayiro za Bootstrap ez'ensibuko mu pulojekiti empya n'ebiragiro byaffe ebitongole.
Yingiza stylesheet emu era ogenze okugenda mu mpaka nga buli kimu kiri mu CSS yaffe.
// Variable overrides first
$primary:#900;$enable-shadows:true;$prefix:"mo-";// Then import Bootstrap
@import"../node_modules/bootstrap/scss/bootstrap";
Zimba era ogaziye mu kiseera ekituufu n'enkyukakyuka za CSS
Bootstrap 5 egenda ekulaakulana ne buli kifulumizibwa okukozesa obulungi enkyukakyuka za CSS ku sitayiro z’omulamwa ogw’ensi yonna, ebitundu ssekinnoomu, n’ebikozesebwa. Tuwa amakumi g’enkyukakyuka za langi, emisono gy’empandiika, n’ebirala ku :rootddaala ery’okukozesa wonna. Ku bitundu n’ebikozesebwa, enkyukakyuka za CSS ziweebwa ekifo okutuuka ku kiraasi ekwatagana era zisobola bulungi okukyusibwa.
Ekipya mu Bootstrap 5, ebikozesebwa byaffe kati bikolebwa Utility API yaffe . Twagizimba nga maapu ya Sass erimu ebintu bingi esobola okulongoosebwa amangu era mu ngeri ennyangu. Tekibangako kyangu kwongera, kuggyawo, oba okukyusa kiraasi zonna ez'omugaso. Fuula utilities responsive, yongera ku pseudo-class variants, era oziwe amannya aga custom.
// 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,)));
Bootstrap Icons ye open source SVG icon library erimu glyphs ezisukka mu 1,500, nga n'ebirala byongerwako buli kifulumizibwa. Zikoleddwa okukola mu pulojekiti yonna, oba okozesa Bootstrap yennyini oba nedda. Zikozese nga SVGs oba efonti z’ebifaananyi—eby’okulonda byombi bikuwa vector scaling n’okulongoosa okwangu okuyita mu CSS.