CSS ye
Dugukolo kan CSS sigicogo, HTML fɛn jɔnjɔnw minnu dilannen don ani minnu labɛnna ni kalansenw ye minnu bɛ se ka bonya, ani grid sitɛmu kɔrɔlen.
Dugukolo kan CSS sigicogo, HTML fɛn jɔnjɔnw minnu dilannen don ani minnu labɛnna ni kalansenw ye minnu bɛ se ka bonya, ani grid sitɛmu kɔrɔlen.
Aw ye lowdown sɔrɔ Bootstrap ka fɛnsɔrɔsiraw yɔrɔ kolomaw kan, an ka fɛɛrɛ fana sen bɛ o la ka ɲɛsin ɛntɛrinɛti yiriwali ɲuman, teliya, barikama ma.
Bootstrap bɛ baara Kɛ ni HTML fɛn dɔw ye ani CSS nafolo minnu bɛ HTML5 doctype baara de wajibiya. Aw k’a don aw ka porozew bɛɛ daminɛ na.
Ni Bootstrap 2 ye, an ye mobili teriya cogoyaw fara a kan minnu bɛ se ka sugandi ka ɲɛsin karamɔgɔya yɔrɔ kolomaw ma. Ni Bootstrap 3 ye, an ye porozɛ in sɛbɛn kokura walasa a ka kɛ mobili teriya ye kabini a daminɛ na. Sanni u ka dɔ fara mobili cogoyaw kan minnu bɛ se ka kɛ, u bɛ tobi ka don u kɔnɔ yɛrɛ. Tiɲɛ na, Bootstrap ye mobili fɔlɔ ye . Mobili fɔlɔ cogoyaw bɛ se ka sɔrɔ gafemarayɔrɔ bɛɛ kɔnɔ sanni u ka sɔrɔ dosiye danfaralenw kɔnɔ.
Walasa ka a jira ko a bɛ se ka kɛ ka ɲɛ ani ka maga zoom la, i ka viewport meta tag fara i ka <head>
.
I bɛ se ka zoom seko bali mobili kɔnɔ ni i ye dɔ fara user-scalable=no
viewport meta tag kan. O bɛ zoom (boli) bali, o kɔrɔ ye ko baarakɛlaw bɛ Se ka 'sèn Bɔ dɔrɔn, wa o bɛ Nà ni i ka yɔrɔ in ye dɔɔnin i n'a fɔ 'application (application) yɛrɛma. Kuma bɛɛ la, an tɛ nin fɔ site web bɛɛ kan, o la aw ka aw janto aw yɛrɛ la!
Bootstrap bɛ diɲɛ jiracogo jɔnjɔnw, sɛbɛnnikɛcogo ani ɲɔgɔndan kɛcogoyaw sigi sen kan. Kɛrɛnkɛrɛnnenya la, anw:
background-color: #fff;
kan ka ...body
@font-family-base
, @font-size-base
, ani @line-height-base
fɛnw ye i n’a fɔ an ka sɛbɛnnikɛlanw@link-color
ani ka link underlines dɔrɔn de kɛ:hover
o cogoyaw bɛ se ka sɔrɔ kɔnɔ scaffolding.less
.
Walasa ka cross-browser jiracogo ɲɛ, an bɛ baara kɛ ni Normalize.css ye , o ye porozɛ ye min kɛra Nicolas Gallagher ni Jonathan Neal fɛ .
Bootstrap bɛ fɛn dɔ de wajibiya min kɔnɔna na walasa ka site kɔnɔkow siri ani ka an ka grid system (jatebɔlan) sigi. Aw bɛ se ka minɛn fila dɔ sugandi walasa ka baara kɛ ni u ye aw ka porozew la. A kɔlɔsi ko, ka da padding
ani ka tɛmɛ o kan, minɛn fila si tɛ se ka sigi.
Aw bɛ baara kɛ ni .container
a ye min bɛ jaabi di a bonya jɔlen ma.
Baara .container-fluid
kɛ ni minɛn ye min bonya dafalen don, min bɛ i ka filɛlikɛyɔrɔ bonya bɛɛ lajɛlen na.
Bootstrap kɔnɔ, jaabi, mobili fɔlɔ jibɔlan dɔ bɛ yen min bɛ sɛgɛsɛgɛli kɛ cogo bɛnnen na fo ka se kulu 12 ma ni minɛn walima filɛlikɛyɔrɔ hakɛ bɛ bonya. A bɛ kalansen minnu ɲɛfɔ ka kɔn walasa ka layidu tacogo nɔgɔya, ani mixin barikamaw walasa ka kɔrɔko layidu caman lawuli .
Grid systems bɛ Kɛ ka ɲɛw labɛncogo Dabɔ ni jirisunw ni kuluw ye minnu bɛ i ka kɔnɔkow Ladon. Bootstrap grid system bɛ baara kɛ cogo min na, o filɛ nin ye:
.container
(fixed-width) walima .container-fluid
(full-width) kɔnɔ walasa ka u labɛn ka ɲɛ ani ka u kɛ padding ye..row
ani .col-xs-4
u bɛ sɔrɔ walasa ka grid labɛncogo teliya. Mixin dɔgɔmanninw fana bɛ Se ka Kɛ kɔrɔko labɛncogo caman na.padding
. O padding bɛ offset in rows for the first and last column via negative margin on .row
s..col-xs-4
..col-md-*
kalasi Kɛ fɛn dɔ la, o tɛna nɔ Blà a cogoya dɔrɔn na minɛn cɛmancɛw kan nka a bɛna nɔ Blà minɛn belebelebaw fana na ni .col-lg-*
kalasi dɔ tɛ yen.Aw ye misaliw lajɛ walasa ka o sariyakolow waleya aw ka kode kan.
An bɛ baara Kɛ ni nin kunnafonidilan ɲininkali ninnu ye an ka Less files kɔnɔ walasa ka key breakpoints (dakunw) Dabɔ an ka grid system kɔnɔ.
An bɛ dɔ Fàra o kunnafonidilanw ɲininkaliw kan tuma dɔw la walasa ka a Dòn a la max-width
walasa ka CSS dan Kɛ minɛnw kulu fitinin dɔ la.
Aw ye a lajɛ Bootstrap grid system fan dɔw bɛ baara kɛ cogo min na minɛn caman kan ni tabali ye min bɛ se ka kɛ.
Fɛn fitinin wɛrɛw Telefɔniw (<768px) | Minɛn fitininw Tablɛtiw (≥768px) . | Minɛnw cɛmancɛw Bureau (≥992px) . | Minɛn belebelebaw Desktops (≥1200px) . | |
---|---|---|---|---|
Grid kɛcogo | Horizontal waati bɛɛ | A bɛ bin ka daminɛ, horizontal sanfɛ breakpoints | ||
Konteyna bonya | Foyi tɛ (auto) . | 750px ye | 970px ye | 1170px ye |
Kalanso ɲɛbila | .col-xs- |
.col-sm- |
.col-md- |
.col-lg- |
# ka kuluw | 12 ye | |||
Kolon bonya | Auto | ~62px ye | ~81px ye | ~97px ye |
Gutter bonya | 30px (15px bɛ kulu dɔ fan kelen-kelen bɛɛ la) | |||
Nestable ye | Awɔ | |||
Offsets (Fɛɛrɛbɔlanw). | Awɔ | |||
Kolonw ka komandi | Awɔ |
Ni aw bɛ baara kɛ ni jatebɔlanw kulu kelen ye .col-md-*
, aw bɛ se ka jatebɔlan jɔnjɔn dɔ da min bɛ daminɛ ka ɲɔgɔn dalajɛ telefɔni selilɛriw ni tablɛtiw kan (a ka ca a la, a ka dɔgɔ fo ka se a danma ma) ka sɔrɔ ka kɛ tilennen ye tabali kan (misɛnninw) minɛnw kan. Aw bɛ grid kolonw bila fɛn o fɛn .row
na .
Aw bɛ jatebɔlan janya jɔlen o labɛncogo caman tigɛli kɛ ka kɛ jatebɔlan dafalen ye ni aw bɛ aw ka kɛnɛmafɛn caman Changer ka .container
kɛ .container-fluid
.
Aw t’a fɛ aw ka kuluw ka ɲɔgɔn dalajɛ dɔrɔn minɛn fitininw kɔnɔ wa? Baara kɛ ni minɛn fitininw ni cɛmancɛw ka jatebɔ kalansenw ye minnu bɛ fara a kan, i kɛtɔ ka dɔ fara .col-xs-*
.col-md-*
i ka kuluw kan. Aw ye misali lajɛ min bɛ duguma walasa ka hakilina ɲuman sɔrɔ a bɛɛ bɛ baara kɛ cogo min na.
Aw ye jɔ misali tɛmɛnen kan ni layidu talenw dilanni ye minnu bɛ se ka fanga sɔrɔ ka tɛmɛn fɔlɔ kan ni tablɛti .col-sm-*
kalanw ye.
Ni kulu minnu ka ca ni 12 ye, olu bilala jirisun kelen kɔnɔ, kulu wɛrɛw kulu kelen-kelen bɛɛ bɛna, i n’a fɔ yɔrɔ kelen, ka siri tigɛli kura kan.
Ni jatebɔlan naani bɛ yen i bɛ siri ka boli ko dɔw la minnu na, kariyɔrɔ dɔw la, i ka kuluw tɛ jɛya ka ɲɛ kosɛbɛ bawo kelen ka jan ka tɛmɛ tɔ kelen kan. Walasa k’o labɛn, aw bɛ baara kɛ ni a .clearfix
ni an ka jaabi nafama kalanw faralen ye ɲɔgɔn kan .
Ka fara kolosinsinnanw jɛyali kan jaabiw kariyɔrɔw la, aw bɛ se ka offsets, pushes walima pulsw labɛn kokura . aw ye nin lajɛ wale la ja misali la .
Aw bɛ kuluw wuli ka taa kinin fɛ ni .col-md-offset-*
kalanw ye. O kalasiw bɛ dɔ Fàra kulu dɔ kinin fɛ dakun kan *
kuluw fɛ. Misali la, .col-md-offset-4
a bɛ taa .col-md-4
kulu naani kan.
Aw bɛ se fana ka offsets override ka bɔ grid tiers duguma ni .col-*-offset-0
classes ye.
Walasa k’i ka kɔnɔkow nest ni grid default ye, i ka kulu kura .row
ni kulu dɔ fara kulu .col-sm-*
dɔ kan min bɛ yen .col-sm-*
. Nested rows ka kan ka kɛ ni kuluw kulu ye minnu bɛ fara ɲɔgɔn kan ka se 12 ma walima ka dɔgɔya (a man kan i ka baara kɛ ni kulu 12 bɛɛ ye minnu bɛ sɔrɔ).
An ka jatebɔlanw jɔlenw sigicogo Changer nɔgɔya la ni .col-md-push-*
ani .col-md-pull-*
modifier classes ye.
Ka fara grid classes prebuilt kan walasa ka layout teliya, Bootstrap kɔnɔ Less variables ani mixins bɛ yen walasa ka teliya ka i yɛrɛ ka layout nɔgɔmanw, kɔrɔw labɛn.
Yɛlɛma bɛ kuluw hakɛ jira, gutɛri bonya, ani kunnafonidilanw ɲininkali yɔrɔ min na kuluw bɛ wuli ka wuli. An bɛ baara Kɛ ni ninnu ye walasa ka grid classes (jatebɔ-kalanso) minnu ɲɛfɔlen dòn ka Kɔn, olu Sɔrɔ minnu sɛbɛnnen dòn san fɛ, ka Fàra custom mixins (lada mixins) minnu kofɔlen dòn jukɔrɔ.
Mixins bɛ baara kɛ ni grid variables ye walasa ka semantiki CSS dilan grid kulu kelen-kelen bɛɛ kama.
Aw bɛ se ka fɛn caman sɛmɛntiya ka kɛɲɛ ni aw yɛrɛ ka ladamu nafaw ye, walima ka baara kɛ dɔrɔn ni mixins ye n’u ka nafa fɔlɔw ye. Nin ye misali ye min bɛ baara Kɛ ni 'sènfɛ-sɛbɛnni-minɛnw ye walasa ka kulu fla-fla-labɛnni Dabɔ ni danfara bɛ u ni ɲɔgɔn cɛ.
HTML kunkankow bɛɛ, <h1>
ka t’a fɛ <h6>
, olu bɛ sɔrɔ. .h1
through .h6
classes fana bɛ sɔrɔ, for n’i b’a fɛ ka bɛn barokun dɔ sɛbɛnnibolo cogoya ma nka hali bi i b’a fɛ i ka sɛbɛnni ka jira inline kɔnɔ.
h1. Bootstrap ka kumasen |
Semibold ye 36px ye |
h2. Bootstrap ka kumasen |
Semibold ye 30px ye |
h3. Bootstrap ka kumasen |
Semibold ye 24px ye |
h4. Bootstrap ka kumasen |
Semibold ye 18px ye |
h5. Bootstrap ka kumasen |
Semibold ye 14px ye |
h6. Bootstrap ka kumasen |
Semibold ye 12px ye |
Aw bɛ sɛbɛnni nɔgɔmanw, filananw dilan kuncɛ o kuncɛ ni <small>
taamasiyɛnba ye walima ni .small
kalan ye.
h1. Bootstrap kuncɛcogo Sɛbɛn filanan |
h2. Bootstrap kuncɛcogo Sɛbɛn filanan |
h3. Bootstrap kuncɛcogo Sɛbɛn filanan |
h4. Bootstrap kuncɛcogo Sɛbɛn filanan |
h5. Bootstrap kuncɛcogo Sɛbɛn filanan |
h6. Bootstrap ka kumasen Sɛbɛn filanan |
Bootstrap ka diɲɛ daminɛ font-size
ye 14px ye , ni a line-height
ye 1.428 ye . O bɛ sirataama <body>
dakunw ni dakunw bɛɛ la. Ka fara o kan, <p>
(dakunw) bɛ duguma-dakun sɔrɔ u ka jatebɔ-yɔrɔ-janya tilancɛ la (10px ka da a kan).
Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus ni magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies bolifɛnw.
Cum sociis natoque penatibus ni magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla min tɛ fɛn ye min bɛ wele ko fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec ullamcorper nulla min tɛ fɛn ye min bɛ wele ko fringilla.
Maecenas sed diam eget risus varius blandit sigi amet non magna. Donec id elit non mi porta gravida ye eget metus ye. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.
Aw ye dakun dɔ kɛ fɛn ye min bɛ bɔ kɛnɛ kan ni aw ye a fara a kan .lead
.
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor ye fɛn ye min bɛ se ka kɛ fɛn ye min bɛ se ka kɛ fɛn ye. Duis mollis, est min tɛ fɛn caman ye.
Sɛbɛnni sɛgɛsɛgɛli bɛ tali kɛ Less variables fila kan variables kɔnɔ.less : .@font-size-base
ani @line-height-base
. Fɔlɔ ye basigi sɛbɛnnibolo-size ye min bɛ Kɛ a bɛɛ la ani filanan ye basigi-yɔrɔ-janya ye. An bɛ baara Kɛ n’o fɛn caman ɲɔgɔnna ye ani jatebɔ nɔgɔman dɔw ye walasa ka an ka suguya bɛɛ ka margins, paddings, ani line-heights (dakunw) Dabɔ ani fɛn wɛrɛw. Aw bɛ u kɛ ka kɛɲɛ ni u yɛrɛ sago ye ani Bootstrap bɛ ladamu.
Walasa ka sɛbɛnni bolicogo dɔ jira k’a sababu kɛ a nafa ye cogo wɛrɛ la, i ka baara kɛ ni <mark>
taamasiyɛn ye.
Aw bɛ se ka baara kɛ ni taamasiyɛn taamasiyɛn ye walasa kaka faranfasiyamasalabolo.
Walasa ka sɛbɛnni blokiw jira minnu bɔra, baara kɛ ni <del>
taamasiyɛn ye.
Nin sɛbɛnni zana in kun ye ka jate i n’a fɔ sɛbɛn bɔlen.
Walasa ka sɛbɛnni blokiw jira minnu tɛ nafa sɔrɔ tugun, baara kɛ ni <s>
taamasiyɛn ye.
Nin sɛbɛnni zana in kun ye ka jate iko a tɛ tiɲɛ ye tugun.
Walasa ka farankanw jira sɛbɛn kan, baara kɛ ni <ins>
taamasiyɛn ye.
Nin sɛbɛnni zana in kun ye ka jate i n’a fɔ farali sɛbɛn kan.
Walisa ka sɛbɛnniw ja jukɔrɔ, baara kɛ ni <u>
tagamasiɲɛ ye.
Nin sɛbɛnni tigɛli bɛna kɛ i n’a fɔ a ɲɛfɔlen bɛ cogo min na
Baara kɛ ni HTML ka sinsinnan taamasiyɛnw ye minnu bɛ kɛ ni cogoya nɔgɔmanw ye.
Walasa ka sɛbɛnni kɔnɔna walima sɛbɛnni blokiw sinsinni bɔ, i ka baara kɛ ni <small>
taamasiyɛn ye walasa ka sɛbɛnni kɛ bangebaga hakɛ 85% la. Kungolofɛnw bɛ u yɛrɛ ta sɔrɔ ka font-size
ɲɛsin nested ma<small>
sen kan.
aw bɛ se ka baara kɛ ni inline element ye .small
cogo wɛrɛ la ni a nɔ na <small>
.
Nin sɛbɛnni zana in kun ye ka jate i n’a fɔ sɛbɛnni ɲumanw.
Walasa ka sinsin sɛbɛnni dɔ kan ni sɛbɛnnibolo-gɛlɛya gɛlɛn ye.
nin sɛbɛnfura in bɛ kɛ sɛbɛnni jɛlenw ye .
Walasa ka sinsin sɛbɛn yɔrɔ dɔ kan ni sɛbɛnnibolow ye minnu bɛ sɛbɛn ni italiki ye.
nin sɛbɛn yɔrɔ in bɛ kɛ sɛbɛnni ye min bɛ sɛbɛn ni italiki ye .
Aw kana siga ka baara kɛ <b>
ni <i>
HTML5 ye. <b>
kɔrɔ ye ka daɲɛw walima kumasenw Bɔ kɛnɛ kan k’a sɔrɔ a ma nafa wɛrɛ Lase k’a sɔrɔ <i>
a fanba bɛ kumakan, fɛɛrɛko daɲɛw, a ɲɔgɔnnaw de kan.
Aw bɛ sɛbɛnniw labɛn kokura nɔgɔya la ka kɛɲɛ ni yɔrɔw ye minnu bɛ sɛbɛnniw labɛncogo kalanw na.
Sɛbɛn minnu bɛ ɲɔgɔn kan numan fɛ.
Cɛmancɛ-labɛnni sɛbɛnni.
Sɛbɛn minnu bɛ ɲɔgɔn kan kinin fɛ.
Sɛbɛn min bɛ jo di.
No wrap sɛbɛnni.
Sɛbɛnw bɛrɛbɛnni kɛ yɔrɔw la ni sɛbɛnnibolow ye minnu bɛ sɛbɛnni kɛ ni sɛbɛnnibolow ye.
Sɛbɛnni fitininw.
Sɛbɛnni minnu bɛ sɛbɛn ni sɛbɛnnibolo belebelebaw ye.
Sɛbɛn minnu sɛbɛnnen bɛ ni sɛbɛnnibolo belebelebaw ye.
HTML ka <abbr>
element (yɔrɔ) waleyali cogo la min bɛ Kɛ ka surunya ni daɲɛ surunw ye walasa ka a jiracogo bonyalen jira hover kan. Kuma surun minnu bɛ ni fɛn dɔ ye title
, olu bɛ ni duguma dan ye min bɛ yeelen bɔ ani dɛmɛ taamasiyɛn ye hover kan, o bɛ kunnafoni wɛrɛw di hover kan ani dɛmɛ fɛɛrɛw baarakɛlaw ma.
Daɲɛ min bɛ wele ko attribut , o surunyalen ye attr ye .
A bɛ Fàra .initialism
daɲɛ surun dɔ kan walasa ka sɛbɛnnibolo-yɔrɔ fitinin dɔ Sɔrɔ.
HTML ye fɛn bɛɛ la ɲuman ye kabini buru tigɛlen.
Aw bɛ kunnafoni di bɛnbakɛ min ka surun aw la walima baara bɛɛ lajɛlen na. Aw bɛ sɛbɛnniw mara ni zana bɛɛ laban ye ni <br>
.
Walasa ka kunnafoni blokiw fɔ ka bɔ yɔrɔ wɛrɛ la i ka sɛbɛn kɔnɔ.
Aw bɛ HTML o HTML<blockquote>
lamini i n’a fɔ quote. Walasa ka kumasen tilennenw sɔrɔ, an bɛ ladilikan di ko .<p>
Lorem ipsum dolor sigilen amet, consectetur adipiscing elit. Jateden dafalen posuere erat a ante.
cogoya ni kɔnɔkow bɛ ɲɔgɔn Changé walasa ka fɛn nɔgɔmanw caman ɲɔgɔnna caman kɛ sariya dɔ kan <blockquote>
.
A fara a <footer>
kan walasa ka sɔrɔyɔrɔ dɔn. Aw bɛ sɔrɔyɔrɔ baara tɔgɔ siri <cite>
.
Lorem ipsum dolor sigilen amet, consectetur adipiscing elit. Jateden dafalen posuere erat a ante.
Fàra o kan .blockquote-reverse
walasa ka blockquote dɔ Kɛ ni kɔnɔkow bɛ ɲɔgɔn na ni kinin fɛ.
Fɛn minnu kɔnɔ, u sigicogo tɛ foyi ɲɛ k’a jɛya, olu lisɛli.
Fɛn minnu kɔnɔ, o sigicogo bɛ nafa jira k’a jɛya, olu lisɛli.
Aw bɛ dakun fɔlɔ list-style
ni kininbolo fan dɔ bɔ lisi kɔnɔfɛnw kan (denmisɛnninw dɔrɔn). O bɛ tali kɛ denmisɛnw ka lisi fɛnw dɔrɔn de la minnu bɛ teliya , o kɔrɔ ye ko i bɛna a ɲini ka kalasi fara a kan lisi minnu bɛ sigi sen kan fana.
Aw bɛ lisi kɔnɔfɛnw bɛɛ bila tigɛli kelen kan ni display: inline-block;
ani yeelen padding dɔw ye.
Daɲɛw lisɛli n’u ɲɛfɔli minnu bɛ tali kɛ u la.
Aw bɛ daɲɛw ni ɲɛfɔliw kɛ <dl>
ɲɔgɔn kan kɛrɛfɛ. A bɛ daminɛ ni stacked ye i n’a fɔ default <dl>
s, nka ni navbar bɛ bonya, o cogo la ninnu bɛ kɛ.
ɲɛfɔli lisi tilennenw bɛna daɲɛw tigɛ minnu janya ka bon kosɛbɛ walasa u tɛ se ka don numanbolo kulu kɔnɔ ni text-overflow
. Viewports fitininw na, u bɛna fɛn caman Changer ka kɛ default stacked layout ye.
Kode inline snippets siri ni <code>
.
<section>
ka kan ka siri i n’a fɔ inline.
Baara kɛ ni o ye <kbd>
walasa ka donta jira min bɛ don a ka c’a la klaviyeti fɛ.
Baara kɛ ni <pre>
kode sinsinni caman ye. Aw ye aw jija ka bɔ angle brackets (kɛrɛfɛlan) fɛn o fɛn na kode kɔnɔ walasa ka ɲɛfɔli kɛ ka ɲɛ.
<p>Sɛbɛn misali yan...</p>
Aw bɛ se ka .pre-scrollable
kalasi fara a kan ni aw yɛrɛ sago ye, o bɛna max-height sigi 350px ani ka y-axis scrollbar di.
Walasa ka fɛn caman jira, baara kɛ ni <var>
taamasiyɛn ye.
y = m x + b ye
Walasa ka blokiw jira misali bɔli porogaramu dɔ la, baara kɛ ni <samp>
tag ye.
Nin sɛbɛn in kun ye ka jate iko misali bɔlen min bɔra ɔridinatɛri porogaramu dɔ la.
Walasa ka cogoya jɔnjɔn sɔrɔ—padding yeelenma ani tilayɔrɔ tilennen dɔrɔn—aw bɛ basigi kalasi .table
fara fɛn o fɛn <table>
kan . A bɛ se ka kɛ i n’a fɔ super redundant, nka k’a da tabali baara cayalenba kan plugin wɛrɛw kama i n’a fɔ kalolabɔw ani donw sugandibagaw, an y’a sugandi k’an ka tabali cogoyaw bɔ ɲɔgɔn na.
# Bamako . | Tɔgɔ | Jamu | Baarakɛla tɔgɔ |
---|---|---|---|
1 ye | Marka | Otto ye | @mdo ye |
2 ye | Yakuba | Thornton ye | @belebeleba |
3 ye | Larry ye | Kɔnɔ in | @twitter kan |
Aw bɛ baara kɛ ni .table-striped
zebra-striping fara tabali jirisun o tabali kan <tbody>
.
Tabali sɛrɛkiliw bɛ cogoya sɔrɔ :nth-child
CSS sugandili fɛ, o min tɛ sɔrɔ Internet Explorer 8 kɔnɔ.
# Bamako . | Tɔgɔ | Jamu | Baarakɛla tɔgɔ |
---|---|---|---|
1 ye | Marka | Otto ye | @mdo ye |
2 ye | Yakuba | Thornton ye | @belebeleba |
3 ye | Larry ye | Kɔnɔ in | @twitter kan |
Aw bɛ a fara a kan .table-bordered
walasa ka danw kɛ tabali ni seliw fan bɛɛ la.
# Bamako . | Tɔgɔ | Jamu | Baarakɛla tɔgɔ |
---|---|---|---|
1 ye | Marka | Otto ye | @mdo ye |
2 ye | Yakuba | Thornton ye | @belebeleba |
3 ye | Larry ye | Kɔnɔ in | @twitter kan |
Fàra ɲɔgɔn kan .table-hover
walasa ka se ka hover cogoya dɔ Kɛ tabali jὲkuluw kan a kɔnɔ <tbody>
.
# Bamako . | Tɔgɔ | Jamu | Baarakɛla tɔgɔ |
---|---|---|---|
1 ye | Marka | Otto ye | @mdo ye |
2 ye | Yakuba | Thornton ye | @belebeleba |
3 ye | Larry ye | Kɔnɔ in | @twitter kan |
Aw bɛ a fara a kan .table-condensed
walasa ka tabali kɛ ɲɔgɔn fɛ ni aw ye selilɛriw tigɛ ka tila tila.
# Bamako . | Tɔgɔ | Jamu | Baarakɛla tɔgɔ |
---|---|---|---|
1 ye | Marka | Otto ye | @mdo ye |
2 ye | Yakuba | Thornton ye | @belebeleba |
3 ye | Larry ka Kɔnɔ | @twitter kan |
Baara kɛ ni contextual classes ye walasa ka tabali jiriw walima seliw kelen-kelenw kulɛri.
Kilasi | Cogojirali |
---|---|
.active |
A bɛ hover kulɛri kɛ jirisun walima seli kɛrɛnkɛrɛnnen dɔ kan |
.success |
A b’a jira ko wale kɛra min ɲɛnabɔra walima min kɛra koɲuman |
.info |
A b’a jira ko kunnafoni caman yeli walima wale dɔ kɛra min tɛ mɔgɔ si ta ye |
.warning |
A bɛ lasɔmini dɔ jira min bɛ se ka kɛ a mago bɛ jateminɛ na |
.danger |
A bɛ wale dɔ jira min bɛ se ka kɛ farati ye walima min bɛ se ka kɛ wale jugu ye |
# Bamako . | Kolon kuncɛcogo | Kolon kuncɛcogo | Kolon kuncɛcogo |
---|---|---|---|
1 ye | Kolon kɔnɔkow | Kolon kɔnɔkow | Kolon kɔnɔkow |
2 ye | Kolon kɔnɔkow | Kolon kɔnɔkow | Kolon kɔnɔkow |
3 ye | Kolon kɔnɔkow | Kolon kɔnɔkow | Kolon kɔnɔkow |
4 ye | Kolon kɔnɔkow | Kolon kɔnɔkow | Kolon kɔnɔkow |
5 ye | Kolon kɔnɔkow | Kolon kɔnɔkow | Kolon kɔnɔkow |
6. 6 | Kolon kɔnɔkow | Kolon kɔnɔkow | Kolon kɔnɔkow |
7 ye | Kolon kɔnɔkow | Kolon kɔnɔkow | Kolon kɔnɔkow |
8 ye | Kolon kɔnɔkow | Kolon kɔnɔkow | Kolon kɔnɔkow |
9 ye | Kolon kɔnɔkow | Kolon kɔnɔkow | Kolon kɔnɔkow |
Baara kɛli ni kulɛri ye walasa ka kɔrɔ dɔ fara tabali sinsinni kan walima selilɛri kelen-kelen kan, o bɛ taamasiyɛn yelen dɔrɔn de di, min tɛna lase dɛmɛni fɛɛrɛw baarakɛlaw ma – i n’a fɔ ɛkran kalanbagaw. Aw ye aw jija kunnafoni minnu jiralen don ni kulɛri ye, olu bɛ ye ka bɔ kɔnɔkow yɛrɛ la (sɛbɛn yelen min bɛ tabali sinsinni/seli kɔnɔ min bɛ tali kɛ o la), walima u bɛ don a kɔnɔ fɛɛrɛ wɛrɛw fɛ, i n’a fɔ sɛbɛn wɛrɛw minnu dogolen bɛ ni .sr-only
kalan ye.
Aw bɛ jaabi-tabali dɔw Dabɔ ni fɛn o fɛn bɛ siri a .table
kɔnɔ .table-responsive
walasa u ka wuli ka taa jɛgɛn na minɛn misɛnninw kan (768px jukɔrɔ). Ni i bɛ fɛn o fɛn lajɛ min bonya ka bon ni 768px ye, i tɛna danfara si ye nin tabali ninnu na.
Tabali minnu bɛ jaabi di, olu bɛ baara kɛ ni overflow-y: hidden
, min bɛ kunnafoni fɛn o fɛn bɛ tɛmɛ tabali duguma walima sanfɛ dakunw kan, o bɛ tigɛ. Kɛrɛnkɛrɛnnenya la, o bɛ se ka clip off dropdown menus ani mɔgɔ wɛrɛw ka widget wɛrɛw bɔ.
Firefox bɛ ni forobaciyɛn cogoya dɔw ye minnu bɛ tali width
Kɛ jaabi-tabali la. O tɛ Se ka Lajɔ ni Firefox-kɛrɛnkɛrɛnnen hakɛ dɔ ma Kɛ an tɛ min Di Bootstrap kɔnɔ:
Walasa ka kunnafoni wɛrɛw sɔrɔ, aw ye nin jaabi kalan Stack Overflow .
# Bamako . | Tabali kuncɛcogo | Tabali kuncɛcogo | Tabali kuncɛcogo | Tabali kuncɛcogo | Tabali kuncɛcogo | Tabali kuncɛcogo |
---|---|---|---|---|---|---|
1 ye | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri |
2 ye | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri |
3 ye | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri |
# Bamako . | Tabali kuncɛcogo | Tabali kuncɛcogo | Tabali kuncɛcogo | Tabali kuncɛcogo | Tabali kuncɛcogo | Tabali kuncɛcogo |
---|---|---|---|---|---|---|
1 ye | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri |
2 ye | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri |
3 ye | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri | Tabali selilɛri |
Foroko kunnafonisɛbɛn kelen-kelen bɛɛ bɛ diɲɛ cogoya dɔw sɔrɔ u yɛrɛma. Textual <input>
, <textarea>
, ani <select>
elements bɛɛ ni .form-control
olu bɛ sigi ka width: 100%;
kɛɲɛ ni default ye. Aw bɛ labeliw ni kunnafonidilanw siri .form-group
walasa u ka yɔrɔ janya ka ɲɛ.
aw kana foroko kuluw ɲagami ɲɔgɔn na ni donta kuluw ye . O nɔ na, aw bɛ donna-jɛkulu in sigi foroko kulu kɔnɔ.
Fàra .form-inline
i ka foroko kan (min man kan ka Kɛ a ye <form>
) ka ɲɛsin kinin fɛ ani inline-block controls ma. O bɛ tali kɛ sɛbɛnw dɔrɔn de la minnu bɛ filɛlikɛyɔrɔw kɔnɔ minnu bonya ye 768px ye a dɔgɔyalenba la.
Inputs ani selects ye width: 100%;
baara Kɛ ni default ye Bootstrap kɔnɔ. Inline forms kɔnɔ, an b’o Lasegin ka Kɛ width: auto;
walasa control caman bɛ Se ka Sìgi layini kelen kan. Ka kɛɲɛ ni i ka labɛncogo ye, ladamu bonya wɛrɛw bɛ se ka kɛ wajibi ye.
Écran kalanbagaw bɛna gɛlɛya sɔrɔ aw ka sɛbɛnw na ni aw ma sɛbɛn dɔ don donta bɛɛ la. Nin inline sɛbɛnw kama, aw bɛ se ka labeliw dogo ni .sr-only
kalan ye. Fɛɛrɛ wɛrɛw bɛ yen minnu bɛ se ka kɛ walasa ka taamasiyɛn di dɛmɛ fɛɛrɛw ma, i n’a fɔ aria-label
, aria-labelledby
walima fɛn title
min bɛ kɛ ka fɛn dɔ jira. Ni ninnu si tɛ yen, ɛkran kalanbagaw bɛ se ka baara kɛ ni o placeholder
fɛnsɛbɛnni ye, ni o bɛ yen, nka aw k’a kɔlɔsi ko baara kɛli ye placeholder
ka kɛ taamasiyɛn kɛcogo wɛrɛw nɔnabila ye, o tɛ ladilikan ye.
Baara kɛ ni Bootstrap ka jatebɔlanw ye minnu ɲɛfɔlen don ka kɔn walasa ka sɛbɛnfura kunkankow labeliw ni kuluw labɛn cogo tilennen na ni dɔ farali .form-horizontal
ye sɛbɛnfura kan (o man kan ka kɛ a ye <form>
). O kɛli bɛ .form-group
s Changé ka kɛ i n’a fɔ grid rows, o la mago tɛ .row
.
Misaliw bɛ sɔrɔ forobaciyɛn kunkankow la minnu bɛ dɛmɛ sɔrɔ misali sɛbɛnw labɛncogo la.
Foroko ɲɛnabɔli min ka ca kosɛbɛ, sɛbɛnni-sɛbɛnni-yɔrɔw. HTML5 suguya bɛɛ dɛmɛni bɛ sɔrɔ a kɔnɔ: text
, password
, datetime
, datetime-local
, date
, month
, time
, week
, number
, email
, url
, search
, tel
, ani color
.
Donanw bɛna kɛ cogo dafalen na dɔrɔn ni u type
ka fɔlen don ka ɲɛ.
Walasa ka sɛbɛnni walima butɔni jɛlenw fara ɲɔgɔn kan ka kɔn ani/walima sɛbɛnni basigilen fɛn o fɛn ɲɛ <input>
, i ka donna kulu yɔrɔ lajɛ .
Formulaire control min bɛ sɛbɛnni zana caman dɛmɛ. Aw bɛ fɛn dɔ Changer rows
i n’a fɔ a mago bɛ cogo min na.
Jateminɛ kɛyɔrɔw ye sugandili kelen walima caman sugandili ye lisi dɔ kɔnɔ, ka sɔrɔ arajow ye sugandili kelen sugandi caman cɛma.
Jateminɛkɛyɔrɔw ni arajo minnu bɛ se ka baara kɛ, olu bɛ dɛmɛ, nka walasa ka "min tɛ sɔn" taamasiyɛn di bangebaga ka hover kan <label>
, i ka kan ka .disabled
kalansen fara bangebaga .radio
kan , .radio-inline
, .checkbox
, walima .checkbox-inline
.
Baara kɛ ni .checkbox-inline
walima .radio-inline
kalanw ye minnu bɛ jatebɔyɔrɔw walima arajow kan minnu bɛ tugu ɲɔgɔn na walasa ka kunnafoni dɔw sɔrɔ minnu bɛ jira layini kelen kan.
Ni sɛbɛnni tɛ i bolo <label>
, donta bɛ jɔ i n’a fɔ i b’a miiri cogo min na. Sisan a bɛ baara kɛ dɔrɔn jatebɔyɔrɔw ni arajow kan minnu tɛ ɛntɛrinɛti kan. Aw ye aw hakili to a la hali bi ka labeli sugu dɔ di dɛmɛni fɛɛrɛw ma (misali la, ka baara kɛ ni aria-label
).
A kɔlɔsi ko native select menu caman—o kɔrɔ ye ko Safari ani Chrome kɔnɔ—u bɛ ni nkɔni bulama ye minnu tɛ se ka ladilan ni border-radius
properties ye.
Kɔrɔsili minnu <select>
bɛ ni multiple
fɛnɲɛnɛma ye, sugandili caman bɛ jira ka kɛɲɛ ni u yɛrɛ ye.
Ni i mago bɛ ka sɛbɛn gansan bila sɛbɛnfura sɛbɛnfura kɛrɛfɛ sɛbɛnfura kɔnɔ, i ka baara kɛ ni .form-control-static
kalan ye min bɛ sɛbɛnfura kan <p>
.
An bɛ outline
cogoya kɔrɔw bɔ foroko kɔrɔsibaga dɔw kan ka a box-shadow
kɛ a nɔ na :focus
.
:focus
jamanamisali donta min bɛ sanfɛ , o bɛ baara kɛ ni ladamu cogoyaw ye an ka sɛbɛnw kɔnɔ walasa ka :focus
cogoya jira a kan .form-control
.
A ka disabled
boolean attribut (boli) fara donnafɛn dɔ kan walasa ka baarakɛlaw ka jɛɲɔgɔnyaw bali. Donan minnu ma se ka baara kɛ, olu bɛ ye ka nɔgɔya ani ka taamasiyɛn dɔ fara u kan not-allowed
.
A ka disabled
fɛnɲɛnɛma in fara a kan walasa <fieldset>
ka kunnafoni bɛɛ bali ka don a kɔnɔ <fieldset>
siɲɛ kelen.
<a>
O cogo la, navigatɔrɔw bɛna foroko kɔrɔw bɛɛ minɛ ( <input>
, <select>
ani <button>
fɛnw) minnu bɛ a kɔnɔ <fieldset disabled>
i n’a fɔ u ma baara kɛ, ka klaviyeti ni sosɛti bɛɛ ka jɛɲɔgɔnya bali u kan. Nka, ni i ka foroko fana bɛ ni <a ... class="btn btn-*">
fɛnw ye, olu bɛna di dɔrɔn cogoya dɔ ma min ye pointer-events: none
. I n’a fɔ a fɔra cogo min na dakun na min bɛ kuma butɔni cogoya balilen kan (ani kɛrɛnkɛrɛnnenya la dakun fitinin min bɛ ankɔri fɛnw kan), nin CSS nafolo in ma labɛn fɔlɔ wa a ma dɛmɛ bɛrɛbɛrɛ Opera 18 ni a jukɔrɔ, walima Internet Explorer 11 kɔnɔ, wa a ye se sɔrɔ 't bali klaviyeti baarakɛlaw ka se ka sinsin walima ka baara kɛ ni nin jɛgɛnsira ninnu ye. O la sa, walisa ka i yɛrɛ tanga, baara kɛ ni JavaScript ye min bɛ kɛ ka kɛɲɛ ni i yɛrɛ sago ye walasa ka o ɲɔgɔnna jɛgɛnw bali.
Hali ni Bootstrap bɛna o cogoyaw waleya navigatɔrɔw bɛɛ la, Internet Explorer 11 ani a duguma tɛ fɛn in dɛmɛ kosɛbɛ a disabled
kan <fieldset>
. Baara kɛ ni JavaScript ye min bɛ kɛ ka kɛɲɛ ni i yɛrɛ sago ye walasa ka forow labɛncogo bali o navigatɛriw kɔnɔ.
A bɛ readonly
boolean attribut (boli) fara donnafɛn dɔ kan walasa ka donnafɛn nafa caman caman cili bali. Kalan dɔrɔn dontaw bɛ ye ka nɔgɔya (i n’a fɔ donnakow balilenw), nka u bɛ taamasiyɛn jɔnjɔn mara.
Bloki nivo dɛmɛ sɛbɛnni ka ɲɛsin foroko kunkankow ma.
Dɛmɛ sɛbɛn ka kan ka jɛ k’a jɛya ni sɛbɛnfura kunkanko ye a bɛ tali kɛ ni fɛn ye min bɛ baara kɛ ni o fɛn aria-describedby
ye. O bɛna a to dɛmɛ fɛɛrɛw – i n’a fɔ ɛkran kalanbagaw – bɛna nin dɛmɛ sɛbɛn in laseli ni baarakɛla ye a sinsin walima ni a donna kunnafoni na.
Bootstrap kɔnɔ, filiw, lasɔminiw, ani ɲɛtaa cogoyaw dantigɛli cogoyaw bɛ sɔrɔ forobaciyɛn kunkankow kan. Walasa ka baara kɛ, i ka .has-warning
, .has-error
, walima .has-success
fara bangebaga yɔrɔ kan. O fɛn o fɛn .control-label
, .form-control
, ani .help-block
o yɔrɔ kɔnɔ, o bɛna tiɲɛni kɛcogoyaw sɔrɔ.
Baara kɛli ni nin dantigɛlicogo ninnu ye walasa ka foroko kunnafoni dɔ cogoya jira, o bɛ taamasiyɛn yelen dɔrɔn de di, min sinsinnen bɛ kulɛri kan, min tɛna lase dɛmɛni fɛɛrɛw baarakɛlaw ma - i n’a fɔ ɛkran kalanbagaw - walima kulɛri fiyentɔw baarakɛlaw ma.
Aw ye aw jija jamana jiracogo wɛrɛ fana ka di. Misali la, i bɛ se ka hakilina dɔ don cogoya kan foroko kunnafonisɛbɛn <label>
yɛrɛ kɔnɔ (i n’a fɔ a bɛ kɛ cogo min na kode misali nata la), ka Glyphicon dɔ don a kɔnɔ (ni sɛbɛn wɛrɛ bɛnnen ye ka baara kɛ ni .sr-only
kalasi ye - aw ye Glyphicon misaliw lajɛ ), walima ka dɔ di dɛmɛ wɛrɛ sɛbɛnni bloki. Kɛrɛnkɛrɛnnenya la dɛmɛni fɛɛrɛw kama, forobaciyɛn kɔrɔsibaga tiɲɛnenw fana bɛ se ka fɛn dɔ di u ma aria-invalid="true"
.
Aw bɛ se fana ka hakilinata taamasiyɛnw fara a kan ni farali ye.has-feedback
ani taamasiyɛn kinin fɛ.
Feedback taamasiyɛnw bɛ baara kɛ ni sɛbɛnnifɛnw dɔrɔn de <input class="form-control">
ye.
Fɛɛrɛbɔ taamasiyɛnw bilali bolo la, o de wajibiyalen don donnakow la minnu tɛ ni taamasiyɛn ye ani donnajɛkulu minnu bɛ ni farankan ye kinin fɛ. Aw bɛ dusu don aw kɔnɔ kosɛbɛ aw ka labeliw di dontaw bɛɛ ma sɔrɔli kunw na. N’i b’a fɛ ka labeliw bali ka jira, i k’u dogo ni .sr-only
kalan ye. Ni aw ka kan ka kɛ ni labeliw tɛ, aw top
bɛ jaabiw taamasiyɛn nafa ladilan. Donan kuluw kama, aw bɛ right
nafa ladilan ka kɛɲɛ ni pixel nafa bɛnnen ye ka kɛɲɛ ni aw ka farankan bonya ye.
Walasa dɛmɛni fɛɛrɛw – i n’a fɔ ɛkran kalanbagaw – ka taamasiyɛn dɔ kɔrɔ jira cogo bɛnnen na, sɛbɛn dogolen wɛrɛw ka kan ka don .sr-only
kalanso kɔnɔ ani ka jɛ k’a jɛya ni sɛbɛnfura kunkanko ye min bɛ tali kɛ baara aria-describedby
la . O cogo kelen na, i k’a lajɛ ko kɔrɔ (misali la, ko lasɔmini bɛ sɛbɛnni-sɛbɛnni-yɔrɔ kɛrɛnkɛrɛnnen dɔ la) ka Lase cogo wɛrɛ la, i n’a fɔ sɛbɛn yɛrɛyɛrɛ <label>
min bɛ tali Kɛ sɛbɛnfura-kɔlɔsili la, o sɛbɛnni caman Yɛlɛma.
Hali n’a y’a Sɔrɔ misali nataw bɛ u kelen-kelen bɛɛ ka foroko-kɔlɔsili-sɛbɛnw tiɲɛni cogoya Fɔ kaban <label>
sɛbɛn yɛrɛ kɔnɔ, sanfɛla fɛɛrɛ (ka baara Kɛ ni .sr-only
sɛbɛnni ni aria-describedby
) ye, o Dònna a la walasa ka ɲɛfɔli Kɛ.
.sr-only
labels dogolenwN’i ye baara Kɛ ni .sr-only
kalasi ye walasa ka foroko control’s dɔ dogo <label>
(sanni i ka baara Kɛ ni labeli sugandicogo wɛrɛw ye, i n’a fɔ aria-label
attribut), Bootstrap bɛna taamaʃyɛn jɔyɔrɔ Labɛn a yɛrɛma ni a Fàrala a kan.
aw bɛ sanfɛlanw sigi ni kalasiw ye i n' a fɔ .input-lg
, ani ka bonyaw sigi ni jatebɔlanw ye i n' a fɔ .col-lg-*
.
Aw bɛ foroko kunnafoni-di-minɛnw dilan minnu ka jan walima minnu ka surun, minnu bɛ bɛn butɔni hakɛw ma.
Teliya la ka labeliw bonya ani ka foroko kunkankow kɛ kɔnɔna na .form-horizontal
ni dɔ farali ye .form-group-lg
walima .form-group-sm
.
Aw bɛ dontaw siri jatebɔlanw kɔnɔ, walima bangebaga fɛn o fɛn ladamu, walasa ka bonya ɲininenw waleya nɔgɔya la.
Baara kɛ ni butɔni kalanw ye <a>
, <button>
, walima <input>
fɛn dɔ kan.
Hali ni butɔni kalasi bɛ Se ka baara Kɛ ni fɛnw kan <a>
ani <button>
fɛnw kan, fɛnw dɔrɔn de <button>
bɛ Dɛmɛ an ka nav ni navbar yɔrɔw kɔnɔ.
Ni <a>
fɛnw bɛ kɛ ka baara kɛ i n’a fɔ butɔni – ka ɲɛ kɔnɔ baarakɛcogo daminɛ, sanni ka taa sɛbɛn wɛrɛ walima yɔrɔ wɛrɛ la ɲɛ min bɛ yen sisan kɔnɔ – u ka kan ka di u ma fana role="button"
.
O kɛcogo ɲuman na, an b’a ɲini kosɛbɛ ka baara kɛ ni o <button>
fɛn ye ni a bɛ se ka kɛ walasa ka a jira ko cross-browser rendering bɛ bɛn.
Fɛn wɛrɛw cɛma, butɔni dɔ bɛ Firefox <30 kɔnɔ min b’an bali ka line-height
of <input>
-based butɔni sigi, o b’a to u tɛ bɛn tigitigi butɔni tɔw janya ma Firefox kan.
Baara kɛ ni butɔni kalasi minnu bɛ sɔrɔ, olu dɔ la kelen ye walasa ka butɔni cogoya dɔ dilan joona.
Baara kɛli ni kulɛri ye walasa ka kɔrɔ dɔ fara butɔni kan, o bɛ taamasiyɛn yelen dɔrɔn de di, min tɛna lase dɛmɛni fɛɛrɛw baarakɛlaw ma – i n’a fɔ ɛkran kalanbagaw. Aw ye aw jija kunnafoni minnu jiralen don ni kulɛri ye, olu bɛ ye ka bɔ kɔnɔkow yɛrɛ la (butɔni sɛbɛn yelen), walima u bɛ don a kɔnɔ fɛɛrɛ wɛrɛw fɛ, i n’a fɔ sɛbɛnni wɛrɛw minnu dogolen bɛ ni .sr-only
kalan ye.
Fancy butɔni belebelebaw walima fitininw? Aw bɛ .btn-lg
, .btn-sm
, walima .btn-xs
fara a kan walasa ka bonya wɛrɛw sɔrɔ.
Aw bɛ bloki nivo butɔniw dilan—minnu bɛ bangebaga dɔ bonya bɛɛ lajɛlen na—aw kɛtɔ ka .btn-block
.
Butɔnw bɛna jira ni u digilen don (ni kɔkanna dibi don, ni dan ye dibi ye, ani ni inset shadow ye) ni u bɛ baara la. <button>
Elemanw ta fan fɛ , o bɛ Kɛ ni :active
. <a>
Elemanw kama , a bɛ Kɛ ni .active
. Nka, i bɛ se ka baara kɛ ni .active
s kan <button>
(ani ka aria-pressed="true"
fɛntigiya don a kɔnɔ) ni i mago bɛ ka active state lasegin porogaramu fɛ.
Wajibi tɛ ka fara a kan :active
i n’a fɔ a ye pseudo-class ye, nka n’i mago bɛ ka force o yecogo kelen na, taa ɲɛ ka fara a kan .active
.
.active
Kalanso fara butɔni <a>
kan.
Aw bɛ butɔni kɛ i n' a fɔ u tɛ se ka digi ni u falenni ye ka segin ni opacity
.
Aw bɛ o disabled
jogo in fara <button>
butɔni kan.
N’i ye o fɛn in Fàra a kan disabled
, <button>
Internet Explorer 9 ani a duguma bɛna sɛbɛnni Kɛ nɛrɛmuguma ye ni sɛbɛnni-dugukolo jugu ye an tɛ Se k’o Labɛn.
.disabled
Kalanso fara butɔni <a>
kan.
An bɛ baara Kɛ .disabled
ni nafa-kalasi ye yan, i n’a fɔ .active
kalasi jɛlen, o la, daɲɛ fɔlɔ si tɛ wajibiya.
Nin kalan in bɛ baara Kɛ pointer-events: none
k’a ɲini ka s ka jὲɲɔgɔnya baarakɛcogo Dabila <a>
, nka o CSS nafolo ma Sɔ̀rɔ fɔlɔ wa a ma Dɛmɛ kosɛbɛ Opera 18 ni a duguma, walima Internet Explorer 11. Ka Fàra o kan, hali navigatɛri minnu bɛ dɛmɛ Kɛ pointer-events: none
, klaviyeti navigatiɔn bɛ to a ma nɔ bila a la, o kɔrɔ ye ko klaviyeti ɲɛnamaw ni dɛmɛn fɛɛrɛw baarakɛlaw bɛna se hali bi ka nin jɛgɛnsira ninnu baara. O la sa, walisa ka i yɛrɛ tanga, baara kɛ ni JavaScript ye min bɛ kɛ ka kɛɲɛ ni i yɛrɛ sago ye walasa ka o ɲɔgɔnna jɛgɛnw bali.
Ja minnu bɛ Bootstrap 3 kɔnɔ, olu bɛ se ka kɛ jaabi-teriw ye kalan farali fɛ .img-responsive
. O bɛ tali kɛ max-width: 100%;
, height: auto;
ani display: block;
ja la walasa a ka sɛgɛsɛgɛli kɛ koɲuman bangebaga yɔrɔ la.
Walasa ka ja minnu bɛ baara kɛ ni .img-responsive
kalan ye, olu cɛmancɛ la, baara kɛ .center-block
ni .text-center
. Aw ye dɛmɛbagaw ka kalansenw yɔrɔ lajɛ walasa ka kunnafoni wɛrɛw sɔrɔ .center-block
baarakɛcogo kan.
Internet Explorer 8-10 kɔnɔ, SVG jaw ni .img-responsive
u bonya tɛ kelen ye. Walasa k’o labɛn, aw bɛ dɔ fara a kan width: 100% \9;
yɔrɔ min na a mago bɛ o la. Bootstrap tɛ nin waleya a yɛrɛma bawo a bɛ gɛlɛyaw lase ja cogoya wɛrɛw ma.
Kalansow fara <img>
element dɔ kan walasa ka jaw cogoya nɔgɔya poroze o porozɛ kɔnɔ.
Aw k’a to aw hakili la ko Internet Explorer 8 tɛ dɛmɛ sɔrɔ nkɔni lamininenw na.
Kɔrɔ lase kulɛri fɛ ni bolomafara nafama kalanw ye. Olu fana bɛ Se ka Kɛ 'jyɛnnatigɛ-sɛbɛnw kan wa u bɛna dibi Kɛ 'yɔrɔ la i n'a fɔ an ka 'jyɛnnatigɛ-cogo kɔrɔw.
Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.. Bamako, Mali.
Nullam id dolor id nibh ultricies bolifɛnw ut id elit.
Duis mollis, est non commodo luctus, nisi erat jirisunba min bɛ wele ko ligula.
Maecenas sed diam eget risus varius blandit sigi amet non magna.
Etiam porta sem cɛmanba min bɛ wele ko magna mollis euismod.
Donec ullamcorper nulla min tɛ fɛn ye min bɛ wele ko fringilla.
Tuma dɔw la, sinsinnan kalanw tɛ Se ka Kɛ k’a sababu Kɛ sugandilikɛla wɛrɛ ka kɛrɛnkɛrɛnnenya ye. A ka c’a la, furakɛli bɛrɛbɛrɛ ye k’i ka sɛbɛnni siri a la <span>
ni kalan ye.
Baara kɛli ni kulɛri ye walasa ka kɔrɔ fara a kan, o bɛ taamasiyɛn yelen dɔrɔn de di, min tɛna lase dɛmɛni fɛɛrɛw baarakɛlaw ma – i n’a fɔ ɛkran kalanbagaw. Aw ye aw jija kunnafoni minnu jiralen don ni kulɛri ye, olu bɛ ye ka bɔ kɔnɔkow yɛrɛ la (kulɛri minnu bɛ sigida kɔnɔ, olu bɛ kɛ dɔrɔn ka kɔrɔ barika bonya min bɛ sɛbɛn/taamaʃyɛn kɔnɔ kaban), walima u bɛ don a kɔnɔ fɛɛrɛ wɛrɛw fɛ, i n’a fɔ sɛbɛn wɛrɛw minnu dogolen bɛ ni .sr-only
kalan ye .
I n’a fɔ sɛbɛnni kulɛri kalanw bɛ cogo min na, i bɛ se ka fɛn dɔ kɔkanna sigi nɔgɔya la ka kɛɲɛ ni kalansen suguya o suguya ye. Anchor components bɛna dibi don hover kan, i n’a fɔ sɛbɛnni kalanw.
Nullam id dolor id nibh ultricies bolifɛnw ut id elit.
Duis mollis, est non commodo luctus, nisi erat jirisunba min bɛ wele ko ligula.
Maecenas sed diam eget risus varius blandit sigi amet non magna.
Etiam porta sem cɛmanba min bɛ wele ko magna mollis euismod.
Donec ullamcorper nulla min tɛ fɛn ye min bɛ wele ko fringilla.
Tuma dɔw la, contextual background classes tɛ se ka waleya k’a sababu kɛ sugandilikɛla wɛrɛ ka kɛrɛnkɛrɛnnenya ye. Tuma dɔw la, baarakɛcogo bɛrɛbɛrɛ ye k’i ka element kɔnɔkow siri a <div>
ni kalasi la.
I n’a fɔ a bɛ kɛ cogo min na ni kulɛriw ye minnu bɛ sɔrɔ sigida kɔnɔ , i k’a lajɛ ko kɔrɔ o kɔrɔ bɛ lase kulɛri fɛ, o fana bɛ lase cogo la min tɛ jiracogo dɔrɔn ye.
Baara kɛ ni generic close icon ye walasa ka kunnafoniw bɔ kɛnɛ kan i n’a fɔ modals ani alerts.
Aw bɛ baara kɛ ni kariw ye walasa ka fɛnw jira minnu bɛ jigincogo ni a ɲɛminɛcogo jira. aw k' a kɔlɔsi ko caret default bɛna kɔsegin a yɛrɛma dropup menus kɔnɔ .
Aw bɛ fɛn dɔ wuli ka taa kinin fɛ walima kinin fɛ ni kalasi ye. !important
bɛ don a kɔnɔ walasa ka kɛrɛnkɛrɛnnenya koɲɛw bali. Kalansow fana bɛ se ka kɛ mixinw ye.
Aw bɛ element dɔ sigi ka taa display: block
ani a cɛmancɛ la via margin
. A bɛ sɔrɔ i n’a fɔ mixin ani classe.
nɔgɔya la s jɛya float
ni farali .clearfix
ye bangebaga yɔrɔ la . A bɛ baara kɛ ni micro clearfix ye i n’a fɔ Nicolas Gallagher y’a jira cogo min na. A bɛ se ka kɛ fana i n’a fɔ mixin.
Wajibiya fɛn dɔ ka jira walima ka dogo ( hali ni ekran kalanbagaw ye ) ni baara kɛli ye .show
ni .hidden
kalanw ye. O kalasi ninnu bɛ baara Kɛ !important
walasa k’u yɛrɛ Kɔrɔbɔ kɛrɛnkɛrɛnnenya la kὲlɛw la, i n’a fɔ a bɛ Fɔ cogo min na teliya la . U bɛ sɔrɔ bloki nivo toggling dɔrɔn de kama. U bɛ se ka kɛ fana i n’a fɔ mixins.
.hide
bɛ sɔrɔ, nka a tɛ nɔ bila ɛkran kalanbagaw la tuma bɛɛ wa a tɛ baara la kabini v3.0.1 . Baara kɛ ni .hidden
walima .sr-only
a nɔ na.
O tɛmɛnen 'kɔ, a .invisible
bɛ Se ka Kɛ ka fɛn dɔ yecogo dɔrɔn Yɛlɛma, o kɔrɔ ye ko a display
ma Yɛlɛma wa o fɛn in bɛ Se ka nɔ Blà sɛbɛn in bolicogo la halibi.
Eleman dɔ dogo minɛnw bɛɛ la fo ekran kalanbagaw ni .sr-only
. Aw .sr-only
bɛ fara ɲɔgɔn kan .sr-only-focusable
walasa ka fɛn in jira tugun ni a ɲɛsinnen don (misali la, klaviyeti dɔrɔn baarakɛla fɛ). Wajibi don ka tugu sɔrɔli kɛcogo ɲumanw kɔ . A bɛ se ka kɛ fana i n’a fɔ mixins.
Baara kɛ ni .text-hide
kalasi walima mixin ye walasa ka dɛmɛ don ka fɛn dɔ sɛbɛnni kɔnɔkow bila kɔfɛ ja nɔ na.
Walasa ka mobili-friendly yiriwali teliya, baara kɛ ni nin nafama-kalanso ninnu ye walasa ka kunnafoniw jira ani k’u dogo minɛnw fɛ kunnafonidilanw ɲinini fɛ. Nafama-kalansow fana bɛ yen minnu bɛ kɛ ka kɔnɔkow sɛmɛntiya ni u sɛbɛnna.
A ɲini ka baara kɛ ni ninnu ye danmadɔ la ani ka i yɛrɛ tanga site kelen in bɔcogo wɛrɛw ma pewu. O nɔ na, baara kɛ n’u ye walasa ka minɛn kelen-kelen bɛɛ jiracogo dafa.
Baara kɛ ni kalan kelen walima kalansenw faralen ye ɲɔgɔn kan minnu bɛ sɔrɔ walasa ka kɔnɔkow wuli ka bɔ filɛlikɛyɔrɔ kariyɔrɔw la.
Minɛn fitinin wɛrɛwTelefɔniw (<768px) | Minɛn misɛnninwTablɛtiw (≥768px) . | Minɛn minnu bɛ kɛ cɛmancɛ laBaarakɛminɛnw (≥992px) | Minɛn belebelebawBaarakɛminɛnw (≥1200px) . | |
---|---|---|---|---|
.visible-xs-* |
A bɛ ye | Dogolen | Dogolen | Dogolen |
.visible-sm-* |
Dogolen | A bɛ ye | Dogolen | Dogolen |
.visible-md-* |
Dogolen | Dogolen | A bɛ ye | Dogolen |
.visible-lg-* |
Dogolen | Dogolen | Dogolen | A bɛ ye |
.hidden-xs |
Dogolen | A bɛ ye | A bɛ ye | A bɛ ye |
.hidden-sm |
A bɛ ye | Dogolen | A bɛ ye | A bɛ ye |
.hidden-md |
A bɛ ye | A bɛ ye | Dogolen | A bɛ ye |
.hidden-lg |
A bɛ ye | A bɛ ye | A bɛ ye | Dogolen |
Kabini v3.2.0 la, .visible-*-*
kalasi minnu bɛ kɛ kariyɔrɔ kelen-kelen bɛɛ la, olu bɛ na ni fɛn saba ye, kelen bɛ kɛ CSS display
nafolo nafa kelen-kelen bɛɛ la min kofɔlen bɛ jukɔrɔ.
Kalansow kulu | CSS yedisplay |
---|---|
.visible-*-block |
display: block; |
.visible-*-inline |
display: inline; |
.visible-*-inline-block |
display: inline-block; |
xs
O la, misali la ( ) ɛkran fitinin wɛrɛw kama, .visible-*-*
kalan minnu bɛ sɔrɔ olu ye: .visible-xs-block
, .visible-xs-inline
, ani .visible-xs-inline-block
.
Kalansow .visible-xs
, .visible-sm
, .visible-md
, ani .visible-lg
fana bɛ yen, nka u tɛ baara la kabini v3.2.0 . U bɛ Bɛn ni .visible-*-block
, fo ni ko kɛrɛnkɛrɛnnen wɛrɛw ye toggling <table>
-related elements kan.
I n’a fɔ jaabi kalan minnu bɛ kɛ tuma bɛɛ, baara kɛ ni ninnu ye walasa ka kunnafoniw wuli ka bɔ u nɔ na walasa ka sɛbɛnni kɛ.
Kalansow | Navigatɛri (Navigateur). | Sɛbɛnni kɛ |
---|---|---|
.visible-print-block .visible-print-inline .visible-print-inline-block |
Dogolen | A bɛ ye |
.hidden-print |
A bɛ ye | Dogolen |
Kalanso .visible-print
fana bɛ yen nka a ma baara kɛ kabini v3.2.0 . A bɛ Bɛn ni .visible-print-block
, fo ni ko kɛrɛnkɛrɛnnen wɛrɛw Fàralen dòn <table>
-fɛnw kan minnu bɛ tali Kɛ ɲɔgɔn na.
I ka navigatɛri bonya caman sɛmɛntiya walima ka doni kɛ minɛn wɛrɛw kan walasa ka jaabiw nafalanw kɔrɔbɔ.
Jateminɛ kɛlenw b’a jira ko fɛn in bɛ ye i ka sisan jatebɔyɔrɔ la.
Yan, jatebɔlan jɛmanw fana b’a jira ko fɛn in dogolen bɛ i ka sisan jatebɔyɔrɔ la.
Bootstrap ka CSS jɔlen bɛ Less kan, o ye preprocesseur ye min bɛ ni baarakɛcogo wɛrɛw ye i n’a fɔ variables, mixins ani functions for compiling CSS. Minnu b’a fɛ ka baara Kɛ ni source Less files ye an ka CSS files lajɛlenw nɔ na, olu bɛ Se ka baara Kɛ ni variables ni mixins caman ye an bɛ baara Kɛ ni minnu ye framework bɛɛ kɔnɔ.
Grid variables ani mixins bɛ dabɔ Grid system dakun kɔnɔ .
Bootstrap bɛ se ka baara kɛ cogo fila la a dɔgɔyalenba la: ni CSS lajɛlen ye walima ni source Less files ye. Walasa ka Less files lajɛ, i ka Daminɛ yɔrɔ lajɛ walasa k’i ka yiriwali sigida labɛncogo dɔn walasa ka cikan wajibiyalenw baara.
Mɔgɔ sabananw ka daɲɛgafe-minɛnw bɛ se ka baara kɛ ni Bootstrap ye, nka u tɛ dɛmɛ sɔrɔ an ka jɛkuluba fɛ.
Yɛlɛma bɛ kɛ porozɛ bɛɛ kɔnɔ i n’a fɔ nafa minnu bɛ kɛ ka caya i n’a fɔ kulɛriw, yɔrɔjan, walima sɛbɛnnibolow kuluw, olu bila ɲɔgɔn na ani k’u tila ɲɔgɔn na. Walasa ka kunnafoni dafalen sɔrɔ, aw ye sɛbɛn ɲɛ Customizer lajɛ .
Aw bɛ baara kɛ ni kulɛri fila ye nɔgɔya la: gris ani semantique. Kulɛri jɛmanw bɛ se ka teliya ka nɛrɛmugumaw sɔrɔ minnu bɛ kɛ tuma caman na k’a sɔrɔ kɔrɔko la, kulɛri suguya caman bɛ sɔrɔ minnu bɛ di kɔrɔlenw ma minnu bɛ sɔrɔ sigida kɔnɔ.
Baara kɛ ni nin kulɛri caman ɲɔgɔnna dɔ ye i n’a fɔ u bɛ cogo min na walima k’u bila fɛn caman na minnu kɔrɔ ka bon i ka poroze kama.
Yɛlɛma damadɔ minnu bɛ Kɛ walasa ka i ka yɔrɔ kolomayɔrɔ kolomaw Labɛn teliya la.
Aw bɛ aw ka jɛgɛnw cogoya nɔgɔya ni kulɛri bɛnnen ye ni nafa kelen dɔrɔn ye.
A kɔlɔsi ko the @link-hover-color
bɛ baara Kɛ ni baarakɛcogo dɔ ye, baarakɛminɛn sirannin wɛrɛ min bɛ Bɔ Less la, walasa ka hover kulɛri ɲuman Dabɔ a yɛrɛma. Aw bɛ se ka baara kɛ ni darken
, lighten
, saturate
, ani desaturate
.
I ka sɛbɛnnikɛcogo, sɛbɛnni hakɛ, ɲɛmɔgɔya ani fɛn wɛrɛw sigi nɔgɔya la ni fɛn caman ye minnu bɛ se ka fɛn caman sɛmɛntiya. Bootstrap bɛ baara Kɛ ni ninnu fana ye walasa ka sɛbɛnni-minɛn nɔgɔmanw Di.
Yɛlɛma teliyalen fila walasa ka i ka taamasiyɛnw sigiyɔrɔ n’u ka dosiye tɔgɔ ladilan.
Bootstrap kɔnɔna na, fɛn minnu bɛ yen, olu bɛ baara Kɛ ni fɛn dɔw ye minnu bɛ Se ka Kɛ ni fɛn caman ye minnu bɛ Se ka Kɛ ɲɔgɔn fɛ. Baara bɛ kɛ ni minnu ye kosɛbɛ, olu filɛ nin ye.
Feerekɛlaw ka mixins ye mixins ye walasa ka dɛmɛ don ka navigatɔrɔ caman dɛmɛ ni feerekɛlaw ka daɲɛ fɔlɔw bɛɛ donli ye i ka CSS lajɛlen kɔnɔ.
Aw bɛ aw ka yɔrɔw ka kɛsu modɛli lasegin ni mixin kelen ye. Walasa ka kunnafoni sɔrɔ a kɔnɔkow kan, aw ye nin barokun lajɛ min bɛ mɔgɔ dɛmɛ ka bɔ Mozilla .
Mixin in bɛ baara la kabini v3.2.0, ni Autoprefixer (Autoprefixer) daminɛni ye. Walasa ka kɔfɛ-baarakɛcogo lakana, Bootstrap bɛna t’a fɛ ka baara kɛ ni mixin ye kɔnɔna na fo Bootstrap v4.
Bi, bi-navigatɛriw bɛɛ bɛ nafolomafɛn min tɛ daɲɛ-jɔ- border-radius
yɔrɔ-ko ye, o dɛmɛ. O cogo la, mixin tɛ yen .border-radius()
, nka Bootstrap kɔnɔ, sira surunw bɛ yen minnu bɛ se ka teliya ka nkɔni fila lamini fɛn dɔ fan kɛrɛnkɛrɛnnen dɔ la.
N’i ka mɔgɔ laɲinitaw bɛ baara kɛ ni navigatɛriw ni minɛnw ye minnu ka bon kosɛbɛ ani minnu ka bon kosɛbɛ, i jija ka baara kɛ ni o box-shadow
yɔrɔ ye dɔrɔn a yɛrɛ ma. N’i mago bɛ dɛmɛ na Android (pre-v4) ani iOS minɛn kɔrɔw la (pre-iOS 5), baara kɛ ni mixin kɔrɔlen ye walasa ka wajibiyalenw ta-webkit
kɔrɔlen ye walasa ka daɲɛ fɔlɔ
Mixin in bɛ kɛ ka ban la kabini v3.1.0, bawo Bootstrap tɛ dɛmɛ ofisiyali la plateformes kɔrɔlenw na minnu tɛ standard property dɛmɛ. Walasa ka kɔfɛ-baarakɛcogo lakana, Bootstrap bɛna t’a fɛ ka baara kɛ ni mixin ye kɔnɔna na fo Bootstrap v4.
Aw ye aw jija ka baara kɛ ni rgba()
kulɛriw ye aw ka kɛsu biɲɛw la walasa u ka ɲɔgɔn sɔrɔ cogo la min tɛ fɛn tiɲɛ ni kɔkanfɛnw ye.
Mixin caman walasa ka se ka fɛn caman kɛ. Aw bɛ tɛmɛsira kunnafoniw bɛɛ sigi ni kelen ye, walima aw bɛ waati latɛmɛni ni waati janya danfaralen jira i n’a fɔ a mago bɛ cogo min na.
Mixinw bɛ ban ka bɔ v3.2.0 la, ni Autoprefixer (Autoprefixer) daminɛni ye. Walasa ka kɔfɛ-baarakɛcogo lakana, Bootstrap bɛna t’a fɛ ka baara kɛ ni mixins ye kɔnɔna na fo Bootstrap v4.
Fɛn o fɛn bɛ wuli, ka sɛgɛsɛgɛli kɛ, ka baara kɛ ni a ye (ka a lamaga), walima ka a wuli.
Mixinw bɛ ban ka bɔ v3.2.0 la, ni Autoprefixer (Autoprefixer) daminɛni ye. Walasa ka kɔfɛ-baarakɛcogo lakana, Bootstrap bɛna t’a fɛ ka baara kɛ ni mixins ye kɔnɔna na fo Bootstrap v4.
Mixin kelen min bɛ kɛ ka baara kɛ ni CSS3 ka animation properties bɛɛ ye declaration kelen kɔnɔ ani mixin wɛrɛw ka properties kelen-kelenw kama.
Mixinw bɛ ban ka bɔ v3.2.0 la, ni Autoprefixer (Autoprefixer) daminɛni ye. Walasa ka kɔfɛ-baarakɛcogo lakana, Bootstrap bɛna t’a fɛ ka baara kɛ ni mixins ye kɔnɔna na fo Bootstrap v4.
Aw bɛ opacity sigi navigatɔrɔw bɛɛ la ani ka filter
fallback di IE8 ma.
Aw bɛ sigida di forobaciyɛn kɔlɔsili ma foro kelen-kelen bɛɛ kɔnɔ.
Kolonw labɛn CSS fɛ fɛn kelen kɔnɔ.
Aw bɛ kulɛri fila o fila caman tigɛli nɔgɔya ka kɛ kɔkanna sɛgɛsɛgɛli ye. Aw ye ɲɛtaa sɔrɔ ka taa a fɛ ani ka sira dɔ sigi sen kan, ka baara kɛ ni kulɛri saba ye, walima ka baara kɛ ni radiyali gradient ye. Ni mixin kelen ye i bɛ kɔrɔɲɔgɔnmaya daɲɛw bɛɛ Sɔrɔ i mago bɛ minnu na.
Aw bɛ se fana ka angle (angle) jira min bɛ kɛ ni kulɛri fila ye, n’o ye gradient lineaire ye:
Ni aw mago bɛ barber-stripe style gradient la, o fana ka nɔgɔn. Aw bɛ kulɛri kelen jira dɔrɔn ani an bɛna jiribolo finman translucent dɔ datugu.
Aw bɛ ante kɔrɔta ka kulɛri saba kɛ a nɔ na. Aw bɛ kulɛri fɔlɔ, kulɛri filanan, kulɛri filanan ka kulɛri jɔli (kɛmɛsarada la nafa i n’a fɔ 25%), ani kulɛri sabanan sigi ni nin mixin ninnu ye:
Kungolow bɛ wuli! Ni aw mago bɛ don dɔ la ka gradient (gradient) dɔ bɔ, aw ye aw jija ka IE-kɛrɛnkɛrɛnnen fɛn o fɛn filter
fara a kan, aw bɛ se ka o bɔ. aw bɛ se k' o kɛ ni aw bɛ baara kɛ ni .reset-filter()
mixin ye a kɛrɛfɛ background-image: none;
.
Utility mixins ye mixins ye minnu bɛ CSS nafolomafɛnw fara ɲɔgɔn kan minnu tɛ ɲ��gɔn ta cogo wɛrɛ la walasa ka kuntilenna walima baara kɛrɛnkɛrɛnnen dɔ sɔrɔ.
Aw bɛ ɲinɛ ka fara class="clearfix"
fɛn o fɛn kan ani o nɔ na aw bɛ .clearfix()
mixin fara a kan yɔrɔ min na a bɛnnen don. A bɛ baara kɛ ni micro clearfix ye min bɔra Nicolas Gallagher fɛ .
Aw bɛ teliya ka fɛn o fɛn kɛ a bangebaga kɔnɔ, aw bɛ o cɛmancɛ la. A bɛ wajibiya width
walima max-width
ka sigi sen kan.
Fɛn dɔ hakɛw jira nɔgɔya la.
Aw bɛ bonya caman ɲɔgɔnna sugandiliw labɛn nɔgɔya la sɛbɛnnikɛyɔrɔ o yɔrɔ la, walima fɛn wɛrɛ. A bɛ daminɛ ka kɛ navigatɔrɔn kɛcogo nɔgɔman ye ( both
).
Aw bɛ sɛbɛnni tigɛ nɔgɔya la ni ellipsis ye ni mixin kelen ye. A bɛ element (fɛn) wajibiya ka kɛ block
walima ka kɛ inline-block
nivo ye.
Ja sira fila jira ani @1x ja hakɛw, ani Bootstrap bɛna @2x media ɲininkali di. Ni ja caman b’i bolo ka baara kɛ, i k’a lajɛ k’i ka ɲɛkisɛ ja CSS sɛbɛn i bolo fɛ kunnafonidilan ɲininkali kelen kɔnɔ.
Hali ni Bootstrap jɔlen bɛ Less kan, a fana bɛ ni Sass port ofisiyali ye . An b’a mara GitHub marayɔrɔ wɛrɛ la ani ka kunnafoni kuraw ɲɛnabɔ ni fɛn caman tigɛli sɛbɛn ye.
Komin Sass port bɛ ni repo danfaralen ye, wa a bɛ baara kɛ ni lamɛnbagaw ye minnu tɛ kelen ye dɔɔnin, porozɛ in kɔnɔkow bɛ danfaraba don ni Bootstrap porozɛba ye. O b’a To Sass port bɛ Bɛn ni Sass-based systems caman ye i n’a fɔ a bɛ Se ka Kɛ cogo min na.
Sira | Cogojirali |
---|---|
lib/ |
Ruby gem code (Sass ka labɛncogo, Rails ani Compass ka jɛɲɔgɔnyaw) |
tasks/ |
Converter scripts (ka wuli ka taa sanfɛ Less ka kɛ Sass ye) . |
test/ |
Kɔrɔbɔliw minnu bɛ kɛ ka fɛnw lajɛ ɲɔgɔn fɛ |
templates/ |
Boussole pake manifeste |
vendor/assets/ |
Sass, JavaScript ani sɛbɛnnibolow |
Rakefile |
Kɔnɔna baara, i n’a fɔ rake ani convert |
Aw ye taa Sass port ka GitHub marayɔrɔ la walasa ka nin dosiye ninnu ye baara la.
Walasa ka kunnafoni sɔrɔ Bootstrap for Sass sigicogo n’a baaracogo kan, aw ye GitHub marayɔrɔ lajɛ readme . O ye sɔrɔyɔrɔ ye min bɛ waati la kosɛbɛ ani kunnafoniw bɛ sɔrɔ a kɔnɔ minnu bɛ se ka baara kɛ ni Rails, Compass, ani Sass poroze jɔnjɔnw ye.