Tusitala
Faʻamaumauga ma faʻataʻitaʻiga mo Bootstrap typography, e aofia ai faʻasalalauga faʻavaomalo, ulutala, tino tusitusiga, lisi, ma isi mea.
Ua setiina e Bootstrap le fa'aaliga fa'alelalolagi, fa'asologa, ma sitaili feso'ota'iga. A mana'omia nisi fa'atonuga, siaki le vasega fa'aoga tusitusi .
- Fa'aaogā se fa'aputugā vaitusi fa'ale-aganu'u e filifilia le mea sili
font-family
mo OS ma masini ta'itasi. - Mo le fa'aaofia ma fa'aogaina ituaiga fua, matou te fa'apea o le browser default root
font-size
(e masani lava 16px) ina ia mafai e tagata asiasi ona fa'avasega a latou su'ega fa'aletonu pe a mana'omia. - Fa'aaoga le
$font-family-base
,$font-size-base
, ma$line-height-base
uiga e pei ona fa'aoga lo tatou fa'aupuga i le<body>
. - Seti le lanu o feso'ota'iga fa'avaomalo e ala
$link-color
ma fa'aoga laina vase feso'ota'iga na'o luga ole:hover
. - Fa'aoga
$body-bg
e seti ai sebackground-color
i luga ole<body>
(#fff
e ala i le faaletonu).
O nei sitaili e mafai ona maua i totonu _reboot.scss
, ma o fesuiaiga o le lalolagi o loʻo faʻamalamalamaina i le _variables.scss
. Ia mautinoa e seti $font-size-base
i totonu rem
.
O ulutala HTML uma, <h1>
e ala i le <h6>
, e avanoa.
Ulutala | Faataitaiga |
---|---|
|
h1. Ulutala Bootstrap |
|
h2. Ulutala Bootstrap |
|
h3. Ulutala Bootstrap |
|
h4. Ulutala Bootstrap |
|
h5. Ulutala Bootstrap |
|
h6. Ulutala Bootstrap |
.h1
e ala i .h6
vasega o loʻo avanoa foʻi, aua pe a e manaʻo e faʻafetaui le faʻasologa o le vai papatisoga o se ulutala ae le mafai ona faʻaogaina le elemene HTML fesoʻotaʻi.
h1. Ulutala Bootstrap
h2. Ulutala Bootstrap
h3. Ulutala Bootstrap
h4. Ulutala Bootstrap
h5. Ulutala Bootstrap
h6. Ulutala 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>
Fa'aoga vasega fa'aoga fa'atasi e toe fa'atupu ai le tama'i ulutala lona lua tusitusiga mai le Bootstrap 3.
O elemene ulutala masani ua mamanuina ina ia sili ona aoga i aano o lau itulau itulau. Pe a e manaʻomia se ulutala e mataʻina ai, mafaufau e faʻaaoga se ulutala faʻaalia -se lapoʻa lapoʻa, sili atu ona faʻaalia manatu.
Fa'aaliga 1 |
Fa'aaliga 2 |
Fa'aaliga 3 |
Fa'aaliga 4 |
Fai se palakalafa e tu matilatila e ala i le faaopoopo .lead
.
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, o le mea lea e le masani ai.
<p class="lead">
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.
</p>
Fa'ailoga mo elemene HTML5 masani ile laina.
E mafai ona e fa'aogaina le fa'ailoga fa'ailoga efa'ailogatusitusiga.
O le laina lea o tusitusiga o lo'o fa'atatauina o ni tusitusiga ua tapeina.
O lenei laina o tusitusiga ua fa'amoemoe e fa'apea ua le toe sa'o.
O lenei laina o tusitusiga e tatau ona faʻaogaina o se faʻaopoopoga i le pepa.
Ole laina ole tusitusiga ole a fa'aalia e pei ona vaseina
O lenei laina o tusitusiga e fa'atatau ia fa'atatauina o ni lolomi lelei.
O le laina lea ua fa'aliliuina o ni tusitusiga mata'utia.
O le laina lea ua fa'aliliuina o ni tusitusiga fa'asisilima.
<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
ma .small
o lo'o avanoa fo'i vasega e fa'aoga tutusa sitaili <mark>
ma <small>
a'o 'alo'ese mai so'o se fa'auigaga fa'amana'omia fa'apea e aumai e pine.
E ui e le o faʻaalia i luga, lagona le saoloto e faʻaoga <b>
ma <i>
ile HTML5. <b>
e fa'atatau e fa'amanino ai upu po'o fasifuaitau e aunoa ma le fa'ailoaina atu o le taua ae <i>
tele lava mo leo, upu fa'apitoa, ma isi.
Suia le faʻaogaina o tusitusiga, suiga, sitaili, mamafa, ma lanu faʻatasi ma a matou mea faʻaoga tusitusi ma faʻaoga lanu .
Fa'ata'ita'iga fa'atusa o le elemene HTML <abbr>
mo fa'apu'upu'u ma fa'apuupuuga e fa'aalia ai le fa'alauteleina o fa'amatalaga i luga o le fa'afefe. O fa'apuupuuga e iai le laina vase fa'aletonu ma maua ai se fa'ailo fesoasoani e tu'uina atu ai fa'amatalaga fa'aopoopo i luga o le fa'afefe ma i latou o lo'o fa'aogaina tekinolosi fesoasoani.
Fa'aopoopo .initialism
i se fa'apu'upu'u mo se fa'atama'i la'ititi laititi.
attr
HTML
<p><abbr title="attribute">attr</abbr></p>
<p><abbr title="HyperText Markup Language" class="initialism">HTML</abbr></p>
Mo le siiina mai o poloka o mataupu mai se isi punaoa i totonu o lau pepa. Afifi <blockquote class="blockquote">
so'o se HTML e pei o le upusii.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer 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>
Fa'aopoopo le a <footer class="blockquote-footer">
mo le fa'ailoaina o le puna. Afi le igoa o le galuega puna i totonu <cite>
.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer 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>
Fa'aoga mea fa'aoga tusitusi pe a mana'omia e sui ai le fa'aogaina o lau poloka upusii.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer 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 sit amet, consectetur adipiscing elit. Integer 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>
Aveese le fa'aletonu list-style
ma le itu agavale i luga o mea lisi (na'o tamaiti vave). E na'o le fa'aogaina o mea ole lisi a tamaiti , o lona uiga e te mana'omia le fa'aopoopoina o le vasega mo so'o se lisi fa'amoega.
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Integer molestie lorem ma masa
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
- Phasellus iaculis neque
- Purus sodales ultricies
- Vestibulum laoreet porttitor sem
- Ac tristique libero volutpat at
- Faucibus porta lacus fringilla vel
- Aenean nofo amet erat nunc
- Eget porttitor lorem
<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>
Aveese pulu o se lisi ma faaaoga sina malamalama margin
i se tuufaatasiga o vasega e lua, .list-inline
ma .list-inline-item
.
- Lorem ipsum
- Phasellus iaculis
- Nulla volutpat
<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>
Fa'asa'o fa'aupuga ma fa'amatalaga fa'alava e ala i le fa'aogaina o vasega fa'ata'atia a le matou faiga fa'avasega (po'o semantic mixins). Mo taimi uumi, e mafai ona e fa'aopoopoina se .text-truncate
vasega e tipi le tusitusiga i se ellipsis.
- Lisi fa'amatalaga
- Ole lisi fa'amatalaga e lelei atoatoa mo le fa'amalamalamaina o upu.
- Euismod
-
Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
Donec id elit non mi porta gravida and eget metus.
- Malesuada porta
- Etiam porta sem malesuada magna mollis euismod.
- Ua tipi le upu ua tipi
- Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
- Faamoega
-
- Lisi fa'amatalaga fa'aputu
- Aenean posuere, tortor sed cursus feugiat, nunc augue blandit nunc.
<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>
O lo'o fa'atatau i le fa'avasegaina o tusitusiga ma vaega e ala i le na'o le fetu'una'i o le a'a elemene i font-size
totonu o se fa'asologa o fesili fa'asalalau. E le faia e Bootstrap lenei mea mo oe, ae e faigofie lava ona faʻaopoopo pe a e manaʻomia.
O se fa'ata'ita'iga lea i le fa'atinoga. Filifili so'o font-size
se s ma fa'asalalauga fesili e te mana'o ai.