Ebele ya biloko oyo ekoki kosalelama lisusu oyo etongami mpo na kopesa navigation, makebisi, popovers, mpe mingi mosusu.
Menu oyo ekoki kobongola, oyo ezali na contexte mpo na kolakisa baliste ya ba liens. Esalemi interactive na plugin ya JavaScript oyo ezali kokita .
- <ul class = "menu ya kokita" role = "menu" aria-labelledby = "Menu ya kokita" >
- <li><a tabindex = "-1" href = "#" > Mosala </a></li>
- <li><a tabindex = "-1" href = "#" > Mosala mosusu </a></li>
- <li><a tabindex = "-1" href = "#" > Eloko mosusu awa </a></li>
- <li kelasi = "mokabola" </li>
- <li><a tabindex = "-1" href = "#" > Lien oyo ekabwani </a></li>
- </ul>
Soki totali kaka menu oyo ezali kokita, talá HTML oyo esengeli. Esengeli o envelopper déclencheur ya dropdown na menu ya dropdown na kati ya .dropdown
, to élément mosusu oyo esakoli position: relative;
. Na nsima, salá kaka menu yango.
- <div class = "esika ya kokita" >
- <!-- Lien to bouton mpo na kobongola dropdown -->
- <ul class = "menu ya kokita" role = "menu" aria-labelledby = "dLabel" >
- <li><a tabindex = "-1" href = "#" > Mosala </a></li>
- <li><a tabindex = "-1" href = "#" > Mosala mosusu </a></li>
- <li><a tabindex = "-1" href = "#" > Eloko mosusu awa </a></li>
- <li kelasi = "mokabola" </li>
- <li><a tabindex = "-1" href = "#" > Lien oyo ekabwani </a></li>
- </ul>
- </div>
Aligner ba menu na droite mpe bakisa inclure ba niveaux ya ba déroulants ya kobakisa.
Bakisa .pull-right
na a .dropdown-menu
na droite aligner menu oyo ezali kokita.
- <ul class = "menu ya kokita ebenda-na loboko ya mobali" role = "menu" aria-labelledby = "dLabel" >
- ...
- </ul>
Bakisa .disabled
na a <li>
na dropdown mpo na ko désactiver lien.
- <ul class = "menu ya kokita" role = "menu" aria-labelledby = "Menu ya kokita" >
- <li><a tabindex = "-1" href = "#" > Lien ya mbala na mbala </a></li>
- <li class = "ezali na mosala te" ><a tabindex = "-1" href = "#" > Lien oyo ekangami </a></li>
- <li><a tabindex = "-1" href = "#" > Lien mosusu </a></li>
- </ul>
Bakisa niveau supplémentaire ya ba menu déroulant, ebimaka na hover lokola oyo ya OS X, na mua ba additions ya marquage simple. Bakisa .dropdown-submenu
na nyonso li
na menu ya kokita oyo ezali mpo na kosala styling automatique.
- <ul class = "menu ya kokita" role = "menu" aria-labelledby = "dLabel" >
- ...
- <li class = "menu ya moke ya kokita" >
- <a tabindex = "-1" href = "#" > Ba options mosusu </a>
- <ul class = "menu ya kokita" >
- ...
- </ul>
- </li>
- </ul>
Pagination simple inspirée par Rdio, bien pona ba apps na ba résultats ya recherche. Bloc ya monene ezali mpasi mpo na kozanga, ekoki ko évoluer na pete, mpe epesaka bisika ya minene ya ko cliquer.
- <div classe = "kosala lokasa" >
- <ul>
- <li><a href = "#" > Liboso </a></li>
- <li><a href = "#" > 1 </a></li> Ezali ndenge nini?
- <li><a href = "#" > 2 </a></li> Ezali ndenge nini?
- <li><a href = "#" > 3 </a></li> Ezali ndenge nini?
- <li><a href = "#" > 4 </a></li> Ezali ndenge nini?
- <li><a href = "#" > 5 </a></li> Ezali ndenge nini?
- <li><a href = "#" > Na sima </a></li>
- </ul>
- </div>
Ba liens ezali personnalisables pona ba circonstances différentes. Salelá .disabled
mpo na ba liens oyo okoki kofina te mpe .active
mpo na komonisa lokasa oyo ozali kosalela.
- <div classe = "kosala lokasa" >
- <ul>
- <li classe = "ezali na mosala te" ><a href = "#" > « </a></li>
- <li kelasi = "mosala" ><a href = "#" > 1 </a></li>
- ...
- </ul>
- </div>
Okoki na bolingi ya ko swap out ba ancres actifs to désactivés mpo na ba spans mpo na kolongola fonctionnalité ya clic tout en gardant ba styles oyo ekanamaki.
- <div classe = "kosala lokasa" >
- <ul>
- <li classe = "ezali na bozangi makoki" ><span> « </span></li> oyo azali kosala
- <li kelasi = "mosala" ><span> 1 </span></li>
- ...
- </ul>
- </div>
Fancy pagination ya monene to ya moke? Bakisa .pagination-large
, .pagination-small
, to .pagination-mini
mpo na bonene mosusu.
- <div class = "pagination ya lokasa-monene" >
- <ul>
- ...
- </ul>
- </div>
- <div classe = "kosala lokasa" >
- <ul>
- ...
- </ul>
- </div>
- <div class = "pagination ya lokasa-moke" >
- <ul>
- ...
- </ul>
- </div>
- <div class = "pagination ya lokasa-mini" >
- <ul>
- ...
- </ul>
- </div>
Bakisa moko ya bakelasi mibale oyo okoki kopona mpo na kobongola boyokani ya ba liens ya pagination: .pagination-centered
mpe .pagination-right
.
- <div class = "ezali na katikati ya bopanzi nsango" >
- ...
- </div>
- <div class = "pagination ya lokasa-na loboko ya mobali" >
- ...
- </div>
Ba liens ya mbangu ya liboso mpe ya sima mpo na ba implémentations ya pagination ya pete na marquage ya pole mpe ba styles. Ezali malamu mingi mpo na ba sites ya pete lokola ba blogs to ba magazines.
Par défaut, pager ezo centrer ba liens.
- <ul kelasi = "pager" >
- <li><a href = "#" > Liboso </a></li>
- <li><a href = "#" > Na sima </a></li>
- </ul>
Na lolenge mosusu, okoki kosala ete lien mokomoko ezala na mipanzi:
- <ul kelasi = "pager" >
- <li classe = "ya liboso" >
- <a href = "#" > Ezali ndenge nini? Mibange </a>
- </li>
- <li classe = "oyo elandi" >
- <a href = "#" > Ya sika → </a>
- </li>
- </ul>
Ba liens ya pager esalela pe .disabled
classe ya utilité générale à partir ya pagination.
- <ul kelasi = "pager" >
- <li class = "ya kala ekangamaki" >
- <a href = "#" > Ezali ndenge nini? Mibange </a>
- </li>
- ...
- </ul>
Ba étiquettes | Kosala bilembo |
---|---|
Mbeba | <span class="label">Default</span> |
Kolonga | <span class="label label-success">Success</span> |
Likebisi | <span class="label label-warning">Warning</span> |
Ntina | <span class="label label-important">Important</span> |
Info | <span class="label label-info">Info</span> |
Inverse | <span class="label label-inverse">Inverse</span> |
Nkombo | Ndakisa | Kosala bilembo |
---|---|---|
Mbeba | 1. 1. | <span class="badge">1</span> |
Kolonga | 2. 2 | <span class="badge badge-success">2</span> |
Likebisi | 4. | <span class="badge badge-warning">4</span> |
Ntina | 6 | <span class="badge badge-important">6</span> |
Info | 8 | <span class="badge badge-info">8</span> |
Inverse | 10 | <span class="badge badge-inverse">10</span> |
Mpo na kosalela yango na pɛtɛɛ nyonso, ba étiquettes mpe ba badges ekokwea kaka (na nzela ya moponi ya CSS :empty
) ntango makambo ezali te na kati.
Eloko moko ya pɛpɛlɛ, oyo ekoki kobongwana mpo na kolakisa makambo ya ntina na site na yo. Esalaka malamu na ba sites ya marketing mpe oyo ezali na makambo mingi.
Oyo ezali unité ya elombe ya pete, composant ya style jumbotron ya pete pona kobenga attention supplémentaire na ba contenus to ba informations oyo elakisami.
- <div class = "elombe-unité" >
- <h1> Motó ya likambo </h1>
- <p> Molongo ya bilembo </p>
- <p>
- <a classe = "btn btn-ya liboso btn-monene" >
- Yekola makambo mosusu
- </a>
- </p>
- </div>
Coquille moko ya pete mpo na h1
mpo na esika oyo ebongi mpe kokabola biteni ya makambo na lokasa moko. Ekoki kosalela h1
's default small
, élément lokola mingi ya ba composants misusu (na ba styles ya kobakisa).
- <div class = "motó ya lokasa" >
- <h1> Ndakisa motó ya lokasa <moke> Mokanda ya moke mpo na motó ya likambo </small></h1>
- </div>
Na ndenge ya libela, bililingi ya mikemike ya Bootstrap ebongisami mpo na kolakisa bililingi oyo ezali na boyokani na bilembo moke oyo esengeli.
Na mwa marquage ya kobakisa, ezali na nzela ya kobakisa lolenge nyonso ya makambo ya HTML lokola mitó ya makambo, baparagrafe, to ba boutons na kati ya bililingi mikemike.
Ba miniatures (liboso .media-grid
tii na v1.4) ezali malamu mpo na ba grille ya ba photos to ba vidéos, ba résultats ya recherche ya image, ba produits ya détail, ba portefeuilles, mpe mingi mosusu. Ekoki kozala ba liens to ba contenus statiques.
Kosala bilembo ya moke ezali pɛtɛɛ —a oyo ezali ul
na motángo nyonso ya li
biloko ezali kaka oyo esengeli. Ezali mpe super flexible, kopesa nzela na lolenge nyonso ya makambo na kaka mwa marquage mingi mpo na kozinga makambo na yo.
Na nsuka, eteni ya bililingi ya mike esalela bakelasi ya système ya grille oyo ezali —lokola .span2
to .span3
—mpo na kokamba bonene ya bililingi ya mike.
Ndenge tolobaki yango liboso, elembo oyo esengeli mpo na bililingi ya mikemike ezali pɛtɛɛ mpe ezali pɛtɛɛ. Tala ndenge ya kosala na ndenge ya liboso mpo na bilili oyo ezali na boyokani :
- <ul class = "bilili ya mike" >
- <li kelasi = "span4" >
- <a href = "#" classe = "elilingi ya moke" >
- <img data-src = "mobateli.js/300x200" alt = "" >
- </a>
- </li>
- ...
- </ul>
Mpo na makambo ya HTML oyo obongisi na bililingi ya mikemike, elembo ebongwanaka mwa moke. Pona ko permettre contenus ya niveau ya bloc partout, to swap the <a>
pona <div>
like donc:
- <ul class = "bilili ya mike" >
- <li kelasi = "span4" >
- <div class = "elilingi ya moke" >
- <img data-src = "mobateli.js/300x200" alt = "" >
- <h3> Etiketi ya elilingi ya moke </h3>
- <p> Liloba ya moke ya elilingi... </p>
- </div>
- </li>
- ...
- </ul>
Explorez ba options na yo nionso na ba classes ya grille ndenge na ndenge oyo ezali na yo. Okoki mpe kosangisa mpe kosala boyokani na ba taille ndenge na ndenge.
Zinga makomi nyonso mpe bouton ya koboya oyo okoki kopona mpo na .alert
kozwa nsango ya likebisi ya moboko.
- <div classe = "kebisi" >
- < lolenge ya bouton = "bouton" classe = "kanga" data-dismiss = "alerte" > × </bouton>
- <strong> Kebisa! </strong> Meilleur vérifier yo yo moko, ozali komonana malamu mingi te.
- </div>
Ba navigateurs Mobile Safari na Mobile Opera, en plus ya data-dismiss="alert"
attribut, esengaka un href="#"
pona ko rejeter ba alertes tango ya kosalela <a>
tag.
- <a href = "#" class = "kokanga" data-dismiss = "kebisi" > &ntango; </a>
Na lolenge mosusu, okoki kosalela <button>
eleman moko oyo ezali na attribut ya ba données, oyo toponaki kosala mpo na ba docs na biso. Ntango ozali kosalela <button>
, osengeli kotya yango type="button"
to mpe bakoki kotinda baformilɛrɛ na yo te.
- < lolenge ya bouton = "bouton" classe = "kanga" data-dismiss = "alerte" > × </bouton>
Salelá plugin ya ba alertes jQuery mpo na kobwaka ba alertes nokinoki mpe na pɛtɛɛ nyonso.
Mpo na ba messages ya milayi, bakisa padding na likolo mpe na se ya enveloppe ya alerte na kobakisa .alert-block
.
Meilleur vérifier yo self, ozali komonana malamu mingi te. Nulla vitae elit libero, oyo ezali na mbula-mpɛmbɛ oyo babengi pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
- <div class = "bokebisi-bokebisi" >
- < lolenge ya bouton = "bouton" classe = "kanga" data-dismiss = "alerte" > × </bouton>
- <h4> Kebisa! </h4>
- Meilleur vérifier yo self, ozali te...
- </div>
Bakisa ba classes optionnelles pona ko changer connotation ya alerte.
- <div class = "libunga ya likebisi ya likebisi" >
- ...
- </div>
- <div class = "alerte ya kokebisa-elonga" >
- ...
- </div>
- <div class = "liyebisi ya likebisi ya likebisi" >
- ...
- </div>
Barre ya progression par défaut na gradient vertical.
- <div classe = "kokende liboso" >
- <div classe = "barre" style = " bonene : 60 %; " ></div>
- </div>
Esalelaka gradient mpo na kosala effet rayé. Ezali te na IE7-8.
- <div class = "bokende liboso-striped" >
- <div classe = "barre" style = " bonene : 20 %; " ></div>
- </div>
Bakisa .active
na mpo na .progress-striped
ko animer ba rayures droite à gauche. Ezali te na ba versions nionso ya IE.
- <div class = "progrès progression-rayé active" >
- <div classe = "bar" style = " bonene : 40 %; " ></div>
- </div>
Tia ba barres ebele na kati moko .progress
pona ko stack yango.
- <div classe = "kokende liboso" >
- <div class = "bar bar-success" style = " bonene : 35 %; " ></div>
- <div class = "barre-barre-kebisi" style = " bonene : 20 %; " ></div>
- <div classe = "bar bar-danger" style = " bonene : 10 %; " ></div>
- </div>
Ba barres ya progrès esalela mwa ndambo ya bouton moko mpe ba classes ya alerte mpo na ba styles oyo ezali constant.
- <div class = "info ya bokende liboso" >
- <div classe = "bar" style = " bonene : 20 % " ></div>
- </div>
- <div class = "bokende liboso-elonga" >
- <div classe = "bar" style = " bonene : 40 % " ></div>
- </div>
- <div class = "kebisi ya bokende liboso" >
- <div classe = "barre" style = " bonene : 60 % " ></div>
- </div>
- <div class = "bokende liboso-likama" >
- <div classe = "bar" style = " bonene : 80 % " ></div>
- </div>
Ndenge moko na balangi ya makasi, tozali na ba barres ya progression ya ba rayures ndenge na ndenge.
- <div class = "progress progress-info progression-rayé" >
- <div classe = "bar" style = " bonene : 20 % " ></div>
- </div>
- <div class = "progression progrès-succès progression-rayé" >
- <div classe = "bar" style = " bonene : 40 % " ></div>
- </div>
- <div class = "bokende liboso-kebisi bokende liboso-striped" >
- <div classe = "barre" style = " bonene : 60 % " ></div>
- </div>
- <div class = "bokende liboso-likama bokende liboso-rayé" >
- <div classe = "bar" style = " bonene : 80 % " ></div>
- </div>
Ba barres ya progrès esalela ba gradients ya CSS3, ba transitions, na ba animations pona kozua ba effets na yango nionso. Makambo oyo esimbami te na IE7-9 to ba versions ya kala ya Firefox.
Ba versions ya kala koleka Internet Explorer 10 na Opera 12 esimbaka ba animations te.
Ba styles ya objet abstrait pona kotonga ba types ya ba composants ndenge na ndenge (lokola ba commentaires ya blog, ba Tweets, etc) oyo ezali na image oyo ezali aligné na gauche to na droite pembeni ya contenus textuel.
Media ya default epesaka nzela ya ko flotter objet ya media (bililingi, video, audio) na gauche to droite ya bloc ya contenus.
- <div classe = "bapanzi sango" >
- <a classe = "kobenda-na loboko ya mwasi" href = "#" >
- <img classe = "objet-media" data-src = "mobateli.js/64x64" >
- </a>
- <div class = "nzoto-ya-media" >
- <h4 class = "motó ya likambo ya media" > Motó ya likambo ya media </h4>
- ...
- <!-- Objet ya media oyo ekangami -->
- <div classe = "bapanzi sango" >
- ...
- </div>
- </div>
- </div>
Na mwa marquage ya likolo, okoki kosalela media na kati ya liste (ezali na ntina mpo na ba threads ya ba commentaires to ba listes ya ba articles).
Cras vandi amet nibh libero, na gravida nulla. Nulla vel metus scelerisque liboso ya kosamba. Cras purus odio, vestibulum na vulputate na, tempus viverra turpis.
- <ul class = "liste-ya bapanzi sango" >
- <li kelasi = "bapanzi sango" >
- <a classe = "kobenda-na loboko ya mwasi" href = "#" >
- <img classe = "objet-media" data-src = "mobateli.js/64x64" >
- </a>
- <div class = "nzoto-ya-media" >
- <h4 class = "motó ya likambo ya media" > Motó ya likambo ya media </h4>
- ...
- <!-- Objet ya media oyo ekangami -->
- <div classe = "bapanzi sango" >
- ...
- </div>
- </div>
- </li>
- </ul>
Salelá libulu lokola effet simple na élément moko mpo na kopesa yango effet inset.
- <div classe = "malamu" >
- ...
- </div>
Contrôle remplissage na ba coins arrondis na deux classes modificateurs optionnels.
- <div class = "malamu malamu-monene" >
- ...
- </div>
- <div class = "malamu malamu-moke" >
- ...
- </div>
Salelá elembo ya bokangami ya monene mpo na koboya makambo lokola ba modal mpe makebisi.
- <bouton classe = "kokanga" > &ntango; </bouton>
Ba appareils iOS esengaka un href="#"
pona ba événements ya cliquer soki olingi kosalela anchor.
- <a classe = "kokanga" href = "#" > &ntango; </a>
Ba classes simples, focusées pona ba petits affichages to ba tweaks ya comportement.
Flotter élément moko na gauche
- classe = "kobenda-na loboko ya mwasi".
- . kobenda - na loboko ya mwasi { .
- float : na loboko ya mwasi ;
- } .
Flotter élément moko na droite
- classe = "kobenda-na loboko ya mobali".
- . benda - na loboko ya mobali { .
- float : na loboko ya mobali ;
- } .
Bobongola langi ya eleman moko na#999
- classe = "ezali kokanga mongongo".
- . muted { .
- langi : #999;
- } .
Effacer na float
na élément nionso
- classe = "bolongoli malamu".
- . bobongisi ya polele { .
- * kosala zoom : 1 ;
- &: liboso ya , .
- &: nsima ya { .
- kolakisa : mesa ;
- makambo oyo ezali na kati : "" ;
- } .
- &: nsima ya { .
- polele : nyonso mibale ;
- } .
- } .