Dɛn bil bɔku bɔku kɔmpɔnɛnt dɛn we pɔsin kin yuz bak insay Bootstrap fɔ gi nevigishɔn, alɛt, popovers, ɛn bɔku ɔda tin dɛn.
Ultra simplistik ɛn minimal stayl 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.
Links kin kɔstɔmayz ɛn dɛn kin wok insay bɔku tin dɛn wit di rayt klas. .disabled
fɔ link dɛn we yu nɔ go ebul fɔ klik ɛn .active
fɔ di pej we de naw.
Ad ɛni wan pan tu opshɔnal klas dɛn fɔ chenj di alaynɛshɔn fɔ pej link dɛn: .pagination-centered
ɛn .pagination-right
.
Di difɔlt pejin kɔmpɔnɛnt na fleksibul ɛn i de wok insay bɔku chenj dɛn.
We dɛn rap am wit wan <div>
, pej na jɔs wan <ul>
.
- <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 klas = "aktiv" >
- <a href = "#" > 1 </a>
- </li> fɔ di wan dɛn we de
- <li><a href = "#" > 2 </a></li>
- <li><a href = "#" > 3 </a></li>
- <li><a href = "#" > 4 </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
Di pej kɔmpɔnɛnt na wan sɛt fɔ link fɔ simpul pej implimɛnt wit layt mak ɛn ivin layt stayl dɛn. I fayn fɔ simpul sayt dɛn lɛk blɔk ɔ magazin.
Peja link dɛn de yuz di jenɛral .disabled
klas bak frɔm di pejeshɔn.
Bay difɔlt, di pej de sɛnt di link dɛn.
- <ul klas = "peja" >
- <li> fɔ di wan dɛn we de
- <a href = "#" > Di wan dɛn we bin dɔn de bifo </a>
- </li> fɔ di wan dɛn we de
- <li> fɔ di wan dɛn we de
- <a href = "#" > Nɛks </a>
- </li> fɔ di wan dɛn we de
- </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
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> |
Badge na smɔl, simpul kɔmpɔnɛnt dɛn fɔ sho wan indikɛtɔ ɔ kɔnt ɔf sɔm kayn. Dɛn kin de na imel klaynt dɛn lɛk Mail.app ɔ na mobayl ap fɔ push notis.
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> |
Bootstrap de gi yu wan layt, fleksibul kɔmpɔnɛnt we dɛn kɔl hiro yunit fɔ sho di tin dɛn we de insay 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.
Rap yu kɔntinyu insay wan div
lɛk so:
- <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
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.
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 </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 = "span3" >
- <a href = "#" klas = "smɔl pikchɔ" >
- <img src = "https://pleshold.it/260x180" 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 = "span3" >
- <div klas = "smɔl pikchɔ" >
- <img src = "https://pleshold.it/260x180" alt = "" >
- <h5> Lebul fɔ di smɔl pikchɔ dɛn </h5>
- <p> Thumbnail kapshɔn rayt ya... </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
Wit Bootstrap 2, wi don simpul di bes klas: .alert
insted of .alert-message
. Wi dɔn ridyus bak di smɔl mak we dɛn nid—nɔ <p>
nid fɔ de bay difɔlt, jɔs di ɔda <div>
wan .
Fɔ wan mɔ durable kɔmpɔnɛnt wit less kɔd, wi dɔn pul di difrɛns luk fɔ blɔk alɛt, mɛsej dɛn we kam wit mɔ pad ɛn tipikli mɔ tɛks. Di klas sɛf dɔn chenj to .alert-block
.
Bootstrap kam wit wan fayn jQuery plɔgin we de sɔpɔt alɛt mɛsej dɛn, we de mek fɔ dismis dɛn kwik ɛn izi.
Rap yu mɛsej ɛn wan opshɔnal klos aykɔn insay wan div wit simpul klas.
- <div klas = "alɛt" >
- <bɔt klas = "klos" data-dismis = "alɛt" > × </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
Hed dɛn de ɔp! iOS divays dɛn nid wan href="#"
fɔ di dismisal fɔ di alɛt dɛn. Mek shɔ se yu put am ɛn di data atribyut fɔ ankɔ klos aykɔn dɛn. Ɔ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.
I izi fɔ ɛkstɛnd di standad alɛt mɛsej wit tu opshɔnal klas dɛn: .alert-block
fɔ mɔ pad ɛn tɛks kɔntrol ɛn .alert-heading
fɔ wan edlayn we de mach.
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" >
- <a klas = "klos" data-dismis = "alɛt" href = "#" > × </a>
- <h4 klas = "alɛt-hɛdin" > Wɔnin! </h4> fɔ di wan dɛn we de
- Best check yo self, yu no...
- </div> fɔ di wan dɛn we de
- <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ɔ gɛt IE).
- <div klas = "prɔgrɛs prɔgrɛs-strip" >
- <div klas = "bar".
- stayl = " wit : 20 %; " ></div>
- </div> fɔ di wan dɛn we de
Tek di strɛp ɛgzampul ɛn animate am (nɔ IE).
- <div klas = "prɔgrɛs prɔgrɛs-strip."
- aktif" >
- <div klas = "bar".
- stayl = " wit : 40 %; " ></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.
Semweso lɛk di sɔlid kɔlɔ dɛn, wi gɛt difrɛn strɛp prɔgrɛs bar dɛn.
Progres bar dɛn de yuz CSS3 transishɔn dɛn, so if yu dinamik wan ajɔst di wit via javascript, i go chenj di sayz fayn fayn wan.
If yu yuz di .active
klas, yu .progress-striped
prɔgrɛs bar dɛn go mek di strɛp dɛn gɛt layf frɔm lɛft to rayt.
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.
Opera ɛn IE nɔ de sɔpɔt animashɔn dɛn dis tɛm.
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
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 lɛk fɔ yuz ankɔ.
- <a klas = "klos" href = "#" > &taym dɛn; </a> fɔ di wan dɛn we de