CSS ƒe ƒuƒoƒo
Xexeame katã ƒe CSS ɖoɖowo, HTML ƒe akpa vevi siwo wowɔ ɖe atsyã nu eye wodo wo ɖe ŋgɔ kple klass siwo woate ŋu akeke ɖe enu, kple grid ɖoɖo deŋgɔ aɖe.
Xexeame katã ƒe CSS ɖoɖowo, HTML ƒe akpa vevi siwo wowɔ ɖe atsyã nu eye wodo wo ɖe ŋgɔ kple klass siwo woate ŋu akeke ɖe enu, kple grid ɖoɖo deŋgɔ aɖe.
Na lowdown le Bootstrap ƒe xɔtuɖoɖowo ƒe akpa veviwo ŋu, si me míaƒe mɔnu si míezãna tsɔ wɔa nyatakakadzraɖoƒe ƒe ŋgɔyiyi nyuie wu, kabakaba wu, si sesẽ wu hã le.
Bootstrap wɔa HTML ƒe akpa aɖewo kple CSS ƒe nɔnɔme siwo hiã be woazã HTML5 doctype la ŋudɔ. Dee wò dɔwo katã ƒe gɔmedzedze.
Le Bootstrap 2 me la, míetsɔ asitelefon xɔlɔ̃wɔwɔ ƒe atsyã siwo woate ŋu atia la kpe ɖe eŋu na ɖoɖoa ƒe akpa veviwo. Le Bootstrap 3 me la, míegbugbɔ ŋlɔ dɔa be wòanye asitelefon xɔlɔ̃wɔwɔ tso gɔmedzedzea me ke. Le esi teƒe be woatsɔ asitelefon ƒe atsyã siwo woate ŋu atia la akpe ɖe wo ŋu la, woɖaa wo ɖe nu veviawo me tututu. Le nyateƒe me la, Bootstrap nye asitelefon gbãtɔ . Woate ŋu akpɔ asitelefon dzi atsyã gbãtɔwo le agbalẽdzraɖoƒe bliboa katã tsɔ wu be woakpɔ wo le faɛl vovovowo me.
Be nàkpɔ egbɔ be yeɖe egɔme nyuie eye yeaka asi nu ŋu la, tsɔ viewport meta tag la kpe ɖe wò <head>
.
Àte ŋu awɔ zooming ƒe ŋutetewo ŋudɔ le asitelefonwo dzi to etsɔtsɔ kpe user-scalable=no
ɖe viewport meta tag la ŋu. Esia wɔnɛ be woate ŋu aʋu nu geɖe o, si fia be wò nyatakakadzraɖoƒea nase le eɖokui me vie abe dɔwɔnu si wowɔ le wo ɖokui si ene. Le nusianu me la, míekafu esia le nyatakakadzraɖoƒe ɖesiaɖe o, eyata kpɔ nyuie!
Bootstrap ɖoa xexeame katã ƒe ɖeɖefia veviwo, nuŋɔŋlɔ, kple kadodo ƒe atsyãwo. Etɔxɛe la, mí:
background-color: #fff;
ɖe...body
@font-family-base
, @font-size-base
, kple @line-height-base
nɔnɔmewo abe míaƒe agbalẽtata ƒe gɔmeɖoanyi ene@link-color
eye nàwɔ kadodo ƒe tete ɖe edzi ko dzi:hover
Woate ŋu akpɔ atsyã siawo le scaffolding.less
.
Be míana cross-browser gɔmeɖeɖe nanyo ɖe edzi la, míezãa Normalize.css , si nye dɔ aɖe si Nicolas Gallagher kple Jonathan Neal wɔ .
Bootstrap hiã na nusi me nu le be woatsɔ abla nyatakakadzraɖoƒea me nyawo eye woatsɔ míaƒe grid ɖoɖoa ade eme. Àte ŋu atia nugoe eve siwo nàzã le wò dɔwo me la dometɔ ɖeka. De dzesii be, le padding
kple bubuwo ta la, nugoe eveawo dometɔ aɖeke mele atɔ me o.
Zãe .container
na nugoe si ƒe kekeme woɖo ɖi si ɖoa nya ŋu.
Zãe .container-fluid
na nugoe si ƒe kekeme bliboa, si keke wò nukpɔƒea ƒe kekeme bliboa.
Bootstrap ƒe akpa aɖewoe nye esi wɔa dɔ, si wotsɔna zɔa mɔe, si nye tsi gbãtɔ ƒe grid ɖoɖo si dzidzea sɔti 12 wòsɔna ne mɔ̃a alo nukpɔƒea ƒe lolome le dzidzim ɖe edzi. Elɔ klass siwo woɖo ɖi do ŋgɔ hena ɖoɖowɔɖi ƒe tiatia bɔbɔewo, kpakple mixins sẽŋuwo hena gɔmesese ƒe ɖoɖo geɖe wɔwɔ .
Wozãa grid ɖoɖowo hena axa ƒe ɖoɖowo wɔwɔ to fli kple sɔti siwo kplɔ wo nɔewo ɖo siwo me wò nyatakakawo le dzi. Alesi Bootstrap grid ɖoɖoa wɔa dɔe enye si:
.container
(fixed-width) alo .container-fluid
(full-width) me be woaɖo wo ɖe ɖoɖo nyuitɔ nu eye woatsɔ wo aɖo wo nu..row
kple .col-xs-4
li na grid ƒe ɖoɖowo wɔwɔ kabakaba. Woateŋu azã mixin siwo mesɔ gbɔ o hã na gɔmesese ƒe ɖoɖo geɖe wu.padding
. Woɖea padding ma ɖa le fliwo me na sɔti gbãtɔ kple mamlɛtɔ to margin negative dzi le .row
s dzi..col-xs-4
..col-md-*
klass ɖesiaɖe zazã ɖe element aɖe ŋu menye ɖeko wòakpɔ ŋusẽ ɖe eƒe atsyã dzi le mɔ̃ siwo le titina dzi ko o ke boŋ le mɔ̃ gãwo hã dzi ne .col-lg-*
klass aɖe mele afima o.Kpɔ kpɔɖeŋu siwo nàtsɔ awɔ gɔmeɖose siawo ŋudɔ le wò sededea me ŋu.
Míezãa media biabia siwo gbɔna le míaƒe Less faɛlwo me tsɔ wɔa breakpoints veviwo le míaƒe grid system me.
Míekekea nyadzɔdzɔgblɔmɔnuwo ƒe biabia siawo ɖe enu ɣeaɖewoɣi be míatsɔ a ade eme max-width
be míaɖo seɖoƒe na CSS ɖe mɔ̃ siwo le kpuie wu dzi.
Kpɔ alesi Bootstrap grid ɖoɖoa ƒe akpa aɖewo wɔa dɔ le mɔ̃ geɖe siwo si kplɔ̃ si le asi me le dzi.
Mɔ̃ sue bubuwo Telefonwo (<768px) | Mɔ̃ suewo ƒe Tablɛtwo (≥768px) . | Mɔ̃ siwo le titina Dɔwɔƒewo (≥992px) . | Mɔ̃ gãwo Desktops (≥1200px) . | |
---|---|---|---|---|
Grid ƒe nuwɔna | Horizontal ɣesiaɣi | Wodze anyi be woadze egɔme, le tsia dzi le gbagbãƒewo tame | ||
Nugoe ƒe kekeme | Ðeke meli o (auto) . | 750px ƒe didime | 970px ƒe didime | 1170px ƒe didime |
Klass ƒe ŋgɔdonya | .col-xs- |
.col-sm- |
.col-md- |
.col-lg- |
# ƒe sɔtiwo | 12. 12 | |||
Sɔti ƒe kekeme | Auto | ~62px ƒe nɔnɔmetata | ~81px ƒe ƒuƒoƒo | ~97px ƒe ƒuƒoƒo |
Gutter ƒe kekeme | 30px (15px le sɔti aɖe ƒe akpa ɖesiaɖe) | |||
Nestable | Ɛ̃ | |||
Nusiwo wotsɔna tsia tre ɖe nu ŋu | Ɛ̃ | |||
Sɔtiwo ƒe ɖoɖowɔwɔ | Ɛ̃ |
Ne èzã .col-md-*
grid ƒe klass ɖeka la, àte ŋu awɔ grid ƒe ɖoɖo vevi aɖe si dzea egɔme ƒoa ƒu ɖe asitelefonwo kple tablɛtwo dzi (siwo le sue wu va ɖo sue wu) hafi va zua tsia dzi le kplɔ̃dzimɔ̃wo (siwo le titina) dzi. De grid sɔtiwo ɖe ɖesiaɖe .row
me .
Trɔ grid ƒe ɖoɖo ɖesiaɖe si ƒe kekeme woɖo ɖi la wòazu kekeme bliboa ƒe ɖoɖo to wò gotatɔ tɔtrɔ .container
wòazu .container-fluid
.
Mèdi be yeƒe sɔtiwo naƒo ƒu ɖe mɔ̃ suewo me ko oa? Zã mɔ̃ sue kple titina ƒe grid klass siwo sɔ gbɔ wu la to tsɔtsɔ kpe .col-xs-*
.col-md-*
ɖe wò sɔtiwo ŋu me. Kpɔ kpɔɖeŋu si le ete hena alesi wo katã wɔa dɔe ŋuti susu nyuitɔ.
Tu kpɔɖeŋu si do ŋgɔ la ɖo to ɖoɖo siwo me ŋusẽ le wu gɔ̃ hã wɔwɔ kple tablɛt .col-sm-*
ƒe klasswo me.
Ne wotsɔ sɔti siwo wu 12 da ɖe fli ɖeka me la, sɔti bubuwo ƒe ƒuƒoƒo ɖesiaɖe, abe akpa ɖeka ene, axatsa ɖe fli yeye dzi.
Le fli ene siwo le grids siwo li ta la, àdo go nya siwo me, le gbagbãƒe aɖewo la, wò sɔtiwo mekɔ tututu o elabena ɖeka kɔkɔ wu evelia. Be nàɖɔ ema ɖo la, zã a .clearfix
kple míaƒe responsive utility classes ƒe ƒuƒoƒo .
Tsɔ kpe ɖe sɔtiwo ɖeɖeɖa le teƒe siwo woɖoa nya ŋu le ƒe gbagbãƒewo ŋu la, ɖewohĩ ahiã be nàgbugbɔ aɖo offsets, pushes, alo pulls . Kpɔ esia le dɔwɔwɔ me le grid ƒe kpɔɖeŋua me .
Ʋu sɔtiwo yi ɖusime to .col-md-offset-*
klasswo zazã me. Klass siawo dzia sɔti aɖe ƒe miame ƒe akpa dzi ɖe edzi *
sɔtiwo. Le kpɔɖeŋu me, .col-md-offset-4
eʋuna .col-md-4
ɖe sɔti ene dzi.
Àteŋu aɖɔli offsets hã tso grid tiers siwo le anyime kple .col-*-offset-0
klasswo.
Be nàtsɔ grid si woɖo ɖi la awɔ atɔ ɖe wò nyatakakawo ŋu la, tsɔ sɔti yeye .row
kple ƒuƒoƒo kpe ɖe .col-sm-*
sɔti si li xoxo .col-sm-*
ŋu. Ele be sɔti siwo wotsɔ ƒo ƒui va ɖo 12 alo esi mede nenema o nanɔ fli siwo wotsɔ ƒo ƒui me (mehiã be nàzã sɔti 12 siwo katã li la o).
Trɔ míaƒe grid sɔti siwo wotu ɖe eme ƒe ɖoɖo bɔbɔe kple .col-md-push-*
kple .col-md-pull-*
modifier classes.
Tsɔ kpe ɖe grid klass siwo wotu do ŋgɔ na ɖoɖowɔwɔ kabakaba ŋu la, Bootstrap de Less tɔtrɔwo kple mixins ɖe eme hena wò ŋutɔ wò ɖoɖo bɔbɔe, gɔmesese ƒe ɖoɖo kabakaba.
Tɔtrɔwoe ɖoa sɔtiwo ƒe xexlẽme, gutter ƒe kekeme, kple media biabia teƒe si woadze sɔti siwo le tsia dzi gɔme le. Míezãa esiawo tsɔ wɔa grid ƒe hatsotso siwo woɖo ɖi do ŋgɔ siwo woŋlɔ ɖe etame, kpakple na mixins tɔxɛ siwo woŋlɔ ɖe ete.
Wozãa mixins kpe ɖe grid ƒe tɔtrɔwo ŋu tsɔ wɔa gɔmesese ƒe CSS na grid ƒe sɔti ɖekaɖekawo.
Àteŋu atrɔ asi le tɔtrɔawo ŋu ɖe wò ŋutɔ wò asixɔxɔ tɔxɛwo nu, alo nàzã mixins kple woƒe asixɔxɔ gbãtɔwo ko. Kpɔɖeŋu aɖee nye esi le ɖoɖo siwo woɖo ɖi zazã atsɔ awɔ sɔti eve ƒe ɖoɖo si me dometsotso le le dome.
HTML tanyawo katã, <h1>
to <h6>
, dzi la li. .h1
to .h6
klasswo hã li, na ne èdi be yeawɔ ɖeka kple tanya aɖe ƒe nuŋɔŋlɔ ƒe nɔnɔme gake nèdi kokoko be yeƒe nuŋɔŋlɔ nadze le fli me.
h1. Bootstrap ƒe tanya |
Semibold 36px ƒe akpa aɖe |
h2. Bootstrap ƒe tanya |
Semibold 30px ƒe akpa aɖe |
h3. Bootstrap ƒe tanya |
Semibold 24px ƒe akpa aɖe |
h4. Bootstrap ƒe tanya |
Semibold 18px ƒe akpa aɖe |
h5. Bootstrap ƒe tanya |
Semibold 14px ƒe akpa aɖe |
h6. Bootstrap ƒe tanya |
Semibold 12px ƒe akpa aɖe |
Wɔ nuŋɔŋlɔ si le bɔbɔe wu, evelia le tanya ɖesiaɖe me kple <small>
dzesideŋkɔ alo .small
klass la.
h1. Bootstrap ƒe tanya Nuŋɔŋlɔ evelia |
h2. Bootstrap ƒe tanya Nuŋɔŋlɔ evelia |
h3. Bootstrap ƒe tanya Nuŋɔŋlɔ evelia |
h4. Bootstrap ƒe tanya Nuŋɔŋlɔ evelia |
h5. Bootstrap ƒe tanya Nuŋɔŋlɔ evelia |
h6. Bootstrap ƒe tanya Nuŋɔŋlɔ evelia |
Bootstrap ƒe xexeame katã ƒe gɔmedzedze font-size
nye 14px , kple a si line-height
nye 1.428 . Wozãa esia ɖe <body>
memamãawo kple wo katã ŋu. Tsɔ kpe ɖe eŋu la, <p>
(memamawo) xɔa woƒe fli-kɔkɔme si wobu akɔntae ƒe afã ƒe akpa si le ete (10px le gɔmedzedzea me).
Nullam quis risus eget urna mollis ƒe atsyɔ̃ɖoɖo vel eu leo. Cum sociis natoque penatibus kple vidzidzi ƒe mɔ̃ gãwo, nascetur ridiculus mus. Nullam id dolor id nibh ʋu siwo wotsɔna ƒoa ʋu.
Cum sociis natoque penatibus kple vidzidzi ƒe mɔ̃ gãwo, nascetur ridiculus mus. Donec ullamcorper nulla si menye metus nudzrala ƒe ʋuʋudedi o. Duis mollis, est non commodo luctus, nisi erat agbatsɔla ƒe lãgbalẽ, eget lacinia odio sem nec elit. Donec ullamcorper nulla si menye metus nudzrala ƒe ʋuʋudedi o.
Maecenas sed diam eget risus varius blandit bɔbɔ nɔ anyi amet non magna. Donec id elit non mi porta gravida le eget metus me. Duis mollis, est non commodo luctus, nisi erat agbatsɔla ƒe lãgbalẽ, eget lacinia odio sem nec elit.
Na memamã aɖe nato vovo to .lead
.
Vivamus sagittis lacus vel augue laoreet lãgbalẽgolo si wotsɔna dzraa nu. Duis mollis, est si menye nusiwo wodzrana o.
Wotu nuŋɔŋlɔ ƒe dzidzenu la ɖe Less ƒe tɔtrɔ eve dzi le tɔtrɔwo me.less : @font-size-base
kple @line-height-base
. Gbãtɔ nye gɔmeɖoanyi ŋɔŋlɔdzesi-lolome si wozã le bliboa me eye evelia nye gɔmeɖoanyi fli-kɔkɔme. Míezãa tɔtrɔ mawo kple akɔntabubu bɔbɔe aɖewo tsɔ wɔa míaƒe ƒomeviwo katã ƒe margins, paddings, kple line-heights kple bubuwo. Trɔ asi le wo ŋu eye Bootstrap natrɔ ɖe wo ŋu.
Ne èdi be yeate gbe ɖe nuŋɔŋlɔ ƒe duƒuƒu aɖe dzi le eƒe vevienyenye le nya bubu me ta la, zã <mark>
dzesideŋkɔa.
Àte ŋu azã dzesi ƒe dzesi la atsɔnyatinuŋɔɖi.
Ne èdi nuŋɔŋlɔ ƒe ƒuƒoƒo siwo woɖe ɖa la, zã <del>
dzesideŋkɔa.
Woɖoe be woabu nuŋɔŋlɔ ƒe fli sia abe nuŋɔŋlɔ si woɖe ɖa ene.
Ne èdi nuŋɔŋlɔ ƒe ƒuƒoƒo siwo megasɔ o fia la, zã <s>
dzesideŋkɔa.
Woɖoe be woabu nuŋɔŋlɔa ƒe fli sia be megade pɛpɛpɛ o.
Ne èdi be yeaɖe nusiwo wotsɔ kpe ɖe nuŋlɔɖia ŋu fia la, zã <ins>
dzesideŋkɔa.
Woɖoe be woabu nuŋɔŋlɔ ƒe fli sia be enye nusi wotsɔ kpe ɖe nuŋlɔɖia ŋu.
Ne èdi be yeate fli ɖe nuŋɔŋlɔa te la, zã <u>
tag la.
Nuŋɔŋlɔ ƒe fli sia aɖe egɔme abe alesi woɖe fli ɖe ete ene
Wɔ HTML ƒe gbeteteɖedzi ƒe dzesi siwo woɖo ɖi la ŋudɔ kple atsyã siwo le bɔbɔe.
Ne èdi be yeaɖe gbetete ɖe nuŋɔŋlɔ si le fli me alo esi ƒe akpa aɖewo dzi la, zã <small>
dzesi la nàtsɔ aɖo nuŋɔŋlɔa ɖe dzila ƒe lolome ƒe 85% dzi. Tanya ƒe akpawo xɔa woawo ŋutɔ tɔ font-size
na <small>
akpa siwo wotsɔ ƒo ƒui.
Àte ŋu azã inline element bubu kple .small
ɖe ɖesiaɖe teƒe <small>
.
Woɖoe be woabu nuŋɔŋlɔa ƒe fli sia be enye nuŋɔŋlɔ nyuiwo.
Le gbetete ɖe nuŋɔŋlɔ ƒe akpa aɖe dzi kple ŋɔŋlɔdzesi ƒe kpekpeme si kpekpe wu ta.
Woɖea nuŋɔŋlɔ ƒe akpa si gbɔna la gɔme abe nuŋɔŋlɔ si le ɣie ene .
Le gbetete ɖe nuŋɔŋlɔ ƒe akpa aɖe dzi kple nuŋɔŋlɔ si wotsɔ ŋlɔ nu ɖe nu dzi ta.
Woɖea nuŋɔŋlɔ ƒe akpa si gbɔna la gɔme abe nuŋɔŋlɔ si woŋlɔ kple nuŋɔŋlɔ si wotsɔ nuŋɔŋlɔ si le fli me ene .
Miate ŋu azãe faa <b>
eye nàzãe <i>
le HTML5 me. <b>
woɖoe be wòate gbe ɖe nyawo alo nyagbewo dzi evɔ maɖe vevienyenye bubu aɖeke afia o esime <i>
wònye gbe, mɔ̃ɖaŋunyawo, kple bubuawo tɔ koŋ.
Gbugbɔ ɖo nuŋɔŋlɔwo ɖe akpa siwo me nuŋɔŋlɔwo ƒe ɖoɖowɔwɔ ƒe klasswo le bɔbɔe.
Nuŋɔŋlɔ si woɖo ɖe ɖoɖo nu le miame.
Nuŋɔŋlɔ si woɖo ɖe ɖoɖo nu le titina.
Nuŋɔŋlɔ si woɖo ɖe ɖoɖo nu le ɖusime.
Nuŋɔŋlɔ si ŋu kpeɖodzi le.
Nuŋɔŋlɔ aɖeke meli o.
Trɔ nuŋɔŋlɔ ɖe akpawo me kple nuŋɔŋlɔ ƒe ŋɔŋlɔdzesi gãwo ƒe klasswo.
Nuŋɔŋlɔ suewo.
Nuŋɔŋlɔ gãwo.
Nuŋɔŋlɔ si woŋlɔ kple ŋɔŋlɔdzesi gãwo.
Stylized dɔwɔwɔ HTML ƒe <abbr>
element na kpukpuiwo kple kpukpuiwo be woaɖe kekeɖenudɔwɔwɔ afia le hover. Kpuie siwo ŋu title
nɔnɔme le ƒe liƒo si le ete si dzi woŋlɔ nu ɖo si me kɔ eye kpekpeɖeŋufianu le hover me, si naa nya bubuwo le hover me kple kpekpeɖeŋu mɔ̃ɖaŋunuwo zãlawo.
Nya nɔnɔme ƒe kpukpui aɖee nye attr .
Tsɔ kpe .initialism
ɖe kpukpui aɖe ŋu hena ŋɔŋlɔdzesi ƒe lolome si le sue vie.
HTML ye nye nu nyuitɔ kekeake tso esime wofli abolo.
Tsɔ tɔgbui si te ɖe ŋuwò wu alo dɔ bliboa ƒe kadodo ŋuti nyatakakawo fia. Dzra ɖoɖowɔwɔ ɖo to fliawo katã nuwuwu kple <br>
.
Le nyatakaka siwo ƒe akpa aɖewo yɔ tso teƒe bubu le wò nuŋlɔɖia me ta.
Kpe HTML<blockquote>
ɖesiaɖe ɖe edzi abe nyayɔyɔa ene. Ne èdi nya siwo wogblɔ tẽ la, míeɖo aɖaŋu be nàŋlɔ .<p>
Lorem ipsum dolor bɔbɔ nɔ amet, consectetur adipiscing elit. Xexlẽdzesi blibo posuere erat a ante.
Atsyã kple emenyawo trɔna na tɔtrɔ bɔbɔewo le dzidzenu aɖe dzi <blockquote>
.
Tsɔ a kpe ɖe eŋu <footer>
hena dzesidede afisi wòtso. Kpe dzɔtsoƒedɔa ƒe ŋkɔ ɖe <cite>
.
Lorem ipsum dolor bɔbɔ nɔ amet, consectetur adipiscing elit. Xexlẽdzesi blibo posuere erat a ante.
Tsɔ kpe ɖe eŋu .blockquote-reverse
na blockquote si me nyawo le ɖusime.
Nu siwo me ɖoɖo si nu woɖo wo ɖo mele vevie tẽ o ƒe xexlẽdzesiwo.
Nusiwo me ɖoɖoa le vevie tẽ ƒe xexlẽdzesiwo.
Ɖe axa si woɖo ɖi list-style
kple miame le nusiwo woŋlɔ ɖi la dzi (ɖeviwo enumake ɖeɖeko). This only applies to immediate children list items , si fia be ahiã be nàtsɔ klass la akpe ɖe xexlẽdzesi ɖesiaɖe si wotsɔ ƒo ƒui hã ŋu.
Da nusiwo katã woŋlɔ ɖi la ɖe fli ɖeka dzi kple display: inline-block;
kple kekeli aɖewo padding.
Nyawo ƒe xexlẽdzesiwo kple woƒe nuŋlɔɖi siwo do ƒome kplii.
Wɔ nyawo kple numeɖeɖewo le <dl>
fli me ɖe wo nɔewo xa. Edzea egɔme ƒo ƒu abe default <dl>
s ene, gake ne navbar la keke ta la, nenema ke wɔ esiawo.
Numeɖeɖe ƒe xexlẽdzesi siwo le tsia dzi la atso nya siwo didi akpa be woate ŋu asɔ ɖe miame ƒe sɔti me kple text-overflow
. Le nukpɔkpɔ ƒe mɔnu siwo le kpuie wu me la, woatrɔ ɖe ɖoɖo si woɖo ɖe wo nɔewo dzi si woɖo ɖi la ŋu.
Kpe kɔpi ƒe akpa siwo le fli me kple <code>
.
<section>
ele be woaxatsae abe inline ene.
Zã la <kbd>
nàtsɔ afia nya siwo woŋlɔna zi geɖe to keyboard dzi.
Zãe <pre>
na fli geɖe ƒe kɔda. Kpɔ egbɔ be yesi le dzogoe ƒe akɔtadzesi ɖesiaɖe si le kɔdasia me nu hena gɔmeɖeɖe nyuie.
<p>Ŋɔŋlɔdzesiwo ƒe kpɔɖeŋu le afisia...</p>
Àteŋu atsɔ .pre-scrollable
klass la akpe ɖe eŋu, si aɖo max-height si nye 350px eye wòana y-axis scrollbar.
Ne èdi tɔtrɔwo fia la, zã <var>
tag la.
y = m x + b ƒe ƒuƒoƒo
Ne èdi be yeaɖe mɔxexeɖedɔlélewo fia kpɔɖeŋu ƒe dodo tso ɖoɖowɔɖi aɖe me la, zã <samp>
tag la.
Woɖoe be woabu nuŋɔŋlɔ sia be enye kpɔɖeŋu si woɖe tso kɔmpiutadziɖoɖo aɖe me.
Le atsyã veviwo wɔwɔ gome—siwo wotsɔ blaa nu bɔbɔewo kple nusiwo ma wo nɔewo le tsia dzi ko—la, tsɔ gɔmeɖoanyi ƒe hatsotso la .table
kpe ɖe ɖesiaɖe <table>
ŋu . Adze abe super redundant ene, gake le kplɔ̃wo zazã le afisiafi na plugins bubuwo abe ɣletigbalẽwo kple ŋkeke tiatiawɔlawo ta la, míetiae be míaɖe míaƒe kplɔ̃ ƒe atsyã tɔxɛwo ɖe aga.
# . | Ŋkɔ gbãtɔ | Ƒome ŋkɔ | Zãla ƒe ŋkɔ |
---|---|---|---|
1. 1. | Marko | Otto ƒe nyawo | @mdo dzi |
2. | Yakob | Thornton ƒe ŋkɔ | @da ami |
3. | Larry ye nye esia | Xe lae | @twitter dzi |
Zãe nàtsɔ .table-striped
akpe zebra-striping ɖe kplɔ̃ ƒe fli ɖesiaɖe si le <tbody>
.
Wowɔa kplɔ̃ siwo le fli me ƒe atsyã to :nth-child
CSS tiatiawɔnu dzi, si mele Internet Explorer 8 me o.
# . | Ŋkɔ gbãtɔ | Ƒome ŋkɔ | Zãla ƒe ŋkɔ |
---|---|---|---|
1. 1. | Marko | Otto ƒe nyawo | @mdo dzi |
2. | Yakob | Thornton ƒe ŋkɔ | @da ami |
3. | Larry ye nye esia | Xe lae | @twitter dzi |
Tsɔe kpe ɖe eŋu .table-bordered
na liƒowo le kplɔ̃a ƒe akpawo katã kple lãmenugbagbeviwo.
# . | Ŋkɔ gbãtɔ | Ƒome ŋkɔ | Zãla ƒe ŋkɔ |
---|---|---|---|
1. 1. | Marko | Otto ƒe nyawo | @mdo dzi |
2. | Yakob | Thornton ƒe ŋkɔ | @da ami |
3. | Larry ye nye esia | Xe lae | @twitter dzi |
Tsɔ kpe ɖe eŋu .table-hover
be wòana hover nɔnɔme nawɔ dɔ le kplɔ̃ ƒe fliwo dzi le a <tbody>
.
# . | Ŋkɔ gbãtɔ | Ƒome ŋkɔ | Zãla ƒe ŋkɔ |
---|---|---|---|
1. 1. | Marko | Otto ƒe nyawo | @mdo dzi |
2. | Yakob | Thornton ƒe ŋkɔ | @da ami |
3. | Larry ye nye esia | Xe lae | @twitter dzi |
Tsɔe kpe .table-condensed
ɖe eŋu be kplɔ̃wo nanɔ sue wu to lãmenugbagbevi siwo wotsɔ blaa nu ɖe wo nɔewo ŋu la ɖeɖe ɖe afã me.
# . | Ŋkɔ gbãtɔ | Ƒome ŋkɔ | Zãla ƒe ŋkɔ |
---|---|---|---|
1. 1. | Marko | Otto ƒe nyawo | @mdo dzi |
2. | Yakob | Thornton ƒe ŋkɔ | @da ami |
3. | Larry Xevi la | @twitter dzi |
Zã nya siwo ƒo xlãe ƒe klasswo tsɔ de ama kplɔ̃ ƒe fliwo alo lãmenugbagbevi ɖekaɖekawo.
Nusrɔ̃ƒe | Nuɖᴐɖᴐ |
---|---|
.active |
Tsɔ hover ƒe amadedea de fli alo lãmenugbagbevi aɖe koŋ dzi |
.success |
Fia afɔɖeɖe si kpɔ dzidzedze alo nu nyui aɖe |
.info |
Fia tɔtrɔ alo nuwɔna si me nyatakaka le si mede akpa aɖeke dzi o |
.warning |
Fia nuxlɔ̃ame si ate ŋu ahiã be woalé ŋku ɖe eŋu |
.danger |
Fia nuwɔna si me afɔku le alo ate ŋu anye nu gbegblẽ aɖe |
# . | Sɔti ƒe tanya | Sɔti ƒe tanya | Sɔti ƒe tanya |
---|---|---|---|
1. 1. | Nyati siwo le sɔtiwo me | Nyati siwo le sɔtiwo me | Nyati siwo le sɔtiwo me |
2. | Nyati siwo le sɔtiwo me | Nyati siwo le sɔtiwo me | Nyati siwo le sɔtiwo me |
3. | Nyati siwo le sɔtiwo me | Nyati siwo le sɔtiwo me | Nyati siwo le sɔtiwo me |
4. | Nyati siwo le sɔtiwo me | Nyati siwo le sɔtiwo me | Nyati siwo le sɔtiwo me |
5. | Nyati siwo le sɔtiwo me | Nyati siwo le sɔtiwo me | Nyati siwo le sɔtiwo me |
6. | Nyati siwo le sɔtiwo me | Nyati siwo le sɔtiwo me | Nyati siwo le sɔtiwo me |
7. 7.1 | Nyati siwo le sɔtiwo me | Nyati siwo le sɔtiwo me | Nyati siwo le sɔtiwo me |
8 | Nyati siwo le sɔtiwo me | Nyati siwo le sɔtiwo me | Nyati siwo le sɔtiwo me |
9. 9 | Nyati siwo le sɔtiwo me | Nyati siwo le sɔtiwo me | Nyati siwo le sɔtiwo me |
Amadede zazã atsɔ atsɔ gɔmesese akpe ɖe kplɔ̃ ƒe fli alo lãmenugbagbevi ɖekaɖeka ŋu koe naa nukpɔkpɔ ƒe dzesi aɖe ko, si womatsɔ na kpekpeɖeŋu mɔ̃ɖaŋunuwo zazãlawo o – abe screen readers ene. Kpɔ egbɔ be nyatakaka siwo wotsɔ amadedea de dzesii la dze ƒã tso emenyawo ŋutɔ me (nuŋɔŋlɔ si wokpɔna le kplɔ̃a ƒe fli/lãmenugbagbevi si sɔ me), alo wotsɔe de eme to mɔnu bubuwo dzi, abe nuŋɔŋlɔ bubu siwo woɣla kple .sr-only
klass la ene.
Wɔ kplɔ̃ siwo ɖoa nya ŋu to ɖesiaɖe babla ɖe .table
eme .table-responsive
be wòana woaʋuʋu le tsia dzi le mɔ̃ suewo dzi (le 768px te). Ne èle nu kpɔm le nusianu si lolo wu 768px ƒe kekeme dzi la, màkpɔ vovototo aɖeke le kplɔ̃ siawo me o.
Tabla siwo ɖoa nya ŋu la zãa overflow-y: hidden
, si ɖea nyatakaka ɖesiaɖe si yi ŋgɔ wu kplɔ̃a ƒe akpa siwo le ete alo etame la ɖa. Vevietɔ esia ate ŋu atso nuɖuɖu siwo le fli dzi kple ame bubuwo ƒe dɔwɔnu bubuwo ɖa.
Firefox na fieldset styling aɖewo siwo mebɔ o si lɔ width
be doa kplamatse kplɔ̃ si ɖoa nya ŋu. Womateŋu axe mɔ ɖe esia nu Firefox-koŋ ƒe hack si míetsɔ na le Bootstrap me o la manɔmee o:
Ne èdi nyatakaka bubuwo la, xlẽ Stack Overflow ƒe ŋuɖoɖo sia .
# . | Tabla ƒe tanya | Tabla ƒe tanya | Tabla ƒe tanya | Tabla ƒe tanya | Tabla ƒe tanya | Tabla ƒe tanya |
---|---|---|---|---|---|---|
1. 1. | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi |
2. | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi |
3. | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi |
# . | Tabla ƒe tanya | Tabla ƒe tanya | Tabla ƒe tanya | Tabla ƒe tanya | Tabla ƒe tanya | Tabla ƒe tanya |
---|---|---|---|---|---|---|
1. 1. | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi |
2. | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi |
3. | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi | Tabla ƒe lãmenugbagbevi |
Ame ɖekaɖekawo ƒe agbalẽvi dzi kpɔkpɔwo xɔa xexeame katã ƒe atsyã aɖewo le wo ɖokui si. Woɖo nuŋɔŋlɔ <input>
, <textarea>
, kple <select>
akpa siwo .form-control
katã le la width: 100%;
ɖe ɖoɖo nu. Kpe ŋkɔwo kple nusiwo dzi wokpɔna ɖe eme .form-group
be dometsotso nyuitɔ kekeake nanɔ wo dome.
Mègatsaka xexlẽdzesiwo ƒe ƒuƒoƒowo kple nyawo tsɔtsɔ de eme ƒe ƒuƒoƒowo tẽ o . Ke boŋ, tsɔ nyawo tsɔtsɔ de eme ƒe ƒuƒoƒoa de agbalẽvi ƒe ƒuƒoƒoa me.
Tsɔ kpe .form-inline
ɖe wò agbalẽvia ŋu (si mehiã be wòanye <form>
) na miame kple fli me mɔxexe ƒe dziɖuɖuwo. Esia ku ɖe agbalẽvi siwo le nukpɔkpɔ ƒe ʋɔtruwo me siwo keke 768px ya teti ŋu ko ŋu.
Inputs kple selects wɔ width: 100%;
dɔ le gɔmedzedzea me le Bootstrap me. Le inline forms me la, míegbugbɔa ema ɖona ɖe width: auto;
ale be dziɖuɖu geɖe nate ŋu anɔ fli ɖeka dzi. Le wò ɖoɖo nu la, ate ŋu ahiã be nàzã kekeme bubuwo ɖe ɖoɖo nu.
Screen readers akpɔ kuxi le wò agbalẽviwo ŋu ne mède dzesidenu ɖesiaɖe si nèŋlɔ la ŋu o. Le agbalẽvi siawo siwo le fli me gome la, àte ŋu aɣla dzesideawo to .sr-only
klass la zazã me. Mɔnu bubuwo li siwo dzi woato ana dzeside na mɔ̃ɖaŋununya siwo kpena ɖe ame ŋu, abe aria-label
, aria-labelledby
alo title
nɔnɔme ene. Ne esiawo dometɔ aɖeke mele eme o la, screen readers ate ŋu azã placeholder
nɔnɔmea, ne ele eme, gake de dzesii be placeholder
womeɖo aɖaŋu be woazãe atsɔ aɖo dzesidemɔnu bubuwo teƒe o.
Zã Bootstrap ƒe grid klass siwo woɖo do ŋgɔ tsɔ ɖo dzesidewo kple ƒuƒoƒo siwo le nuŋlɔɖiwo dzi kpɔƒewo ɖe ɖoɖo nu le ɖoɖo si le tsia dzi me to etsɔtsɔ kpe .form-horizontal
ɖe nɔnɔmetata la ŋu (si mehiã be wòanye a <form>
). Esia wɔwɔ trɔa .form-group
s be wòawɔ nu abe grid rows ene, eyata mehiã be .row
.
Kpɔɖeŋu siwo nye standard form controls siwo wodo alɔ le kpɔɖeŋu form layout me.
Agbalẽvi dzi kpɔkpɔ si bɔ wu, nuŋɔŋlɔ-siwo wotu ɖe nyawo tsɔtsɔ de eme ƒe agblewo dzi. HTML5 ƒomeviwo katã ƒe kpekpeɖeŋu le eme: text
, password
, datetime
, datetime-local
, date
, month
, time
, week
, number
, email
, url
, search
, tel
, kple color
.
type
Ne woɖe gbeƒã woƒe nyawo nyuie ko hafi woawɔ nusiwo wotsɔ de eme la ƒe atsyã bliboe .
Ne èdi be yeatsɔ nuŋɔŋlɔ alo abɔta siwo wotsɔ ƒo ƒui akpe ɖe nuŋɔŋlɔ ɖesiaɖe si wotu ɖe nuŋɔŋlɔ dzi kple/alo emegbe ŋu la <input>
, kpɔ nyawo tsɔtsɔ de eme ƒe ƒuƒoƒo ƒe akpaa ɖa .
Form control si doa alɔ nuŋɔŋlɔ ƒe fli geɖe. Trɔ rows
nɔnɔmea ne ehiã.
Aɖakawo nye tiatia ɖeka alo geɖe tiatia le xexlẽdzesi aɖe me, gake radiowo ya nye tiatia ɖeka tso geɖe me.
Wodoa alɔ dzesiɖaka kple radio siwo wowɔ nuwɔametɔwoe, gake be nàna "womeɖe mɔ ɖe eŋu o" ƒe dzesi le dzila ƒe hover dzi la <label>
, ahiã be nàtsɔ .disabled
klass la akpe ɖe dzila .radio
la ŋu , .radio-inline
, .checkbox
, alo .checkbox-inline
.
Zã .checkbox-inline
alo .radio-inline
klass siwo le aɖaka alo radio siwo kplɔ wo nɔewo ɖo dzi hena dziɖuɖu siwo dzena le fli ɖeka dzi.
Ne nuŋɔŋlɔ aɖeke mele asiwò le <label>
, la, woɖoa nyawo ɖe teƒe si nàkpɔ mɔ na. Fifia la, aɖaka siwo mele Internet dzi o kple radiowo dzi koe wòwɔa dɔ le. Ðo ŋku edzi nàgatsɔ dzesideŋkɔ ƒomevi aɖe ana mɔ̃ɖaŋununya siwo kpena ɖe ame ŋu (le kpɔɖeŋu me, zazã aria-label
).
De dzesii be native select menu geɖe—siwo nye Safari kple Chrome—la ƒe dzogoewo le goglo siwo womate ŋu atrɔ asi le to border-radius
nunɔamesiwo dzi o.
Le <select>
dziɖuɖu siwo si multiple
nɔnɔme le gome la, woɖea tiatia geɖewo fiana le gɔmedzedzea me.
Ne ehiã be nàda nuŋɔŋlɔ gbadzaa ɖe agbalẽvi ƒe dzeside aɖe xa le agbalẽvi aɖe me la, zã .form-control-static
klass la le <p>
.
Míeɖea outline
atsyã siwo woɖo ɖi le nɔnɔmetata ƒe dziɖuɖu aɖewo dzi ɖa eye míetsɔa a ɖoa box-shadow
eteƒe na :focus
.
:focus
dukɔKpɔɖeŋu si le etame la zãa atsyã siwo wowɔ ɖe ɖoɖo nu le míaƒe nuŋlɔɖiwo me tsɔ ɖea :focus
nɔnɔme si le a .form-control
.
Tsɔ disabled
boolean nɔnɔme kpe ɖe nyawo tsɔtsɔ de eme ŋu be nàxe mɔ ɖe zãla ƒe kadodowo nu. Nusiwo wotsɔ de eme siwo nuwɔametɔwoe la dzena abe ɖe wole bɔbɔe wu eye wotsɔa not-allowed
fli aɖe kpena ɖe wo ŋu.
Tsɔ disabled
nɔnɔmea kpe ɖe a <fieldset>
ŋu be nàwɔ dziɖuɖu siwo katã le eme la nuwɔametɔe <fieldset>
zi ɖeka.
<a>
Le gɔmedzedzea me la, web-browserwo awɔ nu ɖe native form controls ( <input>
, <select>
kple <button>
elements) siwo katã le a me ŋu <fieldset disabled>
abe nuwɔametɔwo ene, si axe mɔ na keyboard kple mouse siaa ƒe kadodo le wo dzi. Gake ne nusiwo le wò agbalẽvia me hã le eme <a ... class="btn btn-*">
la, ke pointer-events: none
. Abe alesi míede dzesii le akpa si ku ɖe nuwɔametɔ ƒe nɔnɔme ŋu na abɔtawo (eye vevietɔ le akpa sue si ku ɖe seke ƒe akpawo ŋu) me ene la, womeɖo CSS ƒe nɔnɔme sia ɖe ɖoɖo nu haɖe o eye womedo alɔe bliboe le Opera 18 kple esiwo le ete me o, alo le Internet Explorer 11 me, eye wòɖu dzi 't xe mɔ na keyboard zãlawo be woagate ŋu atsɔ woƒe susu aɖo kadodo siawo ŋu alo awɔ wo ŋudɔ o. Eyata be nànɔ dedie la, zã JavaScript si wowɔ ɖe ɖoɖo nu nàtsɔ awɔ kadodo mawo ŋudɔ.
Togbɔ be Bootstrap awɔ atsyã siawo ŋudɔ le web-browserwo katã me hã la, Internet Explorer 11 kple esiwo le ete mewɔa dɔ bliboe le disabled
nɔnɔme si le a <fieldset>
. Zã JavaScript si nèwɔ ɖe ɖoɖo nu nàtsɔ axe mɔ ɖe fieldset la nu le web-browser siawo me.
Tsɔ readonly
boolean nɔnɔme kpe ɖe nyawo tsɔtsɔ de eme ŋu be nàxe mɔ ɖe nyawo tsɔtsɔ de eme ƒe asixɔxɔ ƒe tɔtrɔ nu. Nuxexlẽ ɖeɖeko ƒe nyawo dzena le bɔbɔe wu (abe nyawo tsɔtsɔ de nuwɔametɔwoe ene), gake lé fli si wozãna ɖaa la ɖe asi.
Block level kpekpeɖeŋu nuŋɔŋlɔ na agbalẽvi dzi kpɔkpɔwo.
Ele be kpekpeɖeŋunuŋɔŋlɔ nado ƒome tẽ kple nuŋlɔɖi ƒe dziɖuɖu si wòku ɖe aria-describedby
nɔnɔmea zazã ŋu. Esia ana kpekpeɖeŋu mɔ̃ɖaŋunuwo – abe screen readers ene – aɖe gbeƒã kpekpeɖeŋu nuŋɔŋlɔ sia ne ezãla ƒe susu le nu ŋu alo ge ɖe dziɖuɖua me.
Bootstrap dea kpeɖodzi atsyãwo na vodada, nuxlɔ̃ame, kple dzidzedzekpɔkpɔ ƒe nɔnɔmewo le agbalẽvi ƒe dziɖuɖuwo dzi. Be nàzã la, tsɔ .has-warning
, .has-error
, alo .has-success
kpe ɖe dzila ƒe akpaa ŋu. .control-label
, .form-control
, kple akpa ma me ɖesiaɖe .help-block
axɔ kpeɖodzi ƒe atsyãwo.
Dɔdasi ƒe atsyã siawo zazã atsɔ afia nɔnɔme si me agbalẽvi dzi kpɔkpɔ le koe naa nukpɔkpɔ, amadede ƒe dzesi, si womatsɔ na kpekpeɖeŋu mɔ̃ɖaŋununya zãlawo - abe screen readers ene - alo na amadede ƒe ŋkumaʋumaʋu zãlawo o.
Kpɔ egbɔ be wowɔ dukɔa ƒe dzesi bubu aɖe hã. Le kpɔɖeŋu me, àteŋu ade aɖaŋuɖoɖo aɖe tso nɔnɔme ŋu le nuŋlɔɖidzikpɔkpɔ ƒe <label>
nuŋɔŋlɔ ŋutɔ me (abe alesi wòle le kɔda ƒe kpɔɖeŋu si gbɔna me ene), ade Glyphicon (kple nuŋɔŋlɔ bubu si sɔ to .sr-only
klass la zazã me - kpɔ Glyphicon ƒe kpɔɖeŋuwo ), alo to nana me kpekpeɖeŋu bubu ƒe nuŋɔŋlɔwo ƒe mɔxexe. Le kpekpeɖeŋu mɔ̃ɖaŋunuwo koŋ gome la, woate ŋu ade aria-invalid="true"
nɔnɔme aɖe asi na agbalẽvi dzi kpɔkpɔ siwo mesɔ o hã.
Àte ŋu atsɔ nyaŋuɖoɖo ƒe dzesi siwo nèdi hã akpe ɖe eŋu .has-feedback
kple dzesi si nye kple ɖusime.
Nyaŋuɖoɖo ƒe dzesiwo wɔa dɔ kple nuŋɔŋlɔ ƒe <input class="form-control">
akpawo ko.
Wobia be woaɖo nyaŋuɖoɖo ƒe dzesiwo ɖe teƒe ɖeka kple asi na nyawo tsɔtsɔ de eme siwo ŋu dzeside mele o kple nyawo tsɔtsɔ de eme ƒe ƒuƒoƒo siwo ŋu wotsɔ kpeɖeŋutɔ ɖo le ɖusime. Míele dzi dem ƒo na wò vevie be nàna dzesidewo na nusiwo katã wotsɔ de eme le susu siwo ta woate ŋu akpɔ wo gbɔ ta. Ne èdi be yeaxe mɔ ɖe dzesiwo ƒe ɖeɖefia nu la, ɣla wo kple .sr-only
klass la. Ne ele be nàwɔe dzesiwo manɔmee la, trɔ asi top
le nyaŋuɖoɖo ƒe dzesi ƒe asixɔxɔ ŋu. Le nyawo tsɔtsɔ de eme ƒe ƒuƒoƒowo gome la, trɔ asi le right
asixɔxɔa ŋu ɖe pixel ƒe asixɔxɔ si sɔ nu le wò kpeɖeŋutɔ ƒe kekeme nu.
Be woakpɔ egbɔ be mɔ̃ɖaŋununya siwo kpena ɖe ame ŋu – abe screen readers ene – ɖe dzesi aɖe ƒe gɔmesese fia nyuie la, ele be woatsɔ nuŋɔŋlɔ ɣaɣla bubuwo akpe ɖe .sr-only
klass la ŋu eye woatsɔe asɔ kple agbalẽvi dzi kpɔkpɔ si ku ɖe eŋudɔwɔwɔ ŋu tẽ aria-describedby
. Alo, kpɔ egbɔ be gɔmesesea (le kpɔɖeŋu me, nyateƒe si wònye be nuxlɔ̃ame aɖe li na nuŋɔŋlɔ ƒe akpa aɖe koŋ) la gblɔ le mɔ bubu aɖe nu, abe tɔtrɔ ŋutɔŋutɔ si <label>
do ƒome kple nuŋlɔɖia dzi kpɔkpɔ ene.
Togbɔ be kpɔɖeŋu siwo gbɔna yɔ woƒe nɔnɔmetata dzi kpɔkpɔ ƒe kpeɖodzi ƒe nɔnɔme xoxo le <label>
nuŋɔŋlɔa ŋutɔ me hã la, wotsɔ aɖaŋu si le etame (si wozã .sr-only
nuŋɔŋlɔ kple aria-describedby
) la de eme hena kpɔɖeŋu.
.sr-only
Dzesi siwo woate ŋu awɔ le wo ɖokui si siwo dzi woŋlɔ ŋkɔ siwo woɣla ɖoNe èzã .sr-only
klass la tsɔ ɣla agbalẽvi dzi kpɔkpɔ ƒe <label>
(ke menye be nàzã dzesidede tiatia bubuwo, abe aria-label
nɔnɔme ene) la, Bootstrap atrɔ asi le dzesi la ƒe nɔƒe le eɖokui si ne wonya tsɔe kpee ko.
Ðo kɔkɔƒewo to klasswo abe .input-lg
, eye nàɖo kekemewo to grid column ƒe klasswo abe .col-lg-*
.
Wɔ nɔnɔmedzikpɔnu siwo kɔkɔ wu alo esiwo le kpuie wu siwo sɔ kple abɔta ƒe lolomewo.
Kplɔ dzesidewo ƒe lolome kple nɔnɔmetata ƒe dziɖuɖuwo ɖe eme .form-horizontal
to .form-group-lg
alo tsɔtsɔ kpee me .form-group-sm
.
Kpe nyawo ɖe grid sɔtiwo me, alo dzila ƒe akpa ɖesiaɖe si wowɔ ɖe ɖoɖo nu, be nàzi kekeme siwo nèdi dzi bɔbɔe.
Zã abɔta ƒe hatsotsowo le <a>
, <button>
, alo <input>
element aɖe dzi.
Togbɔ be woateŋu azã button classes le <a>
kple <button>
elements dzi hã la, <button>
elements koe wodoa alɔ le míaƒe nav kple navbar components me.
Ne wozã <a>
nuawo tsɔ wɔa dɔ abe abɔtawo ene – si hea axaa me dɔwɔwɔ vɛ, tsɔ wu be woazɔ mɔ ayi nuŋlɔɖi alo akpa bubu si le axa si li fifia me la – ele be woana role="button"
.
Abe nuwɔna nyuitɔ ene la, míele aɖaŋu ɖom na wò vevie be nàzã <button>
element la ɣesiaɣi si wòanya wɔ be nàkpɔ egbɔ be cross-browser rendering sɔ.
Le nu bubuwo dome la, vodada aɖe le Firefox <30 me si xea mɔ na mí be míagaɖo line-height
of <input>
-dzi abɔtawo o, si na be womesɔ kple abɔta bubuwo ƒe kɔkɔme tututu le Firefox dzi o.
Zã abɔta ƒe hatsotso siwo li la dometɔ ɖesiaɖe nàtsɔ awɔ abɔta si wowɔ ɖe atsyã nu kaba.
Amadede zazã atsɔ atsɔ gɔmesese akpe ɖe abɔta ŋu koe naa nukpɔkpɔ ƒe dzesi aɖe, si womagblɔ na kpekpeɖeŋunamɔ̃wo zazãlawo o – abe screen readers ene. Kpɔ egbɔ be nyatakaka siwo wotsɔ amadedea de dzesii la dze ƒã tso emenyawo ŋutɔ me (abɔta la ƒe nuŋɔŋlɔ si wokpɔna), alo wotsɔe de eme to mɔnu bubuwo dzi, abe nuŋɔŋlɔ bubu siwo woɣla ɖe .sr-only
klass la ŋu ene.
Ðe nèdi be yeakpɔ abɔta siwo lolo wu alo esiwo le sue wua? Tsɔ .btn-lg
, .btn-sm
, alo .btn-xs
kpe ɖe eŋu hena lolome bubuwo.
Wɔ block level buttons—esiwo keke dzila ƒe kekeme bliboa—to .btn-block
.
Abɔtawo adze ne wozi (kple megbenya si do viviti wu, liƒo si do viviti wu, kple vɔvɔli si wotsɔ de eme) ne wole dɔ wɔm. Le <button>
elementwo gome la, wowɔa esia to :active
. Le <a>
elementwo gome la, wowɔe kple .active
. Ke hã, àteŋu azã .active
le <button>
s dzi (eye nàde aria-pressed="true"
nɔnɔmea eme) nenye be ehiã be nàgbugbɔ nɔnɔme si le dɔ wɔm la awɔ le ɖoɖowɔɖi me.
Mehiã be nàtsɔ akpe ɖe eŋu :active
o elabena enye alakpa-klass, gake ne ehiã be nàzi dzedzeme ma ke dzi la, yi ŋgɔ nàtsɔe akpe ɖe eŋu .active
.
Tsɔ .active
klass la kpe ɖe <a>
abɔtawo ŋu.
Na abɔtawo nadze abe ɖe womate ŋu azi wo dzi o ene to wo gbugbɔgatsɔ opacity
.
Tsɔ disabled
nɔnɔmea kpe ɖe <button>
abɔtawo ŋu.
Ne ètsɔ disabled
nɔnɔmea kpe ɖe a ŋu <button>
la, Internet Explorer 9 kple esiwo le ete la awɔ nuŋɔŋlɔa wòazu ɣie kple nuŋɔŋlɔ-vɔvɔli nyɔŋu aɖe si míate ŋu aɖɔ ɖo o.
Tsɔ .disabled
klass la kpe ɖe <a>
abɔtawo ŋu.
Míezãnɛ .disabled
abe viɖenu ƒe hatsotso ene le afisia, si sɔ kple .active
klass si bɔ, eyata mehiã ŋgɔdonya aɖeke o.
Klass sia zãna pointer-events: none
tsɔ dzea agbagba be yeawɔ <a>
s ƒe kadodo ƒe dɔwɔwɔ nuwɔametɔ, gake womeɖo CSS ƒe nɔnɔme ma ɖe ɖoɖo nu haɖe o eye womedo alɔe bliboe le Opera 18 kple esiwo le ete me o, alo le Internet Explorer 11. Tsɔ kpe ɖe eŋu la, le browser siwo doa alɔ pointer-events: none
, keyboard gɔ̃ hã me mɔfianu mekpɔa ŋusẽ ɖe edzi o, si fia be keyboard zãla siwo kpɔa nu kple mɔ̃ɖaŋununya siwo kpena ɖe ame ŋu zãlawo ate ŋu awɔ kadodo siawo ŋudɔ kokoko. Eyata be nànɔ dedie la, zã JavaScript si wowɔ ɖe ɖoɖo nu nàtsɔ awɔ kadodo mawo ŋudɔ.
Woate ŋu awɔ nɔnɔmetata siwo le Bootstrap 3 me wòanye ŋuɖoɖo-xɔlɔ̃wɔwɔ to .img-responsive
klass la tsɔtsɔ kpee me. Esia ku ɖe max-width: 100%;
, height: auto;
kple display: block;
nɔnɔmetata la ŋu ale be wòadzidze nyuie ɖe dzila ƒe akpaa ŋu.
Be nàɖo nɔnɔmetata siwo zãa .img-responsive
klass la ɖe titina la, zã .center-block
ɖe .text-center
. Kpɔ kpeɖeŋutɔ ƒe klasswo ƒe akpaa hena numeɖeɖe bubuwo tso .center-block
zazã ŋu.
Le Internet Explorer 8-10 me la, SVG nɔnɔmetatawo kple .img-responsive
ƒe lolome mesɔ gbɔ o. Be nàɖɔ esia ɖo la, tsɔe kpee width: 100% \9;
le afisi wòhiã le. Bootstrap mewɔa esia ŋudɔ le eɖokui si o elabena ehea kuxiwo vɛ na nɔnɔmetata ƒe nɔnɔme bubuwo.
Tsɔ klasswo kpe ɖe <img>
element aɖe ŋu be nàwɔ nɔnɔmetatawo ƒe atsyã bɔbɔe le dɔ ɖesiaɖe me.
Nenɔ susu me na wò be Internet Explorer 8 mekpɔa kpekpeɖeŋu na dzogoe goglowo o.
Gɔmesese to amadede me kple asibidɛ ʋee aɖewo gbetete ɖe viɖenu ƒe klasswo. Woateŋu awɔ esiawo hã ɖe kadodowo ŋu eye woado viviti le hover dzi abe míaƒe kadodo ƒe atsyã gbãtɔwo ene.
Fusce dapibus, tellus ac fiƒode si wotsɔ ƒo ƒui, tortor mauris nibh.
Nullam id dolor id nibh ultricies ʋuwo ut id elit.
Duis mollis, est non commodo luctus, si nye lãgbalẽ si wotsɔna tsɔa lãwoe.
Maecenas sed diam eget risus varius blandit bɔbɔ nɔ anyi amet non magna.
Etiam porta sem malesuada gã aɖe si woyɔna be euismod.
Donec ullamcorper nulla si menye metus nudzrala ƒe ʋuʋudedi o.
Ɣeaɖewoɣi la, womate ŋu awɔ gbeteteɖedzi ƒe klasswo ŋudɔ o le tiatiawɔla bubu ƒe nɔnɔme tɔxɛ ta. Zi geɖe la, egbɔkpɔnu si sɔ enye be nàxatsa wò nuŋɔŋlɔa ɖe a <span>
me kple klass la.
Amadede zazã atsɔ akpe ɖe gɔmesese ŋu koe naa nukpɔkpɔ ƒe dzesi aɖe, si womagblɔ na kpekpeɖeŋunamɔ̃wo zazãlawo o – abe screen readers ene. Kpɔ egbɔ be nyatakaka siwo wotsɔ amadedea de dzesii la dze ƒã tso emenyawo ŋutɔ me (ɖeko wozãa amadede siwo le nya siwo ƒo xlãe me tsɔ doa ŋusẽ gɔmesese si le nuŋɔŋlɔa/dzesi la me xoxo), alo wotsɔe de eme to mɔnu bubuwo dzi, abe nuŋɔŋlɔ bubu siwo woɣla ɖe .sr-only
klass la ŋu ene .
Abe alesi wòle le nuŋɔŋlɔ ƒe amadede ƒe hatsotso siwo le nya siwo ƒo xlãe me ene la, ɖo nu aɖe ƒe megbenyawo bɔbɔe ɖe nya siwo ƒo xlãe ƒe klass ɖesiaɖe ŋu. Anchor ƒe akpawo ado viviti le hover dzi, abe nuŋɔŋlɔ ƒe klasswo ene.
Nullam id dolor id nibh ultricies ʋuwo ut id elit.
Duis mollis, est non commodo luctus, si nye lãgbalẽ si wotsɔna tsɔa lãwoe.
Maecenas sed diam eget risus varius blandit bɔbɔ nɔ anyi amet non magna.
Etiam porta sem malesuada gã aɖe si woyɔna be euismod.
Donec ullamcorper nulla si menye metus nudzrala ƒe ʋuʋudedi o.
Ɣeaɖewoɣi la, womate ŋu awɔ nya siwo ƒo xlãe ƒe megbenyawo ƒe hatsotsowo ŋudɔ o le tiatiawɔla bubu ƒe nɔnɔme tɔxɛ ta. Le go aɖewo me la, egbɔkpɔnu si sɔ enye be nàxatsa wò element ƒe emenyawo ɖe a <div>
me kple klass la.
Abe alesi wòle le amadede siwo ƒo xlãe gome ene la , kpɔ egbɔ be gɔmesese ɖesiaɖe si woagblɔ to amadede dzi hã gblɔ le nɔnɔme si menye nuƒoƒo dzro aɖe ko me o nu.
Zã generic close icon hena gbegbe nyatakakawo abe modals kple nuxlɔ̃amewo ene.
Zã carets nàtsɔ afia dɔwɔwɔ kple mɔfiame si le fli dzi. De dzesii be caret si woɖo ɖi la atrɔ le eɖokui si le dropup menus me .
Tsɔ element aɖe ƒu gbe ɖe miame alo ɖusime kple klass aɖe. !important
wotsɔ de eme be woaƒo asa na nya siwo ku ɖe nya aɖewo koŋ ŋu. Woate ŋu azã klasswo hã abe mixin ene.
Ðo element aɖe ɖe display: block
kple titina to margin
. Woate ŋu akpɔe abe mixin kple klass ene.
Klɔ float
s bɔbɔe to etsɔtsɔ kpe .clearfix
ɖe dzila ƒe akpaa ŋu me . Ezãa micro clearfix la abe alesi Nicolas Gallagher na amewo lɔ̃e ene. Woate ŋu azãe hã abe mixin ene.
Zi element aɖe dzi be woaɖee afia alo aɣla ( si me screen readers hã le ) kple .show
kple .hidden
klasswo zazã. Klass siawo zãna !important
tsɔ ƒoa asa na nya aɖewo koŋ ƒe masɔmasɔwo, abe alesi ko tsia dzi kabakaba ene . Wole na block level toggling ko. Woate ŋu azã wo hã abe mixin ene.
.hide
li, gake mekpɔa ŋusẽ ɖe screen readers dzi ɣesiaɣi o eye womegazãnɛ le v3.0.1 dzi o. Zã .hidden
alo nàzã .sr-only
ɖe eteƒe.
Gawu la, .invisible
woateŋu azãe atsɔ atrɔ asi le nu aɖe ƒe dzedzeme ko ŋu, si fia display
be wometrɔ asi le eŋu o eye nu la ateŋu akpɔ ŋusẽ ɖe nuŋlɔɖia ƒe sisi dzi kokoko.
Ɣla nu aɖe na mɔ̃wo katã negbe screen readers siwo ŋu .sr-only
. Tsɔe ƒo ƒu .sr-only
kple .sr-only-focusable
be nàgaɖe element la afia ne eƒe susu le eŋu (le kpɔɖeŋu me, to keyboard-ko zãla dzi). Ehiã be woawɔ ɖe mɔnu nyuitɔ siwo dzi woato akpɔ mɔnukpɔkpɔwo dzi . Woate ŋu azãe hã abe mixins ene.
Zã .text-hide
klass alo mixin nàtsɔ akpe asi ɖe element aɖe ƒe nuŋɔŋlɔ me nyawo ŋu kple megbenɔnɔmetata.
Be asitelefon dzi wɔwɔ kabakaba wu la, zã dɔwɔnu ƒe hatsotso siawo hena nyatakakawo ɖeɖefia kple wo ɣla ɖe mɔ̃ dzi to nyadzɔdzɔgblɔmɔ̃wo biabia dzi. Azɔ hã, dɔwɔnu ƒe klass siwo wotsɔna trɔa asi le nyatakakawo ŋu ne wotae la le eme.
Dze agbagba nàzã esiawo le seɖoƒe aɖe nu eye nàƒo asa na nyatakakadzraɖoƒe ɖeka ƒe tɔtrɔ vovovowo kura wɔwɔ. Ke boŋ zã wo nàtsɔ akpe ɖe mɔ̃ ɖesiaɖe ƒe nuƒoƒo ŋu.
Zã klass siwo li la dometɔ ɖeka alo ƒokpli hena nyatakakawo ƒe tɔtrɔ le nukpɔƒe ƒe vovototowo me.
Mɔ̃ sue siwo sɔ gbɔ wuTelefonwo (<768px) . | Mɔ̃ suewoTablɛtwo (≥768px) . | Mɔ̃ siwo le titinaDɔwɔkplɔ̃wo (≥992px) . | Mɔ̃ gãwoDɔwɔkplɔ̃wo (≥1200px) . | |
---|---|---|---|---|
.visible-xs-* |
Woate ŋu akpɔe | Si le ɣaɣlame | Si le ɣaɣlame | Si le ɣaɣlame |
.visible-sm-* |
Si le ɣaɣlame | Woate ŋu akpɔe | Si le ɣaɣlame | Si le ɣaɣlame |
.visible-md-* |
Si le ɣaɣlame | Si le ɣaɣlame | Woate ŋu akpɔe | Si le ɣaɣlame |
.visible-lg-* |
Si le ɣaɣlame | Si le ɣaɣlame | Si le ɣaɣlame | Woate ŋu akpɔe |
.hidden-xs |
Si le ɣaɣlame | Woate ŋu akpɔe | Woate ŋu akpɔe | Woate ŋu akpɔe |
.hidden-sm |
Woate ŋu akpɔe | Si le ɣaɣlame | Woate ŋu akpɔe | Woate ŋu akpɔe |
.hidden-md |
Woate ŋu akpɔe | Woate ŋu akpɔe | Si le ɣaɣlame | Woate ŋu akpɔe |
.hidden-lg |
Woate ŋu akpɔe | Woate ŋu akpɔe | Woate ŋu akpɔe | Si le ɣaɣlame |
Tso v3.2.0 dzi la, .visible-*-*
klasswo na breakpoint ɖesiaɖe va le tɔtrɔ etɔ̃ me, ɖeka na CSS display
ƒe nunɔamesi ƒe asixɔxɔ ɖesiaɖe si woŋlɔ ɖe ete.
Klasswo ƒe ƒuƒoƒo | CSS ƒe ƒuƒoƒodisplay |
---|---|
.visible-*-block |
display: block; |
.visible-*-inline |
display: inline; |
.visible-*-inline-block |
display: inline-block; |
Eyata, na screen sue bubuwo ( xs
) le kpɔɖeŋu me, .visible-*-*
klass siwo li lae nye: .visible-xs-block
, .visible-xs-inline
, kple .visible-xs-inline-block
.
Klassawo .visible-xs
, .visible-sm
, .visible-md
, kple .visible-lg
hã li, gake woɖe asi le wo ŋu tso v3.2.0 dzi. Wosɔ kple .visible-*-block
, negbe nɔnɔme tɔxɛ bubuwo na toggling <table>
-related elements ko.
Abe alesi wòle le klass siwo ɖoa nya ŋu edziedzi ene la, zã esiawo hena nyatakakawo ƒe tɔtrɔ be woata.
Klasswo me | Browser ƒe nyatakakadzraɖoƒea | Ta agbalẽa |
---|---|---|
.visible-print-block .visible-print-inline .visible-print-inline-block |
Si le ɣaɣlame | Woate ŋu akpɔe |
.hidden-print |
Woate ŋu akpɔe | Si le ɣaɣlame |
Klas la .visible-print
hã li gake woɖe asi le eŋu tso v3.2.0 dzi. Esɔ kple .visible-print-block
, negbe nɔnɔme tɔxɛ bubuwo kpe ɖe eŋu na <table>
-nu siwo do ƒome kplii ko.
Trɔ wò browser ƒe lolome alo nàdae ɖe mɔ̃ vovovowo dzi be nàdo utility class siwo ɖoa nya ŋu la kpɔ.
Dzesi damawo fia be element la le dzedzem le wò nukpɔkpɔƒe si nèle fifia me.
Le afisia la, dzesi damawo hã fia be woɣla element la ɖe wò nukpɔkpɔƒe si nèle fifia me.
Wotu Bootstrap ƒe CSS ɖe Less dzi, si nye preprocessor si me dɔwɔwɔ bubuwo le abe tɔtrɔwo, mixins, kple dɔwɔwɔwo hena CSS ƒoƒo ƒu ene. Ame siwo le didim be yewoazã dzɔtsoƒe Less faɛlwo ɖe míaƒe CSS faɛl siwo míeƒo ƒu teƒe la ateŋu awɔ tɔtrɔ kple mixin gbogbo siwo míezãna le ɖoɖowɔɖia katã me la ŋudɔ.
Woƒo nu tso Grid ƒe tɔtrɔwo kple mixins ŋu le Grid ƒe ɖoɖo ƒe akpaa me .
Woateŋu azã bootstrap le mɔ eve ya teti nu: kple CSS si woƒo ƒu alo kple dzɔtsoƒe Less faɛlwo. Be nàƒo Less faɛlwo nu ƒu la, kpɔ akpa si nye Getting Started hena alesi nàɖo wò ŋgɔyiyi ƒe nɔnɔme be wòawɔ sedede siwo hiã la.
Ame etɔ̃lia ƒe nuƒoƒoƒu dɔwɔnuwo ateŋu awɔ dɔ kple Bootstrap, gake míaƒe ƒuƒoƒo vevi la medoa alɔ wo o.
Wozãa tɔtrɔwo le dɔ bliboa me abe mɔnu si dzi woato aɖo asixɔxɔ siwo wozãna zi geɖe abe amadedewo, dometsotso, alo ŋɔŋlɔdzesiwo ƒe ƒuƒoƒo ene ɖe teƒe ɖeka eye woama wo. Ne èdi be yeakpɔ eme bliboe la, taflatse kpɔ Customizer .
Wɔ amadede eve zazã bɔbɔe: grayscale kple semantic. Amadede siwo le amadede dzẽ me naa mɔnukpɔkpɔ ame kaba be wòakpɔ amadede yibɔ siwo wozãna zi geɖe esime gɔmesesea lɔ amadede vovovo siwo wode asi na nya siwo ƒo xlãe ƒe asixɔxɔ siwo ŋu gɔmesese le la ɖe eme.
Zã amadede ƒe tɔtrɔ siawo dometɔ aɖe abe alesi wole ene alo nàgbugbɔ ade asi na tɔtrɔ siwo ŋu gɔmesese le wu na wò dɔa.
Trɔtrɔnu ʋɛ aɖewo hena wò nyatakakadzraɖoƒea ƒe ƒunukpeƒe ƒe akpa veviwo ƒe tɔtrɔ kabakaba.
Trɔ asi le wò kadodowo ŋu bɔbɔe kple amadede nyuitɔ kple asixɔxɔ ɖeka ko.
De dzesii be the @link-hover-color
zãa dɔwɔwɔ aɖe, dɔwɔnu dziŋɔ bubu tso Less gbɔ, tsɔ wɔa hover amadede nyuitɔ le eɖokui si. Àte ŋu azã darken
, lighten
, saturate
, kple desaturate
.
Ðo wò nuŋɔŋlɔ ƒe nɔnɔme, nuŋɔŋlɔ ƒe lolome, ŋgɔdonya, kple bubuwo bɔbɔe kple tɔtrɔ kabakaba ʋɛ aɖewo. Bootstrap wɔa esiawo hã ŋudɔ tsɔ naa agbalẽtata ƒe mixins bɔbɔewo.
Trɔtrɔ kabakaba eve hena wò nɔnɔmetatawo ƒe teƒe kple faɛl ŋkɔ ƒe tɔtrɔ.
Kpeɖeŋutɔ siwo le Bootstrap bliboa me wɔa tɔtrɔ aɖewo siwo woɖo ɖi ŋudɔ hena asixɔxɔ siwo bɔ ɖoɖo. Wo dometɔ siwo wozãna wue nye esi.
Vendor mixins nye mixins be wòakpe ɖe ŋuwò nàdo alɔ web-browser geɖewo to vendor prefix siwo katã sɔ la dede wò CSS si nèƒo ƒu me.
Gbugbɔ ɖo wò akpawo ƒe aɖaka ƒe kpɔɖeŋu kple mixin ɖeka. Ne èdi nya siwo ƒo xlãe la, kpɔ nyati sia si akpe ɖe ame ŋu tso Mozilla .
Woɖe mixin la ɖa tso v3.2.0 dzi, kple Autoprefixer ƒe dodo. Be woakpɔ megbe-nɔnɔme ta la, Bootstrap ayi edzi azã mixin la le ememe vaseɖe Bootstrap v4.
Egbea egbegbe web-browserwo katã doa alɔ nɔnɔme si me wometsɔ ŋkɔ na o border-radius
. .border-radius()
Abe alesi wòle ene la, mixin aɖeke meli o , gake mɔ kpui siwo dzi woato aƒo dzogoe eve kabakaba le nu aɖe ƒe akpa aɖe koŋ la le Bootstrap me.
Ne wò nyaselawo le web-browser kple mɔ̃ yeyetɔ kple gãtɔwo zãm la, kpɔ egbɔ be yezã box-shadow
nunɔamesi la le eɖokui si ko. Ne èhiã kpekpeɖeŋu na Android (do ŋgɔ na v4) kple iOS dɔwɔnu xoxowo (do ŋgɔ na iOS 5) la, zã mixin si womegazã o la nàtsɔ axɔ -webkit
ŋgɔdonya si hiã.
Woɖe mixin la ɖa tso v3.1.0 dzi, elabena Bootstrap mewɔa dɔ le se nu le mɔ̃ siwo do xoxo siwo medoa alɔ nunɔamesi si woɖo ɖi la o. Be woakpɔ megbe-nɔnɔme ta la, Bootstrap ayi edzi azã mixin la le ememe vaseɖe Bootstrap v4.
Kpɔ egbɔ be yezã rgba()
amadedewo le wò aɖaka ƒe vɔvɔliwo me ale be woatsaka kple megbenyawo nyuie alesi nàte ŋui.
Mixin geɖe hena asitɔtrɔ le nɔnɔmewo ŋu. Ðo tɔtrɔ ŋuti nyatakakawo katã kple ɖeka, alo nàgblɔ megbedede kple ɣeyiɣi didi aɖe ɖe vovo ne ehiã.
Woɖe asi le mixins la ŋu tso v3.2.0 dzi, kple Autoprefixer ƒe dodo. Be woakpɔ megbe-dɔwɔwɔ ta la, Bootstrap ayi edzi azã mixins le ememe vaseɖe Bootstrap v4.
Trɔ nu ɖesiaɖe, nàdzidzee, ɖe egɔme (ʋuʋui), alo nàtrɔ asi le eŋu.
Woɖe asi le mixins la ŋu tso v3.2.0 dzi, kple Autoprefixer ƒe dodo. Be woakpɔ megbe-dɔwɔwɔ ta la, Bootstrap ayi edzi azã mixins le ememe vaseɖe Bootstrap v4.
Mixin ɖeka na CSS3 ƒe nɔnɔmetata ƒe nɔnɔmewo katã zazã le gbeƒãɖeɖe ɖeka me kple mixin bubuwo na nɔnɔme ɖekaɖekawo.
Woɖe asi le mixins la ŋu tso v3.2.0 dzi, kple Autoprefixer ƒe dodo. Be woakpɔ megbe-dɔwɔwɔ ta la, Bootstrap ayi edzi azã mixins le ememe vaseɖe Bootstrap v4.
Ðo opacity na browserwo katã eye nàna filter
fallback na IE8.
Na nya siwo ƒo xlãe na nuŋlɔɖigbalẽviwo dzi kpɔkpɔ le agble ɖesiaɖe me.
Wɔ sɔtiwo to CSS dzi le nu ɖeka me.
Trɔ amadede eve ɖesiaɖe bɔbɔe wòazu megbenya ƒe ʋuʋudedi. Yi ŋgɔ wu eye nàɖo mɔfiame, zã amadede etɔ̃, alo zã radial gradient. Ne èzã mixin ɖeka la, àkpɔ nyagɔmeɖegbalẽ siwo katã do ŋgɔ na nyagɔmeɖegbalẽ siwo nàhiã.
Àte ŋu agblɔ dzogoe si le amadede eve, fli ƒe ʋuʋudedi si wozãna ɖaa ŋu hã:
Ne èhiã barber-stripe style gradient la, ema hã le bɔbɔe. Ðeko nàgblɔ amadede ɖeka eye míatsɔ fli ɣi si me kɔ la atsyɔ edzi.
Do ante la ɖe dzi eye nàzã amadede etɔ̃ ɖe eteƒe. Ðo amadede gbãtɔ, amadede evelia, amadede evelia ƒe amadede ƒe tɔtrɔ (si nye alafa memamã ƒe asixɔxɔ abe 25%), kple amadede etɔ̃lia kple mixin siawo:
Tawo yi dzi! Ne ehiã be nàɖe gradient aɖe ɖa gbeɖeka la, kpɔ egbɔ be yeɖe IE-koŋ ɖesiaɖe si filter
nàte ŋu atsɔ akpe ɖe eŋu la ɖa. Àte ŋu awɔ ema to .reset-filter()
mixin la zazã ɖe axadzi background-image: none;
me .
Utility mixins nye mixins siwo ƒoa CSS ƒe nɔnɔme siwo medo ƒome kple wo nɔewo o nu ƒu be woaɖo taɖodzinu alo dɔ aɖe koŋ gbɔ.
Ŋlɔ class="clearfix"
nu ɖesiaɖe tsɔtsɔ kpe ɖe eŋu be eye nàtsɔ .clearfix()
mixin la akpe ɖe eŋu boŋ le afisi wòasɔ le. Ezãa micro clearfix si tso Nicolas Gallagher gbɔ .
Tsɔ nu ɖesiaɖe si le edzila me la ɖo titina kaba. Ebia width
alo max-width
be woaɖoe.
Gblɔ nu aɖe ƒe didime bɔbɔe wu.
Trɔ asi le lolome ƒe tiatiawɔblɔɖe ŋu bɔbɔe na nuŋɔŋlɔ ƒe teƒe ɖesiaɖe, alo nu bubu ɖesiaɖe. Woɖoe ɖe web-browser ƒe nuwɔna si sɔ gbɔ ( both
).
Trɔ nuŋɔŋlɔa bɔbɔe kple ellipsis kple mixin ɖeka. Ebia be element nanɔ block
alo wòanɔ inline-block
ɖoɖo nu.
Tsɔ nɔnɔmetata ƒe mɔ eve kple @1x nɔnɔmetata ƒe didimewo, eye Bootstrap ana @2x media biabia. Ne nɔnɔmetata geɖe le asiwò nàsubɔ la, bu wò ŋkume ƒe nɔnɔmetata CSS ŋɔŋlɔ kple asi le nyadzɔdzɔgblɔmɔ̃ ƒe nyabiase ɖeka me ŋu.
Togbɔ be wotu Bootstrap ɖe Less dzi hã la, Sass melidzeƒe si dziɖuɖua ɖo hã le esi . Míeléa be nɛ le GitHub ƒe nudzraɖoƒe si le vovo eye míetsɔa tɔtrɔ ƒe nuŋɔŋlɔ kpɔa asitɔtrɔwo gbɔ.
Esi wònye be repo ɖe vovo le Sass melidzeƒea eye wòsubɔa nyasela siwo to vovo vie ta la, dɔa me nyawo to vovo kura tso Bootstrap dɔ vevitɔ gbɔ. Esia kpɔa egbɔ be Sass melidzeƒea sɔ kple Sass-dzi ɖoɖo geɖe alesi wòanya wɔe.
Afᴐmᴐ | Nuɖᴐɖᴐ |
---|---|
lib/ |
Ruby gem code (Sass ƒe ɖoɖowɔwɔ, Rails kple Compass ƒe ƒoƒo ɖekae) |
tasks/ |
Trɔla ŋɔŋlɔdzesiwo (trɔtrɔ le dzigbe Less yi Sass) . |
test/ |
Nuƒoƒoƒu ƒe dodokpɔwo |
templates/ |
Kɔmpasi ƒe akpata me manifest |
vendor/assets/ |
Sass, JavaScript, kple ŋɔŋlɔdzesiwo ƒe faɛlwo |
Rakefile |
Dɔ siwo wowɔna le ememe, abe rake kple convert ene |
Yi Sass melidzeƒea ƒe GitHub nudzraɖoƒe be nàkpɔ faɛl siawo le dɔ wɔm.
Ne èdi nyatakaka tso alesi nàɖo Bootstrap na Sass ɖe wò kɔmpiuta dzi ahazãe ŋu la, kpɔ GitHub ƒe nudzraɖoƒe readme . Enye dzɔtsoƒe yeyetɔ kekeake eye nyatakaka siwo woazã kple Rails, Compass, kple Sass dɔ siwo wozãna ɖaa la le eme.