Source

Dathan

Cuir an cèill brìgh tro dhath le dòrlach de chlasaichean goireasan dath. A’ toirt a-steach taic airson ceanglaichean stoidhle le stàitean hover cuideachd.

Dath

.text-bun-sgoile

.text-àrd-sgoile

.text-soirbheachas

.text-cunnart

.teacs-rabhadh

.teacs-fiosrachaidh

.teacs-solais

.teacs-dhorcha

.text-corp

.teacs-thàmh

.teacs-gheal

.text-dubh-50

.text-geal-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>

Bidh clasaichean teacsa co-theacsail cuideachd ag obair gu math air acraichean leis na stàitean gluasad agus fòcas a tha air an toirt seachad. Thoir an aire nach eil stoidhle ceangail a bharrachd aig a’ chlas .text-whiteagus .text-mutednas fhaide na an loidhne.

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

Dath cùl-fhiosrachaidh

Coltach ris na clasaichean dath teacsa co-theacsach, cuir gu furasta cùl-raon eileamaid ann an clas co-theacsail sam bith. Bidh co-phàirtean acair a’ dorchachadh air hover, dìreach mar na clasaichean teacsa. Cha bhith goireasan cùl-fhiosrachaidh a’ suidheachadhcolor , mar sin ann an cuid de chùisean bidh thu airson .text-*goireasan a chleachdadh.

.bg-bun-sgoile
.bg-àrd-sgoile
.bg-soirbheachas
.bg-chunnart
.bg-rabhadh
.bg-fiosrachaidh
.bg-aotrom
.bg-dorcha
.bg-gheal
.bg-fhollaiseach
<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>

Caisead cùl-fhiosrachaidh

Nuair $enable-gradientsa bhios tu deiseil, bidh e comasach dhut .bg-gradient-clasaichean goireis a chleachdadh. Gu gnàthach, $enable-gradientstha e ciorramach agus tha an eisimpleir gu h-ìosal air a bhriseadh a dh’aona ghnothach. Tha seo air a dhèanamh airson gnàthachadh nas fhasa bhon mhionaid a thòisicheas tu a’ cleachdadh Bootstrap. Ionnsaich mu na roghainnean Sass againn gus na clasaichean sin agus barrachd a chomasachadh.

.bg-gradient-bun-sgoile
.bg-gradient-àrd-sgoile
.bg-gradient-soirbheachas
.bg-gradient-cunnart
.bg-gradient-rabhadh
.bg-gradient-fiosrachaidh
.bg-gradient-aotrom
.bg-gradient-dorcha
<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>

A’ dèiligeadh ri sònrachas

Aig amannan chan urrainnear clasaichean co-theacsail a chuir an sàs air sgàth sònrachas neach-taghaidh eile. Ann an cuid de chùisean, tha e na dhòigh-obrach gu leòr susbaint an eileamaid agad a phasgadh ann <div>an clas leis a’ chlas.

A’ toirt brìgh do theicneòlasan cuideachail

Chan eil a bhith a’ cleachdadh dath gus brìgh a chur ris ach a’ toirt seachad sealladh lèirsinneach, nach tèid a thoirt do luchd-cleachdaidh theicneòlasan taice - leithid leughadairean sgrion. Dèan cinnteach gu bheil fiosrachadh air a chomharrachadh leis an dath an dàrna cuid follaiseach bhon t-susbaint fhèin (me an teacsa faicsinneach), no air a thoirt a-steach tro dhòighean eile, leithid teacsa a bharrachd falaichte leis a’ .sr-onlychlas.