Dɔzin kɔmpɔnɛnt dɛn we dɛn kin yuz bak we dɛn bil fɔ mek pipul dɛn ebul fɔ go na di say we dɛn de go, fɔ mek pipul dɛn no bɔt dɛn, fɔ mek pipul dɛn bɔn, ɛn ɔda tin dɛn.
Toggleable, contextual menu fɔ sho list dɛn fɔ link dɛn. Mek intaraktiv wit di drɔpdɔwn JavaSkript plɔgin .
- <ul klas = "drɔpdɔwn-mɛnyu" rol = "mɛnyu" aria-labelledby = "drɔpdɔwn-mɛnyu" >
- <li><a tabindex = "-1" href = "#" > Akshɔn </a></li>
- <li><a tabindex = "-1" href = "#" > Wan ɔda akshɔn </a></li>
- <li><a tabindex = "-1" href = "#" > Sɔntin ɔda tin ya </a></li>
- <li klas = "divayda" </li>
- <li><a tabindex = "-1" href = "#" > Link we dɛn dɔn separet </a></li>
- </ul> fɔ di wan dɛn we de
We yu luk jɔs di drɔpdɔwn mɛnyu, na di HTML we yu nid. Yu nid fɔ rap di drɔpdɔwn in trig ɛn di drɔpdɔwn mɛnyu insay .dropdown
, ɔ ɔda ɛlimɛnt we de diklar position: relative;
. Dɔn jɔs mek di mɛnyu.
- <div klas = "drɔpdɔwn" >
- <!-- Link ɔ bɔtin fɔ tɔgl drɔpdɔwn -->
- <ul klas = "drɔpdɔwn-mɛnyu" rol = "mɛnyu" aria-lɛbul bay = "dLɛbul" >
- <li><a tabindex = "-1" href = "#" > Akshɔn </a></li>
- <li><a tabindex = "-1" href = "#" > Wan ɔda akshɔn </a></li>
- <li><a tabindex = "-1" href = "#" > Sɔntin ɔda tin ya </a></li>
- <li klas = "divayda" </li>
- <li><a tabindex = "-1" href = "#" > Link we dɛn dɔn separet </a></li>
- </ul> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
Align mɛnyu dɛn na di rayt say ɛn ad inklud ɔda lɛvul dɛn fɔ drɔpdɔwn dɛn.
Ad .pull-right
to a .dropdown-menu
to rayt alaynɛt di drɔpdɔwn mɛnyu.
- <ul klas = "drɔpdɔwn-mɛnyu pul-rayt" rol = "mɛnyu" aria-lɛbul bay = "dLabel" >
- ...
- </ul> fɔ di wan dɛn we de
Ad .disabled
to a <li>
na di drɔpdɔwn fɔ disable di link.
- <ul klas = "drɔpdɔwn-mɛnyu" rol = "mɛnyu" aria-labelledby = "drɔpdɔwn-mɛnyu" >
- <li><a tabindex = "-1" href = "#" > Rigyul link </a></li>
- <li klas = "disabled" ><a tabindex = "-1" href = "#" > Disabled link </a></li>
- <li><a tabindex = "-1" href = "#" > Wan ɔda link </a></li>
- </ul> fɔ di wan dɛn we de
Ad wan ɛkstra lɛvul fɔ drɔpdɔwn mɛnyu dɛn, we de apia na hova lɛk di wan dɛn we de na OS X, wit sɔm simpul mak-ap adishɔn dɛn. Ad .dropdown-submenu
to ɛni li
wan pan wan drɔpdɔwn mɛnyu we dɔn de fɔ mek yu ebul fɔ stayl ɔtomɛtik wan.
- <ul klas = "drɔpdɔwn-mɛnyu" rol = "mɛnyu" aria-lɛbul bay = "dLɛbul" >
- ...
- <li klas = "drɔpdɔwn-sɔbmɛnyu" >
- <a tabindex = "-1" href = "#" > Mɔ opshɔn dɛn </a>
- <ul klas = "drɔpdɔwn-mɛnyu" >
- ...
- </ul> fɔ di wan dɛn we de
- </li> fɔ di wan dɛn we de
- </ul> fɔ di wan dɛn we de
Simpul pejineshɔn we dɛn inspɛkt frɔm Rdio, fayn fɔ ap ɛn sɔch rizɔlt dɛn. Di big blɔk at fɔ mis, i izi fɔ skel, ɛn i de gi big say dɛn fɔ klik.
- <div klas = "pejineshɔn" >
- <ul> fɔ di wan dɛn we de
- <li><a href = "#" > Di wan dɛn we de bifo </a></li>
- <li><a href = "#" > 1 </a></li>
- <li><a href = "#" > 2 </a></li>
- <li><a href = "#" > 3 </a></li>
- <li><a href = "#" > 4 </a></li>
- <li><a href = "#" > 5 </a></li>
- <li><a href = "#" > Nɛks </a></li>
- </ul> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
Link dɛn kin kɔstɔmayt fɔ difrɛn tin dɛn. Yuz .disabled
fɔ link dɛn we yu nɔ go ebul fɔ klik ɛn .active
fɔ sho di pej we yu de yuz naw.
- <div klas = "pejineshɔn" >
- <ul> fɔ di wan dɛn we de
- <li klas = "disabul" ><a href = "#" > « </a></li> fɔ di wan dɛn we de
- <li klas = "aktiv" ><a href = "#" > 1 </a></li>
- ...
- </ul> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
Yu kin opshɔnali swap aut aktif ɔ disabled ankɔ fɔ span fɔ pul klik funkshɔnaliti we yu de kip di stayl dɛn we yu want.
- <div klas = "pejineshɔn" >
- <ul> fɔ di wan dɛn we de
- <li klas = "disabul" ><span> « </span></li> fɔ di wan dɛn we de
- <li klas = "aktiv" ><span> 1 </span></li>
- ...
- </ul> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
Fans big ɔ smɔl pejineshɔn? Ad .pagination-large
, .pagination-small
, ɔ .pagination-mini
fɔ ɔda saiz dɛn.
- <div klas = "pejin pejineshɔn-big" >
- <ul> fɔ di wan dɛn we de
- ...
- </ul> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- <div klas = "pejineshɔn" >
- <ul> fɔ di wan dɛn we de
- ...
- </ul> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- <div klas = "pejin pejineshɔn-smɔl" >
- <ul> fɔ di wan dɛn we de
- ...
- </ul> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- <div klas = "pejin pejineshɔn-mini" >
- <ul> fɔ di wan dɛn we de
- ...
- </ul> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
Ad wan pan tu opshɔnal klas dɛn fɔ chenj di alaynɛshɔn fɔ pej link dɛn: .pagination-centered
ɛn .pagination-right
.
- <div klas = "pejineshɔn pejin-sɛntrɛd" >
- ...
- </div> fɔ di wan dɛn we de
- <div klas = "pejin pejineshɔn-rayt" >
- ...
- </div> fɔ di wan dɛn we de
Kwik bifo ɛn nɛks link fɔ simpul pej implimɛnt dɛn wit layt mak ɛn stayl dɛn. I fayn fɔ simpul sayt dɛn lɛk blɔk ɔ magazin.
Bay difɔlt, di pej de sɛnt di link dɛn.
- <ul klas = "peja" >
- <li><a href = "#" > Di wan dɛn we bin dɔn de bifo </a></li>
- <li><a href = "#" > Nɛks </a></li>
- </ul> fɔ di wan dɛn we de
Ɔda we de fɔ du dat, yu kin alaynɛd ɛni link to di sayd dɛn:
- <ul klas = "peja" >
- <li klas = "we bin de bifo" >
- <a href = "#" > ɛn di wan dɛn we de na di wɔl. Di wan dɛn we dɔn ol </a>
- </li> fɔ di wan dɛn we de
- <li klas = "nɛks" >
- <a href = "#" > Nyu wan → </a> fɔ di wan dɛn we de
- </li> fɔ di wan dɛn we de
- </ul> fɔ di wan dɛn we de
Peja link dɛn de yuz bak di jenɛral .disabled
yutiliti klas frɔm di pejeshɔn.
- <ul klas = "peja" >
- <li klas = "bifo disabled" >
- <a href = "#" > ɛn di wan dɛn we de na di wɔl. Di wan dɛn we dɔn ol </a>
- </li> fɔ di wan dɛn we de
- ...
- </ul> fɔ di wan dɛn we de
Lebul dɛn | Mak-ap fɔ di tin dɛn we de apin |
---|---|
Balans | <span class="label">Default</span> |
Go bifo | <span class="label label-success">Success</span> |
Wɔnin | <span class="label label-warning">Warning</span> |
Impɔtant | <span class="label label-important">Important</span> |
Info | <span class="label label-info">Info</span> |
Invas fɔ di Baybul | <span class="label label-inverse">Inverse</span> |
Nem | Ɛgzampul | Mak-ap fɔ di tin dɛn we de apin |
---|---|---|
Balans | 1. Di wan dɛn we de | <span class="badge">1</span> |
Go bifo | 2. Di wan dɛn we de | <span class="badge badge-success">2</span> |
Wɔnin | 4. Di wan dɛn we de | <span class="badge badge-warning">4</span> |
Impɔtant | 6. Di wan dɛn we de | <span class="badge badge-important">6</span> |
Info | 8. Di wan dɛn we de | <span class="badge badge-info">8</span> |
Invas fɔ di Baybul | 10. Di wan dɛn we de | <span class="badge badge-inverse">10</span> |
Fɔ mek i izi fɔ impruv, lɛbl ɛn badge dɛn go jɔs kolap (via CSS in :empty
sɛlɛktɔ) we nɔ kɔntinyu nɔ de insay.
Wan layt, fleksibul kɔmpɔnɛnt fɔ sho di men tin dɛn na yu sayt. I de wok fayn pan sayt dɛn we gɛt bɔku bɔku tin dɛn fɔ sɛl ɛn we gɛt bɔku tin dɛn fɔ du.
Dis na simpul hiro yunit, wan simpul jumbotron-stayl kɔmpɔnɛnt fɔ kɔl ɛkstra atɛnshɔn to fichu kɔntinyu ɔ infɔmeshɔn.
- <div klas = "hiro-yunit" >
- <h1> Ɛd fɔ </h1>
- <p> Taglayn </p>
- <p> fɔ di wan dɛn we de
- <a klas = "btn btn-praymari btn-big" >
- Lan mɔ bɔt dis
- </a> fɔ di wan dɛn we de
- </p>we de sho aw fɔ du dat
- </div> fɔ di wan dɛn we de
Wan simpul shel fɔ wan h1
fɔ apɔpriet spɛs aut ɛn sɛgmɛnt sɛkshɔn dɛn fɔ kɔntinyu na wan pej. I kin yuz di h1
's difɔlt small
, ɛlimɛnt ɛn mɔs ɔda kɔmpɔnɛnt dɛn (wit ɔda stayl dɛn).
- <div klas = "pej-hɛda" >
- <h1> Ɛgzampul pej hεda <small> Sabtɛks fɔ hεda </small></h1>
- </div> fɔ di wan dɛn we de
Bay difɔlt, dɛn mek Bootstrap in smɔl pikchɔ dɛn fɔ sho pikchɔ dɛn we gɛt link wit smɔl mak we dɛn nid.
Wit smɔl ɛkstra mak, i pɔsibul fɔ ad ɛni kayn HTML kɔntinyu lɛk ɛd, paregraf, ɔ bɔtin dɛn insay smɔl pikchɔ dɛn.
Thumbnails (we bin de bifo .media-grid
te to v1.4) fayn fɔ grid dɛn fɔ foto ɔ fim dɛn, pikchɔ sɔch rizɔlt dɛn, rital prɔdak dɛn, pɔtfolio dɛn, ɛn bɔku ɔda tin dɛn. Dɛn kin bi link ɔ statik kɔntinyu.
Thumbnail markup na simpul tin—a ul
wit ɛni nɔmba fɔ di li
ɛlimɛnt dɛn na ɔl wetin dɛn nid. I de tu supa fleksibul, alaw fɔ ɛni kayn kɔntinyu wit jɔs smɔl mɔ mak fɔ rap yu kɔntinyu.
Las wan, di thumbnails kɔmpɔnɛnt de yuz di grid sistem klas dɛn we dɔn de—lɛk .span2
ɔ .span3
—fɔ kɔntrol di thumbnail dimɛnshɔn dɛn.
As wi bin dɔn tɔk, di mak we dɛn nid fɔ mek di smɔl pikchɔ dɛn layt ɛn i nɔ izi fɔ yuz. Na dis na wan luk pan di difɔlt sɛtup fɔ linked pikchɔ dɛn :
- <ul klas = "smɔl pikchɔ dɛn" >
- <li klas = "span4" >
- <a href = "#" klas = "smɔl pikchɔ" >
- <img data-src = "hɔlda.js/300x200" alt = "" >
- </a> fɔ di wan dɛn we de
- </li> fɔ di wan dɛn we de
- ...
- </ul> fɔ di wan dɛn we de
Fɔ kɔstɔm HTML kɔntinyu insay smɔl pikchɔ dɛn, di mak kin chenj smɔl. Fɔ alaw blɔk lɛvɛl kɔntinyu ɛnisay, wi de swap di <a>
fɔ wan <div>
lɛk so:
- <ul klas = "smɔl pikchɔ dɛn" >
- <li klas = "span4" >
- <div klas = "smɔl pikchɔ" >
- <img data-src = "hɔlda.js/300x200" alt = "" >
- <h3> Lɛbul fɔ di smɔl pikchɔ dɛn </h3>
- <p> Di smɔl pikchɔ dɛn kapshɔn... </p>
- </div> fɔ di wan dɛn we de
- </li> fɔ di wan dɛn we de
- ...
- </ul> fɔ di wan dɛn we de
Eksplɔrɔ ɔl yu opshɔn dɛn wit di difrɛn grid klas dɛn we de fɔ yu. Yu kin miks ɛn mach difrɛn sayz dɛn bak.
Rap ɛni tɛks ɛn wan opshɔnal dismis bɔtin insay .alert
fɔ wan bɛsik wɔnin alɛt mɛsej.
- <div klas = "alɛt" >
- <bɔtin tayp = "bɔtin" klas = "klos" data-dismiss = "alɛt" > &tayms; </bɔtin>
- <strong> Na wɔnin! </strong> Best check yo self, yu no de luk tu gud.
- </div> fɔ di wan dɛn we de
Mobayl Safari ɛn Mobayl Ɔpa brawza dɛn, apat frɔm di data-dismiss="alert"
atribyut, nid fɔ gɛt href="#"
fɔ dismis di alɛt dɛn we dɛn de yuz wan <a>
tag.
- <a href = "#" klas = "klos" data-dismis = "alɛt" > &tayms; </a> fɔ di wan dɛn we de
Ɔda we de fɔ du dat, yu kin yuz wan <button>
ɛlimɛnt wit di data atribyut, we wi dɔn pik fɔ du fɔ wi dɔkyumɛnt dɛn. We yu de yuz <button>
, yu fɔ put type="button"
am ɔ yu fɔm dɛn nɔ go sɛn.
- <bɔtin tayp = "bɔtin" klas = "klos" data-dismiss = "alɛt" > &tayms; </bɔtin>
Yuz di alɛt dɛn jQuery plɔgin fɔ kwik ɛn izi fɔ dismis di alɛt dɛn.
Fɔ mɛsej dɛn we lɔng, mek di pad we de ɔp ɛn dɔŋ di alɛt wrap bɔku bay we yu ad .alert-block
.
Best check yo self, yu no de luk tu gud. Nulla vitae elit libero, we na wan pharetra augu. Praesent commodo cursus magna, vel scelerisk nisl kɔnsɛkt ɛn.
- <div klas = "alɛt alert-blɔk" >
- <bɔtin tayp = "bɔtin" klas = "klos" data-dismiss = "alɛt" > &tayms; </bɔtin>
- <h4> Na wɔnin! </h4> fɔ di wan dɛn we de
- Best check yo self, yu no...
- </div> fɔ di wan dɛn we de
Ad opshɔnal klas dɛn fɔ chenj wan alɛt in kɔnotashɔn.
- <div klas = "alɛt alert-ɛrɔd" >
- ...
- </div> fɔ di wan dɛn we de
- <div klas = "alɛt alert-sakses" >
- ...
- </div> fɔ di wan dɛn we de
- <div klas = "alɛt alɛt-infɔ" >
- ...
- </div> fɔ di wan dɛn we de
Difɔlt prɔgrɛs bar wit wan vertikal grɛdiɛnt.
- <div klas = "prɔgrɛs" >
- <div klas = "bar" stayl = " wit : 60 %; " ></div>
- </div> fɔ di wan dɛn we de
Yuz wan gradient fɔ mek wan strɛp ifɛkt. Nɔ de na IE7-8.
- <div klas = "prɔgrɛs prɔgrɛs-strip" >
- <div klas = "bar" stayl = " wit : 20 %; " ></div>
- </div> fɔ di wan dɛn we de
Add .active
to .progress-striped
fɔ animate di strɛp dɛn rayt to lɛft. Nɔ de insay ɔl di vɛshɔn dɛn fɔ IE.
- <div klas = "prɔgrɛs prɔgrɛs-strip aktiv" >
- <div klas = "bar" stayl = " wit : 40 %; " ></div>
- </div> fɔ di wan dɛn we de
Put bɔku bɔku bar dɛn insay di sem .progress
fɔ stak dɛn.
- <div klas = "prɔgrɛs" >
- <div klas = "bar bar-sakses" stayl = " wit : 35 %; " ></div>
- <div klas = "bar bar-wɔnin" stayl = " wit : 20 %; " ></div>
- <div klas = "bar bar-denja" stayl = " wit : 10 %; " ></div>
- </div> fɔ di wan dɛn we de
Progrɛs bar dɛn de yuz sɔm pan di sem bɔtin ɛn alɛt klas dɛn fɔ stayl dɛn we nɔ de chenj.
- <div klas = "prɔgrɛs prɔgrɛs-info" >
- <div klas = "bar" stayl = " wit : 20 % " ></div>
- </div> fɔ di wan dɛn we de
- <div klas = "prɔgrɛs prɔgrɛs-sakses" >
- <div klas = "bar" stayl = " wit : 40 % " ></div>
- </div> fɔ di wan dɛn we de
- <div klas = "prɔgrɛs prɔgrɛs-wɔnin" >
- <div klas = "bar" stayl = " wit : 60 % " ></div>
- </div> fɔ di wan dɛn we de
- <div klas = "prɔgrɛs prɔgrɛs-denja" >
- <div klas = "bar" stayl = " wit : 80 % " ></div>
- </div> fɔ di wan dɛn we de
Semweso lɛk di sɔlid kɔlɔ dɛn, wi gɛt difrɛn strɛp prɔgrɛs bar dɛn.
- <div klas = "prɔgrɛs prɔgrɛs-info prɔgrɛs-strip" >
- <div klas = "bar" stayl = " wit : 20 % " ></div>
- </div> fɔ di wan dɛn we de
- <div class = "prɔgrɛs prɔgrɛs-sakses prɔgrɛs-strip" >
- <div klas = "bar" stayl = " wit : 40 % " ></div>
- </div> fɔ di wan dɛn we de
- <div class = "prɔgrɛs prɔgrɛs-wɔnin prɔgrɛs-strip" >
- <div klas = "bar" stayl = " wit : 60 % " ></div>
- </div> fɔ di wan dɛn we de
- <div class = "prɔgrɛs prɔgrɛs-denja prɔgrɛs-strip" >
- <div klas = "bar" stayl = " wit : 80 % " ></div>
- </div> fɔ di wan dɛn we de
Progres bar dɛn de yuz CSS3 gradient, transishɔn, ɛn animashɔn fɔ ajɔst ɔl dɛn ifɛkt dɛn. Dɛn tin ya nɔ de sɔpɔt na IE7-9 ɔ ol wan dɛn fɔ Fayafaks.
Di vɛshɔn dɛn we bin de bifo Intanɛt Ɛksplɔrɔ 10 ɛn Ɔpa 12 nɔ de sɔpɔt animashɔn dɛn.
Abstrakt ɔbjɛkt stayl fɔ bil difrɛn kayn kɔmpɔnɛnt dɛn (lɛk blɔk kɔmɛnt, Twit, ɛn ɔda tin dɛn) we gɛt pikchɔ we dɛn alaynɛd na di lɛft ɔ rayt nia di tɛkstual kɔntinyu.
Di difɔlt midia de alaw fɔ flot wan midia ɔbjɛkt (imej, vidio, odio) na di lɛft ɔ rayt say na wan kɔntinyu blɔk.
- <div klas = "midia" >
- <a klas = "pul-lɛft" href = "#" >
- <img klas = "midia-ɔbjɛkt" data-src = "hɔlda.js/64x64" >
- </a> fɔ di wan dɛn we de
- <div klas = "midia-bɔdi" >
- <h4 klas = "midia-hɛdin" > Midia ɛd </h4>
- ...
- <!-- Nɛst midia ɔbjɛkt -->
- <div klas = "midia" >
- ...
- </div> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
Wit smɔl ɛkstra mak, yu kin yuz midia insay list (yuzful fɔ kɔmɛnt trɛd ɔ atikul list).
Kras sidon amet nibh libero, in gravida nulla. Nulla vel metus scelerisk ante sollisitudin komodo. Kras purus odio, vestibulum in vulputate na, tempus viverra turpis.
- <ul klas = "midia-list" >
- <li klas = "midia" >
- <a klas = "pul-lɛft" href = "#" >
- <img klas = "midia-ɔbjɛkt" data-src = "hɔlda.js/64x64" >
- </a> fɔ di wan dɛn we de
- <div klas = "midia-bɔdi" >
- <h4 klas = "midia-hɛdin" > Midia ɛd </h4>
- ...
- <!-- Nɛst midia ɔbjɛkt -->
- <div klas = "midia" >
- ...
- </div> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- </li> fɔ di wan dɛn we de
- </ul> fɔ di wan dɛn we de
Yuz di wɛl as simpul ifɛkt pan wan ɛlimɛnt fɔ gi am insɛt ifɛkt.
- <div klas = "wɛl" >
- ...
- </div> fɔ di wan dɛn we de
Kontrol padding ɛn rawnd kɔna dɛn wit tu opshɔnal modifya klas dɛn.
- <div klas = "wɛl wɛl-big" >
- ...
- </div> fɔ di wan dɛn we de
- <div klas = "wɛl wɛl-smɔl" >
- ...
- </div> fɔ di wan dɛn we de
Yuz di jenɛrik klos aykɔn fɔ dismis kɔntinyu lɛk modal ɛn alɛt.
- <bɔtin klas = "klos" > &tayms; </bɔtin>
iOS divays dɛn nid fɔ gɛt href="#"
fɔ klik ivin if yu go lɛk fɔ yuz ankɔ.
- <a klas = "klos" href = "#" > &taym dɛn; </a> fɔ di wan dɛn we de
Simpul, fɔs klas fɔ smɔl displei ɔ bihayvya tweaks.
Flot wan ɛlimɛnt lɛft
- klas = "pul-lɛft".
- . pul - lɛft { .
- flot : na di lɛft ;
- } .
Flot wan ɛlimɛnt rayt
- klas = "pul-rayt".
- . pul - rayt { .
- flot : rayt ;
- } .
Chenj wan ɛlimɛnt in kɔlɔ to#999
- klas = "we dɛn dɔn mut".
- . muted { .
- kɔlɔ : #999;
- } .
Klir di float
pan ɛni ɛlimɛnt
- klas = "kliafiks".
- . kliafiks { .
- * zoom : 1 we yu de yuz ;
- &: bifo , .
- &: afta {
- displei : tebul ;
- kɔntinyu : "" ;
- } .
- &: afta {
- klia : ɔl tu ;
- } .
- } .