Colors
Taurira zvinorehwa kuburikidza neruvara uine mashoma emakirasi ekushandisa mavara. Inosanganisira tsigiro yemaitiro ekubatanidza ane hover nyika, zvakare.
.text-primary
.text-secondary
.text-success
.text-danger
.text-yambiro
.text-info
.text-light
.text-dark
.text-yakanyarara
.text-white
<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-muted">.text-muted</p>
<p class="text-white bg-dark">.text-white</p>
Contextual text makirasi anoshandawo nemazvo pane anchors ane yakapihwa hover uye yekutarisa nyika. Ziva kuti iyo .text-white
uye .text-muted
kirasi haina chinongedzo styling.
<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>
Zvakafanana nemakirasi emavara emavara mavara, gadzirisa zviri nyore kumashure kwechinhu kune chero kirasi yemamiriro. Anchor zvikamu zvichasviba pane hover, senge makirasi ezvinyorwa. Background utilities don't setcolor
, saka mune dzimwe nguva unozoda kushandisa .text-*
zvishandiso.
<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>
Kana $enable-gradients
yaiswa kuchokwadi, unozogona kushandisa .bg-gradient-
utility makirasi. Nekusagadzikana, $enable-gradients
yakaremara uye muenzaniso uri pazasi wakaputswa nemaune. Izvi zvinoitirwa nyore kugadzirisa kubva panguva yaunotanga kushandisa Bootstrap. Dzidza nezvesarudzo dzedu dzeSass kugonesa makirasi aya nezvimwe.
<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>
Kuita nehunhu
Dzimwe nguva makirasi emamiriro ezvinhu haagone kushandiswa nekuda kwekutsanangurwa kweimwe sarudzo. Mune zvimwe zviitiko, yakakwana workaround ndeyekuputira chinhu chechinhu chako mune <div>
nekirasi.
Kuendesa zvinoreva kunobatsira matekinoroji
Kushandisa ruvara kuwedzera zvinoreva kunongopa chiratidzo chekuona, icho chisingazopirwe kune vashandisi vetekinoroji yekubatsira - senge zvidzitiro zvekuverenga. Ita shuwa kuti ruzivo rwunoratidzwa neruvara rwuri pachena kubva pane zvirimo (semuzvinyorwa zvinooneka), kana kuti zvinosanganisirwa neimwe nzira, senge mamwe mavara akavigwa .sr-only
nekirasi.