in English

Overview

Components et optiones ad propositum tuum Bootstrap destinandum, involucris vasis, systematis eget validum, obiectum instrumentorum flexibilium, et genera utilitatum responsiva.

Continentes

Continentes in Bootstrap principales sunt layout elementi et requiruntur cum usura systematis nostri default gridis . Vasa continent, caudex et interdum contentus in se continet. Dum continentia nidificari potest , plurimae tabulae receptaculum nidum non requirunt.

Bootstrap venit cum tribus vasis diversis;

  • .container, quod ponit max-widthad utrumque responsurum breakpoint
  • .container-fluidquae est width: 100%omnino breakpoints
  • .container-{breakpoint}quae est width: 100%usque ad certum breakpoint

Mensa infra illustrat quomodo singula continentis max-widthcomparat cum originali .containeret .container-fluidper quamlibet rupturam.

In actione vide et confer in exemplo nostro Grid .

Extra parva
<576px
Parvus
≥576px
Medium
≥768px
Magnae
≥992px
Extra magnum
≥1200px
.container 100% 540px 720px 960px 1140px
.container-sm 100% 540px 720px 960px 1140px
.container-md 100% 100% 720px 960px 1140px
.container-lg 100% 100% 100% 960px 1140px
.container-xl 100% 100% 100% 100% 1140px
.container-fluid 100% 100% 100% 100% 100%

Omnes-in-unum

Classis default noster .containerest continens fixum-latum et responsivum, significationes suas max-widthin unoquovis fracturae loco mutationes.

<div class="container">
  <!-- Content here -->
</div>

Liquor

Utere .container-fluidlatitudine plena continente, totam latitudinem prospectus enucleando.

<div class="container-fluid">
  ...
</div>

Responsivum

Vasa responsiva nova sunt in Bootstrap v4.4. Permittunt te denotare genus quod C% latum est usque ad punctum certum ventum est, postquam applicamus max-widths pro singulis punctionibus superiorum. Exempli gratia, .container-smlatitudinis C% est incipere usque ad smconfractum ventum, ubi ascendet cum md, lg, et xl.

<div class="container-sm">100% wide until small breakpoint</div>
<div class="container-md">100% wide until medium breakpoint</div>
<div class="container-lg">100% wide until large breakpoint</div>
<div class="container-xl">100% wide until extra large breakpoint</div>

Responsivum breakpoints

Cum Bootstrap primum mobilis evolvatur, nonnullis instrumentorum instrumentorum quaestionibus utimur ad puncta sensibilia creandas pro intentionibus et instrumentis nostris. Illae puncta plerumque in latitudines minimarum prospectuum innituntur et elementa nos conscendere sinunt sicut mutationes prospectus.

Bootstrap principaliter utitur his instrumentis interrogationis iugis vel ruptionibus-in nostris fontibus Sass files pro nostro extensione, systemate eget ac componentibus.

// Extra small devices (portrait phones, less than 576px)
// No media query for `xs` since this is the default in Bootstrap

// Small devices (landscape phones, 576px and up)
@media (min-width: 576px) { ... }

// Medium devices (tablets, 768px and up)
@media (min-width: 768px) { ... }

// Large devices (desktops, 992px and up)
@media (min-width: 992px) { ... }

// Extra large devices (large desktops, 1200px and up)
@media (min-width: 1200px) { ... }

Cum fontem nostrum CSS in Sass scribimus, omnia instrumenta nostra media quaesita sunt in promptu per Sass mixins:

// No media query necessary for xs breakpoint as it's effectively `@media (min-width: 0) { ... }`
@include media-breakpoint-up(sm) { ... }
@include media-breakpoint-up(md) { ... }
@include media-breakpoint-up(lg) { ... }
@include media-breakpoint-up(xl) { ... }

// Example: Hide starting at `min-width: 0`, and then show at the `sm` breakpoint
.custom-class {
  display: none;
}
@include media-breakpoint-up(sm) {
  .custom-class {
    display: block;
  }
}

Nonnumquam instrumentis quaestionibus utimur quae in alteram partem vadunt (vel amplitudo vel minor data );

