Mafere na isi ọdịnaya Gaa na ntugharị docs

Akwụkwọ na ihe atụ maka baajị, obere ọnụ ọgụgụ anyị na akụrụngwa akara.

Ihe atụ

Ọnụọgụ baajị iji dakọọ nha nke mmewere nne na nna ozugbo site na iji nha mkpụrụedemede ikwu na emnkeji. Dị ka nke v5, baajị enwekwaghị elekwasị anya ma ọ bụ ụdị ntugharị maka njikọ.

Isi okwu

Isi ihe atụỌhụrụ

Isi ihe atụỌhụrụ

Isi ihe atụỌhụrụ

Isi ihe atụỌhụrụ

Isi ihe atụỌhụrụ
Isi ihe atụỌhụrụ
<h1>Example heading <span class="badge bg-secondary">New</span></h1>
<h2>Example heading <span class="badge bg-secondary">New</span></h2>
<h3>Example heading <span class="badge bg-secondary">New</span></h3>
<h4>Example heading <span class="badge bg-secondary">New</span></h4>
<h5>Example heading <span class="badge bg-secondary">New</span></h5>
<h6>Example heading <span class="badge bg-secondary">New</span></h6>

Bọtịnụ

Enwere ike iji baajị dịka akụkụ nke njikọ ma ọ bụ bọtịnụ iji nye counter.

<button type="button" class="btn btn-primary">
  Notifications <span class="badge bg-secondary">4</span>
</button>

Rịba ama na dabere na otu esi eji ha, baajị nwere ike ịgbagwoju anya maka ndị na-agụ ihuenyo yana teknụzụ enyemaka yiri ya. Ọ bụ ezie na ịke baajị na-enye ihe ngosi anya maka ebumnuche ha, naanị ndị ọrụ a ga-egosipụta ọdịnaya nke baajị ahụ. Dabere na ọnọdụ a kapịrị ọnụ, baajị ndị a nwere ike ịdị ka okwu ma ọ bụ ọnụọgụ agbakwunyere enweghị usoro na njedebe nke ahịrịokwu, njikọ, ma ọ bụ bọtịnụ.

Ọ gwụla ma ihe gbara ya gburugburu doro anya (dị ka ọ dị na ihe atụ “Ọma Ọkwa”, ebe a ghọtara na “4” bụ ọnụọgụ ọkwa), tụlee itinye mgbakwunye mgbakwunye yana mpempe ederede agbakwunyere na anya.

Edoro ya

Jiri akụrụngwa iji gbanwee .badgema debe ya n'akụkụ njikọ ma ọ bụ bọtịnụ.

<button type="button" class="btn btn-primary position-relative">
  Inbox
  <span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger">
    99+
    <span class="visually-hidden">unread messages</span>
  </span>
</button>

Ị nwekwara ike dochie .badgeklas ahụ na ole na ole ọzọ utilities na-enweghị a agụta maka ọzọ generic egosi.

<button type="button" class="btn btn-primary position-relative">
  Profile
  <span class="position-absolute top-0 start-100 translate-middle p-2 bg-danger border border-light rounded-circle">
    <span class="visually-hidden">New alerts</span>
  </span>
</button>

Agba agba

Jiri klaasị ike n'okirikiri anyị iji gbanwee ọdịdị nke baajị ngwa ngwa. Biko mara na mgbe ị na-eji ndabara Bootstrap .bg-light, ị ga-achọ akụrụngwa agba ederede dị ka .text-darkmaka nhazi nke ọma. Nke a bụ n'ihi na akụrụngwa ndabere anaghị edobe ihe ọ bụla ma background-color.

Isi Secondary Ihe ịga nke ọma Ihe egwu Ịdọ aka ná ntị Ozi Ìhè Ọchịchịrị
<span class="badge bg-primary">Primary</span>
<span class="badge bg-secondary">Secondary</span>
<span class="badge bg-success">Success</span>
<span class="badge bg-danger">Danger</span>
<span class="badge bg-warning text-dark">Warning</span>
<span class="badge bg-info text-dark">Info</span>
<span class="badge bg-light text-dark">Light</span>
<span class="badge bg-dark">Dark</span>
Na-eme ka ọ pụta ìhè na teknụzụ enyemaka

Iji agba iji gbakwunye ihe ọ pụtara naanị na-enye ihe ngosi anya, nke a na-agaghị ebugara ndị ọrụ teknụzụ enyemaka - dị ka ndị na-agụ ihuenyo. Gbaa mbọ hụ na ozi nke agba gosipụtara pụtara ìhè site na ọdịnaya n'onwe ya (dịka ederede a na-ahụ anya), ma ọ bụ tinye ya site na ụzọ ọzọ, dị ka ederede agbakwunyere zoro ezo na .visually-hiddenklaasị.

baajị ọgwụ

Jiri .rounded-pillklaasị ịba uru mee ka baajị bụrụ nke buru ibu karịa border-radius.

Isi Secondary Ihe ịga nke ọma Ihe egwu Ịdọ aka ná ntị Ozi Ìhè Ọchịchịrị
<span class="badge rounded-pill bg-primary">Primary</span>
<span class="badge rounded-pill bg-secondary">Secondary</span>
<span class="badge rounded-pill bg-success">Success</span>
<span class="badge rounded-pill bg-danger">Danger</span>
<span class="badge rounded-pill bg-warning text-dark">Warning</span>
<span class="badge rounded-pill bg-info text-dark">Info</span>
<span class="badge rounded-pill bg-light text-dark">Light</span>
<span class="badge rounded-pill bg-dark">Dark</span>

Sass

Mgbanwe

$badge-font-size:                   .75em;
$badge-font-weight:                 $font-weight-bold;
$badge-color:                       $white;
$badge-padding-y:                   .35em;
$badge-padding-x:                   .65em;
$badge-border-radius:               $border-radius;