Source

v4 ah migrate a ni

Bootstrap 4 hi project pumpui siamthatna lian tak a ni. Hrilhfiahna langsar ber berte chu a hnuaia tarlan ang hian tarlan a ni a, chu chu a dawtah chuan component inzawmte tihdanglamna chiang zawkin tarlan a ni.

Stable inthlak danglamna

Beta 3 atanga kan stable v4.0 release-a kan kal chuan breaking changes a awm lo a, mahse danglamna langsar tak tak a awm nual.

Printing tih a ni

  • Print utilities chhe tawhte siamthat a ni. Tun hma chuan .d-print-*class hman hian beisei loh takin class dang zawng zawng a overrule thei a .d-*ni. Tunah chuan, kan display utility dangte nen an inmil a, chu media ( @media print)-ah chauh an hmang a ni.

  • Utility dang nena inmil turin print display utility awm thei te chu tihzauh a ni. Beta 3 leh a chung lam chauhvin block, inline-block, inline, leh none. Stable v4 tih belh flexa ni a, inline-flex, table, table-row, leh table-cell.

  • Browser hrang hranga print preview rendering tihfel a ni a, print style thar a awm a, chutah chuan @page size.

Beta 3 a inthlak a

Beta 2 hian beta phase chhunga kan breaking change tam zawk a hmuh laiin, mahse Beta 3 release-a ngaihtuah tur tlemte kan la nei tho. Heng inthlak danglamna te hi Beta 2 atanga Beta 3 emaw Bootstrap version hlui zawk emaw atanga Beta 3 i update a nih chuan a hman theih.

Thildang

  • $thumbnail-transitionVariable hman loh chu a paih chhuak ta. Engmah kan transition lo a, chuvang chuan extra code mai a ni.
  • npm package ah hian kan source leh dist file tih loh file dang a awm tawh lo; anmahni i rinchhan a, node_modulesfolder kaltlangin kan script te i run a nih chuan i workflow kha i siamrem tur a ni.

Form hrang hrang

  • Custom leh default checkbox leh radio te chu a ziak thar leh vek. Tunah chuan, an pahnih hian HTML structure inmil (outer <div>with sibling <input>leh <label>) leh layout style inang (stacked default, inline with modifier class) an nei ve ve a. Hei hian input dinhmun a zirin label chu kan style thei a, disabledattribute support a awlsam phah a (a hma chuan parent class a mamawh thin) leh kan form validation a support tha zawk bawk.

    background-imageHemi bakah hian custom form checkbox leh radio-a multiple s enkawl dan tur CSS kan thlak danglam a ni. Tun hma chuan tuna element paih tawhah .custom-control-indicatorhian background color, gradient leh SVG icon te a awm thin. Background gradient customize tih awmzia chu pakhat chauh thlak a ngaih apiangin chu zawng zawng chu thlak vek tihna a ni. Tunah chuan, .custom-control-label::beforefill leh gradient atan kan nei a .custom-control-label::after, icon chu a handle a.

    Inline-a custom check siam tur chuan .custom-control-inline.

  • Input hmanga button group hrang hrangte tana selector update a ni. [data-toggle="buttons"] { }Style leh behavior atan ni lovin JS behavior atan chauh attribute hi kan hmang a, styling atan class datathar kan rinchhan a ni..btn-group-toggle

  • Removed .col-form-legendin favor of a tlem a tihchangtlun .col-form-label. Hetiang hian .col-form-label-smleh elements chungah awlsam takin .col-form-label-lghman theih a ni.<legend>

  • Custom file input te chuan an $custom-file-textSass variable ah change an dawng a. Nested Sass map a ni tawh lo va, tunah chuan string pakhat chauh a power a ni— Browsechu chu tunah chuan kan Sass atanga pseudo-element siam chhuah awmchhun a nih avangin button chu. Tunah Choose filechuan thuziak chu .custom-file-label.