// Extra small devices (portrait phones, less than 576px)
@media (max-width: 575.98px) { ... }

// Small devices (landscape phones, less than 768px)
@media (max-width: 767.98px) { ... }

// Medium devices (tablets, less than 992px)
@media (max-width: 991.98px) { ... }

// Large devices (desktops, less than 1200px)
@media (max-width: 1199.98px) { ... }

// Extra large devices (large desktops)
// No media query since the extra-large breakpoint has no upper bound on its width
Nota quod, cum navigatores in contextu quaestionis amplis non sustinent , circa limitationes min-et max-praefixiones et prospectus fractis latitudinibus laboramus (quod sub quibusdam condicionibus altis machinis, exempli gratia, potest accidere) utendo valores altioribus ad has comparationes accuratissime. .

Iterum, haec instrumenta communicationis socialis per Sass mixins praesto sunt:

@include media-breakpoint-down(xs) { ... }
@include media-breakpoint-down(sm) { ... }
@include media-breakpoint-down(md) { ... }
@include media-breakpoint-down(lg) { ... }
// No media query necessary for xl breakpoint as it has no upper bound on its width

// Example: Style from medium breakpoint and down
@include media-breakpoint-down(md) {
  .custom-class {
    display: block;
  }
}

Sunt etiam media quaesita et mixina in quibus unum segmentum magnitudinum screen utentes minimam et maximam latitudinem rupturae.

// Extra small devices (portrait phones, less than 576px)
@media (max-width: 575.98px) { ... }

// Small devices (landscape phones, 576px and up)
@media (min-width: 576px) and (max-width: 767.98px) { ... }

// Medium devices (tablets, 768px and up)
@media (min-width: 768px) and (max-width: 991.98px) { ... }

// Large devices (desktops, 992px and up)
@media (min-width: 992px) and (max-width: 1199.98px) { ... }

// Extra large devices (large desktops, 1200px and up)
@media (min-width: 1200px) { ... }

Haec instrumenta communicationis socialis per Sass mixins praesto sunt:

@include media-breakpoint-only(xs) { ... }
@include media-breakpoint-only(sm) { ... }
@include media-breakpoint-only(md) { ... }
@include media-breakpoint-only(lg) { ... }
@include media-breakpoint-only(xl) { ... }

Similiter in instrumentis quaestionibus multiplex inversae ruptionis inversae spatiari possunt;

// Example
// Apply styles starting from medium devices and up to extra large devices
@media (min-width: 768px) and (max-width: 1199.98px) { ... }

The Sass mixin for targeting the same screen size range would be:

@include media-breakpoint-between(md, xl) { ... }

Z-index

Plures partes Bootstrap utantur z-index, res CSS quae imperium adiuvat extensionem praebens tertiam axem ad contentum disponendum. Defaltam z-index adhibemus in Bootstrap quod destinatum est ad recte navigationem, instrumenta et popovers, modalia et plura.

Hae superiores valores ab arbitrario numero incipiunt, magni et specifici satis ad certamina idealia vitanda. Vexillum opus est harum partium trans stratis - instrumentis, popovers, navbaribus, stillicidiis, modalibus, ut rationabiliter in moribus congruere possimus. Nulla ratione 100+ vel 500+ usos esse non potuimus.

Non hortamur customizationem horum singulorum bonorum; si unum mutes, omnes mutare debes.

$zindex-dropdown:          1000 !default;
$zindex-sticky:            1020 !default;
$zindex-fixed:             1030 !default;
$zindex-modal-backdrop:    1040 !default;
$zindex-modal:             1050 !default;
$zindex-popover:           1060 !default;
$zindex-tooltip:           1070 !default;

z-indexAd fines imbricatis intra componentes tractamus (exempli gratia globuli et inputs in coetibus inputationibus), valores unius digiti humiliores utimur 1, 2, et 3pro defalta, tabernus et activae civitates. In aliquet / umbilico / activo, elementum particulare ad frontem adducimus meliori z-indexvalore ad ostendendum terminum suum super elementa fraterna.