Source

Nga Tae

Whakaatuhia te tikanga ma te tae me te maha o nga karaehe whaipainga tae. Kei roto ko te tautoko mo te whakaahua hononga ki nga ahua hover, hoki.

Tae

.kuputuhi-tuatahi

.kuputuhi-tuarua

.kupu-angitu

.tuhinga-kino

.tuhinga-tuhinga

.text-info

.kupu-marama

.kupu-pouri

.kuputuhi-wahangu

.kuputuhi-ma

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

He pai hoki te mahi a nga karaehe tuhinga horopaki ki runga i nga punga me te ahua o te hover me te arotahi. Kia mahara ko te .text-whiteme .text-mutedte akomanga karekau he momo hono.

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

Tae papamuri

He rite ki nga karaehe tae kuputuhi horopaki, he ngawari ki te tautuhi i te papamuri o tetahi huānga ki tetahi karaehe horopaki. Ka pouri nga waahanga punga i runga i te whakaparo, pera i nga karaehe tuhinga. Ko nga taputapu papamuri kaore e tautuhiacolor , na i etahi wa ka hiahia koe ki te whakamahi .text-*taputapu.

.bg-tuatahi
.bg-tuarua
.bg-angitu
.bg-mate
.bg-whakatupato
.bg-info
.bg-marama
.bg-pouri
.bg-ma
<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>

Rōnaki papamuri

Ina $enable-gradientstautuhia ki te pono, ka taea e koe te whakamahi i .bg-gradient-nga karaehe whaipainga. Ma te taunoa, $enable-gradientska monokia, ka pakaru te tauira i raro nei. Ka mahia tenei mo te whakarite ngawari mai i te wa ka timata koe ki te whakamahi i te Bootstrap. Akohia o maatau whiringa Sass kia taea ai enei karaehe me etahi atu.

.bg-gradient-primary
.bg-gradient-tuarua
.bg-gradient-angitu
.bg-gradient-te kino
.bg-gradient-whakatupato
.bg-gradient-info
.bg-rōnaki-marama
.bg-gradient-pouri
<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>

Te mahi motuhake

I etahi wa kaore e taea te whakamahi i nga karaehe horopaki na te mea motuhake o tetahi atu kaiwhiriwhiri. I etahi wa, he rawaka te otinga ko te takai i nga ihirangi o to huānga ki roto <div>me te akomanga.

Te kawe i te tikanga ki nga hangarau awhina

Ko te whakamahi i te tae ki te taapiri i te tikanga he tohu tirohanga noa iho, kaore e tukuna ki nga kaiwhakamahi hangarau awhina - penei i nga kaipanui mata. Me mohio kei te kitea nga korero e tohuhia ana e te tae mai i te ihirangi ake (hei tauira, te tuhinga ka kitea), ka whakaurua ranei ma etahi atu huarahi, penei i etahi atu tuhinga huna ki te .sr-onlyakomanga.