Source

Imibala

Ukubonisa intsingiselo ngombala ngeqela leeklasi eziluncedo zemibala. Ibandakanya inkxaso yonxibelelwano lwesitayile kunye ne-hover state, nayo.

Umbala

.isicatshulwa-esisisiseko

.okubhaliweyo-kwesibini

.impumelelo yokubhaliweyo

.ingozi yokubhaliweyo

.isicatshulwa-isilumkiso

.ulwazi olubhaliweyo

.ukukhanya okubhaliweyo

.umbhalo-mnyama

.text-body

.umbhalo-uthulisiwe

.umbhalo-mhlophe

.umbhalo-omnyama-50

.umbhalo-mhlophe-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>

Iiklasi zetekisi yomxholo nazo zisebenza kakuhle kwii-ankile ezine-hover ebonelelweyo kunye neemeko zokugxila. Qaphela ukuba iklasi ayinaso .text-whiteisimbo .text-mutedsonxibelelwano esongezelelweyo ngaphaya komgca ngaphantsi.

<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 ongasemva

Ngokufana neeklasi zombala wetekisi yomxholo, cwangcisa ngokulula imvelaphi yento kuyo nayiphi na iklasi yomxholo. Izinto ze-ankile ziya kuba mnyama kwi-hover, njengeeklasi zombhalo. Izinto ezingasemva azicwangciswangacolor , ngoko ke kwezinye iimeko uya kufuna ukusebenzisa .text-*izinto eziluncedo.

.bg-engundoqo
.bg-yesibini
.bg-impumelelo
.bg-ingozi
.bg-isilumkiso
.bg-ulwazi
.bg-ukukhanya
.bg-mnyama
.bg-mhlophe
.bg-transparent
<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>

Ingasemva igradient

Xa $enable-gradientsimiselwe kwinyani, uya kukwazi ukusebenzisa .bg-gradient-iiklasi eziluncedo. Ngokungagqibekanga, $enable-gradientsivaliwe kwaye umzekelo ongezantsi waphulwe ngabom. Oku kwenzelwa ukwenza lula ukusukela oko uqala ukusebenzisa iBootstrap. Funda malunga neenketho zethu zeSass ukwenza ezi klasi kunye nokunye.

.bg-gradient-primary
.bg-gradient-yesibini
.bg-gradient-impumelelo
.bg-gradient-ingozi
.bg-gradient-isilumkiso
.bg-gradient-info
.bg-ukukhanya-ukukhanya
.bg-gradient-mnyama
<div class="p-3 mb-2 bg-gradient-primary text-white">.bg-gradient-primary</div>
<div class="p-3 mb-2 bg-gradient-secondary text-white">.bg-gradient-secondary</div>
<div class="p-3 mb-2 bg-gradient-success text-white">.bg-gradient-success</div>
<div class="p-3 mb-2 bg-gradient-danger text-white">.bg-gradient-danger</div>
<div class="p-3 mb-2 bg-gradient-warning text-dark">.bg-gradient-warning</div>
<div class="p-3 mb-2 bg-gradient-info text-white">.bg-gradient-info</div>
<div class="p-3 mb-2 bg-gradient-light text-dark">.bg-gradient-light</div>
<div class="p-3 mb-2 bg-gradient-dark text-white">.bg-gradient-dark</div>

Ukujongana neenkcukacha

Ngamanye amaxesha iiklasi zomxholo azinakusetyenziswa ngenxa yento ethile yomnye umkhethi. Kwezinye iimeko, i-workaround eyaneleyo kukusonga umxholo wento yakho <div>kunye neklasi.

Ukuhambisa intsingiselo kwiiteknoloji ezincedisayo

Ukusebenzisa umbala ukongeza intsingiselo kubonelela kuphela ngesalathiso esibonakalayo, esingayi kuthunyelwa kubasebenzisi betekhnoloji encedisayo - njengezifundi zesikrini. Qinisekisa ukuba ulwazi olubonakaliswe ngumbala lucacile kumxholo ngokwawo (umzekelo, umbhalo obonakalayo), okanye luqukwe ngezinye iindlela, ezifana nesicatshulwa esongezelelweyo esifihlwe .sr-onlyeklasini.