Imibala
Dlulisa incazelo ngombala ngezigaba ezimbalwa zensiza yombala. Kufaka phakathi usekelo lwezixhumanisi zesitayela ezinezifunda ze-hover, futhi.
Ukubhekana nokucaciswa
Kwesinye isikhathi amakilasi omongo awakwazi ukusetshenziswa ngenxa yokucaciswa kwesinye isikhethi. Kwezinye izimo, i-workaround eyanele ukusonga okuqukethwe kwe-elementi yakho <div>
ngeklasi.
Ukudlulisa incazelo kubuchwepheshe obusizayo
Ukusebenzisa umbala ukwengeza incazelo kunikeza kuphela inkomba ebonakalayo, engeke idluliselwe kubasebenzisi bobuchwepheshe obusizayo - njengezifundi zesikrini. Qinisekisa ukuthi ulwazi olushiwo umbala lusobala kokuqukethwe ngokwako (isb umbhalo obonakalayo), noma lufakwe ngezinye izindlela, njengombhalo owengeziwe ofihliwe .sr-only
nekilasi.
Umbala
.umbhalo-oyinhloko
.imibhalo-yesibili
.impumelelo yombhalo
.ingozi yombhalo
.isixwayiso sombhalo
.ulwazi lombhalo
.ukukhanya kombhalo
.umbhalo-mnyama
.umzimba-wombhalo
.umbhalo-uthulisiwe
.umbhalo-mhlophe
.umbhalo-omnyama-50
.umbhalo-omhlophe-50
<p class="text-primary">.text-primary</p>
<p class="text-secondary">.text-secondary</p>
<p class="text-success">.text-success</p>
<p class="text-danger">.text-danger</p>
<p class="text-warning">.text-warning</p>
<p class="text-info">.text-info</p>
<p class="text-light bg-dark">.text-light</p>
<p class="text-dark">.text-dark</p>
<p class="text-body">.text-body</p>
<p class="text-muted">.text-muted</p>
<p class="text-white bg-dark">.text-white</p>
<p class="text-black-50">.text-black-50</p>
<p class="text-white-50 bg-dark">.text-white-50</p>
Amakilasi ombhalo womongo nawo asebenza kahle kumahange anezimo ezinikeziwe zokuhambisa phezulu nezigxilile. Qaphela ukuthi i- class .text-white
ne - .text-muted
class ayinazo isitayela sesixhumanisi esengeziwe ngale kokudwebela.
<p><a href="#" class="text-primary">Primary link</a></p>
<p><a href="#" class="text-secondary">Secondary link</a></p>
<p><a href="#" class="text-success">Success link</a></p>
<p><a href="#" class="text-danger">Danger link</a></p>
<p><a href="#" class="text-warning">Warning link</a></p>
<p><a href="#" class="text-info">Info link</a></p>
<p><a href="#" class="text-light bg-dark">Light link</a></p>
<p><a href="#" class="text-dark">Dark link</a></p>
<p><a href="#" class="text-muted">Muted link</a></p>
<p><a href="#" class="text-white bg-dark">White link</a></p>
Umbala wangemuva
Ngokufana nezigaba zombala wombhalo womongo, setha kalula ingemuva lesici kunoma yisiphi isigaba somongo. Izingxenye zehange zizoba mnyama ngokuhambisa phezulu, njengamakilasi ombhalo. Izinsiza zasemuva azisethiwe ,color
ngakho-ke kwezinye izimo uzofuna ukusebenzisa .text-*
izinsiza.
<div class="p-3 mb-2 bg-primary text-white">.bg-primary</div>
<div class="p-3 mb-2 bg-secondary text-white">.bg-secondary</div>
<div class="p-3 mb-2 bg-success text-white">.bg-success</div>
<div class="p-3 mb-2 bg-danger text-white">.bg-danger</div>
<div class="p-3 mb-2 bg-warning text-dark">.bg-warning</div>
<div class="p-3 mb-2 bg-info text-white">.bg-info</div>
<div class="p-3 mb-2 bg-light text-dark">.bg-light</div>
<div class="p-3 mb-2 bg-dark text-white">.bg-dark</div>
<div class="p-3 mb-2 bg-white text-dark">.bg-white</div>
<div class="p-3 mb-2 bg-transparent text-dark">.bg-transparent</div>
I-gradient yangemuva
Uma $enable-gradients
isethwe ukuze true
(okuzenzakalelayo ngu false
), ungasebenzisa .bg-gradient-
amakilasi okusetshenziswayo. Funda mayelana nezinketho zethu ze-Sass ukuze unike amandla lawa makilasi nokunye okwengeziwe.
.bg-gradient-primary
.bg-gradient-secondary
.bg-gradient-success
.bg-gradient-danger
.bg-gradient-warning
.bg-gradient-info
.bg-gradient-light
.bg-gradient-dark