Skip to main content Skip ad navigationem soUicitudo
in English

Breakpoints

Breakpoints sunt in latitudines customisabiles qui determinant quomodo layout responsivus se gerit per machinam vel secundum magnitudinem in Bootstrap.

Core conceptibus

  • Breakpoints sunt structurae caudices consilii responsivae. Utere illis ad regendum, cum tua layout ad certam magnitudinem machinasque prospectus accommodari potest.

  • Media quaestionibus utere ut architectura tua CSS per breakpoint. Media quaesita notae sunt CSS quae te permittit ut sub condicione stylos applicaret in statuto navigandi et parametris systematis operantis. min-widthIn nostris instrumentis quaestionibus frequentissime utimur .

  • Mobile primum, responsive consilium est finis. Bootstrap scriptor CSS intendit ad nudum minimum stylorum applicandum ut opus in minimis breakpoint layout, ac deinde stylos in strata majoribus machinis consilium aptare possit. Hoc tuum CSS optimizes, tempus emendans reddens, magnamque experientiam visitatoribus tuis praebet.

Praesto breakpoints

Bootstrap includit sex fracturae defectus, interdum ut lineae craticulae referuntur , ad responsalem aedificandum. Illae confractiones nativus fieri possunt si nostro fonte Sass files uteris.

Breakpoint Classis infix Dimensiones
X-Small Nullus <576px
Parvus sm ≥576px
Medium md ≥768px
Magna lg ≥992px
Extra large xl ≥1200px
Extra extra magna xxl ≥1400px

Singula confractio electa est ut commode contineret continentia quarum latitudines multiplicatae sunt 12. Breakpoints sunt etiam repraesentativa copiarum machinarum communis et mensurarum prospectus - non omnes casus aut machinas nominatim oppugnant. Sed iugis firmum et constantem fundamentum praebent ad aedificandum fere quodlibet artificium.

Illae confractiones in customizabilia per Sass sunt — ea invenies in tabula Sass in nostro _variables.scssstilo.

$grid-breakpoints: (
  xs: 0,
  sm: 576px,
  md: 768px,
  lg: 992px,
  xl: 1200px,
  xxl: 1400px
);

Pro pluribus informationibus et exemplis in quomodo ad mappas nostras Sass et variabiles modificare, placere ad sectionem in Grid documentorum Sass referre .

Media queries

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.

Min-latitudo

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

// Source 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) { ... }
@include media-breakpoint-up(xxl) { ... }

// Usage

// 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;
  }
}

Hi Sass mixins interpretantur in CSS compilata nostra utentes valores in differentiis nostris Sass declarati. Exempli gratia:

// X-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) { ... }

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

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

Max-latitudo

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

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

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

Hae mixinae illae fracturae declara- tiones sumunt, .02pxab illis detrahent, easque ut bona nostra adhibent max-width. Exempli gratia:

// `xs` returns only a ruleset and no media query
// ... { ... }

// `sm` applies to x-small devices (portrait phones, less than 576px)
@media (max-width: 575.98px) { ... }

// `md` applies to small devices (landscape phones, less than 768px)
@media (max-width: 767.98px) { ... }

// `lg` applies to medium devices (tablets, less than 992px)
@media (max-width: 991.98px) { ... }

// `xl` applies to large devices (desktops, less than 1200px)
@media (max-width: 1199.98px) { ... }

// `xxl` applies to x-large devices (large desktops, less than 1400px)
@media (max-width: 1399.98px) { ... }
Cur detrahe .02px? Navigantes in praesenti contextu quaestionis ambitus non sustinent , ideo circum limitationes min-et max-praefixiones et prospectus laboramus cum inflexionibus fractis (quae sub quibusdam condicionibus altis cogitationibus, exempli gratia) accidere possunt, utendo valores altioribus praecisione.

una breakpoint

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

@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) { ... }
@include media-breakpoint-only(xxl) { ... }

Evenit ut @include media-breakpoint-only(md) { ... }.

@media (min-width: 768px) and (max-width: 991.98px) { ... }

inter breakpoints

Similiter in instrumentis quaestionibus multiplex inversae ruptionis inversae spatiari possunt;

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

Quod sequitur:

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