Okusenguka okudda ku v4
Bootstrap 4 ye kuddamu okuwandiika okunene okwa pulojekiti yonna. Enkyukakyuka ezisinga okweyoleka zifunze wansi, ne zigobererwa enkyukakyuka ezisingawo ezenjawulo ku bitundu ebikwatagana.
Okuva ku Beta 3 okudda ku stable v4.0 release yaffe, tewali nkyukakyuka zimenya, naye waliwo enkyukakyuka ezimu ezeeyoleka.
-
Ebikozesebwa mu kukuba ebitabo ebimenyese bitereezeddwa. Emabegako, okukozesa
.d-print-*
kiraasi kyandisobodde okusazaamu.d-*
kiraasi endala yonna mu ngeri etasuubirwa. Kati, zikwatagana n’ebikozesebwa byaffe ebirala eby’okulaga era zikola ku mikutu egyo gyokka (@media print
). -
Egaziyiziddwa ebikozesebwa eby'okulaga okukuba ebitabo ebiriwo okukwatagana n'ebikozesebwa ebirala. Beta 3 n'okudda waggulu bokka baalina
block
,inline-block
,inline
, nenone
. Stable v4 yayongeddekoflex
,inline-flex
,table
,table-row
, netable-cell
. -
Okulaga okulaga okusooka okukuba ebitabo okutereezeddwa mu bulawuzi zonna n'emisono emipya egy'okukuba egyalaga
@page
size
.
So nga Beta 2 yalaba enkyukakyuka zaffe ezisinga obungi ez’okumenya mu kiseera kya beta phase, naye tukyalina ntono ezaali zeetaaga okukolebwako mu Beta 3 release. Enkyukakyuka zino zikola singa oba okyusa ku Beta 3 okuva ku Beta 2 oba enkyusa yonna enkadde eya Bootstrap.
- Yaggyewo
$thumbnail-transition
enkyukakyuka etakozesebwa. Tetwali tukyusa kintu kyonna, kale kyali kya koodi ya kwongerako yokka. - Package ya npm tekyalimu fayiro ndala yonna okuggyako fayiro zaffe ez'ensibuko ne dist; singa oba weesigamyeko era nga wali oddukanya script zaffe ng'oyita mu
node_modules
folda, wandibadde okyusa enkola yo ey'emirimu.
-
Ddamu okuwandiika ebibokisi byombi eby'ennono n'ebya bulijjo ne leediyo. Kati, zombi zirina ensengeka ya HTML ekwatagana (ey’ebweru
<div>
ne muganda<input>
ne<label>
) n’emisono gy’ensengeka gye gimu (stacked default, inline ne modifier class). Kino kitusobozesa okukola sitayiro y’akabonero okusinziira ku mbeera y’okuyingiza, okwanguyiza okuwagiradisabled
ekintu (eyali kyetaagisa kiraasi y’omuzadde) n’okuwagira obulungi okukakasa foomu yaffe.Nga ekitundu ku kino, tukyusizza CSS ey'okuddukanya
background-image
s eziwera ku custom form checkboxes ne radios. Emabegako, ekintu kati ekyaggyibwawo.custom-control-indicator
kyalina langi y'emabega, gradient, n'akabonero ka SVG. Okulongoosa background gradient kyali kitegeeza okukyusa ebyo byonna buli lwe weetaaga okukyusa emu yokka. Kati, tulina.custom-control-label::before
for the fill ne gradient era.custom-control-label::after
ekwata icon.Okukola okukebera okw'ennono mu layini, yongerako
.custom-control-inline
. -
Ekisunsuddwa ekipya eky'ebibinja bya button ebisinziira ku kuyingiza. Mu kifo ky’okukola
[data-toggle="buttons"] { }
sitayiro n’enneeyisa, tukozesadata
ekintu ekyo ku nneeyisa za JS zokka era ne twesigama ku.btn-group-toggle
kiraasi empya olw’okukola sitayiro. -
Yaggyibwawo
.col-form-legend
nga bawagira eky'okulongoosaamu katono.col-form-label
. Mu ngeri eno.col-form-label-sm
era.col-form-label-lg
esobola okukozesebwa ku<legend>
elementi n’obwangu. -
Ebiyingizibwa mu fayiro eza bulijjo byafuna enkyukakyuka ku nkyukakyuka yaabwe eya
$custom-file-text
Sass. Tekyali maapu ya Sass eriko ekiyumba era kati egaba amaanyi mu lunyiriri lumu lwokka —bbaatuuniBrowse
nga kati eyo ye kintu kyokka eky’obulimba ekikolebwa okuva mu Sass yaffe. EkiwandiikoChoose file
kati kiva mu.custom-file-label
.
-
Input group addons kati specific to their placement relative to an input. Tusuddewo
.input-group-addon
era.input-group-btn
ku bibiina bibiri ebipya,.input-group-prepend
era.input-group-append
. Olina okukozesa mu bulambulukufu append oba prepend kati, okwanguyiza ekitundu ekinene ekya CSS yaffe. Munda mu append oba prepend, teeka buttons zo nga bwe zandibadde awalala wonna, naye zingako ebiwandiiko mu.input-group-text
. -
Emisono gy'okukakasa kati giwagirwa, nga bwe kiri ku biyingizibwa ebingi (wadde nga osobola okukakasa okuyingiza kumu kwokka buli kibinja).
-
Sizing classes zirina okuba ku muzadde
.input-group
so si elements za form ssekinnoomu.
Nga tuli mu beta, tuluubirira obutaba na nkyukakyuka yonna emenya. Kyokka bulijjo ebintu tebitambula nga bwe byategekebwa. Wansi waliwo enkyukakyuka ezimenya z’olina okujjukira ng’ova ku Beta 1 okudda ku Beta 2.
- Eggiddwawo
$badge-color
enkyukakyuka n'enkozesa yaayo ku.badge
. Tukozesa omulimu gw’enjawulo mu langi okulondacolor
okusinziira kubackground-color
, kale enkyukakyuka tekyetaagisa. grayscale()
Omulimu gukyusiddwa erinnyagray()
eri okwewala okumenya obutakkaanyagrayscale
n'omusengejja enzaalwa ya CSS.- Yakyusibwa erinnya
.table-inverse
,.thead-inverse
, ne.thead-default
ku.*-dark
ne.*-light
, nga ekwatagana ne langi zaffe ezikozesebwa awalala. - Emmeeza eziddamu kati zikola kiraasi ku buli kifo ekimenya giridi. Kino kimenyawo Beta 1 mu ngeri nti the
.table-responsive
gy'obadde okozesa esinga kufaanana.table-responsive-md
. Kati oyinza okukozesa.table-responsive
oba.table-responsive-{sm,md,lg,xl}
nga bwe kyetaagisa. - Yasuula obuwagizi bwa Bower nga omuddukanya package abadde avudde ku nkola endala (okugeza, Yarn oba npm). Laba bower/bower#2298 okumanya ebisingawo.
- Bootstrap ekyalina jQuery 1.9.1 oba okusingawo, naye oweebwa amagezi okukozesa version 3.x okuva v3.x's supported browsers ze Bootstrap z'ewagira plus v3.x erina ebimu ku bitereezeddwa mu by'okwerinda.
- Yaggyewo ekibiina ekitakozesebwa
.form-control-label
. Bwoba nga wakola okukozesa kiraasi eno, yali duplicate ya.col-form-label
class eya vertically centered a<label>
ne it's associated input mu horizontal form layouts. - Yakyusa
color-yiq
okuva ku mixin eyalimucolor
eky'obugagga okudda ku mulimu oguzza omuwendo, okukusobozesa okugukozesa ku kintu kyonna ekya CSS. Okugeza, mu kifo kyacolor-yiq(#000)
, wandiwandiisecolor: color-yiq(#000);
.
- Yaleeta enkozesa empya
pointer-events
ku modals. Eky’ebweru.modal-dialog
kiyita mu bibaddewo nepointer-events: none
for custom click handling (okusobozesa okumala okuwuliriza ku.modal-backdrop
for any clicks), n’oluvannyuma counteract it for the actual.modal-content
withpointer-events: auto
.
Wano waliwo ebintu ebinene ebya tikiti by’onooyagala okumanya ng’ova ku v3 okudda ku v4.
- Yasuula obuwagizi bwa IE8, IE9, ne iOS 6. v4 kati ya IE10+ yokka ne iOS 7+. Ku mikutu egyetaaga ekimu ku ebyo, kozesa v3.
- Yayongeddeko obuwagizi obutongole eri Android v5.0 Lollipop's Browser ne WebView. Enkyusa ezasooka eza Android Browser ne WebView zisigala nga ziwagirwa mu ngeri etali ntongole zokka.
- Flexbox ekozesebwa nga bwe kibadde. Okutwaliza awamu kino kitegeeza okuva ku biwujjo n’ebirala okubuna ebitundu byaffe.
- Yakyusibwa okuva ku Less okudda ku Sass ku fayiro zaffe eza CSS ez'ensibuko.
- Yakyusibwa okuva
px
ku okuddarem
nga ekitundu kyaffe ekikulu ekya CSS, wadde nga pixels zikyakozesebwa ku kubuuza kw'emikutu n'enneeyisa ya grid nga ebifo eby'okulaba eby'ebyuma tebikosebwa sayizi ya kika. - Enkula y’empandiika mu nsi yonna yeeyongera okuva
14px
ku16px
. - Yalongoosa emitendera gya grid okwongerako eky'okutaano (okukola ku byuma ebitono ku
576px
ne wansi) era n'aggyawo-xs
infix okuva mu bibiina ebyo. Okugeza:.col-6.col-sm-4.col-md-3
. - Yakyusa omulamwa ogw'enjawulo ogw'okwesalirawo n'eby'okulonda ebisobola okusengekebwa okuyita mu nkyukakyuka za SCSS (okugeza,
$enable-gradients: true
). - Enkola y'okuzimba erongooseddwa okukozesa omuddirirwa gwa npm scripts mu kifo kya Grunt. Laba
package.json
scripts zonna, oba project yaffe readme ku byetaago by'enkulaakulana y'ekitundu. - Enkozesa ya Bootstrap etali ya kuddamu tekyawagirwa.
- Yasuula Customizer ku yintaneeti n'awagira ebiwandiiko ebisingawo eby'okuteekawo n'okuzimba okulongooseddwa.
- Yayongeddeko amakumi g'ebika by'ebikozesebwa ebipya eby'ebibiri ebya bulijjo ebya CSS eby'omuwendo n'amakubo amampi ag'ebanga ku margin/padding.
- Yasengulwa ku flexbox.
- Yayongeddeko obuwagizi bwa flexbox mu grid mixins ne classes ezitegekeddwa edda.
- Nga ekitundu ku flexbox, mwalimu obuwagizi eri kiraasi z’okulaganya okw’okwesimbye n’okw’okwesimbye.
- Amannya ga kiraasi za grid agatereezeddwa n'omutendera omupya ogwa grid.
- Yayongeddeko omutendera omupya
sm
ogwa grid wansi768px
okusobola okufuga ennyo granular. Kati tulinaxs
,sm
,md
,lg
, nexl
. Kino era kitegeeza nti buli tier ebadde bumped up one level (kale.col-md-6
mu v3 kati eri.col-lg-6
mu v4). xs
grid classes zikyusiddwa obutakwetaagisa infix okukiikirira obulungi ennyo nti zitandika okukozesa sitayiro kumin-width: 0
so si muwendo gwa pixel oguteekeddwawo. Mu kifo kya.col-xs-6
, kati kiri.col-6
. Emitendera emirala gyonna egya grid gyetaaga infix (okugeza,sm
).
- Yayongeddeko omutendera omupya
- Enkula za grid ezitereezeddwa, mixins, n'enkyukakyuka.
- Grid gutters kati zirina Sass map osobole okulaga specific gutter widths ku buli breakpoint.
- Updated grid mixins okukozesa
make-col-ready
prep mixin ne amake-col
okuteekawoflex
nemax-width
ku individual column sizing. - Yakyusa grid system media query breakpoints ne container widths okubala grid tier empya n'okukakasa nti empagi zigabanyizibwa kyenkanyi ku
12
ku max width yazo. - Ebifo ebikutukamu giridi n’obugazi bwa konteyina kati bikwatibwa nga biyita mu maapu za Sass (
$grid-breakpoints
ne$container-max-widths
) mu kifo ky’enkyukakyuka entonotono ez’enjawulo. Bino@screen-*
bikyusakyusa ddala enkyukakyuka era bikusobozesa okulongoosa mu bujjuvu emitendera gya grid. - Ebibuuzo by’emikutu gy’amawulire nabyo bikyuse. Mu kifo ky’okuddamu okulangirira kwaffe okw’okubuuza kw’emikutu gy’amawulire n’omuwendo gwe gumu buli mulundi, kati tulina
@include media-breakpoint-up/down/only
. Kati, mu kifo ky’okuwandiika@media (min-width: @screen-sm-min) { ... }
, osobola okuwandiika@include media-breakpoint-up(sm) { ... }
.
- Ebipande ebisuuliddwa, ebifaananyi ebitonotono, n’enzizi ez’ekitundu ekipya ekizingiramu byonna, kaadi .
- Yasudde efonti y'akabonero ka Glyphicons. Bw’oba weetaaga ebifaananyi, ebimu ku by’oyinza okukola bye bino:
- enkyusa ey’okungulu eya Glyphicons
- Ebiwuka ebiyitibwa Octicons
- Font Ewunyisa
- Laba olupapula lw’Okugaziya okufuna olukalala lw’engeri endala. Olina amagezi amalala? Nsaba oggulewo ensonga oba PR.
- Yasuddewo ekipande kya Affix jQuery.
- Tukuwa amagezi okukozesa
position: sticky
mu kifo ky’ekyo. Laba HTML5 Nsaba okuyingira okumanya ebisingawo n'okuteesa ebitongole ku polyfill. Ekiteeso ekimu kwe kukozesa@supports
etteeka okulissa mu nkola (okugeza,@supports (position: sticky) { ... }
)/ . - Singa wali okozesa Affix okusiiga ebirala, ebitali bya
position
sitayiro, polyfills ziyinza obutawagira nkozesa yo. Ekimu ku biyinza okukolebwa mu nkozesa ng’ezo ye tterekero ly’ebitabo erya ScrollPos-Styler ery’ekibiina eky’okusatu .
- Tukuwa amagezi okukozesa
- Yasuula ekitundu kya pager nga mu bukulu kyali buttons ezikoleddwaako katono.
- Refactored kumpi ebitundu byonna okukozesa ebisingawo un-nested class selectors mu kifo over-specific abaana selectors.
Olukalala luno lulaga enkyukakyuka enkulu okusinziira ku kitundu wakati wa v3.xx ne v4.0.0.
Ekipya ku Bootstrap 4 ye Reboot , stylesheet empya ezimba ku Normalize nga tulina emisono gyaffe egy’okuzzaawo egy’endowooza. Ebisunsula ebirabika mu fayiro eno bikozesa elementi zokka—tewali kiraasi wano. Kino kyawula emisono gyaffe egy’okuzzaawo okuva ku sitayiro zaffe ez’ebitundu olw’enkola esingako eya modulo. Ebimu ku bikulu ebiddamu okuteekebwawo kino mwe muli kwe box-sizing: border-box
kukyusa, okuva em
ku rem
yuniti ku elementi nnyingi, emisono gy’okuyunga, n’okuzzaawo ebintu bingi ebya ffoomu.
- Yatambuza
.text-
ebikozesebwa byonna mu_utilities.scss
fayiro. - Esuuliddwa
.page-header
nga, ng’oggyeeko ensalo, sitayiro zaayo zonna zisobola okukozesebwa nga ziyita mu bikozesebwa. .dl-horizontal
ebadde esuuliddwa. Wabula, kozesa.row
ku<dl>
era kozesa grid column classes (oba mixins) ku yaayo<dt>
n'abaana<dd>
.- Custom
<blockquote>
styling esenguse okudda mu classes—.blockquote
ne.blockquote-reverse
modifier. .list-inline
kati kyetaagisa abaana baayo okuwandiisa ebintu balina ekibiina ekipya.list-inline-item
ekibakozesezza.
- Yakyusibwa erinnya
.img-responsive
n'efuulibwa.img-fluid
. - Yakyusibwa erinnya
.img-rounded
ne lifuuka.rounded
- Yakyusibwa erinnya
.img-circle
ne lifuuka.rounded-circle
- Kumpi ebifaananyi byonna eby'omusunsu
>
biggiddwawo, ekitegeeza nti emmeeza eziteekeddwa mu kisenge kati zijja kusikira emisono okuva mu bazadde baazo mu ngeri ey'otoma. Kino kyanguyiza nnyo ebisunsula byaffe n’ebiyinza okutukyusa. - Emmeeza eziddamu tezikyetaaga kintu kya kuzinga. Wabula, teeka
.table-responsive
ekituufu ku<table>
. - Yakyusibwa erinnya n’etuumibwa
.table-condensed
olw’obutakyukakyuka.table-sm
. - Yayongeddeko eky’okulonda ekipya
.table-inverse
. - Yayongeddeko ebikyusa omutwe gw'emmeeza:
.thead-default
ne.thead-inverse
. - Yakyusa amannya ga kiraasi z'ensonga okubeera
.table-
n'entandikwa -. Kyova olaba.active
nti ,.success
,.warning
,.danger
ne.info
ku.table-active
,.table-success
,.table-warning
,.table-danger
ne.table-info
.
- Ekintu ekitambuddwa kiddamu okuteekebwa ku
_reboot.scss
fayiro. - Yakyusibwa erinnya
.control-label
n'efuulibwa.col-form-label
. - Okukyusa amannya
.input-lg
ne.input-sm
ku.form-control-lg
ne.form-control-sm
, okusinziira ku. - Yasuula
.form-group-*
ebisulo olw'okubeera ebyangu. Kozesa.form-control-*
kiraasi mu kifo ky’ekyo kati. - Yasuula
.help-block
n'agikyusaamu ne.form-text
for block-level help text. Ku biwandiiko by'obuyambi mu layini n'ebirala ebikyukakyuka, kozesa kiraasi z'omugaso nga.text-muted
. - Yasuulibwa
.radio-inline
era.checkbox-inline
. - Consolidated
.checkbox
ne.radio
mu ne kiraasi.form-check
ez’enjawulo ..form-check-*
- Ffoomu ezibeera mu bbanga (horizontal forms) zitereezeddwa:
- Yasuula
.form-horizontal
ekyetaagisa mu kibiina. .form-group
tekyakozesa sitayiro okuva mu.row
via mixin, kale.row
kati kyetaagisa ku nteekateeka za grid ez'okwebungulula (okugeza,<div class="form-group row">
).- Yayongeddeko kiraasi empya
.col-form-label
ku bipande ebiri wakati mu vertikal nga biriko.form-control
s. - Yayongeddeko ebipya
.form-row
ku nsengeka za ffoomu enzibu ne kiraasi za grid (swap your.row
for a.form-row
and go).
- Yasuula
- Yayongeddeko obuwagizi bwa foomu eza custom (ku checkboxes, radios, selects, n'okuyingiza fayiro).
- Yakyusiddwa
.has-error
,.has-warning
, ne.has-success
kiraasi ne zikakasa ffoomu ya HTML5 nga ziyita mu CSS's:invalid
ne:valid
pseudo-classes. - Yakyusibwa erinnya
.form-control-static
n'efuulibwa.form-control-plaintext
.
- Yakyusibwa erinnya
.btn-default
n'efuulibwa.btn-secondary
. - Yasuula
.btn-xs
kiraasi yonna nga bwe.btn-sm
kiri proportionally kitono nnyo okusinga v3's. - Ekintu kya buttonful stateful ekya
button.js
jQuery plugin kisuuliddwa. Kuno kw’ogatta enkola$().button(string)
n’enkola$().button('reset')
. Tukuwa amagezi okukozesa akatono aka JavaScript eya custom mu kifo ky’ekyo, ekijja okuba n’omugaso gw’okweyisa mu ngeri ddala gy’oyagala.- Weetegereze nti ebirala ebiri mu plugin (ebibokisi ebikebera button, leediyo za button, buttons ezikyusa omulundi gumu) bikuumiddwa mu v4.
- Kyusa buttons'
[disabled]
okudda ku:disabled
nga IE9+ ewagira:disabled
. Nayefieldset[disabled]
kikyali kyetaagisa kubanga native disabled fieldsets zikyali buggy mu IE11 .
- Ddamu okuwandiika ekitundu ne flexbox.
- Eggyiddwawo
.btn-group-justified
. Nga eky'okukyusaamu osobola okukozesa<div class="btn-group d-flex" role="group"></div>
ng'ekizinga okwetooloola elementi ezirina.w-100
. - Yasudde
.btn-group-xs
ddala ekibiina nga aweereddwa okuggyibwawo kwa.btn-xs
. - Ggyawo ebanga ery'olwatu wakati w'ebibinja bya button mu button toolbars; kozesa ebikozesebwa ku margin utilities kati.
- Ebiwandiiko ebirongooseddwa okukozesebwa n'ebitundu ebirala.
- Yakyusibwa okuva ku balonda abazadde okudda ku kiraasi emu ku bitundu byonna, ebikyusa, n’ebirala.
- Emisono egy’okukka egyanguyiziddwa obutaddamu kusindika ng’erina obusaale obutunudde waggulu oba wansi obuyungiddwa ku menu egwa wansi.
- Dropdowns zisobola okuzimbibwa ne
<div>
s oba<ul>
s kati. - Emisono egy’okukka egyaddamu okuzimbibwa n’okussaako obubonero okusobola okuwa obuwagizi obwangu, obuzimbibwamu ku bintu ebikka
<a>
era<button>
nga byesigamiziddwa ku bintu ebikka. - Yakyusibwa erinnya
.divider
n'efuulibwa.dropdown-divider
. - Ebintu ebigwa kati byetaaga
.dropdown-item
. - Dropdown toggles tezikyetaaga explicit
<span class="caret"></span>
; kino kati kiweebwa mu ngeri ey'otoma nga kiyita mu CSS's::after
ku.dropdown-toggle
.
- Yayongeddeko ekifo ekipya
576px
eky'okumenya grid ngasm
, ekitegeeza kati waliwo emitendera etaano gyonna awamu (xs
,sm
,md
,lg
, nexl
). - Yakyusa amannya g'ebika by'ebikyusa giridi ebiddamu okuva
.col-{breakpoint}-{modifier}-{size}
ku okutuuka.{modifier}-{breakpoint}-{size}
ku bibiina bya giridi ebyangu. - Yasuula kiraasi za push ne pull modifier ku kiraasi empya ezikozesa flexbox
order
. Okugeza, mu kifo kya.col-8.push-4
ne.col-4.pull-8
, wandikozesezza.col-8.order-2
ne.col-4.order-1
. - Yayongeddeko flexbox utility classes ku nkola ya grid n'ebitundu.
- Ddamu okuwandiika ekitundu ne flexbox.
- Ekyusiddwa
a.list-group-item
ne kiraasi eyeetegeerekeka,.list-group-item-action
, olw'okukola sitayiro enkyusa z'enkolagana ne button z'ebintu by'ekibinja ky'olukalala. - Yayongeddeko
.list-group-flush
kiraasi okukozesebwa ne kaadi.
- Ddamu okuwandiika ekitundu ne flexbox.
- Given move to flexbox, alignment of dismiss icons mu header eyinza okumenyeka nga tetukyakozesa floats. Ebirimu ebitengejja bye bisooka, naye ne flexbox ekyo tekikyali bwe kityo. Update your dismiss icons okujja oluvannyuma lwa modal titles okutereeza.
- Enkola
remote
(eyinza okukozesebwa okutikka n’okuyingiza ebirimu eby’ebweru mu modal mu ngeri ey’otoma) n’ekintu ekikwataganaloaded.bs.modal
byaggyibwawo. Tukuwa amagezi mu kifo ky'ekyo okukozesa client-side templating oba data binding framework, oba okuyita jQuery.load ggwe kennyini.
- Ddamu okuwandiika ekitundu ne flexbox.
- Yasuula kumpi ebisunsula byonna
>
okusobola okukola sitayiro ennyangu ng’ayita mu kiraasi ezitali za kisenge. - Mu kifo ky’ebisunsula ebikwata ku HTML nga
.nav > li > a
, tukozesa kiraasi ez’enjawulo ku.nav
s,.nav-item
s, ne.nav-link
s. Kino kifuula HTML yo okubeera ennyangu ate nga kireeta okugaziwa okweyongera.
Navbar ezzeemu okuwandiikibwa yonna mu flexbox n'obuwagizi obulongooseddwa obw'okulaganya, okuddamu, n'okulongoosa.
- Enneeyisa za navbar eziddamu kati zikozesebwa ku
.navbar
kiraasi nga ziyita mu kyetaagisa.navbar-expand-{breakpoint}
w'olonda w'ogenda okugwa navbar. Emabegako kino kyali kya Less variable modification era nga kyetaagisa recompiling. .navbar-default
is now.navbar-light
, wadde nga.navbar-dark
kisigala kye kimu. Ekimu ku bino kyetaagibwa ku buli navbar. Naye, ebika bino tebikyateekawobackground-color
s; mu kifo ky’ekyo mu bukulu zikwata kucolor
.- Navbars kati zeetaaga okulangirira okw'emabega okw'ekika ekimu. Londa okuva mu bikozesebwa byaffe eby'emabega (
.bg-*
) oba teeka ebibyo n'ebika by'ekitangaala/ekikyuusa waggulu olw'okulongoosa eddalu . - Kubanga emisono gya flexbox, navbars kati zisobola okukozesa ebikozesebwa bya flexbox olw'okulonda okwangu okw'okulaganya.
.navbar-toggle
eri kati.navbar-toggler
era erina emisono egy’enjawulo ne inner markup (tewali<span>
s ssatu zisingawo).- Yasuula
.navbar-form
ddala ekibiina. Tekikyakwetaagisa; mu kifo ky’ekyo, kozesa kyokka.form-inline
era okozese margin utilities nga bwe kyetaagisa. - Navbars tezikyalimu
margin-bottom
obaborder-radius
nga bwe kibadde. Kozesa ebikozesebwa nga bwe kyetaagisa. - Ebyokulabirako byonna ebirimu navbars bitereezeddwa okussaamu markup empya.
- Ddamu okuwandiika ekitundu ne flexbox.
- Ebika eby’olwatu (
.page-item
,.page-link
) kati byetaagibwa ku bazzukulu ba.pagination
s - Yasuula
.pager
ekitundu kyonna nga bwe kyali kisingako katono okusinga customized outline buttons.
- Ekibiina eky’olwatu,
.breadcrumb-item
, kati kyetaagibwa ku bazzukulu ba.breadcrumb
s
- Yakyusibwa erinnya
.label
okutuuka.badge
okuggya obutategeeragana okuva mu<label>
elementi. - Yasudde
.badge
ekitundu nga kumpi kifaanagana ne labels. Kozesa.badge-pill
ekikyusa awamu n’ekitundu ky’akabonero mu kifo ky’ekyo olw’endabika eyo eyeetooloovu. - Badge tezikyatengejja mu ngeri ya otomatiki mu bibinja by’olukalala n’ebitundu ebirala. Utility classes kati zeetaagibwa ku ekyo.
.badge-default
ebadde esuuliddwa.badge-secondary
n'eyongerwako okukwatagana n'ebika by'ebikyusa ebitundu ebikozesebwa awalala.
Esuuliddwa ddala olw'ekitundu kya kaadi empya.
.panel
to.card
, kati ezimbiddwa ne flexbox..panel-default
eggyiddwawo era tewali akyusiddwa..panel-group
eggyiddwawo era tewali akyusiddwa..card-group
si kya kudda mu bigere, kya njawulo..panel-heading
ku.card-header
.panel-title
okutuuka ku.card-title
. Okusinziira ku ndabika gy’oyagala, oyinza n’okwagala okukozesa ebintu oba kiraasi z’omutwe (okugeza<h3>
,.h3
) oba ebintu oba kiraasi enzirugavu (okugeza<strong>
,<b>
,.font-weight-bold
). Weetegereze nti.card-title
, wadde nga etuumiddwa mu ngeri y’emu, efulumya endabika ey’enjawulo okusinga.panel-title
..panel-body
ku.card-body
.panel-footer
ku.card-footer
.panel-primary
,.panel-success
,.panel-info
,.panel-warning
, era.panel-danger
zisuuliddwa ku.bg-
,.text-
,.border
n'ebikozesebwa ebikoleddwa okuva ku$theme-colors
maapu yaffe eya Sass.
- Yakyusa ebika by’embeera (contextual
.progress-bar-*
classes) ne.bg-*
bifuulibwa ebikozesebwa. Ng’ekyokulabirako,class="progress-bar progress-bar-danger"
kifuukaclass="progress-bar bg-danger"
. - Ekyusiddwa
.active
ku bbaala z'enkulaakulana eziriko obulamu ne.progress-bar-animated
.
- Yalongoosa ekitundu kyonna okusobola okwanguyiza dizayini n’okukola sitayiro. Tulina emisono mitono gy’oyinza okusazaamu, ebiraga ebipya, n’ebifaananyi ebipya.
- CSS yonna ebadde efuuliddwa un-nested era n'ekyusibwa erinnya, okukakasa nti buli kiraasi esookera ddala
.carousel-
.- Ku bintu bya carousel,
.next
,.prev
,.left
, era.right
kati.carousel-item-next
,.carousel-item-prev
,.carousel-item-left
, ne.carousel-item-right
. .item
naye kati ye.carousel-item
.- Ku bifuga eby'emabega/ebiddako,
.carousel-control.right
era.carousel-control.left
biri kati.carousel-control-next
ne.carousel-control-prev
, ekitegeeza nti tebikyetaaga kiraasi ya musingi eyeetongodde.
- Ku bintu bya carousel,
- Ggyawo sitayiro zonna eziddamu, okuyimirizaawo ebikozesebwa (okugeza, okulaga ebigambo ku bifo ebimu eby'okulaba) n'emisono egy'enjawulo nga bwe kyetaagisa.
- Okuggyibwawo okusazaamu ebifaananyi ku bifaananyi mu bintu bya carousel, okwongezaayo ku bikozesebwa.
- Tweaked ekyokulabirako kya Carousel okussaamu markup empya ne styles.
- Ggyawo obuwagizi bw'emmeeza eziteekeddwa mu sitayiro. Emisono gyonna egy'emmeeza kati gisikira mu v4 ku bisunsula ebyangu.
- Yayongeddeko enkyukakyuka y’emmeeza ey’ekifuulannenge.
- Okwolesebwa, okukwekebwa, n'ebirala:
- Yakola ebikozesebwa eby’okwolesebwa okuddamu (okugeza,
.d-none
ned-{sm,md,lg,xl}-none
). - Yasuula ekitundu ekinene eky'ebikozesebwa ku
.hidden-*
bikozesebwa ebipya eby'okwolesebwa . Okugeza, mu kifo kya.hidden-sm-up
, kozesa.d-sm-none
. Yakyusa amannya g'ebikozesebwa.hidden-print
okukozesa enteekateeka y'okutuuma amannya g'ebikozesebwa eby'okwolesebwa. Ebisingawo wansi w'ekitundu kya Responsive utilities ku muko guno. - Yayongeddeko
.float-{sm,md,lg,xl}-{left,right,none}
classes for responsive floats ne ziggyibwawo.pull-left
era.pull-right
okuva bweziri redundant ku.float-left
ne.float-right
.
- Yakola ebikozesebwa eby’okwolesebwa okuddamu (okugeza,
- Okuwandiika:
- Yayongeddeko enjawulo eziddamu ku bibiina byaffe eby'okusengeka ebiwandiiko
.text-{sm,md,lg,xl}-{left,center,right}
.
- Yayongeddeko enjawulo eziddamu ku bibiina byaffe eby'okusengeka ebiwandiiko
- Okulaganya n’okuteeka ebanga:
- Yayongeddeko ebipya responsive margin ne padding utilities ku njuyi zonna, n'okwongerako vertical ne horizontal shorthands.
- Yayongeddeko eryato erya flexbox utilities .
- Yasuuliddwa
.center-block
okugenda mu kibiina ekipya.mx-auto
.
- Clearfix etereezeddwa okusuula obuwagizi ku nkyusa za browser enkadde.
Bootstrap 3's vendor prefix mixins, ezaali ziggyibwawo mu v3.2.0, ziggiddwawo mu Bootstrap 4. Okuva lwe tukozesa Autoprefixer , tezikyakwetaagisa.
Ggyawo mixins zino wammanga: animation
, animation-delay
, animation-direction
, animation-duration
, animation-fill-mode
, animation-iteration-count
, animation-name
, animation-timing-function
, backface-visibility
, , box-sizing
, content-columns
, , hyphens
, opacity
, , perspective
, , , perspective-origin
, rotate
, , , , , , , rotateX
, , rotateY
, , scale
, scaleX
, scaleY
, , skew
, transform-origin
, transition-delay
, transition-duration
, transition-property
, transition-timing-function
, transition-transform
, translate
, translate3d
,user-select
Ebiwandiiko byaffe byafuna okulongoosebwa mu buli kitundu nabyo. Wano waliwo wansi wansi:
- Tukyakozesa Jekyll, naye tulina plugins mu mix:
bugify.rb
ekozesebwa okuwandiika obulungi ebiyingiziddwa ku mukutu gwaffe ogwa browser bugs .example.rb
ye fork eya custom eyahighlight.rb
plugin eya bulijjo, esobozesa okukwata ekyokulabirako-code okwangu.callout.rb
ye custom fork efaananako bwetyo eya ekyo, naye ekoleddwa ku callouts zaffe ez'enjawulo eza docs.markdown-block.rb
ekozesebwa okulaga ebitundu bya Markdown munda mu bintu bya HTML nga emmeeza.- jekyll-toc ekozesebwa okukola ekipande kyaffe eky’ebirimu.
- Ebirimu byonna mu docs bizzeemu okuwandiikibwa mu Markdown (mu kifo kya HTML) okusobola okwanguyirwa okulongoosa.
- Empapula zizzeemu okusengekebwa okusobola okufuna ebirimu ebyangu n’ensengeka esobola okutuukirirwa.
- Twava ku CSS eya bulijjo okudda ku SCSS okweyambisa mu bujjuvu enkyukakyuka za Bootstrap, mixins, n'ebirala.
Enkyukakyuka zonna @screen-
ziggiddwawo mu v4.0.0. Kozesa media-breakpoint-up()
, media-breakpoint-down()
, oba media-breakpoint-only()
Sass mixins oba $grid-breakpoints
Sass map mu kifo ky'ekyo.
Ebika byaffe eby’omugaso ebiddamu okusinga biggiddwawo nga biwagira display
ebikozesebwa eby’olwatu.
- The
.hidden
ne.show
classes ziggiddwawo kubanga zaali zikontana ne jQuery's$(...).hide()
n'enkola$(...).show()
. Wabula, gezaako okukyusakyusa[hidden]
ekintu oba kozesa emisono egy’omu layini ngastyle="display: none;"
nestyle="display: block;"
. - Kiraasi zonna
.hidden-
ziggiddwawo, okuggyako ebikozesebwa mu kukuba ebitabo ebikyusiddwa amannya.- Eggiddwa mu v3:
.hidden-xs
.hidden-sm
.hidden-md
.hidden-lg
.visible-xs-block
.visible-xs-inline
.visible-xs-inline-block
.visible-sm-block
.visible-sm-inline
.visible-sm-inline-block
.visible-md-block
.visible-md-inline
.visible-md-inline-block
.visible-lg-block
.visible-lg-inline
.visible-lg-inline-block
- Eggiddwa mu v4 alphas:
.hidden-xs-up
.hidden-xs-down
.hidden-sm-up
.hidden-sm-down
.hidden-md-up
.hidden-md-down
.hidden-lg-up
.hidden-lg-down
- Eggiddwa mu v3:
- Ebikozesebwa mu kukuba ebitabo tebikyatandika na
.hidden-
oba.visible-
, wabula ne.d-print-
.- Amannya amakadde:
.visible-print-block
,.visible-print-inline
,.visible-print-inline-block
, ..hidden-print
- Ebisulo ebipya:
.d-print-block
,.d-print-inline
,.d-print-inline-block
, ..d-print-none
- Amannya amakadde:
Mu kifo ky’okukozesa .visible-*
kiraasi ez’olwatu, okola ekintu ekirabika ng’omala obutakikweka ku sayizi eyo eya screen. Osobola okugatta .d-*-none
kiraasi emu ne .d-*-block
kiraasi emu okulaga ekintu kyokka ku bbanga eriweereddwa erya sayizi za ssirini (okugeza .d-none.d-md-block.d-xl-none
eraga ekintu ku byuma ebya wakati n’ebinene byokka).
Weetegereze nti enkyukakyuka mu bifo eby’okumenyawo giridi mu v4 kitegeeza nti ojja kwetaaga okugenda ekifo kimu ekinene okusobola okutuuka ku bivaamu bye bimu. Ebika by'omugaso ebipya ebiddamu tebigezaako kukwata misango egitatera kubaawo ng'okulabika kw'ekintu tekuyinza kwolesebwa ng'olunyiriri lumu olukwatagana olw'obunene bw'ekifo eky'okulaba; mu kifo ky’ekyo ojja kwetaaga okukozesa CSS eya bulijjo mu mbeera ng’ezo.