Source

Ku thayipa

Matsalwa na swikombiso swa thayipografi ya Bootstrap, ku katsa na swiletelo swa misava hinkwayo, tinhlokomhaka, tsalwa ra miri, minxaxamelo, na swin’wana.

Swiyimiso swa misava hinkwayo

Bootstrap yi veka nkombiso wa masungulo wa misava hinkwayo, thayipografi, na switayele swa vuhlanganisi. Loko ku laveka vulawuri lebyi engetelekeke, languta titlilasi ta vukorhokeri bya matsalwa .

  • Tirhisa xithaki xa fonto ya ntumbuluko lexi hlawulaka leswinene font-familyeka OS yin’wana ni yin’wana ni xitirhisiwa.
  • Ku kuma xikalo xa muxaka lexi katsaka hinkwaswo na ku fikeleleka, hi teka rimitsu ra xiviri ra xihlamusela-marito font-size(hi ntolovelo 16px) leswaku vaendzi va ta kota ku lulamisa swihlawulekisi swa vona swa xihlamusela-marito tanihilaha swi lavekaka hakona.
  • Tirhisa swihlawulekisi swa $font-family-base, $font-size-base, na $line-height-basetanihi xisekelo xa hina xa ku thayipa lexi tirhisiweke eka <body>.
  • Seta muvala wa xihlanganisi xa misava hinkwayo hi ku tirhisa $link-colorivi u tirhisa swiphepherhele swa xihlanganisi ntsena eka :hover.
  • Tirhisa $body-bgku veka a background-coloreka <body>( #fffhi ku tiyimisela).

Switayili leswi swi nga kumeka endzeni ka _reboot.scss, naswona swilo leswi cinca-cincaka swa misava hinkwayo swi hlamuseriwile eka _variables.scss. Tiyiseka leswaku u $font-size-basenghena eka rem.

Tinhloko-mhaka

Tinhlokomhaka hinkwato ta HTML, <h1>ku ya eka <h6>, ta kumeka.

Nhlokomhaka Xikombiso

<h1></h1>

h1. Nhlokomhaka ya bootstrap

<h2></h2>

h2. Nhlokomhaka ya bootstrap

<h3></h3>

h3. Nhlokomhaka ya bootstrap

<h4></h4>

h4. Nhlokomhaka ya bootstrap

<h5></h5>

h5. Nhlokomhaka ya bootstrap

<h6></h6>

h6. Nhlokomhaka ya bootstrap
<h1>h1. Bootstrap heading</h1>
<h2>h2. Bootstrap heading</h2>
<h3>h3. Bootstrap heading</h3>
<h4>h4. Bootstrap heading</h4>
<h5>h5. Bootstrap heading</h5>
<h6>h6. Bootstrap heading</h6>

.h1hi ku tirhisa .h6titlilasi na tona ta kumeka, ta loko u lava ku fambisana na xitayili xa fonto ya nhlokomhaka kambe u nga swi koti ku tirhisa elemente ya HTML leyi fambelanaka na yona.

h1. Nhlokomhaka ya bootstrap

h2. Nhlokomhaka ya bootstrap

h3. Nhlokomhaka ya bootstrap

h4. Nhlokomhaka ya bootstrap

h5. Nhlokomhaka ya bootstrap

h6. Nhlokomhaka ya bootstrap

<p class="h1">h1. Bootstrap heading</p>
<p class="h2">h2. Bootstrap heading</p>
<p class="h3">h3. Bootstrap heading</p>
<p class="h4">h4. Bootstrap heading</p>
<p class="h5">h5. Bootstrap heading</p>
<p class="h6">h6. Bootstrap heading</p>

Ku endla leswaku tinhloko-mhaka ti va leti u ti lavaka

Tirhisa titlilasi ta vukorhokeri leti katsiweke ku tumbuluxa nakambe tsalwa leritsongo ra nhlokomhaka ya vumbirhi ku suka eka Bootstrap 3.

Nhlokomhaka ya nkombiso wo fanekisela Na tsalwa ra vumbirhi leri nga nyamalala
<h3>
  Fancy display heading
  <small class="text-muted">With faded secondary text</small>
</h3>

Kombisa tinhloko-mhaka

Swiaki swa nhlokomhaka ya ndhavuko swi endleriwe ku tirha kahle eka nyama ya nhundzu ya pheji ya wena. Loko u lava nhloko-mhaka leswaku yi humelela, anakanya hi ku tirhisa nhloko-mhaka leyi kombisaka —xitayili lexikulu xa nhloko-mhaka lexi nga ni mavonelonyana.

Nkombiso 1.1
Xikombiso xa 2
Xikombiso xa 3
Xikombiso xa 4
<h1 class="display-1">Display 1</h1>
<h1 class="display-2">Display 2</h1>
<h1 class="display-3">Display 3</h1>
<h1 class="display-4">Display 4</h1>

Rhangela

Endla leswaku ndzimana yi va leyi hambaneke hi ku engetela .lead.

Vivamus sagittis lacus vel augue laoreet xitsonga xitsonga xitsonga xitsonga xitsonga xitsonga xitsonga xitsonga xitsonga xitsonga xitsonga xitsonga xitsonga. Duis mollis, est leyi nga riki ya xiyimo xa le henhla.

<p class="lead">
  Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.
</p>

Swiaki swa tsalwa ra le ndzeni ka layini

Ku endla switayili swa swiaki swa HTML5 leswi tolovelekeke swa le ndzeni ka layini.

U nga tirhisa thegi ya mfungho kuswa nkokatsalwa.

Layini leyi ya tsalwa yi endleriwe ku tekiwa tanihi tsalwa leri susiweke.

Layini leyi ya tsalwa yi endleriwe ku tekiwa tanihi leyi nga ha riki ntiyiso.

Layini leyi ya tsalwa yi endleriwe ku tekiwa tanihi ku engeteriwa eka tsalwa.

Layini leyi ya tsalwa yi ta hundzuluxela tanihi laha yi thaleriweke ha kona

Layini leyi ya tsalwa yi endleriwe ku tekiwa tanihi matsalelo lamanene.

Layini leyi yi hundzuluxeriwe tanihi tsalwa ro dzwihala.

Layini leyi yi hundzuluxeriwe tanihi tsalwa leri tsariweke hi ku olova.

<p>You can use the mark tag to <mark>highlight</mark> text.</p>
<p><del>This line of text is meant to be treated as deleted text.</del></p>
<p><s>This line of text is meant to be treated as no longer accurate.</s></p>
<p><ins>This line of text is meant to be treated as an addition to the document.</ins></p>
<p><u>This line of text will render as underlined</u></p>
<p><small>This line of text is meant to be treated as fine print.</small></p>
<p><strong>This line rendered as bold text.</strong></p>
<p><em>This line rendered as italicized text.</em></p>

.marknaswona .smalltitlilasi ti tlhela ti kumeka ku tirhisa switayele leswi fanaka na <mark>na <small>loko ku ri karhi ku papalatiwa switandzhaku swihi na swihi swa nhlamuselo leswi nga laviwiki leswi tithegi ti nga ta swi tisa.

Hambileswi swi nga kombisiwangiki laha henhla, titwe u ntshunxekile ku tirhisa <b>ni <i>hi HTML5. <b>yi endleriwe ku kombisa marito kumbe swivulwa handle ko hundzisela nkoka lowu engetelekeke kasi <i>ngopfungopfu i ya rito, marito ya xithekiniki, na swin’wana.

Switirhisiwa swa matsalwa

Cinca ku ringanisa ka matsalwa, hundzula, xitayili, ntiko, na muvala hi switirhisiwa swa hina swa matsalwa na switirhisiwa swa mihlovo .

Swipfuxeto

Ku tirhisiwa ka xitayili ka <abbr>elemente ya HTML ya swipfuxeto na swihlamusela-marito ku kombisa vuhundzuluxeri lebyi andlariweke eka hover. Swipfuxeto swi na ku thalela ehansi ka xiviri naswona swi kuma xikombiso xa mpfuneto ku nyika mongo wo engetela eka hover na le ka vatirhisi va thekinoloji yo pfuneta.

Engetela .initialismeka xifunengeto xa font-size leyitsongonyana.

attr

HTML

<p><abbr title="attribute">attr</abbr></p>
<p><abbr title="HyperText Markup Language" class="initialism">HTML</abbr></p>

Switlhokovetselo swa swibokisana

Ku tshaha swibokisana swa nhundzu ku suka eka xihlovo xin’wana endzeni ka tsalwa ra wena. Pfuxeta HTML<blockquote class="blockquote"> yihi na yihi tanihi xitlhokovetselo.

Lorem ipsum dolor tshama amet, consectetur adipiscing xiyimo xa le henhla. Nhlayo leyi heleleke ya posuere erat a ante.

<blockquote class="blockquote">
  <p class="mb-0">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
</blockquote>

Ku thya xihlovo vito

Engetela a <footer class="blockquote-footer">ya ku vona xihlovo. Pfuxeta vito ra ntirho wa xihlovo eka <cite>.

Lorem ipsum dolor tshama amet, consectetur adipiscing xiyimo xa le henhla. Nhlayo leyi heleleke ya posuere erat a ante.

Munhu loyi a dumeke eka Source Title
<blockquote class="blockquote">
  <p class="mb-0">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
  <footer class="blockquote-footer">Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote>

Ku ringanisa

Tirhisa switirhisiwa swa matsalwa tanihilaha swi lavekaka hakona ku cinca ku ringanana ka blockquote ya wena.

Lorem ipsum dolor tshama amet, consectetur adipiscing xiyimo xa le henhla. Nhlayo leyi heleleke ya posuere erat a ante.

Munhu loyi a dumeke eka Source Title
<blockquote class="blockquote text-center">
  <p class="mb-0">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
  <footer class="blockquote-footer">Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote>

Lorem ipsum dolor tshama amet, consectetur adipiscing xiyimo xa le henhla. Nhlayo leyi heleleke ya posuere erat a ante.

Munhu loyi a dumeke eka Source Title
<blockquote class="blockquote text-right">
  <p class="mb-0">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
  <footer class="blockquote-footer">Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote>

Minxaxamelo ya swilo

Ku nga ri na xitayili

Susa list-stylemargin ya ntolovelo na ya ximatsi eka swilo swa nxaxamelo (vana va xihatla ntsena). Leswi swi tirha ntsena eka swilo swa nxaxamelo wa vana va xihatla , leswi vulaka leswaku u ta lava ku engetela tlilasi ya minxaxamelo yihi na yihi leyi pfanganisiweke na yona.

  • Lorem ipsum dolor tshama amet
  • Consectetur leyi nga ni mafurha yo tala
  • Nhlayo leyi heleleke ya molestie lorem eka massa
  • Facilisis eka xirhendzevutani xa pretium nisl aliquet
  • Nulla volutpat xitsonga xitsonga xitsonga xitsonga
    • Xiphemu xa xirhendzevutani xa iaculis neque
    • Purus sodales ya switsongwatsongwana swa ultricies
    • Vestibulum laoreet xirho xa xirhendzevutani sem
    • Ac tristique libero xitsonga xitsonga xitsonga xitsonga
  • Faucibus porta lacus xihlala xa xirhendzevutani xa xirhendzevutani
  • Aenean tshama amet erat nunc
  • Eget porttitor xitsonga xitsonga
<ul class="list-unstyled">
  <li>Lorem ipsum dolor sit amet</li>
  <li>Consectetur adipiscing elit</li>
  <li>Integer molestie lorem at massa</li>
  <li>Facilisis in pretium nisl aliquet</li>
  <li>Nulla volutpat aliquam velit
    <ul>
      <li>Phasellus iaculis neque</li>
      <li>Purus sodales ultricies</li>
      <li>Vestibulum laoreet porttitor sem</li>
      <li>Ac tristique libero volutpat at</li>
    </ul>
  </li>
  <li>Faucibus porta lacus fringilla vel</li>
  <li>Aenean sit amet erat nunc</li>
  <li>Eget porttitor lorem</li>
</ul>

Inline

Susa swibalesa swa nxaxamelo ivi u tirhisa ku vonakala ko karhi marginhi ku hlanganisiwa ka titlilasi timbirhi, .list-inlinenaswona .list-inline-item.

  • Lorem ipsum yi vula leswaku
  • Xiphemu xa phasellus iaculis
  • Nulla xitsonga xitsonga
<ul class="list-inline">
  <li class="list-inline-item">Lorem ipsum</li>
  <li class="list-inline-item">Phasellus iaculis</li>
  <li class="list-inline-item">Nulla volutpat</li>
</ul>

Nhlamuselo ya nxaxamelo wa ku ringanisiwa

Hlanganisa marito na tinhlamuselo hi ndlela yo rhendzeleka hi ku tirhisa titlilasi leti hlamuseriweke ka ha ri emahlweni ta sisiteme ya hina ya giridi (kumbe mixins ya semantiki). Eka nkarhi wo leha, u nga engetela .text-truncatetlilasi hi ku hlawula ku tsema tsalwa hi ellipsis.

Minxaxamelo ya tinhlamuselo
Nxaxamelo wa tinhlamuselo wu hetisekile ku hlamusela marito.
Euismod

Vestibulum id ligula porta felis euismod xitombo xa xitombo xa xitombo xa xitombo xa xitombo xa xitombo xa xitombo.

Donec id elit leyi nga riki na mi porta gravida eka eget metus.

Malesuada ya xitsonga
Etiam porta sem malesuada leyikulu leyi nga ni vuxiyaxiya.
Rito leri tsemiweke ri tsemiwile
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum masa justo tshama amet risus.
Ku endla swisaka
Nxaxamelo wa nhlamuselo leyi pfanganisiweke
Aenean posuere, tortor sed xihlamariso xa xivundza, xihlangi lexi nga ni vuxiyaxiya.
<dl class="row">
  <dt class="col-sm-3">Description lists</dt>
  <dd class="col-sm-9">A description list is perfect for defining terms.</dd>

  <dt class="col-sm-3">Euismod</dt>
  <dd class="col-sm-9">
    <p>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</p>
    <p>Donec id elit non mi porta gravida at eget metus.</p>
  </dd>

  <dt class="col-sm-3">Malesuada porta</dt>
  <dd class="col-sm-9">Etiam porta sem malesuada magna mollis euismod.</dd>

  <dt class="col-sm-3 text-truncate">Truncated term is truncated</dt>
  <dd class="col-sm-9">Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</dd>

  <dt class="col-sm-3">Nesting</dt>
  <dd class="col-sm-9">
    <dl class="row">
      <dt class="col-sm-4">Nested definition list</dt>
      <dd class="col-sm-8">Aenean posuere, tortor sed cursus feugiat, nunc augue blandit nunc.</dd>
    </dl>
  </dd>
</dl>

Thayipo leyi hlamulaka

Thayipogirafi leyi hlamulaka yi kombetela eka ku ringanisa tsalwa na swiphemu hi ku lulamisa ntsena swiaki swa rimitsu font-sizeendzeni ka nxaxamelo wa swivutiso swa vuhangalasi bya mahungu. Bootstrap a yi ku endleli leswi, kambe swa olova swinene ku swi engetela loko u swi lava.

Hi lexi xikombiso xa swona hi ku tirhisa. Hlawula font-sizeswivutiso swihi na swihi swa s na swa vuhangalasi bya mahungu leswi u swi lavaka.

html {
  font-size: 1rem;
}

@include media-breakpoint-up(sm) {
  html {
    font-size: 1.2rem;
  }
}

@include media-breakpoint-up(md) {
  html {
    font-size: 1.4rem;
  }
}

@include media-breakpoint-up(lg) {
  html {
    font-size: 1.6rem;
  }
}