Fa'asolo ile v3.x
Ta'iala ile fa'afou mai le Bootstrap v2.x ile v3.x ma fa'amamafa suiga tetele, mea fou, ma mea ua aveese.
Ta'iala ile fa'afou mai le Bootstrap v2.x ile v3.x ma fa'amamafa suiga tetele, mea fou, ma mea ua aveese.
Bootstrap 3 e le fetaui i tua ma v2.x. Fa'aoga lenei vaega e fai ma ta'iala lautele ile fa'afou mai le v2.x ile v3.0. Mo se va'aiga lautele lautele, va'ai mea fou i le v3.0 fa'asalalauga fa'asalalauga.
O lenei laulau o lo'o fa'aalia ai suiga o sitaili i le va o le v2.x ma le v3.0.
Bootstrap 2.x | Bootstrap 3.0 |
---|---|
.row-fluid |
.row |
.span* |
.col-md-* |
.offset* |
.col-md-offset-* |
.brand |
.navbar-brand |
.navbar .nav |
.navbar-nav |
.nav-collapse |
.navbar-collapse |
.nav-toggle |
.navbar-toggle |
.btn-navbar |
.navbar-btn |
.hero-unit |
.jumbotron |
.icon-* |
.glyphicon .glyphicon-* |
.btn |
.btn .btn-default |
.btn-mini |
.btn-xs |
.btn-small |
.btn-sm |
.btn-large |
.btn-lg |
.alert |
.alert .alert-warning |
.alert-error |
.alert-danger |
.visible-phone |
.visible-xs |
.visible-tablet |
.visible-sm |
.visible-desktop |
Vaevae i.visible-md .visible-lg |
.hidden-phone |
.hidden-xs |
.hidden-tablet |
.hidden-sm |
.hidden-desktop |
Vaevae i.hidden-md .hidden-lg |
.input-block-level |
.form-control |
.control-group |
.form-group |
.control-group.warning .control-group.error .control-group.success |
.form-group.has-* |
.checkbox.inline .radio.inline |
.checkbox-inline .radio-inline |
.input-prepend .input-append |
.input-group |
.add-on |
.input-group-addon |
.img-polaroid |
.img-thumbnail |
ul.unstyled |
.list-unstyled |
ul.inline |
.list-inline |
.muted |
.text-muted |
.label |
.label .label-default |
.label-important |
.label-danger |
.text-error |
.text-danger |
.table .error |
.table .danger |
.bar |
.progress-bar |
.bar-* |
.progress-bar-* |
.accordion |
.panel-group |
.accordion-group |
.panel .panel-default |
.accordion-heading |
.panel-heading |
.accordion-body |
.panel-collapse |
.accordion-inner |
.panel-body |
Ua matou fa'aopoopoina elemene fou ma suia nisi elemene o iai. O sitaili fou nei pe fa'afou.
Elemene | Fa'amatalaga |
---|---|
Panela | .panel .panel-default .panel-body .panel-title .panel-heading .panel-footer .panel-collapse |
Lisi vaega | .list-group .list-group-item .list-group-item-text .list-group-item-heading |
Glyphicons | .glyphicon |
Jumbotron | .jumbotron |
Fa'asologa laiti fa'aopoopo (<768px) | .col-xs-* |
Laiti fa'asologa (≥768px) | .col-sm-* |
Fa'asologa masani (≥992px) | .col-md-* |
Fa'asologa tele (≥1200px) | .col-lg-* |
Vasega fa'aoga tali (≥1200px) | .visible-lg .hidden-lg |
Offsets | .col-sm-offset-* .col-md-offset-* .col-lg-offset-* |
Tu'i | .col-sm-push-* .col-md-push-* .col-lg-push-* |
Toso | .col-sm-pull-* .col-md-pull-* .col-lg-pull-* |
Tu'aiga maualuga maualuga | .input-sm .input-lg |
Vaega fa'aofi | .input-group .input-group-addon .input-group-btn |
Pulea fomu | .form-control .form-group |
Fa'aputu vaega o ki | .btn-group-xs .btn-group-sm .btn-group-lg |
Navbar tusitusiga | .navbar-text |
Ulutala Navbar | .navbar-header |
Fa'aigoa fa'amau / fualaau | .nav-justified |
Ata tali | .img-responsive |
Laina laulau fa'atatau | .success .danger .warning .active .info |
Pane fa'atatau | .panel-success .panel-danger .panel-warning .panel-info |
Modal | .modal-dialog .modal-content |
Ata laititi | .img-thumbnail |
Laiseai lelei | .well-sm .well-lg |
So'oga fa'ailoa | .alert-link |
O elemene nei ua pa'u pe suia ile v3.0.
Elemene | Aveese mai le 2.x | 3.0 Tutusa |
---|---|---|
Fua taga | .form-actions |
N/A |
Su'e fomu | .form-search |
N/A |
Fausia vaega ma fa'amatalaga | .control-group.info |
N/A |
Fa'amau-lautele fa'aoga tetele | .input-mini .input-small .input-medium .input-large .input-xlarge .input-xxlarge |
Fa'aoga .form-control ma le faiga fa'asologa . |
Fa'atumu tulaga poloka poloka | .input-block-level |
Leai se tutusa tuusa'o, ae tutusa fomu fa'atonuga . |
Fa'amau fa'afeagai | .btn-inverse |
N/A |
laina vai | .row-fluid |
.row (leai se isi fa'asologa fa'atulagaina) |
Pulea afifi | .controls |
N/A |
Pulea le laina | .controls-row |
.row pe.form-group |
Navbar totonu | .navbar-inner |
N/A |
Navbar tūsa'o vaeluaga | .navbar .divider-vertical |
N/A |
Fa'apalapala lalo | .dropdown-submenu |
N/A |
Fa'asagaga o fa'amau | .tabs-left .tabs-right .tabs-below |
N/A |
Vaega e mafai ona ta'ua i fualaau | .pill-content |
.tab-content |
Pane vaega e mafai ona fa'aigoa i fualaau | .pill-pane |
.tab-pane |
Nav lisi | .nav-list .nav-header |
Leai se tutusa tuusao, ae o le lisi o vaega ma .panel-group s e tutusa. |
Fesoasoani i luga ole laiga mo le pulea o fomu | .help-inline |
Leai se tutusa tonu, ae .help-block tutusa. |
Lanu e le o ni pa-tulaga alualu i luma | .progress-info .progress-success .progress-warning .progress-danger |
Fa'aaoga .progress-bar-* i luga ole .progress-bar laiga. |
O isi suiga ile v3.0 e le'o vave fa'aalia. Vasega faavae, sitaili autu, ma amioga ua fetuutuunai mo le fetuutuunai ma le tatou auala muamua feaveai . O se vaega lea o le lisi:
.form-control
vasega ile elemene ile sitaili..form-control
vasega o lo'o fa'aogaina ua 100% le lautele e ala i le fa'aletonu. Afifi mea fa'aoga i totonu <div class="col-*"></div>
e fa'atonutonu ai le lautele o totonu..badge
ua le toe i ai ni vasega (-success,-primary, etc..)..btn
e tatau fo'i ona fa'aoga .btn-default
e maua ai le fa'amau fa'amau..row
ua sua nei..img-responsive
mo le tele o le vai <img>
..glyphicon
, o loʻo faʻavae nei le font. E mana'omia fo'i e fa'ailoga se vasega fa'avae ma fa'ailoga (fa'ata'ita'iga .glyphicon .glyphicon-asterisk
)..modal-header
, .modal-body
, ma .modal-footer
vaega ua afifi nei i totonu .modal-content
ma .modal-dialog
mo le sili atu o sitaili feaveai ma amioga. E le gata i lea, e le tatau ona e toe faʻaoga .hide
i .modal
lau faʻailoga.remote
filifiliga modal ua tuʻuina nei i totonu o le .modal-content
(mai le v3.0.0 i le v3.0.3, i totonu o le .modal
) nai lo le .modal-body
. O lenei mea e mafai ai e oe ona faigofie ona fesuiaʻi le ulutala ma le vae o le modal, ae le naʻo le tino faʻapitoa.data-toggle="buttons"
nai lo o data-toggle="buttons-checkbox"
latou data-toggle="buttons-radio"
fa'ailoga.'show.bs.modal'
. Mo laupepa "faʻaalia" faʻaoga 'shown.bs.tab'
, ma isi.Mo nisi faʻamatalaga e uiga i le faʻaleleia i le v3.0, ma code snippets mai le alalafaga, vaʻai Bootply .