Input group hrang hrang te

  • Tunah chuan input group addons te hi input pakhat nena khaikhin chuan an placement atan a bik takin an awm tawh a ni. Kan drop tawh a , class thar pahnih atan , .input-group-addonleh . Tunah hian append emaw prepend emaw chiang takin i hmang tur a ni a, kan CSS tam zawk chu a ti awlsam ang. Append emaw prepend chhungah chuan i button te chu hmun dangah a awm ang angin dah la, mahse text chu ..input-group-btn.input-group-prepend.input-group-append.input-group-text

  • Tunah chuan validation style te chu a support tawh a, input tam tak pawh a support tawh bawk (group khatah input pakhat chauh validate theih ni mahse).

  • Sizing class te chu parent chungah a awm tur a ni a .input-group, individual form elements ah a awm tur a ni lo.

Beta 2 a inthlak a

Beta-a kan awm lai hian breaking changes neih loh kan tum a ni. Amaherawhchu, thil awmdan chu ruahman angin a kal ngai lo. A hnuaia tarlan te hi Beta 1 atanga Beta 2 a kan kal huna ngaihtuah tur breaking changes te an ni.

Breaking a ni

  • Variable $badge-colorleh a hman dan chu .badge. Color contrast function colorhmangin based a pick a background-color, chuvangin variable chu a tul lo.
  • CSS native filter nena buaina tihchhiat loh nan grayscale()function to hming thlak a ni.gray()grayscale
  • Rename .table-inverse, .thead-inverse, leh .thead-defaultto .*-darkleh .*-light, hmun danga kan color scheme hmante nena inmil.
  • Tunah chuan responsive tables te hian grid breakpoint tin atan class an siam chhuak ta a ni. Hei hi Beta 1 atanga break a ni a, .table-responsivei hman tawh kha .table-responsive-md. Tunah chuan i hmang thei tawh emaw , a tul angin .table-responsiveemaw i hmang thei tawh ang..table-responsive-{sm,md,lg,xl}
  • Package manager chu alternative (eg, Yarn emaw npm) atan hman loh a nih avangin Bower support a tla thla. A chipchiar zawkna chu bower/bower#2298 ah hian en theih a ni.
  • Bootstrap hian jQuery 1.9.1 aia sang a la mamawh a, mahse v3.x supported browser te hi Bootstrap support te an nih avangin version 3.x hmang turin i fuih a che plus v3.x hian security fix engemaw zat a nei bawk.
  • .form-control-labelClass hman loh chu paih chhuah a ni. He class hi i hmang a nih chuan, horizontal form layout-a a inzawm input nen .col-form-labelvertical-a centered class duplicate a ni.<label>
  • Property awmna mixin color-yiqatanga colorvalue rawn pe chhuak thei function ah a thlak a, CSS property eng pawh atan hman theih a ni. Entirnan, , tih ai chuan color-yiq(#000), i ziak ang color: color-yiq(#000);.

A langsar zualte

  • pointer-eventsModal-a hman dan thar a rawn luh tir. Outer .modal-dialogchuan events a paltlang a, pointer-events: nonefor custom click handling (click eng pawh a awm chuan the-ah ngaihthlak mai theih a ni .modal-backdrop), chutah chuan a tak tak atan a counteract .modal-contenta pointer-events: auto,

Khaihtawi

V3 atanga v4 a i kal huna i hriat duh tur ticket item lian tak tak te chu hetiang hi a ni.

Browser hmanga support theih a ni

  • IE8, IE9, leh iOS 6 support te chu a tla thla. v4 hi tunah chuan IE10+ leh iOS 7+ chauh a ni tawh. Chutiang zinga pakhat mamawh site tan chuan v3 hmang ang che.
  • Android v5.0 Lollipop-a Browser leh WebView te tan official support a dah belh bawk. Android Browser leh WebView version hmasa zawkte chu unofficial-a support chauh a la ni.

Khawvel pum huapa inthlak danglamna

  • Flexbox hi default-in a enable a ni. A tlangpuiin hei hian kan component hrang hranga float leh a tam zawk atanga inthlak danglamna a kawk a ni.
  • Kan source CSS files te tan Less atanga Sass ah kan thlak a.
  • pxKan primary CSS unit atan to to kan thlak a, mahse device viewport rem-te chu type size-in a nghawng loh avangin media query leh grid behavior atan pixels hman a la ni tho.
  • Khawvel pum huapa font-size 14pxchu 16px.
  • Grid tiers siam tharin option pangana (device tenau zawkte address leh a hnuaia address) dah belh a, chu class atang chuan infix chu 576pxpaih chhuah a ni. -xsEntirnan: .col-6.col-sm-4.col-md-3.
  • Optional theme hranpa chu SCSS variable hmanga configurable option hmangin a thlak a (eg, $enable-gradients: true).
  • Build system overhauled a ni a, Grunt ai chuan npm script series hman a ni. Script zawng zawng en la package.json, a nih loh leh kan project readme chu tualchhung hmasawnna mamawhna atan en rawh.
  • Bootstrap hi non-responsive taka hman a ni tawh lo.
  • Setup documentation zau zawk leh customized builds duh zawngin online Customizer chu a thlak a.
  • CSS property-value pair hman tlanglawn tak tak leh margin/padding spacing shortcut te tan utility class thar tam tak dah belh a ni.

Grid system hmanga siam a ni

  • Flexbox ah sawn a ni.
    • Grid mixins leh predefined class-a flexbox support a dah belh bawk.
    • Flexbox-a tel ve angin, vertical leh horizontal alignment class-te thlawpna a tel bawk.
  • Grid class hming update leh grid tier thar siam a ni.
    • Granular control tam zawk neih theih nan a smhnuaia grid tier thar dah belh a ni. 768pxTunah chuan xs, sm, md, lg, leh xl. Hei hian tier tinte chu level khata bumped up an nih tawh tihna a ni bawk (chuvangin .col-md-6v3-ah chuan tunah .col-lg-6chuan v4-ah a awm tawh).
    • xsgrid class te chu infix hian min-width: 0set pixel value ni lovin style an apply tan tih dik zawka lantir a ngai lo turin siam danglam a ni. A aiah .col-xs-6, tunah chuan .col-6. Grid tier dang zawng zawng hian infix (eg, sm).
  • Grid size, mixin, leh variable te update a ni.
    • Tunah chuan grid gutters hian Sass map an nei tawh a, chuvang chuan breakpoint tinah gutter width bik i tarlang thei tawh ang.
    • Updated grid mixins hmanga make-col-readyprep mixin leh a make-colset the flexleh max-widthindividual column sizing atan.
    • Grid system media query breakpoint leh container width thlak danglam a ni a, grid tier thar account tur leh column te chu 12an max width-a insem theih vek a nih theih nan.
    • Tunah chuan grid breakpoint leh container width te chu Sass maps ( $grid-breakpointsleh $container-max-widths) hmangin variable hrang hrang kutdawh tlemte hmangin an handle tawh a ni. Hengte hian @screen-*variable te chu a thlak vek a, grid tiers te chu fully customize theihna a siamsak bawk.
    • Media zawhna pawh a danglam tawh bawk. Kan media query declaration te chu value inang vek hmanga repeat fo ai chuan tunah chuan @include media-breakpoint-up/down/only. Tunah chuan ziak ai chuan @media (min-width: @screen-sm-min) { ... }, i ziak thei tawh ang @include media-breakpoint-up(sm) { ... }.

Component hrang hrangte

  • Panel, thumbnail, leh well -te chu thil zawng zawng huapzo component thar, card .
  • Glyphicons icon font chu a thlak a. Icon i mamawh chuan duhthlan tur thenkhat chu:
  • Affix jQuery plugin chu a thlak ta a.
    • Chu ai chuan hman kan rawt position: stickyzawk. A chipchiar zawk leh polyfill rawtna bikte chu HTML5 Please entry en rawh . Thurawn pakhat chu a @supportskalpui dan tur dan (eg, @supports (position: sticky) { ... })/
    • Affix hmangin additional, non- positionstyles i apply a nih chuan, polyfills te hian i use case chu a support lo mai thei. Chutiang hmanna atana duhthlan tur pakhat chu third-party ScrollPos-Styler library hi a ni.
  • A bul berah chuan buttons tlemte customized a nih avangin pager component chu a thlak a.
  • Component zawng zawng deuhthaw chu over-specific children selector ai chuan un-nested class selector tam zawk hman turin refactored a ni.

Component hmangin

He list hian v3.xx leh v4.0.0 inkara component hrang hranga key changes te a tarlang a.

Reboot leh rawh

Bootstrap 4-a thil thar chu Reboot , stylesheet thar a ni a, Normalize-ah kan siam a, kan ngaihdan engemaw zat reset style kan nei bawk. He file-a selector langte hian element chauh an hmang a—hetah hian class a awm lo. Hei hian kan reset styles te chu kan component styles atang hian modular zawka kalpui theih turin a isolate a ni. Hemi huam chhunga reset pawimawh tak tak thenkhat chu box-sizing: border-boxinthlak danglamna, element tam takah unit atanga emunit rem-a kal te, link style te, leh form element reset tam tak te hi a ni.

Typography hmanga ziah a ni

  • .text-Utility zawng zawng _utilities.scssfile ah a sawn vek.
  • A style te chu utilities .page-headerhmanga apply theih a nih avangin drop a ni.
  • .dl-horizontaltihbo a ni tawh. Chu ai chuan .rowon hmang la, a leh naupangte <dl>chungah grid column class (or mixins) hmang rawh.<dt><dd>
  • Blockquotes design thar, an style <blockquote>element atanga class pakhata sawn, .blockquote. .blockquote-reverseText utilities atan modifier chu a thlak ta.
  • .list-inlinetunah chuan a fate list item-te chu .list-inline-iteman chungah class thar hman a ngai ta a ni.

Hmanlai thil hlui te

  • A hming thlak .img-responsivea .img-fluidni.
  • A hming thlak .img-roundeda ni.rounded
  • A hming thlak .img-circlea ni.rounded-circle

Table te pawh a awm

  • Selector instance zawng zawng deuhthaw chu >paih vek a ni tawh a, chu chu nested table te chuan an nu leh pa hnen atangin style an inherit nghal vek dawn tihna a ni. Hei hian kan selector leh kan customization awm thei te chu nasa takin a ti awlsam a ni.
  • Consistency atan hming .table-condensedthlak .table-sma ni.
  • .table-inverseOption thar a rawn dah belh bawk .
  • Table header siam danglam thei te dah belh a ni: .thead-defaultleh .thead-inverse.
  • Contextual class hming thlak a ni a, .table--prefix a awm. Chuvangin .active, .success, .warning, .dangerleh .infoto .table-active, .table-success, .table-warning, .table-dangerleh .table-info.

Form hrang hrang

  • Moved element chu _reboot.scssfile ah a reset leh thin.
  • A hming thlak .control-labela .col-form-labelni.
  • Renamed .input-lgleh .input-smto .form-control-lgleh .form-control-sm, a hnuaia mi ang hian.
  • Simplicity .form-group-*vangin class a drop a. .form-control-*Tunah chuan class hmang zawk rawh.
  • .help-blockA thlak a, .form-textfor block-level help text hmangin a thlak leh a. Inline help text leh flexible option dang atan chuan utility class ang chi hmang la .text-muted.
  • A tlak .radio-inlineleh .checkbox-inlinea .
  • Consolidated .checkboxleh .radiointo leh class .form-checkhrang hrang te..form-check-*
  • Horizontal form te chu siamthat a ni:
    • .form-horizontalClass requirement chu a thlak ta.
    • .form-group.rowvia mixin atanga styles a hmang tawh lo va , chuvangin .rowtunah chuan horizontal grid layouts atan a mamawh tawh (eg, <div class="form-group row">).
    • .col-form-labelVertically center label-ah class thar dah belh a ni a, .form-controls.
    • .form-rowGrid class te nen compact form layout atan thar dah belh (swap your .rowfor a .form-rowand go).
  • Custom forms support (checkbox, radio, selects, leh file input te tan) a dah belh bawk.
  • .has-error, .has-warning, leh class te chu CSS’s leh pseudo-classes .has-successhmanga HTML5 form validation hmanga thlak a ni.:invalid:valid
  • A hming thlak .form-control-statica .form-control-plaintextni.

Buttons te a awm

  • A hming thlak .btn-defaulta .btn-secondaryni.
  • .btn-xsClass chu a drop vek a, v3 .btn-smaiin proportional takin a tlem zawk hle.
  • jQuery plugin a stateful button feature chu a tla thla ta a ni . button.jsHei hian $().button(string)leh $().button('reset')methods te pawh a huam tel a ni. Chu ai chuan custom JavaScript tlemte hmang turin kan fuih a, chu chuan i duh ang taka awm theihna hlawkna a nei ang.
    • Plugin feature dangte (button checkbox, button radio, single-toggle button) te chu v4 ah hian an la awm reng tih hre reng ang che.
  • Buttons' [disabled]chu :disabledIE9+ support angin thlak rawh :disabled. Mahse fieldset[disabled]a la ngai reng a ni a chhan chu native disabled fieldsets te hi IE11 ah hian an la buggy reng a ni.

Button group a ni

  • Component chu flexbox hmangin ziak leh rawh.
  • A chhuak .btn-group-justifiedta . A thlakna <div class="btn-group d-flex" role="group"></div>atan elements vel wrapper atan i hmang thei ang .w-100.
  • Class .btn-group-xschu a chhuah vek a, removal of .btn-xs.
  • Button toolbar-a button group hrang hrangte inkara explicit spacing tihbo; tunah hian margin utilities hmang rawh.
  • Component dang nena hman tur documentation siam that.
  • Component zawng zawng, modifier, etc. zawng zawng tan parent selector atanga singular class-a thlak a ni.
  • Dropdown menu-a chunglam emaw hnuailam emaw lam hawi arrow dah tawh loh tur dropdown style awlsam zawk siam.
  • <div>Tunah chuan s emaw s emaw hmangin dropdown siam theih a ni <ul>tawh.
  • Dropdown style leh markup siam thar lehin dropdown item awlsam tak, built-in support <a>leh <button>based dropdown te a pe thei ang.
  • A hming thlak .dividera .dropdown-dividerni.
  • Tunah chuan dropdown items a ngai tawh .dropdown-item.
  • Dropdown toggles hian explicit a mamawh tawh lo <span class="caret"></span>; hei hi tunah chuan CSS's ::afteron hmangin automatic-in pek a ni tawh .dropdown-toggle.

Grid system hmanga siam a ni

  • 576pxGrid breakpoint thar as tih belh a ni a sm, chu chu tunah chuan total tier panga ( xs, sm, md, lg, leh xl) a awm tawh tihna a ni.
  • Grid class awlsam zawk atan responsive grid modifier class te chu .col-{breakpoint}-{modifier}-{size}to atanga hming thlak a ni..{modifier}-{breakpoint}-{size}
  • Flexbox hmanga orderclass tharte tan push leh pull modifier class te chu a tla thla. Entirnan, .col-8.push-4leh tih ai .col-4.pull-8chuan .col-8.order-2leh .col-4.order-1.
  • Grid system leh component hrang hrangte tana flexbox utility class te dah belh a ni.

Group hrang hrangte list rawh

  • Component chu flexbox hmangin ziak leh rawh.
  • List group item hrang hrangte link leh button version styling atan a.list-group-itemexplicit class, , hmanga thlak a ni..list-group-item-action
  • .list-group-flushCard nena hman tur class dah belh a ni.
  • Component chu flexbox hmangin ziak leh rawh.
  • Flexbox-a move pek a nih chuan float kan hman tawh loh avangin header-a dismiss icons alignment chu a chhe mai thei. Floated content hi a hmasa ber a, mahse flexbox nen chuan chutiang chu a ni tawh lo. I dismiss icons te chu modal titles hnua lo kal tur update la, siamthat tur.
  • Option remote(external content chu automatic-a load leh modal-a inject theihna tur) leh a inmil loaded.bs.modalevent chu paih chhuah a ni. Chu ai chuan client-side templating emaw data binding framework emaw hmang la, jQuery.load chu nangmah ngeiin koh kan rawt zawk a ni.
  • Component chu flexbox hmangin ziak leh rawh.
  • >Un-nested class kaltlangin simpler styling atan selector zawng zawng deuhthaw a thlak vek .
  • HTML-specific selector ang chi te ai chuan s, s, leh s .nav > li > ate tan class hrang hrang kan hmang thin . Hei hian i HTML chu a ti awlsam zawk a, chutih rualin extensibility tihpun a rawn keng tel bawk..nav.nav-item.nav-link

Navbar hi flexbox-ah ziah thar vek a ni a, alignment, responsiveness, leh customization support ṭha zawk a awm bawk.

  • Tunah chuan navbar collapse na tur hmun i thlan na hmun required.navbar hmangin class-ah responsive navbar behaviors te chu apply a ni tawh . Tun hma chuan hei hi Less variable modification a ni a, recompiling a ngai a ni. .navbar-expand-{breakpoint}
  • .navbar-defaultis now .navbar-light, mahse .navbar-darka la awm reng tho. Chung zinga pakhat chu navbar tinah a ngai a ni. Mahse, heng class-te hian background-colors an set tawh lo va; chu ai chuan an bulpui berah chuan color.
  • Tunah chuan Navbars hian background declaration chi khat emaw a mamawh tawh a ni. Kan background utilities ( ) atang hian thlang la , mad customization atan a.bg-* chunga light/inverse class te nen i duh ang set rawh .
  • Flexbox styles pek a nih chuan navbars te hian flexbox utilities hmangin alignment option awlsam tak an hmang thei tawh ang.
  • .navbar-togglea ni tawh .navbar-togglera, style hrang hrang leh inner markup ( <span>s pathum aia tam lo) a nei tawh bawk.
  • .navbar-formClass chu a drop vek a . A ngai tawh lo; chu ai chuan .form-inlinea tul angin margin utilities hmang la, hmang mai rawh.
  • Navbar-ah hian a tel tawh lo margin-bottomemaw border-radius, default-in emaw a awm tawh lo. A tul angin utilities hmang thin ang che.
  • Navbars awmna entir zawng zawng chu markup thar dah turin update vek a ni.

Pagination tih a ni

  • Component chu flexbox hmangin ziak leh rawh.
  • Tunah chuan s thlahte chungah hian explicit class ( .page-item, ) a ngai tawh a ni.page-link.pagination
  • .pagerComponent chu customized outline buttons aia tlem a nih avangin a drop vek a .
  • Tunah chuan s .breadcrumb-itemthlahte chungah class chiang tak, , neih a ngai ta a ni.breadcrumb

Label leh badge te a awm bawk

  • Consolidated .labelleh element .badgeatanga disambiguate leh a <label>kaihhnawih components te awlsam zawka siam.
  • .badge-pillRounded “pill” look atan modifier atan dah belh a ni.
  • Badge hi list group leh component dangteah automatic-in a float tawh lo. Chumi atan chuan utility class neih a ngai tawh a ni.
  • .badge-default.badge-secondaryhmun danga hman thin component modifier class te nena inmil turin paih a ni a, dah belh a ni bawk.

Panel, thumbnail, leh tuikhuah te a awm bawk

Card component thar atan chuan a tla vek.

Panel te pawh a awm

  • .panelto .card, tunah chuan flexbox hmanga siam a ni tawh.
  • .panel-defaultlakchhuah a ni a, thlak tur a awm lo.
  • .panel-grouplakchhuah a ni a, thlak tur a awm lo. .card-groupa thlaktu a ni lo va, a danglam a ni.
  • .panel-headingah.card-header
  • .panel-titleto .card-title. I duh ang look a zirin heading element emaw class emaw (eg <h3>, .h3) emaw bold element emaw class (eg <strong>, <b>, ) emaw pawh i hmang thei bawk .font-weight-bold. Hriat tur chu .card-title, chutiang bawka hming vuah mah se, .panel-title.
  • .panel-bodyah.card-body
  • .panel-footerah.card-footer
  • .panel-primary, .panel-success, .panel-info, .panel-warning, leh kan Sass map atanga , , leh utilities siamte .panel-dangertan drop a ni tawh bawk..bg-.text-.border$theme-colors

Hmasawn

  • Contextual .progress-bar-*class te chu .bg-*utilities hmanga thlak a ni. Entirnan, class="progress-bar progress-bar-danger"a lo ni ta a class="progress-bar bg-danger"ni .
  • Animated .activeprogress bar atan chuan .progress-bar-animated.
  • Design leh styling awlsam zawka siam turin component pumpui overhauled a ni. I override theih tur style tlem zawk, indicator thar, leh icon thar kan nei tlem zawk.
  • CSS zawng zawng chu un-nested leh hming thlak a ni tawh a, class tin chu prefix-a dah a nih theih nan a enfiah vek a .carousel-ni.
    • Carousel thil atan chuan .next, , .prev, .left, leh .righttunah chuan .carousel-item-next, .carousel-item-prev, .carousel-item-left, leh .carousel-item-right.
    • .itema ni bawk tunah chuan .carousel-item.
    • Prev/next controls tan chuan, .carousel-control.rightand .carousel-control.leftare now .carousel-control-nextand .carousel-control-prev, chu chu base class bik an mamawh tawh lo tihna a ni.
  • Responsive styling zawng zawng paih vek a, utilities (eg, viewport thenkhata caption lantir) leh a tul angin custom style te deferring vek a ni.
  • Carousel thila image awmte tan image override tihbo a ni a, utilities-ah deferred a ni.
  • Carousel entirnan tweak a, markup leh style thar te pawh dah tel a ni.

Table te pawh a awm

  • Styled nested tables te support tihbo a ni. Tunah chuan table style zawng zawng chu v4 ah inherited a ni tawh a, selector awlsam zawk atan.
  • Inverse table variant a rawn dah belh bawk.

Utilities te pawh a awm

  • Display, thup leh thil dang tam tak:
    • Display utilities te chu chhang thei tura siam (eg, .d-noneleh d-{sm,md,lg,xl}-none).
    • Display utility.hidden-* thar atan utility tam zawk a thlak . Entirnan, , tih ai chuan . Display utility naming scheme hmang turin utilities hming thlak a ni. He page-a Responsive utilities section hnuaiah hian thu belhchian dawl zawk hmuh theih a ni..hidden-sm-up.d-sm-none.hidden-print
    • .float-{sm,md,lg,xl}-{left,right,none}Responsive floats tan class dah belh leh paih chhuah .pull-leftleh .pull-rightredundant to an nih avangin .float-leftleh .float-right.
  • Lampang:
    • Kan text alignment class hrang hrangah responsive variation kan dah belh a .text-{sm,md,lg,xl}-{left,center,right}.
  • Alignment leh a inkar hlat zawng: 1.1.
  • Clearfix update a ni a, browser version hlui zawk support a awm loh nan.

Vendor hmahruaitu mixins te

Bootstrap 3-a vendor prefix mixins, v3.2.0-a hman tawh loh kha Bootstrap 4-ah khan paih a ni tawh a, Autoprefixer kan hman avangin a ngai tawh lo.

A hnuaia mixin te hi paih chhuah a ni : 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-durationtransition-propertytransition-timing-functiontransition-transformtranslatetranslate3duser-select

Documentation siam a ni

Kan documentation hian across the board pawhin upgrade a dawng bawk. Hetah hian low down chu a awm:

  • Jekyll kan la hmang reng a, mahse mix-ah hian plugins kan nei a:
    • bugify.rbkan browser bugs page -a entry awmte chu uluk taka list chhuah nan hman a ni.
    • example.rbchu default highlight.rbplugin-a custom fork a ni a, example-code handling awlsam zawk a siamsak thei a ni.
    • callout.rbchu chutiang custom fork ang chiah chu a ni a, mahse kan special docs callouts atan a siam a ni.
    • jekyll-toc hi kan table of contents siam nan hman a ni.
  • Docs content zawng zawng chu Markdown (HTML ai chuan) hmangin edit awlsam zawk nan ziah thar vek a ni.
  • Page hrang hrangte chu thupui awlsam zawk leh hnaih awlsam zawka awm theihna turin siam thar leh a ni.
  • Bootstrap-a variable, mixins leh thil dang tam tak hmang tangkai turin CSS pangngai atanga SCSS-ah kan kal a.

Utilities chhanna pe thei

Variable zawng zawng @screen-chu v4.0.0 ah hian paih vek a ni tawh. media-breakpoint-up(), media-breakpoint-down(), emaw media-breakpoint-only()Sass mixins emaw $grid-breakpointsSass map emaw hmang zawk rawh .

Kan responsive utility class te hi a tam zawk chu explicit displayutilities duh zawngin an paih chhuak a ni.

  • The .hiddenand class te chu jQuery’s leh methods te .shownen an inhnial avangin paih a ni. Chu ai chuan attribute chu toggling tum la, a nih loh leh inline styles ang chi leh .$(...).hide()$(...).show()[hidden]style="display: none;"style="display: block;"
  • Class zawng zawng .hidden-chu paih vek a ni tawh a, print utilities hming thlak tawhte tih loh chu.
    • v3 atanga lakchhuah a ni:.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
    • v4 alphas atanga lakchhuah a ni:.hidden-xs-up .hidden-xs-down .hidden-sm-up .hidden-sm-down .hidden-md-up .hidden-md-down .hidden-lg-up .hidden-lg-down
  • Print utilities te chu .hidden-or hmangin an tan tawh lo va .visible-, .d-print-.
    • Hming hlui: .visible-print-block, .visible-print-inline, .visible-print-inline-block, ..hidden-print
    • Class thar: .d-print-block, .d-print-inline, .d-print-inline-block, ..d-print-none

Explicit class hman ai chuan .visible-*element pakhat chu chutiang screen size-a thup loh mai mai hmangin hmuh theih turin i siam a ni. .d-*-noneClass pakhat leh class pakhat .d-*-blockchu screen size interval pek tawhah chauh element pakhat entir turin i combine thei (eg .d-none.d-md-block.d-xl-nonedevice chu medium leh large device-ah chauh element a entir).

v4-a grid breakpoint-a inthlak danglamna awmte hian result inang hmuh theih nan breakpoint pakhat lian zawka kal a ngai dawn tihna a ni tih hre reng ang che. Responsive utility class tharte hian element pakhat visibility chu viewport size hrang hranga inzawm range pakhat anga sawi theih lohna case awm tlem zawkte chu pawm an tum lo va chutiang hunah chuan custom CSS i hman a ngai zawk ang.