Ku ntikko ya scaffolding, ebintu bya HTML ebikulu bikolebwako sitayiro era ne byongerwako kiraasi ezigaziwa okusobola okuwa endabika empya, ekwatagana n’okuwulira.
Ekisenge kyonna eky’okuwandiika kyesigamiziddwa ku nkyukakyuka bbiri eza Less mu fayiro yaffe eya variables.less: @baseFontSize
ne @baseLineHeight
. Ekisooka ye base font-size ekozesebwa wonna ate ekyokubiri ye base line-height.
Tukozesa enkyukakyuka ezo, n’okubala okumu, okukola margins, paddings, ne line-heights ez’ekika kyaffe kyonna n’ebirala.
Nullam quis risus eget ekikuta ky’omusajja eky’okwewunda vel eu leo. Cum sociis natoque penatibus ne magnis dis parturient montes, nascetur okusekererwa mus. Nullam id dolor id nibh ebidduka ebidduka ebidduka.
Akatundu kafuule ak’enjawulo ng’ogattako .lead
.
Vivamus sagittis lacus vel augue laoreet ekika kya faucibus eky’okugula ebintu. Duis mollis, est etali ya bugagga.
Ekintu | Enkozesa | Kya kusalawo |
---|---|---|
<strong> |
Olw’okuggumiza akatundu k’ekiwandiiko n’ebikulu | Tewali |
<em> |
Olw’okuggumiza akatundu k’ekiwandiiko ng’olina situleesi | Tewali |
<abbr> |
Azinga ebifupi n'ebifupi okulaga enkyusa egaziyiziddwa ku hover | Muteekemu .initialism kiraasi ku nfunyiro ennene. |
<address> |
Okumanya ebikwata ku jjajjaawe asinga okumpi oba omubiri gwonna ogw’omulimu | Kuuma ensengeka ng’omaliriza ennyiriri zonna ne<br> |
Fusce dapibus , tellus ac cursus commodo , tortor mauris ekirungo ekizimbulukusa nibh , ekizimbulukusa massa justo okutuula amet risus. Ekimera ekiyitibwa Maecenas faucibus ekiwuka ekiyitibwa mollis ekiyitibwa interdum. Nulla vitae elit libero, eddagala eriyitibwa pharetra augue.
Note: Wulira nga oli waddembe okukozesa <b>
era <i>
mu HTML5, naye enkozesa yaabwe ekyuse katono. <b>
kigendereddwamu okulaga ebigambo oba ebisoko awatali kutuusa bukulu bwa kwongerako ate nga <i>
kisinga kuba kya ddoboozi, ebigambo eby’ekikugu n’ebirala.
Wano waliwo ebyokulabirako bibiri ku ngeri <address>
tag gy’esobola okukozesebwamu:
Ebifupi ebirina title
ekintu birina ensalosalo eya wansi eriko ennukuta entangaavu n’akabonero k’obuyambi ku hover. Kino kiwa abakozesa extra indication ekintu ekigenda okulagibwa ku hover.
Okwongerako initialism
ekibiina ku kifupi okwongera ku nkwatagana y’okuwandiika ng’okiwa obunene bw’ebiwandiiko obutono katono.
HTML kye kintu ekisinga obulungi okuva ku mugaati ogwasalibwa.
Enfunyiro y'ekigambo attribute ye attr .
Ekintu | Enkozesa | Kya kusalawo |
---|---|---|
<blockquote> |
Ekintu eky’omutendera gwa bbulooka eky’okujuliza ebirimu okuva mu nsibuko endala | Okwongerako .pull-left ne .pull-right classes ku floated options |
<small> |
Ekintu eky’okwesalirawo eky’okugattako ekijuliziddwa ekitunuulidde omukozesa, mu ngeri entuufu omuwandiisi alina omutwe gw’omulimu | Teeka <cite> okwetooloola omutwe oba erinnya ly’ensibuko |
Okussaamu ekigambo ekiziyiza, zingako HTML<blockquote>
yonna nga ekijuliziddwa. Ku bigambo ebitereevu tusaba .<p>
Teekamu ekintu eky’okwesalirawo <small>
okujuliza ensibuko yo era ojja kufuna em dash —
nga tennabaawo olw’ebigendererwa by’okukola sitayiro.
- <okuziyiza>
- <p> Lorem ipsum dolor okutuula amet, okusengejja okusiiga elit. Ennamba enzijuvu posuere erat a ante venenatis. </p>
- <small> Omuntu ow'ettutumu </small>
- </blockquote> nga bwe kiri
Ebiwandiiko ebisookerwako bikolebwa sitayiro nga bwe biri:
Lorem ipsum dolor okutuula amet, okusengejja amasavu elit. Ennamba enzijuvu posuere erat a ante venenatis.
Omuntu ow'ettutumu mu Body of work
Okulengejja blockquote yo ku ddyo, yongerako class="pull-right"
:
Lorem ipsum dolor okutuula amet, okusengejja amasavu elit. Ennamba enzijuvu posuere erat a ante venenatis.
Omuntu ow'ettutumu mu Body of work
<ul>
<ul class="unstyled">
<ol>
<dl>
<dl class="dl-horizontal">
Emitwe gigulumivu! Enkalala z'ennyonnyola ez'okwebungulula zijja kusalako ebigambo ebiwanvu ennyo okutuuka mu kutereeza ennyiriri eya kkono text-overflow
. Mu viewports enfunda, zijja kukyuka okudda ku default stacked layout.
Zinga ebitundutundu bya koodi ebiri mu layini ne <code>
.
- Okugeza , ekitundu <code> < / code > kisaana okuzingibwa nga mu layini .
Kozesa <pre>
ku layini eziwera eza koodi. Kakasa nti otolokako enkoona zonna mu koodi okusobola okulaga obulungi.
<p>Ekiwandiiko eky'okulabirako wano...</p>
- <pre>
- <p>Ekiwandiiko eky'okulabirako wano...</p>
- </pre>
Weetegereze: Kakasa nti okuuma code munda mu <pre>
tags okumpi ne kkono nga bwe kisoboka; kijja kulaga tabu zonna.
Oyinza okugattako .pre-scrollable
kiraasi ejja okuteekawo max-height ya 350px n'okuwa y-axis scrollbar.
Twala <pre>
elementi y’emu era osseeko kiraasi bbiri ez’okwesalirawo okusobola okulongoosa mu kulaga.
- <p> Ekyokulabirako ky'ebiwandiiko wano... </p>
- <pre class = "ekiwandiiko ekirabika obulungi."
- linenums" >
- <p>Ekiwandiiko eky'okulabirako wano...</p>
- </pre>
Wano wefunire google-code-prettify era olabe readme engeri gy'okozesaamu.
Erinnya | Okunnyonnyola |
---|---|
<table> |
Okuzinga elementi okulaga data mu nkola ya tabular |
<thead> |
Ekintu kya konteyina eky'ennyiriri z'omutwe gw'emmeeza ( <tr> ) okuwandiika empagi z'emmeeza |
<tbody> |
Ekintu ekitereka eky’ennyiriri z’emmeeza ( <tr> ) mu mubiri gw’emmeeza |
<tr> |
Ekintu ekitereka eky'ekibinja ky'obutoffaali bw'emmeeza ( <td> oba <th> ) ekirabika ku lunyiriri lumu |
<td> |
Akasenge k'emmeeza akasookerwako |
<th> |
Akasengejja k’emmeeza ak’enjawulo ku mpagi (oba olunyiriri, okusinziira ku bunene n’okuteekebwa) ebiwandiiko Kiteekwa okukozesebwa munda mu a <thead> |
<caption> |
Ennyonyola oba mu bufunze ebyo emmeeza by’ekwata naddala eby’omugaso eri abasomi ku ssirini |
- <emmeeza>
- <omutwe>
- <tr>
- <th> ... </th> nga bwe kiri
- <th> ... </th> nga bwe kiri
- </tr>
- </tomutwe>
- <omubiri>
- <tr>
- <td> ... </td> nga bwe kiri
- <td> ... </td> nga bwe kiri
- </tr>
- </tbody>
- </emmeeza>
Erinnya | Essomo | Okunnyonnyola |
---|---|---|
Okukosamu | Tewali | Tewali sitayiro, empagi n’ennyiriri zokka |
Kya bulijjo | .table |
Layini zokka eziwanvuye wakati w’ennyiriri |
Eriko ensalo | .table-bordered |
Azingulula enkoona n’ayongerako ensalosalo ey’ebweru |
Zebra-omusono | .table-striped |
Okwongera langi enzirugavu ennyo ey’emabega ku nnyiriri ezitali zimu (1, 3, 5, n’ebirala) . |
Efuuse enfuufu | .table-condensed |
Esala vertical padding mu bitundu bibiri, okuva ku 8px okutuuka ku 4px, munda mu byonna td ne th elements |
Emmeeza zikolebwa mu ngeri ey’otoma nga zirina ensalosalo ntono zokka okukakasa nti zisoma n’okukuuma ensengeka. Nga olina 2.0, .table
kiraasi yeetaagibwa.
- < ekibiina ky'emmeeza = "emmeeza" >
- ...
- </emmeeza>
# . | Erinnya erisooka | Erinnya erisemba | Erinnya ly'omukozesa |
---|---|---|---|
1. | Mark | Otto bwe yabadde | @mdo |
2. | Yakobo | Thornton nga bwe kiri | @obunene |
3. | Larry | Ekinyonyi |
Funa akatono akalungi n’emmeeza zo ng’oyongerako zebra-striping —mala yongera ku .table-striped
kiraasi.
Note: Emmeeza eziriko emisono zikozesa :nth-child
CSS selector era teziri mu IE7-IE8.
- < ekibiina ky'emmeeza = "emmeeza eriko emisono" >
- ...
- </emmeeza>
# . | Erinnya erisooka | Erinnya erisemba | Erinnya ly'omukozesa |
---|---|---|---|
1. | Mark | Otto bwe yabadde | @mdo |
2. | Yakobo | Thornton nga bwe kiri | @obunene |
3. | Larry | Ekinyonyi |
Oteekamu ensalosalo okwetooloola emmeeza yonna n’enkoona ezeetooloovu okusobola okulabika obulungi.
- <table class = "emmeeza eriko ensalosalo" >
- ...
- </emmeeza>
# . | Erinnya erisooka | Erinnya erisemba | Erinnya ly'omukozesa |
---|---|---|---|
1. | Mark | Otto bwe yabadde | @mdo |
Mark | Otto bwe yabadde | @getbootstrap nga bwe kiri | |
2. | Yakobo | Thornton nga bwe kiri | @obunene |
3. | Larry Ekinyonyi |
Fuula emmeeza zo okubeera enzibu ng’ogattako .table-condensed
ekibiina okusala padding y’obutoffaali bw’emmeeza mu bitundu bibiri (okuva ku 8px okutuuka ku 4px).
- <emmeeza class = "emmeeza emmeeza-condensed" >
- ...
- </emmeeza>
# . | Erinnya erisooka | Erinnya erisemba | Erinnya ly'omukozesa |
---|---|---|---|
1. | Mark | Otto bwe yabadde | @mdo |
2. | Yakobo | Thornton nga bwe kiri | @obunene |
3. | Larry Ekinyonyi |
Wulira nga oli waddembe okugatta kiraasi yonna ku mmeeza okutuuka ku ndabika ez’enjawulo ng’okozesa kiraasi yonna eriwo.
- <table class = "emmeeza emmeeza-emisono emmeeza-ensalosalo emmeeza-condensed" >
- ...
- </emmeeza>
Amannya mu bujjuvu | |||
---|---|---|---|
# . | Erinnya erisooka | Erinnya erisemba | Erinnya ly'omukozesa |
1. | Mark | Otto bwe yabadde | @mdo |
2. | Yakobo | Thornton nga bwe kiri | @obunene |
3. | Larry Ekinyonyi |
Ekitundu ekisinga obulungi ku foomu mu Bootstrap kwe kuba nti byonna by’oyingiza n’ebifuga birabika bulungi nnyo ne bw’oba obizimba otya mu markup yo. Tewali HTML esukkiridde yeetaagibwa, naye tuwa patterns eri abo abazeetaaga.
Ensengeka ezisingako obuzibu zijja ne kiraasi ennyimpimpi era ezisobola okulinnyisibwa okusobola okwanguyirwa okukola sitayiro n’okusiba ebibaddewo, kale obikkiddwa ku buli mutendera.
Bootstrap ejja n'obuwagizi bw'ebika bina eby'ensengeka za foomu:
Ebika eby’enjawulo eby’ensengeka za foomu byetaaga enkyukakyuka ezimu okussaako akabonero, naye ebifuga byennyini bisigala era byeyisa kye kimu.
Ffoomu za Bootstrap zirimu sitayiro z'ebifuga byonna eby'omusingi nga okuyingiza, textarea, n'okulonda kw'osuubira. Naye era ejja n’ebitundu ebiwerako eby’enjawulo nga appended ne prepended inputs n’okuwagira enkalala za checkboxes.
Embeera nga ensobi, okulabula, n’obuwanguzi bibaamu ku buli kika ky’okufuga foomu. Era mulimu sitayiro z’okufuga abalema.
Bootstrap egaba markup ennyangu n'emisono ku sitayiro nnya eza foomu za web eza bulijjo.
Erinnya | Essomo | Okunnyonnyola |
---|---|---|
Vertical (ekisookerwako) . | .form-vertical (tekyetaagisa) . |
Ebiwandiiko ebitumbiddwa, ebiteekeddwa ku kkono ku bifuga |
Mu layini | .form-inline |
Label ekwatagana ku kkono n'ebifuga inline-block ku sitayiro entono |
Okunoonya | .form-search |
Extra-rounded text input for a bulijjo okunoonya aesthetic |
Okwegolola | .form-horizontal |
Lengejja obubonero obulaga ku kkono, ku ddyo ku layini y’emu n’ebifuga |
Smart era lightweight defaults nga tewali markup ya kwongerako.
- <foomu kiraasi = "bulungi" >
- <label> Erinnya ly'akabonero </label>
- <input type = "text" class = "span3" ekifo = "Wandiika ekintu..." >
- <span class = "help-block" > Eky'okulabirako ekiwandiiko ky'obuyambi eky'omutendera gw'okuziyiza wano. </span>
- <label class = "akabokisi k'okukebera" >
- <input type = "checkbox" > Nkebera
- </label>
- <button type = "okuweereza" class = "btn" > Okuwaayo </button>
- </form>
Okwongera .form-search
ku foomu ne .search-query
ku input
.
- <form class = "obulungi ffoomu-okunoonya" >
- <input type = "text" class = "okubuuza-okunoonya-okuyingiza-omukutu" >
- < ekika kya button = "okuweereza" class = "btn" > Noonya </button>
- </form>
Okwongera .form-inline
ku finesse vertical alignment n'ebanga ly'ebifuga ffoomu.
- <form class = "bulungi ffoomu-mu layini" >
- < ekika ky'okuyingiza = "ekiwandiiko" ekibiina = "okuyingiza-ekitono" ekifo = "Email" >
- < ekika ky'okuyingiza = "ekigambo ky'okuyita" ekibiina = "okuyingiza-ekitono" ekifo = "Ekigambo ky'okuyingira" >
- <label class = "akabokisi k'okukebera" >
- <input type = "checkbox" > Nzijukira
- </label>
- < ekika kya button = "okuweereza" class = "btn" > Yingira </button>
- </form>
Ku ddyo biragiddwa byonna ebifuga foomu ebisookerwako bye tuwagira. Laba wano olukalala lw'amasasi:
Kubanga waggulu ekyokulabirako ensengeka ya foomu, wuuno akabonero akakwatagana n'ekibinja ekisooka eky'okuyingiza n'okufuga. Ebika bya .control-group
, .control-label
, ne .controls
byonna byetaagibwa okukola sitayiro.
- < ekibiina kya ffoomu = "ekifaananyi-eky'okwebungulula" >
- <ekifo ky'ennimiro>
- <legend> Ekiwandiiko ky'olugero </legend>
- <div class = "ekibinja-ekifuga" >
- <label class = "control-label" for = "okuyingiza01" > Okuyingiza ebiwandiiko </label>
- <div class = "ebifuga" >
- < ekika ky'okuyingiza = "ekiwandiiko" ekibiina = "okuyingiza-xlarge" id = "okuyingiza01" >
- <p class = "help-block" > Ekiwandiiko ky'obuyambi ekiwagira </p>
- </div> nga bwe kiri
- </div> nga bwe kiri
- </ennimiroset>
- </form>
Bootstrap erimu emisono egy'okussa essira n'embeera eziwagirwa browser disabled
. Tuggyawo Webkit eya bulijjo outline
ne tussaako a box-shadow
mu kifo kyayo ku :focus
.
Era erimu emisono gy'okukakasa ensobi, okulabula, n'obuwanguzi. Okukozesa, yongera ekibiina ky'ensobi ku kyetoolodde .control-group
.
- <ekifo ky'ennimiro
- class = "ensobi y'ekibinja ekifuga" >
- ...
- </ennimiroset>
Ebibinja by’ebiyingizibwa —nga biriko ebiwandiiko ebigattibwako oba ebiwandiikiddwa nga tebinnabaawo —biwa engeri ennyangu ey’okuwa ensonga ezisingawo ku biyingizibwa byo. Ebyokulabirako ebikulu mulimu akabonero ka @ ak’amannya g’abakozesa Twitter oba $ ku by’ensimbi.
Okutuuka ku v1.4, Bootstrap yali yeetaaga markup ey’enjawulo okwetoloola checkboxes ne radios okuziteeka. Kati, nsonga nnyangu ey'okuddiŋŋana <label class="checkbox">
ekizinga <input type="checkbox">
.
Inline checkboxes ne radios nabyo biwagirwa. Just add .inline
to any .checkbox
oba .radio
era omaze.
Okukozesa prepend oba append inputs mu inline form, kakasa nti oteeka .add-on
ne input
ku line y’emu, awatali spaces.
Okwongerako ekiwandiiko ky'obuyambi ku biyingizibwa byo mu foomu, ssaamu ekiwandiiko ky'obuyambi mu layini nga kiriko <span class="help-inline">
oba ekiziyiza ky'ekiwandiiko ky'obuyambi nga kiriko <p class="help-block">
oluvannyuma lw'ekintu ky'okuyingiza.
Mu kifo ky’okufuula buli kabonero okusaba okw’enjawulo, tubikuŋŋaanyizza mu sprite —ekibinja ky’ebifaananyi mu fayiro emu ekozesa CSS okuteeka ebifaananyi ne background-position
. Eno y’enkola y’emu gye tukozesa ku mukutu gwa Twitter.com era etukoledde bulungi.
Ebika byonna eby’ebifaananyi bisookerwako n’okuteeka ebanga mu .icon-
mannya amatuufu n’okupima obuwanvu, okufaananako nnyo ebitundu byaffe ebirala. Kino kijja kuyamba okwewala okukontana n’ebikozesebwa ebirala.
Glyphicons etukkirizza okukozesa Halflings eziteekeddwa mu open-source toolkit yaffe kasita tuwa link n'ebbanja wano mu docs. Nsaba olowooze ku ky’okukola kye kimu mu pulojekiti zo.
Bootstrap ekozesa <i>
tag ku bifaananyi byonna, naye tebirina case class —entandikwa yokka egabanyizibwa. Okusobola okukozesa, teeka koodi eno wammanga kumpi wonna:
- <i class = "okunoonya-akabonero" </i>
Waliwo n’emisono egiriwo ku bifaananyi ebikyusiddwa (ebyeru), ebikoleddwa nga byetegefu nga biriko kiraasi emu ey’enjawulo:
- <i class = "akabonero-okunoonya ekifaananyi-enjeru" ></i>
Waliwo kiraasi 140 z’osobola okulondamu ku bifaananyi byo. Just add an <i>
tag nga eriko classes entuufu era obeera set. Olukalala lwonna osobola okulusanga mu sprites.less oba wano wennyini mu kiwandiiko kino.
Emitwe gigulumivu! Bw’oba okozesa ku mabbali g’ennyiriri z’ebiwandiiko, nga mu buttons oba nav links, kakasa nti oleka ebanga oluvannyuma lwa <i>
tag okusobola okuteeka ebanga obulungi.
Ebifaananyi birungi nnyo, naye omuntu yandibikozesezza wa? Wano waliwo ebirowoozo ebitonotono:
Mu bukulu, wonna w’osobola okuteeka <i>
tag, osobola okuteeka akabonero.
Zikozese mu buttons, ebibinja bya buttons ku toolbar, navigation, oba prepended form inputs.