Wotu akpa gbogbo aɖewo siwo woate ŋu azã ake ɖe Bootstrap me be woana mɔfiamewo, nuxlɔ̃amewo, popovers, kple bubu geɖe.
Ultra bɔbɔe kple minimally styled axawo ʋã Rdio, nyui na apps kple didi me tsonu. Blɔk gã la sesẽ be woato eme, woate ŋu atrɔ asi le eŋu bɔbɔe, eye wònaa teƒe gã siwo woate ŋu akli nu le.
Woate ŋu atrɔ asi le kadodowo ŋu eye wowɔa dɔ le nɔnɔme geɖe me kple klass nyuitɔ. .disabled
na kadodo siwo dzi womate ŋu azi o kple .active
axa si li fifia.
Tsɔ klass eve siwo nàte ŋu atia la dometɔ ɖeka kpee be nàtrɔ axawo ƒe kadodowo ƒe ɖoɖo: .pagination-centered
kple .pagination-right
.
Axawo ƒe akpa si woɖo ɖi la te ŋu trɔna ɖe nɔnɔmewo ŋu eye wòwɔa dɔ le tɔtrɔ geɖe me.
Ne woxatsa ɖe <div>
axawo dzi la, axadzinɔnɔ nye <ul>
.
- <div klass = "axadzinɔnɔ" >
- <ul> ƒe nyawo
- <li><a href = "#" > Do ŋgɔ </a></li>
- <li klass = "dɔwɔwɔ" >
- <a href = "#" > 1 </a>
- </li> ƒe akpa aɖe
- <li><a href = "#" > 2 </a></li>
- <li><a href = "#" > 3 </a></li>
- <li><a href = "#" > 4 </a></li>
- <li><a href = "#" > Nusi kplɔe ɖo </a></li>
- </ul> ƒe nyawo
- </div> ƒe nyawo
Pager ƒe akpaa nye kadodowo ƒe ƒuƒoƒo na axadzinɔnɔ ƒe dɔwɔwɔ bɔbɔewo kple dzesidede kekeli kple atsyã siwo le bɔbɔe wu gɔ̃ hã. Enyo ŋutɔ na nyatakakadzraɖoƒe bɔbɔewo abe blog alo magazinewo ene.
Pager kadodowo hã zãa general .disabled
class tso axadzinɔnɔ me.
Le gɔmedzedzea me la, pager la tsɔa kadodowo ɖoa titina.
- <ul klass = "pager" >
- <li> ƒe nyawo
- <a href = "#" > Do ŋgɔ </a>
- </li> ƒe akpa aɖe
- <li> ƒe nyawo
- <a href = "#" > Nusi kplɔe ɖo </a>
- </li> ƒe akpa aɖe
- </ul> ƒe nyawo
Ŋkɔwo ƒe ŋkɔwo | Dzesidede dzesiwo |
---|---|
Gᴐmedzeƒe | <span class="label">Default</span> |
Dzidzedzekpᴐkpᴐ | <span class="label label-success">Success</span> |
Kpɔnyuiedodo | <span class="label label-warning">Warning</span> |
Le veviẽ | <span class="label label-important">Important</span> |
Nyatakaka | <span class="label label-info">Info</span> |
Trɔ ɖe megbe | <span class="label label-inverse">Inverse</span> |
Akɔtagbalẽviwo nye nu suesuesue siwo le bɔbɔe siwo wotsɔ ɖea dzesi alo xexlẽdzesi aɖe ƒomevi fiana. Wokpɔa wo zi geɖe le e-mail asisiwo abe Mail.app alo asitelefon dɔwɔɖoɖowo dzi hena push notifications.
Ŋkɔ | Kpɔɖeŋu | Dzesidede dzesiwo |
---|---|---|
Gᴐmedzeƒe | 1. | <span class="badge">1</span> |
Dzidzedzekpᴐkpᴐ | 2. | <span class="badge badge-success">2</span> |
Kpɔnyuiedodo | 4. | <span class="badge badge-warning">4</span> |
Le veviẽ | 6. | <span class="badge badge-important">6</span> |
Nyatakaka | 8 | <span class="badge badge-info">8</span> |
Trɔ ɖe megbe | 10 | <span class="badge badge-inverse">10</span> |
Bootstrap naa akpa aɖe si le bɔbɔe, si te ŋu trɔna bɔbɔe si woyɔna be kalẽtɔ ƒe akpa aɖe be wòaɖe nyatakaka siwo le wò nyatakakadzraɖoƒea afia. Ewɔa dɔ nyuie le asitsatsa kple nyatakakadzraɖoƒe siwo me nyatakakawo sɔ gbɔ ɖo la dzi.
Kpe wò nyatakakawo ɖe div
like me ale:
- <div klass = "kalẽtɔ-habɔbɔ" >
- <h1> Tanya </h1>
- <p> Tagline </p>
- <p> ƒe nyawo
- <a klass = "btn btn-gbãtɔ btn-lolo" >
- Srɔ̃ nu geɖe tso eŋu
- </a>
- </p> ƒe nyawo
- </div> ƒe nyawo
Esia nye kalẽtɔ ƒe akpa bɔbɔe aɖe, si nye jumbotron ƒe atsyã ƒe akpa bɔbɔe aɖe si wotsɔ hea susu yia nya alo nyatakaka siwo woɖe fia dzi geɖe wu.
Shell bɔbɔe aɖe na an h1
be wòaɖe dometsotso si sɔ ɖe eme eye wòama emenyawo ƒe akpawo me le axa aɖe dzi. Ateŋu azã h1
's default small
, element kpakple akpa bubu akpa gãtɔ (kple atsyã bubuwo).
- <div class = "axa-tanya" >
- <h1> Kpɔɖeŋu axa ƒe tanya </h1>
- </div> ƒe nyawo
Le gɔmedzedzea me la, wowɔ Bootstrap ƒe nɔnɔmetata suewo be woaɖe nɔnɔmetata siwo do ƒome kple wo nɔewo afia kple dzesi suetɔ kekeake si hiã.
Ne ède dzesii vie la, àte ŋu atsɔ HTML me nyawo ƒomevi ɖesiaɖe abe tanyawo, memamawo, alo abɔtawo akpe ɖe nɔnɔmetata suewo ŋu.
Nɔnɔmetata suewo (siwo nɔ anyi tsã .media-grid
vaseɖe v1.4) nyo ŋutɔ na foto alo videowo ƒe grids, nɔnɔmetatawo didi ƒe nyatakakawo, asitsanuwo, agbalẽdzraɖoƒewo, kple bubu geɖe. Woate ŋu anye kadodowo alo nyatakaka siwo meʋãna o.
Nɔnɔmetata suewo ƒe dzesidede le bɔbɔe—a ul
si me nu agbɔsɔsɔme ɖesiaɖe le li
koe nye nusi hiã. Eye wònye super flexible hã, si ɖea mɔ na nyatakaka ƒomevi ɖesiaɖe kple dzesidede vi aɖe ko be wòaxatsa wò emenyawo.
Mlɔeba la, nɔnɔmetata suewo ƒe akpaa zãa grid system ƒe hatsotso siwo li xoxo—abe .span2
alo .span3
—hena nɔnɔmetata suewo ƒe didimewo dzi kpɔkpɔ.
Abe alesi míegblɔe va yi ene la, dzesidenu si hiã na nɔnɔmetata suewo la le bɔbɔe eye wòle tẽ. Kpɔ ɖoɖo si woɖo ɖi na nɔnɔmetata siwo do ƒome kple wo nɔewo la ɖa :
- <ul class = "nɔnɔmetata suewo" >
- <li ƒe hatsotso = "span3" >
- <a href = "#" klass = "nɔnɔmetata sue" >
- <img src = "Aʋawɔnyawo Gbɔkpɔƒe ƒe teƒe si wole/260x180" alt = "" >
- </a>
- </li> ƒe akpa aɖe
- ...
- </ul> ƒe nyawo
Le HTML me nyatakaka siwo wowɔ ɖe ɖoɖo nu le nɔnɔmetata suewo me gome la, dzesidea trɔna vie. Be míaɖe mɔ na block level content le afi sia afi la, míeɖɔlia the <a>
ɖe <div>
like so:
- <ul class = "nɔnɔmetata suewo" >
- <li ƒe hatsotso = "span3" >
- <div class = "nɔnɔmetata sue" >
- <img src = "Aʋawɔnyawo Gbɔkpɔƒe ƒe teƒe si wole/260x180" alt = "" >
- <h5> Nɔnɔmetata suewo ƒe dzeside </h5>
- <p> Nɔnɔmetata suewo ƒe nuŋɔŋlɔ le afisia tututu... </p>
- </div> ƒe nyawo
- </li> ƒe akpa aɖe
- ...
- </ul> ƒe nyawo
Le Bootstrap 2 me la, míewɔ gɔmeɖoanyi ƒe hatsotso la bɔbɔe: .alert
ɖe .alert-message
. Míeɖe dzesi suetɔ kekeake si hiã hã dzi kpɔtɔ—ao <p>
mehiã le gɔmedzedzea me o, gotagometɔ koe <div>
.
Le akpa si nɔa anyi didina wu kple kɔda ʋɛ aɖewo ko la, míeɖe vovototodedeameme ƒe dzedzeme ɖa na mɔxexeɖenu ƒe nuxlɔ̃amewo, gbedasi siwo va kple padding geɖe wu kple zi geɖe la, nuŋɔŋlɔ geɖe wu. Klass la hã trɔ zu .alert-block
.
Bootstrap va kple jQuery ƒe kpeɖeŋutɔ gã aɖe si doa alɔ nuxlɔ̃ame gbedasiwo, si wɔnɛ be wo ɖeɖeɖa kabakaba eye wònɔa bɔbɔe.
Kpe wò gbedasi kple dzesi si nàte ŋu atsɔ axe mɔ ɖe enu ɖe div me kple klass bɔbɔe.
- <div klass = "nuxlɔ̃ame" >
- <button class = "tu" data-dismiss = "nuxlɔ̃ame" > × </button>
- <strong> Nuxlɔ̃ame! </strong> Best check yo self, mèle dzedzem nyuie akpa o.
- </div> ƒe nyawo
Tawo yi dzi! iOS dɔwɔnuwo bia be href="#"
woaɖe asi le nuxlɔ̃amewo ŋu. Kpɔ egbɔ be yede eya kple nyatakaka ƒe nɔnɔme na anchor close icons la eme. Alo àte ŋu azã <button>
element aɖe si me data attribute le, si míetia be míawɔ na míaƒe docs. Ne èle , zãm <button>
la, ele be nàde eme type="button"
alo wò agbalẽviwo mate ŋu aɖoe ɖa o.
Keke nuxlɔ̃ame gbedasi si wozãna ɖaa la ɖe enu bɔbɔe kple klass eve siwo nàte ŋu atia: .alert-block
na padding kple nuŋɔŋlɔ dzi kpɔkpɔ geɖe wu kple .alert-heading
na tanya si sɔ.
Best check yo self, mèle dzedzem nyuie akpa o. Nulla vitae elit libero, si nye lãgbalẽ si nye augue. Praesent commodo cursus magna, vel scelerisque nisl ƒe ƒuƒoƒo kple.
- <div class = "nuxlɔ̃ame nuxlɔ̃ame-mɔxexe" >
- <a klass = "tu" data-dismiss = "nuxlɔ̃ame" href = "#" > × </a>
- <h4 class = "nuxlɔ̃ame-tanya" > Nuxlɔ̃ame! </h4> ƒe nyawo
- Best check yo self, wò menye...
- </div> ƒe nyawo
- <div class = "nuxlɔ̃ame nuxlɔ̃ame-vodada" >
- ...
- </div> ƒe nyawo
- <div class = "nuxlɔ̃ame-dzidzedzekpɔkpɔ" >
- ...
- </div> ƒe nyawo
- <div class = "nuxlɔ̃ame-nyatakaka" >
- ...
- </div> ƒe nyawo
Default progress bar kple tsitrenu ƒe ʋuʋudedi.
- <div klass = "ŋgɔyiyi" >
- <div ƒe klass = "bar".
- style = " kekeme : 60 %; " ></div>
- </div> ƒe nyawo
Zãa gradient tsɔ wɔa striped effect (IE aɖeke mele eme o).
- <div class = "ŋgɔyiyi ŋgɔyiyi-striped" >
- <div ƒe klass = "bar".
- style = " kekeme : 20 %; " ></div>
- </div> ƒe nyawo
Exɔa kpɔɖeŋu si le fli me eye wòwɔa agbe nɛ (IE aɖeke meli o).
- <div class = "ŋgɔyiyi ŋgɔyiyi- dzesi."
- le dɔ wɔm" >
- <div ƒe klass = "bar".
- style = " kekeme : 40 %; " ></div>
- </div> ƒe nyawo
Ŋgɔyiyi ƒe dzesiwo zãa abɔta kple nuxlɔ̃ame ƒe klass ɖeka mawo ke dometɔ aɖewo hena atsyã siwo mewɔa tɔtrɔ o.
Abe alesi wòle le amadede sesẽawo gome ene la, ŋgɔyiyi ƒe ʋuƒo vovovo siwo ŋu fli le la le mía si.
Ŋgɔyiyi ƒe dzesiwo zãa CSS3 ƒe tɔtrɔwo, eyata ne ètrɔ asi le kekeme ŋu le mɔ si trɔna nu to javascript dzi la, atrɔ eƒe lolome bɔbɔe.
Ne èzã .active
klass la, wò .progress-striped
ŋgɔyiyi ƒe dzesiwo ana fliawo nawɔ dɔ le miame yi ɖusime.
Ŋgɔyiyi ƒe dzesiwo zãa CSS3 ƒe ʋuʋudediwo, tɔtrɔwo, kple nɔnɔmetatawo tsɔ ɖoa woƒe ŋusẽkpɔɖeamedziwo katã gbɔ. Womewɔa dɔ siawo le IE7-9 alo Firefox ƒe tɔtrɔ xoxowo me o.
Opera kple IE mewɔa dɔ le animations ŋu le ɣeyiɣi sia me o.
Zã vudoa abe ŋusẽkpɔɖeamedzi bɔbɔe aɖe ɖe nu vevi aɖe dzi ene be wòana wòakpɔ ŋusẽ ɖe nusi wotsɔ de eme dzi.
- <div klass = "enyo" >
- ...
- </div> ƒe nyawo
Zã generic close icon hena gbegbe nyatakakawo abe modals kple nuxlɔ̃amewo ene.
- <button class = "tu" > &ɣeyiɣiwo; </button> ƒe dzesi
iOS dɔwɔnuwo hiã href="#" na click nudzɔdzɔwo ne èdi be yeazã anchor boŋ.
- <a klass = "tu" href = "#" > &ɣeyiɣiwo; </a>