Source

Awọn awọ

Ṣe afihan itumọ nipasẹ awọ pẹlu iwonba ti awọn kilasi IwUlO awọ. Pẹlu atilẹyin fun awọn ọna asopọ iselona pẹlu awọn ipinlẹ rababa, paapaa.

Àwọ̀

.ọrọ-akọkọ

.ọrọ-secondary

.ọrọ-aseyori

.ọrọ-ewu

.kilọ-ọrọ

.ọrọ-alaye

.ọrọ-imọlẹ

.ọrọ-ṣokunkun

.ọrọ-dakẹjẹẹ

.ọrọ-funfun

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

Awọn kilasi ọrọ asọye tun ṣiṣẹ daradara lori awọn ìdákọró pẹlu fifin ti a pese ati awọn ipinlẹ idojukọ. Ṣe akiyesi pe .text-whiteati .text-mutedkilasi ko ni iselona ọna asopọ.

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

Awọ abẹlẹ

Iru si awọn kilasi awọ ọrọ ọrọ ọrọ, ni irọrun ṣeto abẹlẹ ti ohun kan si eyikeyi kilasi ọrọ-ọrọ. Awọn paati oran yoo ṣokunkun lori rababa, gẹgẹ bi awọn kilasi ọrọ. Awọn ohun elo abẹlẹ ko ṣetocolor , nitorina ni awọn igba miiran iwọ yoo fẹ lati lo .text-*awọn ohun elo.

.bg-akọkọ
.bg-keji
.bg-aseyori
.bg-ewu
.bg-ìkìlọ
.bg-alaye
.bg-imọlẹ
.bg-dudu
.bg-funfun
<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>

Isalẹ abẹlẹ

Nigbati $enable-gradientso ba ṣeto si otitọ, iwọ yoo ni anfani lati lo .bg-gradient-awọn kilasi iwUlO. Nipa aiyipada, $enable-gradientsjẹ alaabo ati apẹẹrẹ ti o wa ni isalẹ jẹ imomose dà. Eyi ni a ṣe fun isọdi irọrun lati akoko ti o bẹrẹ lilo Bootstrap. Kọ ẹkọ nipa awọn aṣayan Sass wa lati mu ki awọn kilasi wọnyi ṣiṣẹ ati diẹ sii.

.bg-gradient-primary
.bg-gradient-secondary
.bg-gradient-aseyori
.bg-gradient-ewu
.bg-gradient-ikilo
.bg-gradient-info
.bg-gradient-ina
.bg-gradient-dudu
<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>

Awọn olugbagbọ pẹlu ni pato

Nigba miiran awọn kilasi ọrọ-ọrọ ko le ṣe lo nitori iyasọtọ ti yiyan miiran. Ni awọn igba miiran, iṣẹ-ṣiṣe ti o to ni lati fi ipari si akoonu eroja rẹ ni a <div>pẹlu kilasi naa.

Gbigbe itumo si awọn imọ-ẹrọ iranlọwọ

Lilo awọ lati ṣafikun itumọ nikan n pese itọkasi wiwo, eyiti kii yoo gbe lọ si awọn olumulo ti awọn imọ-ẹrọ iranlọwọ - gẹgẹbi awọn oluka iboju. Rii daju pe alaye ti o tọka si nipasẹ awọ jẹ eyiti o han gbangba lati inu akoonu funrararẹ (fun apẹẹrẹ ọrọ ti o han), tabi pẹlu pẹlu awọn ọna omiiran, gẹgẹbi afikun ọrọ ti o farapamọ pẹlu .sr-onlykilasi naa.