Taypografi
Dokumɛnt ɛn ɛgzampul dɛn fɔ Bootstrap taypografi, inklud di glob ɔl sɛtin dɛn, ɛd dɛn, bɔdi tɛks, list dɛn, ɛn ɔda tin dɛn.
Di wɔl sɛtin dɛn
Bootstrap de sɛt di bɛsis glob ɔl displei, taypografi, ɛn link stayl dɛn. We yu nid mɔ kɔntrol, chɛk di tɛkstual yutiliti klas dɛn .
- Yuz wan nativ font stak we de pik di bɛst
font-family
fɔ ɛni OS ɛn divays. - Fɔ wan mɔ inkluziv ɛn aksesbul tayp skel, wi de tek di brɔwza difɔlt rut
font-size
(tipikli 16px) so di wan dɛn we de kam kin kɔstɔmayz dɛn brɔwza difɔlt dɛn as nid de. - Yuz di
$font-family-base
,$font-size-base
, ɛn$line-height-base
atribyut dɛn as wi taypografik bays we dɛn yuz fɔ di<body>
. - Set di global link kala via
$link-color
ɛn aplay link ɔndalayn dɛn nɔmɔ pan:hover
. - Yuz
$body-bg
fɔ sɛt abackground-color
pan di<body>
(#fff
bay difɔlt).
Yu kin fɛn dɛn stayl ya insay _reboot.scss
, ɛn di glob ɔl vɛriɔbul dɛn de difayn insay _variables.scss
. Mek shɔ se yu sɛt $font-size-base
insay rem
.
Di edlayn dɛn
Ɔl di HTML edlayn dɛn, <h1>
te to <h6>
, de.
Di edlayn | Ɛgzampul |
---|---|
|
h1. Bootstrap we de na di ed |
|
h2. Bootstrap we de na di ed |
|
h3. Bootstrap we de na di ed |
|
h4. Bootstrap we de na di ed |
|
h5. Bootstrap we de na di ed |
|
h6. Bootstrap we de na di ed |
.h1
tru .h6
klas dɛn de bak, fɔ we yu want fɔ mach di font stayl fɔ wan ɛd bɔt yu nɔ ebul fɔ yuz di HTML ɛlimɛnt we gɛt fɔ du wit am.
h1. Bootstrap we de na di ed
h2. Bootstrap we de na di ed
h3. Bootstrap we de na di ed
h4. Bootstrap we de na di ed
h5. Bootstrap we de na di ed
h6. Bootstrap we de na di ed
Fɔ kɔstɔmayt di edlayn dɛn
Yuz di yutiliti klas dɛn we de insay fɔ mek di smɔl sɛkɔndari ɛd tɛks bak frɔm Bootstrap 3.
Fancy display heading Wit sɛkɔndari tɛks we dɔn fad
Sho di edlayn dɛn
Dɛn mek tradishɔnal edlayn ɛlimɛnt dɛn fɔ wok fayn fayn wan na di mit we de na yu pej kɔntinyu. We yu nid edlayn fɔ mek i difrɛn, tink bɔt fɔ yuz displei edlayn —we na big edlayn stayl we gɛt smɔl mɔ opinion. Yu fɔ mɛmba se dɛn edlayn dɛn ya nɔ de ansa bay difɔlt, bɔt i pɔsibul fɔ mek yu ebul fɔ yuz di font saiz dɛn we de ansa .
Displei we de sho 1 |
Displei we de sho 2 |
Displei we de sho 3 |
Displei we de sho 4 |
Lid
Mek wan paregraf difrɛn bay we yu ad .lead
.
Vivamus sagittis lakus vel augu laoreet rutrum faucibus dolor ɔkta. Duis mollis, est we nɔto kɔmɔdo luktɔs.
Inlayn tɛks ɛlimɛnt dɛn
Stayl fɔ kɔmɔn inlayn HTML5 ɛlimɛnt dɛn.
Yu kin yuz di mak tag fɔshotɛks.
Dis layn fɔ tɛks min fɔ trit am lɛk tɛks we dɛn dɔn dilit.
Dɛn min fɔ trit dis layn na di tɛks as sɔntin we nɔ kɔrɛkt igen.
Dis layn fɔ di tɛks min fɔ trit am as sɔntin we dɛn ad to di dɔkyumɛnt.
Dis layn fɔ di tɛks go rɛnd lɛk aw dɛn ɔndalayn am
Dis layn fɔ di tɛks dɛn min fɔ trit am lɛk fayn print.
Dis layn we dɛn rɛnd lɛk bold tɛks.
Dis layn we dɛn rɛnd lɛk tɛks we dɛn rayt italiks.
.mark
ɛn .small
klas dɛn de bak fɔ yuz di sem stayl dɛn we dɛn de yuz <mark>
ɛn <small>
we dɛn de avɔyd ɛni sɛmantik implikashɔn we dɛn nɔ want we di tɛg dɛn go briŋ.
Pan ɔl we dɛn nɔ sho am ɔp, fil fri fɔ yuz <b>
ɛn <i>
insay HTML5. <b>
na fɔ aylayt wɔd ɔ frɛz dɛn we nɔ de gi ɔda impɔtants we <i>
na fɔ vɔys, tɛknikal wɔd dɛn, ɛn ɔda tin dɛn.
Tekst yutiliti dɛn
Chenj tɛks alaynɛshɔn, transfɔm, stayl, wet, ɛn kɔlɔ wit wi tɛks yutiliti ɛn kɔlɔ yutiliti .
Di tin dɛn we dɛn kin yuz fɔ shɔt
Stylized implimentishɔn fɔ HTML in <abbr>
ɛlimɛnt fɔ abrevieshɔn ɛn akɔdin fɔ sho di ɛkspanda vɛshɔn pan hova. Abbrevieshɔn dɛn gɛt difɔlt ɔndalayn ɛn dɛn gɛt ɛp kɔsa fɔ gi ɔda kɔntɛks pan hova ɛn to di wan dɛn we de yuz ɛp tɛknɔlɔji dɛn.
Ad .initialism
to wan shɔt fɔ wan smɔl font-sayz.
attr
HTML
Blɔkkɔt dɛn
Fɔ kot blɔk dɛn fɔ kɔntinyu frɔm ɔda sɔs insay yu dɔkyumɛnt. Rap <blockquote class="blockquote">
rawnd ɛni HTML as di kot.
Lorem ipsum dolor sidon amet, konsektetur adipissing elit. Intaj posuere erat wan ante.
Fɔ gi nem to wan sɔs
Ad wan <footer class="blockquote-footer">
fɔ no di say we dɛn pul am. Rap di nem fɔ di sɔs wok insay <cite>
.
Lorem ipsum dolor sidon amet, konsektetur adipissing elit. Intaj posuere erat wan ante.
Alignmɛnt fɔ di wan dɛn we de
Yuz tɛks yutiliti dɛn as nid de fɔ chenj di alaynɛshɔn fɔ yu blɔkkɔt.
Lorem ipsum dolor sidon amet, konsektetur adipissing elit. Intaj posuere erat wan ante.
Lorem ipsum dolor sidon amet, konsektetur adipissing elit. Intaj posuere erat wan ante.
List dɛn
Nɔ stayl
Rimov di difɔlt list-style
ɛn lɛft margin na di list aytem dɛn (pikin dɛn nɔmɔ). Dis de onli aplay to immediate pikin list items , we min se yu go nid fɔ ad di klas fɔ ɛni nest list bak.
- Lorem ipsum dolor sidon amet
- Konsectetur adipiscing elit we de na di bɔdi
- Integer molestie lorem na massa
- Fasilisis in prɛtiɔm nisl alikɛt
- Nulla volutpat alikɔm velit
- Fasɛl iakulis nɛk
- Purus sodales di wan dɛn we de bɔn
- Vestibulum laoreet pɔtitɔr sem
- A tristik libero volutpat na
- Faucibus porta lakɔs fringila vel
- Aenean sidon amet erat nunc
- Eget porttitor lorem we yu de du
Inlayn
Rimov wan list in bulɛt ɛn put sɔm layt margin
wit wan kɔmbaynshɔn fɔ tu klas dɛn, .list-inline
ɛn .list-inline-item
.
- Lorem ipsum we de na di wɔl
- Faselɔs iakulis we de na di bɔdi
- Nulla volutpat fɔ di wan dɛn we de
Diskripshɔn list alaynɛshɔn
Align tɛm ɛn diskripshɔn dɛn ɔrizɔntal wan bay we yu yuz wi grid sistɛm in prɛdifayn klas dɛn (ɔ sɛmantik miksin dɛn). Fɔ lɔng tɛm, yu kin opshɔnali ad wan .text-truncate
klas fɔ trunkat di tɛks wit ɛlipsis.
- Diskripshɔn list dɛn
- Wan diskripshɔn list fayn fɔ difayn wɔd dɛn.
- Yuismod bin de
-
Vestibulum id ligula porta felis yuismod semper eget lasinia odio sem nec elit.
Donec id elit non mi porta gravida na eget metus.
- Malesuada we de na di wɔl
- Etiam porta sem malesuada magna mollis yusmod.
- Truncated term na trunkated
- Fusce dapibus, tellus ac cursus commodo, tortor mauris kondimɛnt nibh, ut fɛmintɔm massa jɔs sidɔm amet risus.
- Fɔ mek dɛn nɛst
-
- Nested difinishɔn list
- Aenean posuere, tortor sed kɔsɔs feugiat, nɔnk ɔg blandit nɔnk.
Fɔnt saiz dɛn we de ansa
Bootstrap v4.3 ship wit di opshɔn fɔ ɛnabul rispɔnsiv font saiz dɛn, we de alaw tɛks fɔ skel mɔ natura wan akɔdin to divays ɛn viupɔt saiz dɛn. RFS kin ɛnabul bay we yu chenj di $enable-responsive-font-sizes
Sass vɛriɔbul to true
ɛn rikompayl Bootstrap.
Fɔ sɔpɔt RFS , wi de yuz wan Sass mixin fɔ riples wi nɔmal font-size
prɔpati dɛn. Rispɔnsiv font saiz dɛn go kɔmpilayt insay calc()
fɛnshɔn dɛn wit wan miks rem
ɛn viupɔt yunit dɛn fɔ mek di rispɔnsiv skel bihayvya. Yu kin fɛn mɔ bɔt RFS ɛn in kɔnfigyushɔn na in GitHub ripɔsitɔri .