Typography
Zvinyorwa uye mienzaniso yeBootstrap typography, inosanganisira zvigadziriso zvepasi rose, misoro, zvinyorwa zvemuviri, zvinyorwa, nezvimwe.
Global settings
Bootstrap inoseta kuratidzwa kwepasirese, kutaipa, uye mataira ekubatanidza. Kana kutonga kwakawanda kuchidikanwa, tarisa zvinyorwa zvekushandisa makirasi .
- Shandisa yakasarudzika font stack inosarudza yakanakisa
font-family
kune yega yega OS uye mudziyo. - Kuti uwedzere kusanganisirwa uye kusvikika mhando chiyero, isu tinofungidzira iyo browser default midzi
font-size
(kazhinji 16px) kuitira kuti vashanyi vagone kugadzirisa yavo browser defaults sezvinodiwa. - Shandisa iyo
$font-family-base
,$font-size-base
, uye$line-height-base
hunhu seyedu typographic base inoshandiswa kune iyo<body>
. - Seta iyo yepasi rose yekubatanidza ruvara kuburikidza
$link-color
uye shandisa link underlines chete pa:hover
. - Shandisa
$body-bg
kuseta abackground-color
pane<body>
(#fff
nekusarudzika).
Aya masitayera anogona kuwanikwa mukati _reboot.scss
, uye machinjiro epasi rose anotsanangurwa mu _variables.scss
. Iva nechokwadi chekuisa $font-size-base
mukati rem
.
Misoro
Yese misoro yeHTML, <h1>
kuburikidza ne <h6>
, iripo.
Heading | Muenzaniso |
---|---|
|
h1. Bootstrap musoro |
|
h2. Bootstrap musoro |
|
h3. Bootstrap musoro |
|
h4. Bootstrap musoro |
|
h5. Bootstrap musoro |
|
h6. Bootstrap musoro |
.h1
kuburikidza .h6
nemakirasi anowanikwawo, nekuti kana iwe uchida kufananidza font yemusoro wenyaya asi usingakwanise kushandisa yakabatana HTML element.
h1. Bootstrap musoro
h2. Bootstrap musoro
h3. Bootstrap musoro
h4. Bootstrap musoro
h5. Bootstrap musoro
h6. Bootstrap musoro
Kugadzirisa misoro
Shandisa makirasi ekushandisa akasanganisirwa kugadzirazve diki diki musoro wemusoro kubva kuBootstrap 3.
Musoro wekuratidza mafancy Une mavara echipiri akadzima
Ratidza misoro
Zvinyorwa zvemusoro zvechinyakare zvakagadzirirwa kushanda zvakanyanya munyama yezvinyorwa zvepeji rako. Paunenge uchida musoro kuti uoneke, funga kushandisa musoro wekuratidza - muhombe, une maonero emusoro zvishoma. Ramba uchifunga kuti misoro iyi haipindure nekukasira, asi zvinogoneka kugonesa mafonti saizi anoteerera .
Ratidza 1 |
Ratidza 2 |
Ratidza 3 |
Ratidza 4 |
Tungamira
Ita kuti ndima ibude pachena nekuwedzera .lead
.
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.
Inline zvinyorwa zvinyorwa
Kutaera kune zvakajairika inline HTML5 zvinhu.
Unogona kushandisa mamaki tag kuhighlighttext.
Mutsetse wemavara uyu unofanirwa kubatwa semavara akadzimwa.
Mutsara wechinyorwa uyu unoitirwa kuti utorerwe seusisina chokwadi.
Mutsara wechinyorwa uyu unofanirwa kubatwa sewedzero kugwaro.
Mutsara wemavara uyu unozopa sekunyorwa kwazvakaitwa
Mutsara wechinyorwa uyu unoitirwa kubatwa sechinyorwa chakanaka.
Mutsetse uyu wakashandurwa semavara matema.
Mutsetse uyu unoitwa semavara akatsveyamiswa.
.mark
uye .small
makirasi anowanikwawo kuti ashandise zvitaera zvakafanana <mark>
uye <small>
uchidzivirira chero zvisingadiwe semantic zvinorehwa nematagi.
Kunyange zvisina kuratidzwa pamusoro, inzwa wakasununguka kushandisa <b>
uye <i>
muHTML5. <b>
inoitirwa kuratidza mazwi kana mitsara pasina kuendesa kukosha kwekuwedzera asi <i>
kazhinji iri yezwi, tekinoroji mazwi, nezvimwe.
Zvinyorwa zvekushandisa
Shandura kurongeka kwemavara, shandura, chimiro, uremu, uye ruvara nezvinyorwa zvedu zvinoshandiswa uye zvemavara zvinoshandiswa .
Madimburiko
Kuitwa kwakamisikidzwa kweHTML's <abbr>
element yekupfupisa uye acronyms kuratidza yakawedzera vhezheni pane hover. Mapfupi ane default underline uye kuwana yekubatsira cursor yekupa mamwe mamiriro pane hover uye kune vashandisi veanobatsira matekinoroji.
Wedzera .initialism
kuchidimbu chemavara madiki zvishoma.
attr
HTML
Blockquotes
Zvekutora zvivharo zvemukati kubva kune imwe sosi mukati megwaro rako. Putira <blockquote class="blockquote">
kutenderedza chero HTML se quote.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat ante.
Kudoma kwakabva
Wedzera a <footer class="blockquote-footer">
yekuziva kwakabva. Peta zita rekwakabva basa mu <cite>
.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat ante.
Alignment
Shandisa zvinyorwa zvinoshandiswa sezvinodiwa kuti uchinje kurongeka kwe blockquote yako.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat ante.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat ante.
Lists
Unstyled
Bvisa iyo yakasarudzika list-style
uye yekuruboshwe muganho pane rondedzero zvinhu (pakarepo vana chete). Izvi zvinongoshanda kune ipapo vana rondedzero zvinhu , zvichireva kuti iwe uchafanirwa kuwedzera kirasi kune chero rondedzero yakanyorwa zvakare.
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Integer molestie lorem at massa
- Facilisis mu 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 sit amet erat nunc
- Eget porttitor lorem
Inline
Bvisa mabara erondedzero uye shandisa mwenje margin
une musanganiswa wemakirasi maviri, .list-inline
uye .list-inline-item
.
- Lorem ipsum
- Phasellus iaculis
- Nulla volutpat
Tsananguro rondedzero kurongeka
Gadzirisa mazwi uye tsananguro zvakachinjika nekushandisa grid system yedu yakafanotsanangurwa makirasi (kana semantic musanganiswa). Kwematemu marefu, unogona kusarudza kuwedzera .text-truncate
kirasi kuderedza zvinyorwa ne ellipsis.
- Tsanangudzo mazita
- Rondedzero yerondedzero yakakwana pakutsanangura mazwi.
- Euismod
-
Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
Donec id elit non mi porta gravida at eget metus.
- Malesuada porta
- Etiam porta sem malesuada magna mollis euismod.
- Izwi rakadimburirwa rakadimburwa
- Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
- Nesting
-
- Nested tsanangudzo list
- Aenean posuere, tortor sed cursus feugiat, nunc augue blandit nunc.
Anopindura masaizi efonti
Bootstrap v4.3 ngarava ine sarudzo yekugonesa inopindura masaizi efonti, ichibvumira mameseji kuti akwire zvakajairika pamudziyo wese uye saizi yekuona. RFS inogona kugoneswa nekushandura iyo $enable-responsive-font-sizes
Sass kusiyanisa kune true
uye kudzorera Bootstrap.
Kutsigira RFS , isu tinoshandisa Sass musanganiswa kutsiva yedu yakajairika font-size
zvivakwa. Anopindura mafonti saizi anozounganidzwa kuita calc()
mabasa ane musanganiswa rem
uye yekutarisa mayuniti kuti agone kuita inopindura kuyera maitiro. Zvakawanda nezve RFS uye kumisikidzwa kwayo inogona kuwanikwa pane yayo GitHub repository .