Ku thayipa
Matsalwa na swikombiso swa thayipografi ya Bootstrap, ku katsa na swiletelo swa misava hinkwayo, tinhlokomhaka, tsalwa ra miri, minxaxamelo, na swin’wana.
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-family
eka 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-base
tanihi xisekelo xa hina xa ku thayipa lexi tirhisiweke eka<body>
. - Seta muvala wa xihlanganisi xa misava hinkwayo hi ku tirhisa
$link-color
ivi u tirhisa swiphepherhele swa xihlanganisi ntsena eka:hover
. - Tirhisa
$body-bg
ku veka abackground-color
eka<body>
(#fff
hi 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-base
nghena eka rem
.
Tinhlokomhaka hinkwato ta HTML, <h1>
ku ya eka <h6>
, ta kumeka.
Nhlokomhaka | Xikombiso |
---|---|
|
h1. Nhlokomhaka ya bootstrap |
|
h2. Nhlokomhaka ya bootstrap |
|
h3. Nhlokomhaka ya bootstrap |
|
h4. Nhlokomhaka ya bootstrap |
|
h5. Nhlokomhaka ya bootstrap |
|
h6. Nhlokomhaka ya bootstrap |
.h1
hi ku tirhisa .h6
titlilasi 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>
Tirhisa titlilasi ta vukorhokeri leti katsiweke ku tumbuluxa nakambe tsalwa leritsongo ra nhlokomhaka ya vumbirhi ku suka eka Bootstrap 3.
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 |
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>
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>
.mark
naswona .small
titlilasi 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.
Cinca ku ringanisa ka matsalwa, hundzula, xitayili, ntiko, na muvala hi switirhisiwa swa hina swa matsalwa na switirhisiwa swa mihlovo .
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 .initialism
eka 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>
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>
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.
<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>
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.
<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.
<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>
Susa list-style
margin 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>
Susa swibalesa swa nxaxamelo ivi u tirhisa ku vonakala ko karhi margin
hi ku hlanganisiwa ka titlilasi timbirhi, .list-inline
naswona .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>
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-truncate
tlilasi 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>
Thayipogirafi leyi hlamulaka yi kombetela eka ku ringanisa tsalwa na swiphemu hi ku lulamisa ntsena swiaki swa rimitsu font-size
endzeni 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-size
swivutiso swihi na swihi swa s na swa vuhangalasi bya mahungu leswi u swi lavaka.