Fɛn tan ni caman minnu bɛ se ka baara kɛ kokura, olu bɛ jɔ Bootstrap kɔnɔ walasa ka navigatiɔn, lasɔminiw, popovers ani fɛn caman wɛrɛw di.
Ultra simplistic and minimally styled pagination inspired by Rdio, a ka ɲi kosɛbɛ porogaramuw ni ɲinini jaabiw ma. Bloki belebele in ka gɛlɛn ka tɛmɛn, a bɛ se ka sɛgɛsɛgɛ nɔgɔya la, wa a bɛ digi yɔrɔbaw di.
Lienw bɛ se ka ladilan ani u bɛ baara kɛ cogo damadɔ la ni kalasi ɲuman ye. .disabled
ka ɲɛsin jɛgɛnsiraw ma minnu tɛ se ka digi ani .active
ɲɛ min bɛ sen na sisan.
Kalanso fila minnu bɛ se ka sugandi, olu dɔ la kelen fara a kan walasa ka ɲɛw ladɛrɛsiw labɛncogo Changer: .pagination-centered
ani .pagination-right
.
Ɲɛjirali yɔrɔ min bɛ Kɛ fɔlɔ, o bɛ Se ka Yɛlɛma-yɛlɛma wa a bɛ baara Kɛ fɛn caman na.
A sirilen bɛ a la <div>
, ɲɛɲini ye <ul>
.
- <div kalasi = "ɲɛnajɛ" >
- <ul>
- <li><a href = "#" > Kɔrɔlen </a></li>
- <li kalasi = "baarakɛla" >
- <a href = "#" > 1 ye </a> ye
- </li>
- <li><a href = "#" > 2 </a></li>
- <li><a href = "#" > 3 </a></li>
- <li><a href = "#" > 4 </a></li>
- <li><a href = "#" > nata </a></li>
- </ul>
- </div> ye
Pager yɔrɔ ye jὲkulu ye min bɛ Kɛ ɲɛ-sɛbɛnni waleyali nɔgɔmanw ye ni taamasiyɛn yeelenma ye ani hali cogoya nɔgɔmanw. A ka ɲi kosɛbɛ siti nɔgɔmanw ma i n’a fɔ bulɔguw walima zurunali.
Pager links fana bɛ baara Kɛ ni general .disabled
class ye ka Bɔ pagination na.
Ka da a kan, pager (pager) bɛ jɛgɛnw cɛmancɛ la.
- <ul kalasi = "pager" >
- <li>
- <a href = "#" > Tɛmɛnen </a>
- </li>
- <li>
- <a href = "#" > nata </a>
- </li>
- </ul>
Labels (Labɛnw). | Markup (Marka) ye |
---|---|
Fɔlɔ | <span class="label">Default</span> |
Sanga | <span class="label label-success">Success</span> |
Lasɔmi | <span class="label label-warning">Warning</span> |
Nafama | <span class="label label-important">Important</span> |
Info | <span class="label label-info">Info</span> |
Inverse (Kɔrɔlen). | <span class="label label-inverse">Inverse</span> |
Badgew ye fɛn misɛnninw ye minnu ka nɔgɔn walasa ka taamasiyɛn walima jatebɔ sugu dɔ jira. U bɛ sɔrɔ tuma caman na imɛri kliyanw na i n’a fɔ Mail.app walima mobili porogaramuw kan push notifications kama.
Tɔ̀gɔ | Misaliya | Markup (Marka) ye |
---|---|---|
Fɔlɔ | 1 ye | <span class="badge">1</span> |
Sanga | 2 ye | <span class="badge badge-success">2</span> |
Lasɔmi | 4 ye | <span class="badge badge-warning">4</span> |
Nafama | 6. 6 | <span class="badge badge-important">6</span> |
Info | 8 ye | <span class="badge badge-info">8</span> |
Inverse (Kɔrɔlen). | 10 ye | <span class="badge badge-inverse">10</span> |
Bootstrap bɛ fɛn dɔ Di min ka nɔgɔn, min bɛ Se ka Yɛlɛma, n’o bɛ Weele ko hero unit walasa ka kɔnɔkow jira i ka yɔrɔ kan. A bɛ baara kɛ koɲuman jagokɛyɔrɔw kan ani kunnafonidilanw kan minnu kɔnɔkow ka ca.
Aw ye aw ka kɔnɔkow siri ni div
like so ye:
- <div kalasi = "jatigɛwale-jɛkulu" >
- <h1> Kunkanko </h1>
- <p> Tagabolo </p>
- <p> ye
- <a kalasi = "btn btn-fɔlɔ btn-ba" >
- Aw ye kunnafoni wɛrɛw sɔrɔ
- </a>
- </p> , o ye
- </div> ye
Nin ye jatigɛwale nɔgɔman ye, jumbotron cogo nɔgɔman yɔrɔ min bɛ kɛ ka mɔgɔw hakili sama ka taa a fɛ ka ɲɛsin kɔnɔkow walima kunnafoniw ma minnu bɛ jira.
A simple shell for an h1
ka yɔrɔ bɛnnenw Bɔ ani k’u tila-tila yɔrɔ dɔw la ɲɛ dɔ kan. A bɛ Se ka baara Kɛ ni h1
's default small
, element ye ka Fàra a yɔrɔ tɔw fanba kan (ni cogoya wɛrɛw ye).
- <div class = "ɲɛ-kunnafoni" >
- <h1> Misali ɲɛ ɲɛ </h1>
- </div> ye
Ka da a kan, Bootstrap ka ja fitininw dabɔra walasa ka ja minnu bɛ ɲɔgɔn kan, olu jira ni taamasiyɛn fitinin wajibiyalenw ye.
Ni taamaʃyɛn dɔ Fàrala o kan, a bɛ Se ka HTML kɔnɔko sugu bɛɛ Fàra ɲɔgɔn kan i n’a fɔ dakunw, dakunw, walima butɔni minnu bɛ Kɛ ja fitininw na.
Ja fitininw (kɔrɔlen .media-grid
fo ka se v1.4 ma) ka ɲi kosɛbɛ fotow walima wideyow gridw la, ja ɲinini jaabiw, feerefɛnw, portfoliow, ani fɛn caman wɛrɛw. U bɛ se ka kɛ jɛgɛnsira ye walima kɔnɔkow jɔlenw ye.
Ja fitininw taamasiyɛnni ka nɔgɔn—a ul
ni fɛn hakɛ o hakɛ bɛ li
yen, o de ye fɛn bɛɛ ye min ka kan ka kɛ. A fana ye super flexible ye, min bɛ sira Di kunnafoni suguya bɛɛ ma ni markup dɔɔnin dɔrɔn ye ka i ka kɔnɔkow siri.
A laban na, ja fitininw yɔrɔ bɛ baara kɛ ni grid system classes ye minnu bɛ yen—i n’a fɔ .span2
walima .span3
—ja fitininw hakɛw kɔlɔsili kama.
I n’a fɔ a fɔra cogo min na ka tɛmɛ, taamasiyɛn min wajibiyalen don ja fitininw na, o ka nɔgɔn ani a bɛ tilennen. Nin ye ja minnu bɛ ɲɔgɔn kan, olu sigicogo dafalen lajɛ :
- <ul kalasi = "jaabi fitininw" >
- <li kalasi = "span3" >
- <a href = "#" kalasi = "jaabi fitinin" >
- <img src = "https://www.facebook.com/260x180" alt = "" >. Bamako, Mali
- </a>
- </li>
- ...
- </ul>
HTML kɔnɔkow ladamulenw kama ja fitininw kɔnɔ, taamasiyɛn bɛ Changé dɔɔnin. Walasa ka sira Di bloki nivo kɔnɔkow ma yɔrɔ o yɔrɔ, an bɛ swap the <a>
for a <div>
like so:
- <ul kalasi = "jaabi fitininw" >
- <li kalasi = "span3" >
- <div class = "jaabi fitinin" >
- <img src = "https://www.facebook.com/260x180" alt = "" >. Bamako, Mali
- <h5> fɛn fitininw labeli </h5>
- <p> ja fitininw ɲɛfɔli yan yɛrɛ... </p>
- </div> ye
- </li>
- ...
- </ul>
Ni Bootstrap 2 ye, an ye basigi kalasi nɔgɔya: .alert
sanni ka kɛ .alert-message
. An ye dɔ bɔ fana taamasiyɛn fitinin wajibiyalen na—ayi <p>
wajibiyalen don ka da a kan, kɛnɛma dɔrɔn <div>
.
Walasa ka yɔrɔ dɔ sɔrɔ min bɛ mɛn kosɛbɛ ni kode caman ye, an ye danfara filɛli bɔ bloki lasɔminiw la, cikan minnu bɛ na ni padding caman ye ani a ka c’a la sɛbɛnni caman. Kalanso fana Changé ka kɛ .alert-block
.
Bootstrap bɛ na ni jQuery plugin ɲuman ye min bɛ lasɔmini cikanw dɛmɛ, k’u bilali teliya ani ka nɔgɔya.
Aw ye aw ka cikan ni taamasiyɛn dafalen dɔ siri div kɔnɔ ni kalan nɔgɔman ye.
- <div kalasi = "kɔlɔsili" >
- <button class = "dadon" data-dismiss = "kɔlɔsili" > × </button>
- <strong> Lakɔlɔsili ! </strong> Best check yo yɛrɛ , i tɛ ɲɛ kojugu .
- </div> ye
Kungolow bɛ wuli! iOS minɛnw bɛ ɲini an href="#"
fɛ ka ɲɛsin lasɔminiw bɔli ma. Aw ye aw jija k’a ni data attribute don anchor close icons la. O cogo kelen na, i bɛ se ka baara kɛ ni <button>
fɛn dɔ ye min bɛ ni data attribute ye, an ye min sugandi ka kɛ an ka docs ye. Ni i bɛ baara kɛ ni <button>
, i ka kan ka a fara a kan type="button"
walima i ka sɛbɛnw tɛ se ka ci.
Aw bɛ lasɔmini cikan jɔnjɔn janya nɔgɔya la ni kalasi fila ye minnu bɛ se ka sugandi: .alert-block
walasa ka padding ni sɛbɛnniw kunnafoni caman sɔrɔ ani .alert-heading
ka ɲɛsin barokun ma min bɛ bɛn.
Best check yo self, i ma filɛ ka ɲɛ kojugu. Nulla vitae elit libero, o ye fura ye min bɛ wele ko pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl ye fɛn ye min bɛ se ka kɛ fɛn ye min bɛ se ka kɛ fɛn ye.
- <div class = "lasɔmini-kɔlɔsili-blɔki" >
- <a kalasi = "dadon" data-dismiss = "kɔlɔsili" href = "#" > × </a>
- <h4 kalasi = "kɔlɔsili-kunnafoni" > Ladilikan ! </h4> ye
- Best check yo self, i ka...
- </div> ye
- <div class = "lasɔmini-kɔlɔsili-fili" >
- ...
- </div> ye
- <div class = "lasɔmini-kɔlɔsili-ɲɛtaa" >
- ...
- </div> ye
- <div class = "lasɔmini-kɔlɔsili-kunnafoni" >
- ...
- </div> ye
Progress bar default ni gradient vertical ye.
- <div kalasi = "ɲɛtaa" >
- <div kalasi = "baro" .
- style = " bonya : 60 %; " ></div>
- </div> ye
A bɛ baara kɛ ni gradient ye walasa ka striped effect (IE tɛ yen).
- <div class = "ɲɛtaa ɲɛtaa-sira" >
- <div kalasi = "baro" .
- style = " bonya : 20 %; " ></div>
- </div> ye
A bɛ misali sɛrɛkili ta k’a ɲɛnamaya (IE tɛ).
- <div class = "ɲɛtaa ɲɛtaa-sira."
- baarakɛta" >
- <div kalasi = "baro" .
- style = " bonya : 40 %; " ></div>
- </div> ye
Progress bars bɛ baara kɛ ni butɔni kelen dɔw ye ani lasɔmini kalanw walasa ka cogoyaw kɛ minnu bɛ bɛn ɲɔgɔn ma.
I n’a fɔ kulɛri jɛlenw, an ye ɲɛtaa barajuru sɛrɛkili caman sɔrɔ.
Progress bars bɛ baara Kɛ ni CSS3 transitions ye, o la n’i ye dynamique (dɛmɛ) bonya ladilan javascript fɛ, a bɛna a bonya caman Yɛlɛma ka ɲɛ.
N’i bɛ baara kɛ ni .active
kalan ye, i ka .progress-striped
ɲɛtaa jiralanw bɛna sɛrɛw ɲɛnamaya ka taa kinin fɛ.
Progress bars bɛ baara kɛ ni CSS3 gradients, transitions ani animations ye walasa k’u nɔ bɛɛ sɔrɔ. O baarakɛminɛnw tɛ dɛmɛ sɔrɔ IE7-9 walima Firefox kɔrɔlenw kɔnɔ.
Opera ni IE tɛ animationw dɛmɛ nin waati in na.
Baara kɛ ni kɔlɔn ye i n’a fɔ nɔ nɔgɔman min bɛ kɛ fɛn dɔ kan walasa ka nɔ bila a la.
- <div kalasi = "kɛnɛ" >
- ...
- </div> ye
Baara kɛ ni generic close icon ye walasa ka kunnafoniw bɔ kɛnɛ kan i n’a fɔ modals ani alerts.
- <butɔni kalasi = "dadon" > × </button> ye
iOS minɛnw bɛ href="#" de wajibiya digi ko kɛlenw kama n'i b'a fɛ ka baara kɛ ni ankɔri ye.
- <a kalasi = "dadon" href = "#" > &waatiw; </a>