Ithuthela ku-v5
Landelela futhi ubuyekeze izinguquko kumafayela omthombo we-Bootstrap, imibhalo, nezingxenye zokukusiza usuke ku-v4 uye ku-v5.
Ukuncika
- Kwehlisiwe i-jQuery.
- Kuthuthukiswe kusuka ku-Popper v1.x kuya ku-Popper v2.x.
- Kufakwe i-Libsass esikhundleni se-Dart Sass njengoba umdidiyeli wethu we-Sass onikezwe i-Libsass wehlisiwe.
- Usuke e-Jekyll waya e-Hugo ukuze sakhe amadokhumenti ethu
Usekelo lwesiphequluli
- Kwehliswe i-Internet Explorer 10 no-11
- I-Microsoft Edge yehlisiwe <16 (Legacy Edge)
- Kwehliswe iFirefox <60
- I-Safari eyehlisiwe <12
- Kwehliswe i-iOS Safari <12
- Kwehliswe i-Chrome <60
Izinguquko zamadokhumenti
- Ikhasi eliyisiqalo elidizayinwe kabusha, isakhiwo samadokhumenti, nonyaweni.
- Kwengezwe umhlahlandlela omusha wePhasela .
- Kwengezwe isigaba esisha sokwenza ngendlela oyifisayo , esikhundleni sekhasi le-v4 elithi Theming , ngemininingwane emisha ku-Sass, izinketho zokucushwa komhlaba wonke, izikimu zemibala, okuguquguqukayo kwe-CSS, nokuningi.
- Kuhlelwe kabusha wonke amadokhumenti efomu esigabeni esisha samafomu , kwehlukanisa okuqukethwe kube amakhasi agxilwe kakhulu.
- Ngokufanayo, ibuyekeze isigaba Sesakhiwo , ukuze iveze okuqukethwe kwegridi ngokucacile.
- Kuqanjwe kabusha ikhasi lengxenye elithi "Navs" laba "Navs & Tabs".
- Kuqanjwe kabusha ikhasi elithi “Amasheke” ukuze lithi “Amasheke namarediyo”.
- Idizayine kabusha i-navbar futhi yengeza i-subnav entsha ukuze kube lula ukuthola amasayithi ethu nezinguqulo zamadokhumenti.
- Kwengezwe isinqamuleli esisha sekhibhodi senkambu yosesho: Ctrl + /.
Sass
-
Sikuyekile ukuhlanganisa okuzenzakalelayo kwemephu ye-Sass ukuze senze kube lula ukususa amanani angafuneki. Khumbula ukuthi manje kufanele uchaze wonke amanani kumamephu we-Sass
$theme-colors
. Hlola ukuthi ungabhekana kanjani namamephu akwa-Sass . -
UkuphukaUmsebenzi oqanjwe kabusha
color-yiq()
neziguquguqukayo ezihlobenecolor-contrast()
njengoba ungasahlobene nendawo yombala ye-YIQ. Bona #30168.$yiq-contrasted-threshold
iqanjwe kabusha ngokuthi$min-contrast-ratio
.$yiq-text-dark
futhi$yiq-text-light
ngokulandelana ziqanjwe kabusha ngokuthi$color-contrast-dark
futhi$color-contrast-light
.
-
UkuphukaAmapharamitha wemiksi yemibuzo yemidiya ashintshile ukuze kube nendlela enengqondo.
media-breakpoint-down()
isebenzisa i-breakpoint ngokwayo esikhundleni sephuzu lokunqamuka elilandelayo (isb,media-breakpoint-down(lg)
esikhundleni sezimbobo zokubukamedia-breakpoint-down(md)
eziqondiwe ezincane kune-lg
).- Ngokufanayo, ipharamitha yesibili
media-breakpoint-between()
nayo isebenzisa i-breakpoint ngokwayo esikhundleni se-breakpoint elandelayo (isb,media-between(sm, lg)
esikhundleni sezimbobo zokubukamedia-breakpoint-between(sm, md)
eziqondiwe phakathism
no-lg
).
-
UkuphukaKukhishwe izitayela zokuphrinta
$enable-print-styles
nokuguquguquka. Amakilasi okubonisa ukuphrinta asekhona. Bona #28339 . -
UkuphukaKwehlisiwe
color()
,theme-color()
, kanyegray()
nemisebenzi evuna okuguquguqukayo. Bona #29083 . -
UkuphukaUmsebenzi oqanjwe kabusha
theme-color-level()
ukuze ubecolor-level()
futhi manje wamukela noma yimuphi umbala owufunayo esikhundleni semibala kuphela$theme-color
. Bona #29083 Qaphela:color-level()
kamuva yafakwav5.0.0-alpha3
. -
UkuphukaKuqanjwe kabusha
$enable-prefers-reduced-motion-media-query
futhi$enable-pointer-cursor-for-buttons
kuya$enable-reduced-motion
kanye$enable-button-pointers
nobufushane. -
UkuphukaKukhishwe
bg-gradient-variant()
imiksi. Sebenzisa.bg-gradient
ikilasi ukwengeza ama-gradient kuma-elementi esikhundleni.bg-gradient-*
samakilasi akhiqiziwe. -
Ukuphuka Kukhishwe imiksi ehoxisiwe ngaphambilini:
hover
,hover-focus
,plain-hover-focus
, futhihover-focus-active
float()
form-control-mixin()
nav-divider()
retina-img()
text-hide()
(iphinde yehlisa isigaba sosizo esihlobene,.text-hide
)visibility()
form-control-focus()
-
Ukuphuka
scale-color()
Umsebenzi oqanjwe kabushashift-color()
ukuze ugweme ukungqubuzana nomsebenzi we-Sass wokukala umbala. -
box-shadow
imiksi manje ivumelanull
amanani futhi yehlenone
ukusuka kuma-agumenti amaningi. Bona #30394 . -
I-
border-radius()
mixin manje inenani elizenzakalelayo.
Isistimu yombala
-
Isistimu yombala ebisebenza nayo
color-level()
futhi$theme-color-interval
yasuswa yavuna isistimu yombala entsha. Konkelighten()
kanyedarken()
nemisebenzi ku-codebase yethu ithathelwa indawotint-color()
futhishade-color()
. Le misebenzi izohlanganisa umbala nomhlophe noma omnyama esikhundleni sokushintsha ukukhanya kwawo ngenani elinqunyiwe. Intandoshift-color()
ingashintsha noma ithulule umbala kuye ngokuthi ipharamitha yesisindo iphozithivu noma inegethivu. Bona #30622 ukuze uthole imininingwane eyengeziwe. -
Kwengezwe ama-tinti amasha namathunzi awo wonke umbala, kuhlinzeka ngemibala eyisishiyagalolunye ehlukene yombala ngamunye wesisekelo, njengokuhlukahluka okusha kwe-Sass.
-
Ukugqama kombala okuthuthukisiwe. Isilinganiso sokungafani sombala obhampane sisuka ku-3:1 siye ku-4.5:1 nemibala ebuyekeziwe eluhlaza okwesibhakabhaka, eluhlaza, e-cyan, nepinki ukuze kuqinisekiswe ukugqama kwe-WCAG 2.1 AA. Futhi kushintshe umbala wethu wokugqama kombala ukusuka
$gray-900
ku-$black
. -
Ukuze sisekele isistimu yethu yombala, sengeze inkambiso entsha
tint-color()
nemisebenzishade-color()
ukuze sixube imibala yethu ngokufanele.
Izibuyekezo zegridi
-
I-breakpoint entsha! Kwengezwe i-
xxl
breakpoint entsha1400px
naphezulu. Azikho izinguquko kuwo wonke amanye ama-breakpoint. -
Ama-gutters athuthukisiwe. Ama-gutters manje asethwe njenge-rems, futhi mancane kune-v4 (
1.5rem
, noma cishe24px
, phansi ukusuka30px
). Lokhu kuqondanisa ama-gutters wesistimu yethu yegridi nezinsiza zethu zokubeka izikhala.- Kwengezwe isigaba esisha se-gutter (
.g-*
,.gx-*
, kanye.gy-*
) ukuze kulawulwe ama-gutters avundlile/ame mpo, ama-gutter avundlile, nama-gutters aqondile. - UkuphukaIqanjwe kabusha
.no-gutters
ukuze.g-0
ifane nezinsiza ezintsha ze-gutter.
- Kwengezwe isigaba esisha se-gutter (
-
Amakholomu awasasebenzi
position: relative
, ngakho-ke kungase kudingeke wengeze.position-relative
kwezinye izici ukuze ubuyisele lokho kuziphatha. -
UkuphukaKwehliswe amakilasi ambalwa
.order-*
avame ukungasetshenziswa. Manje sihlinzeka kuphela.order-1
ngaphandle.order-5
kwebhokisi. -
UkuphukaIlahle
.media
ingxenye njengoba ingaphindaphindwa kalula nezinsiza. Bona i-#28265 kanye nekhasi lezinsiza eziguquguqukayo njengesibonelo . -
Ukuphuka
bootstrap-grid.css
manje kusebenza kuphelabox-sizing: border-box
kukholomu esikhundleni sokusetha kabusha usayizi webhokisi womhlaba. Ngale ndlela, izitayela zethu zegridi zingasetshenziswa ezindaweni eziningi ngaphandle kokuphazamiseka. -
$enable-grid-classes
ayisakukhubazi ukukhiqizwa kwamakilasi esiqukathi. Bona #29146. -
Kubuyekezwe i-
make-col
mixin yaba okumisiwe yaba amakholomu alinganayo ngaphandle kosayizi othile.
Okuqukethwe, Qalisa kabusha, njll
-
I- RFS manje isinikwe amandla ngokuzenzakalela. Izihloko ezisebenzisa i-
font-size()
mixin zizozilungisa ngokuzenzakalelafont-size
ukuze zilingane nembobo yokubuka. Lesi sici ngaphambilini besikhethe ukungena nge-v4. -
UkuphukaKulungiswe kabusha ukuthayipha kwethu kwesibonisi ukuze kumiselele
$display-*
okuguquguqukayo kanye$display-font-sizes
nemephu ye-Sass. Kukhishwe futhi okuguquguqukayo ngakunye$display-*-weight
kwe-s eyodwa$display-font-weight
futhi elungisiwefont-size
. -
Kwengezwe
.display-*
osayizi ababili bezihloko ezintsha,.display-5
kanye.display-6
. -
Izixhumanisi zidwetshelwe ngokuzenzakalelayo (hhayi nje phezulu), ngaphandle uma ziyingxenye yezingxenye ezithile.
-
Amathebula adizayinwe kabusha ukuze avuselele izitayela zawo futhi azakhe kabusha ngezinto eziguquguqukayo ze-CSS ukuze uthole ukulawula okwengeziwe kwesitayela.
-
UkuphukaAmathebula afakwe esidlekeni awasakwazi ifa lezitayela.
-
Ukuphuka
.thead-light
futhi.thead-dark
ziyehliswa zivuna.table-*
amakilasi ahlukile angasetshenziselwa zonke izici zethebula (thead
,tbody
,tfoot
,tr
,th
kanyetd
). -
UkuphukaI-
table-row-variant()
mixin iqanjwe kabushatable-variant()
futhi yamukela amapharamitha angu-2 kuphela:$color
(igama lombala) kanye$value
(ikhodi yombala). Umbala womngcele nemibala ye-accent ibalwa ngokuzenzakalelayo ngokusekelwe ezintweni eziguquguqukayo zethebula. -
Hlukanisa okuguquguqukayo kwe-padding cell yethebula phakathi
-y
kanye-x
. -
Ukuphuka
.pre-scrollable
Ikilasi lehlile . Bona #29135 -
Ukuphuka
.text-*
izinsiza azisangezi izindawo ezihamba phambili nezigxilisa izixhumanisi kuzixhumanisi..link-*
amakilasi omsizi angasetshenziswa esikhundleni salokho. Bona #29267 -
Ukuphuka
.text-justify
Ikilasi lehlile . Bona #29793 -
Ukuphuka
<hr>
ama- elementi manje asetshenziswaheight
esikhundleniborder
sokusekela kangconosize
isibaluli. Lokhu futhi kuvumela ukusetshenziswa kwezinsiza zokunamathisela ukuze wakhe izihlukanisi ezinkulu (isb,<hr class="py-1">
). -
Setha kabusha okuzenzakalelayo okuvundlile kanye
padding-left
nezinto ukusuka kokumisiwe kwesiphequluli kuye ku- .<ul>
<ol>
40px
2rem
-
Kwengezwe
$enable-smooth-scroll
, okusebenzascroll-behavior: smooth
emhlabeni jikelele—ngaphandle kwabasebenzisi abacela ukunyakaza okuncishisiweprefers-reduced-motion
ngombuzo wemidiya. Bona #31877
I-RTL
- Okuguquguqukayo okuqondile kokuqondisa okuvundlile, izinsiza, nezixube konke kuqanjwe kabusha ukuze kusetshenziswe izici ezinengqondo ezifana nalezo ezitholakala kuzakhiwo ze-flexbox—isb,
start
futhiend
esikhundleni sikaleft
kanyeright
.
Amafomu
-
Kwengezwe amafomu amasha antantayo! Siphromothe isibonelo samalebula antantayo ezingxenyeni zefomu ezisekelwa ngokugcwele. Bona ikhasi lamalebula antantayo amasha.
-
Ukuphuka Izinto ezihlanganisiwe zomdabu kanye nefomu langokwezifiso. Amabhokisi okuhlola, amarediyo, okukhethiwe, nokunye okokufaka okunezigaba zomdabu nezezifiso ku-v4 kuhlanganisiwe. Manje cishe zonke izici zethu zefomu zingokwezifiso ngokuphelele, eziningi ngaphandle kwesidingo se-HTML yangokwezifiso.
.custom-check
manje.form-check
..custom-check.custom-switch
manje.form-check.form-switch
..custom-select
manje.form-select
..custom-file
futhi.form-file
zithathelwe indawo izitayela zangokwezifiso ngaphezulu kwe.form-control
..custom-range
manje.form-range
.- Kulahlwe okomdabu
.form-control-file
futhi.form-control-range
.
-
UkuphukaYehla
.input-group-append
futhi.input-group-prepend
. Manje usungakwazi ukwengeza izinkinobho futhi.input-group-text
njengabantwana abaqondile bamaqembu okokufaka. -
Irediyasi yomngcele Omude Ongekho eqenjini lokokufaka elinesiphazamisi sempendulo yokuqinisekisa ekugcineni ilungisiwe ngokwengeza
.has-validation
isigaba esingeziwe emaqenjini okokufaka anokuqinisekisa. -
Ukuphuka Kwehlisiwe amakilasi esakhiwo esiqondene nefomu yesistimu yethu yegridi. Sebenzisa igridi yethu nezinsiza esikhundleni se-
.form-group
,.form-row
, noma.form-inline
. -
UkuphukaAmalebula efomu manje adinga
.form-label
. -
Ukuphuka
.form-text
ayisekho amasethidisplay
, okukuvumela ukuthi udale umbhalo wosizo ongaphakathi komugqa noma uvimbele ngendlela ofisa ngayo ngokushintsha isici se-HTML. -
Izithonjana zokuqinisekisa azisasetshenziswa ku-
<select>
s nge-multiple
. -
Umthombo ohlelwe kabusha amafayela we-Sass ngaphansi kokuthi
scss/forms/
, okuhlanganisa izitayela zeqembu lokufaka.
Izingxenye
- Amanani ahlanganisiwe ezexwayiso
padding
, imvuthuluka yesinkwa, amakhadi, okwehliswayo, amaqembu ohlu, ama-modal, ama-popovers, namathiphu amathuluzi azosekelwe$spacer
kokuhlukahluka kwethu. Bona #30564 .
I-Accordion
- Kwengezwe ingxenye entsha ye-accordion .
Izexwayiso
-
Izexwayiso manje zinezibonelo ezinezithonjana .
-
Kukhishwe izitayela zangokwezifiso ze-
<hr>
s kusaziso ngasinye njengoba vele zisebenzisacurrentColor
.
Amabheji
-
UkuphukaIlahle wonke
.badge-*
amakilasi ombala wezinsiza ezingemuva (isb, sebenzisa.bg-primary
esikhundleni se-.badge-primary
). -
UkuphukaIlahliwe
.badge-pill
- sebenzisa.rounded-pill
insiza esikhundleni. -
UkuphukaKukhishwe izitayela zokuhambisa phezulu nokugxilisa kuzo
<a>
kanye nama -<button>
elementi. -
Ukukhushulwa okunamathiselwe okuzenzakalelayo kwamabheji ukusuka ku
.25em
/.5em
ukuya.35em
/.65em
.
Iimvuthuluka zesinkwa
-
Ukubukeka okuzenzakalelayo kwe-breadcrumbs kwenziwe kwaba lula ngokususa
padding
,background-color
, kanyeborder-radius
. -
Kwengezwe indawo entsha yangokwezifiso ye-CSS
--bs-breadcrumb-divider
ukuze wenze ngokwezifiso kalula ngaphandle kokudinga ukuphinda kuhlanganiswe i-CSS.
Izinkinobho
-
Ukuphuka Izinkinobho zokuguqula , ezinamabhokisi okuhlola noma imisakazo, azisadingi i-JavaScript futhi zinemakhaphu entsha. Asisayidingi into yokugoqa, engeza
.btn-check
ku-<input>
, bese uyibhangqa nanoma imaphi.btn
amakilasi ku-<label>
. Bona #30650 . Amadokhumenti alokhu asukile ekhasini lethu elithi Izinkinobho aya esigabeni esisha samafomu. -
Ukuphuka Kwehliselwe
.btn-block
izinsiza. Esikhundleni sokusebenzisa.btn-block
ku-.btn
, bopha izinkinobho zakho.d-grid
kanye.gap-*
nesisetshenziswa ukuze uzibeke lapho kudingeka. Shintshela kumakilasi aphendulayo ukuze uthole ukulawula okwengeziwe phezu kwawo. Funda amadokhumenti ukuze uthole izibonelo ezithile. -
Kubuyekezwe yethu
button-variant()
kanyebutton-outline-variant()
namamiksi ukuze kusekelwe amapharamitha angeziwe. -
Izinkinobho ezibuyekeziwe ukuze kuqinisekiswe ukuhluka okukhulayo kuzimo ezihamba phambili nezisebenzayo.
-
Izinkinobho ezikhutshaziwe manje zine-
pointer-events: none;
.
Ikhadi
-
UkuphukaYehlisiwe ngokuvuna
.card-deck
igridi yethu. Goqa amakhadi akho ngamakholomu amakilasi bese wengeza.row-cols-*
isiqukathi esingumzali ukuze udale kabusha amadekhi amakhadi (kodwa ngokulawula okwengeziwe ekuqondaneni okuphendulayo). -
UkuphukaYehla
.card-columns
ngokuthanda iMasonry. Bona #28922 . -
UkuphukaEsikhundleni se-
.card
accordion esekelwe kufakwa ingxenye entsha ye-Accordion .
I-Carousel
-
Kwengezwe
.carousel-dark
okuhlukile okusha kombhalo omnyama, izilawuli, nezinkomba (ezinhle ngengemuva elilula). -
Kushintshwe izithonjana ze-chevron zokulawula i-carousel ngama-SVG amasha avela ku- Icons ze-Bootstrap .
Vala inkinobho
-
UkuphukaIqanjwe kabusha
.close
kwaba.btn-close
yigama elincane elijwayelekile. -
Izinkinobho zokuvala manje zisebenzisa
background-image
(i-SVG eshumekiwe) esikhundleni se-a×
ku-HTML, okuvumela ukwenza ngokwezifiso kube lula ngaphandle kwesidingo sokuthinta umaki wakho. -
Kwengezwe
.btn-close-white
okuhlukile okusha okusebenzisafilter: invert(1)
ukunika amandla ukugqama okuphezulu kokucashisa izithonjana ngokumelene nengemuva elimnyama.
Goqa
- Kukhishwe i-anchoring yomqulu wama-accordion.
Okwehliswayo
-
Kwengezwe
.dropdown-menu-dark
okuhlukile okusha nokuhambisanayo kokudonsela phansi okumnyama okudingekayo. -
Kwengezwe okuhlukile okusha kwe-
$dropdown-padding-x
. -
Kwenze kube mnyama isihlukanisi sokwehlisa ukuze kuthuthukiswe ukugqama.
-
UkuphukaYonke imicimbi yokwehliswayo manje icushwa enkinobho yokuguqula eyehlayo bese ifakwe ibhamuza kusici esingumzali.
-
Amamenyu okwehlayo manje anesethi yesibaluli
data-bs-popper="static"
lapho ukuma kokwehlayo kumile futhidata-bs-popper="none"
lapho okwehliswayo kuku-navbar. Lokhu kwengezwa i-JavaScript yethu futhi kusisiza ukuthi sisebenzise izitayela zokuma ngokwezifiso ngaphandle kokuphazamisa ukuma kukaPopper. -
UkuphukaInketho eyehlisiwe
flip
ye-plugin eyehlayo ivuna ukucushwa komdabu kwe-Popper. Manje usungakwazi ukukhubaza ukuziphatha ngokupheqa uhlu olungenalutho lwenkethofallbackPlacements
ku- flip modifier. -
Amamenyu okudonsela phansi manje angachofozeka
autoClose
ngenketho entsha yokusingatha ukuziphatha kokuvala ngokuzenzakalela . Ungasebenzisa le nketho ukuze wamukele ukuchofoza ngaphakathi noma ngaphandle kwemenyu yokudonsela phansi ukuze uyenze isebenze. -
Okwehliswayo manje kusekela
.dropdown-item
s esongwe ngo-<li>
s.
I-Jumbotron
- UkuphukaKwehliswe ingxenye ye-jumbotron njengoba ingaphindaphindwa nezinsiza. Bona isibonelo sethu esisha se-Jumbotron ukuze uthole idemo.
Iqembu lohlu
- Kwengezwe
.list-group-numbered
isilungisi esisha ohlwini lwamaqembu.
Navs namathebhu
- Kwengezwe
null
okuguquguqukayo okusha kwe-font-size
,font-weight
,color
, kanye:hover
color
neklasi.nav-link
.
Ama-Navbar
- UkuphukaAma-Navbar manje adinga isiqukathi ngaphakathi (ukwenza kube lula kakhulu izidingo zesikhala kanye ne-CSS edingekayo).
I-offcanvas
- Kwengezwe ingxenye entsha ye- offcanvas .
Amakhasi
-
Izixhumanisi zamaphegi manje seziyakwazi ukwenziwa ngendlela oyifisayo
margin-left
eziyindilinga kuwo wonke amakhona uma zihlukaniswa enye kwenye. -
Kwengezwe
transition
izixhumanisi zamakhasi.
Ama-Popovers
-
UkuphukaIqanjwe kabusha
.arrow
kusifanekiso.popover-arrow
sethu esizenzakalelayo se-popover. -
whiteList
Inketho eqanjwe kabusha kokuthiallowList
.
Amaspinner
-
Izipina manje ziyahlonishwa
prefers-reduced-motion: reduce
ngokunciphisa ukugqwayiza. Bona #31882 . -
Ukuqondanisa okuqondile kwesipina okuthuthukisiwe.
Amathosti
-
Amathosti manje angabekwa endaweni
.toast-container
ngosizo lokubeka izinsiza . -
Kushintshwe ubude be-toast obuzenzakalelayo baba amasekhondi angu-5.
-
Ikhishwe
overflow: hidden
kuma-toasts futhi kwafakwa u-border-radius
s ofanelecalc()
ngemisebenzi.
Amathuluzi
-
UkuphukaIqanjwe kabusha
.arrow
kuthempulethi.tooltip-arrow
yethu yamathuluzi ezenzakalelayo. -
UkuphukaInani elizenzakalelayo le- the
fallbackPlacements
lishintshelwa['top', 'right', 'bottom', 'left']
ekubekweni okungcono kwama-elementi e-popper. -
Ukuphuka
whiteList
Inketho eqanjwe kabusha kokuthiallowList
.
Izinsiza
-
UkuphukaKuqanjwe kabusha izinsiza ezimbalwa ukuze kusetshenziswe amagama ezakhiwo ezinengqondo esikhundleni samagama ezinkomba ngokungezwa kosekelo lwe-RTL:
- Kuqanjwe kabusha
.left-*
futhi.right-*
kuya.start-*
futhi.end-*
. - Kuqanjwe kabusha
.float-left
futhi.float-right
kuya.float-start
futhi.float-end
. - Kuqanjwe kabusha
.border-left
futhi.border-right
kuya.border-start
futhi.border-end
. - Kuqanjwe kabusha
.rounded-left
futhi.rounded-right
kuya.rounded-start
futhi.rounded-end
. - Kuqanjwe kabusha
.ml-*
futhi.mr-*
kuya.ms-*
futhi.me-*
. - Kuqanjwe kabusha
.pl-*
futhi.pr-*
kuya.ps-*
futhi.pe-*
. - Kuqanjwe kabusha
.text-left
futhi.text-right
kuya.text-start
futhi.text-end
.
- Kuqanjwe kabusha
-
UkuphukaAmamajini anegethivu akhutshaziwe ngokuzenzakalela.
-
Kwengezwe
.bg-body
ikilasi elisha lokusetha ngokushesha<body>
ingemuva lezinto ezengeziwe. -
Kwengezwe izinsiza zokuma ezintsha ze-
top
,right
,bottom
, kanyeleft
. Amanani afaka0
,50%
, kanye100%
nesakhiwo ngasinye. -
Kwengezwe izinsiza ezintsha maphakathi
.translate-middle-x
nendawo.translate-middle-y
evundlile noma eqondile yezinto ezimile ngokuphelele/ezimile. -
Kwengezwe
border-width
izinsiza ezintsha . -
UkuphukaIqanjwe kabusha
.text-monospace
kwaba.font-monospace
. -
UkuphukaKususiwe
.text-hide
njengoba kuyindlela yakudala yokufihla umbhalo okungasafanele kusetshenziswe. -
.fs-*
Izinsiza ezingeziwe zezinsizafont-size
(ezinikwe amandla i-RFS). Lezi zisebenzisa isikali esifanayo njengezihloko ezizenzakalelayo ze-HTML (1-6, ezinkulu kuye kwezincane), futhi zingashintshwa ngemephu ye-Sass. -
Ukuphuka
.font-weight-*
Izinsiza eziqanjwe kabusha njengobufushane.fw-*
nokuvumelana. -
Ukuphuka
.font-style-*
Izinsiza eziqanjwe kabusha njengobufushane.fst-*
nokuvumelana. -
Kwengezwe
.d-grid
ekuboniseni izinsiza nezinsiza ezintshagap
(.gap
) ze-CSS Grid nezakhiwo ze-flexbox. -
UkuphukaIkhishiwe
.rounded-sm
futhirounded-lg
, futhi yethula isikali esisha samakilasi,.rounded-0
ukuze.rounded-3
. Bona #31687 . -
Kwengezwe
line-height
izinsiza ezintsha:.lh-1
,.lh-sm
,.lh-base
kanye.lh-lg
. Bheka lapha . -
Ihambise
.d-none
insiza ku-CSS yethu ukuyinika isisindo esengeziwe kunezinye izinsiza zokubonisa. -
Welula
.visually-hidden-focusable
umsizi ukuthi asebenze nasezitsheni, esebenzisa:focus-within
.
Abasizi
-
Ukuphuka Abasizi bokushumeka abasabelayo baqanjwe kabusha ukuze balinganise abasizi ngamagama amasha ekilasi nokuziphatha okuthuthukisiwe, kanye nokuhluka okuwusizo kwe-CSS.
- Amakilasi aqanjwe kabusha ukuze ashintshele
by
kux
-aspect ratio. Ngokwesibonelo,.ratio-16by9
manje.ratio-16x9
. - Silahle
.embed-responsive-item
isikhethi seqembu kanye nesici ukuze sivune isikhethi esilula.ratio > *
. Asisekho ikilasi elidingekayo, futhi umsizi wesilinganiso manje usebenza nanoma iyiphi into ye-HTML. - Imephu ye-
$embed-responsive-aspect-ratios
Sass iqanjwe kabusha yaba$aspect-ratios
futhi amanani ayo enziwe lula ukuze afake igama lekilasi kanye nephesenti njengokupheyakey: value
. - Okuguquguqukayo kwe-CSS manje sekwenziwe futhi kufakwe ivelu ngalinye kumephu ye-Sass. Shintsha
--bs-aspect-ratio
okuguquguqukayo kokuthi.ratio
udale noma yikuphi ukubukeka kwesilinganiso ngokwezifiso .
- Amakilasi aqanjwe kabusha ukuze ashintshele
-
Ukuphuka Amakilasi "okufunda isikrini" manje asengamakilasi "afihliwe ngokubonakalayo" .
- Kushintshwe ifayela le-Sass ukusuka
scss/helpers/_screenreaders.scss
kokuthiscss/helpers/_visually-hidden.scss
- Iqanjwe kabusha
.sr-only
futhi.sr-only-focusable
kuya.visually-hidden
futhi.visually-hidden-focusable
- Kuqanjwe kabusha
sr-only()
futhisr-only-focusable()
kuxutshwe ku-visually-hidden()
futhivisually-hidden-focusable()
.
- Kushintshwe ifayela le-Sass ukusuka
-
bootstrap-utilities.css
manje kuhlanganisa nabasizi bethu. Abasizi abasadingi ukungeniswa ngezakhiwo ezenziwe ngokwezifiso.
I-JavaScript
-
Kwehlisiwe ukuncika kwe-jQuery futhi kwabhalwa kabusha ama-plugin ukuze abe ku-JavaScript evamile.
-
UkuphukaIzibaluli zedatha zawo wonke ama-plugin e-JavaScript manje sezifakwe amagama ukuze zisize ukuhlukanisa ukusebenza kwe-Bootstrap kubantu besithathu kanye nekhodi yakho. Isibonelo, sisebenzisa
data-bs-toggle
esikhundleni se-data-toggle
. -
Wonke ama-plugin manje angamukela isikhethi se-CSS njengengxabano yokuqala. Ungakwazi ukudlulisa isici se-DOM noma noma yisiphi isikhethi esivumelekile se-CSS ukuze udale isibonelo esisha se-plugin:
var modal = new bootstrap.Modal('#myModal') var dropdown = new bootstrap.Dropdown('[data-bs-toggle="dropdown"]')
-
popperConfig
ingadluliswa njengomsebenzi owamukela ukucushwa okuzenzakalelayo kwe-Bootstrap kwe-Popper njengengxabano, ukuze ukwazi ukuhlanganisa lokhu kumisa okuzenzakalelayo endleleni yakho. Isebenza kokwehliswayo, ama-popvers, namathiphu wamathuluzi. -
Inani elizenzakalelayo le- elementi
fallbackPlacements
lishintshelwa['top', 'right', 'bottom', 'left']
ekubekweni okungcono kwama-elementi e-Popper. Isebenza kokwehliswayo, ama-popvers, namathiphu wamathuluzi. -
Kukhishwe i-underscore ezindleleni ezimile zomphakathi ezifana ne-
_getInstance()
→getInstance()
.