Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any way to add a breakpoint in Bootstrap?

Is there any way to add a 5th breakpont to 4 that already exist? Unfortunaetly, 4 is not enough for a project we currenty work on. the idea was to create a new break point screen-hd, which is more than 1400px. Is there easy way to do it?

like image 611
Nikita Merkulov Avatar asked May 27 '15 13:05

Nikita Merkulov


People also ask

Can you change Bootstrap breakpoints?

Bootstrap includes six default breakpoints, sometimes referred to as grid tiers, for building responsively. These breakpoints can be customized if you're using our source Sass files.

How do breakpoints work Bootstrap?

Grid sizes (A.K.A — Breakpoints)Bootstrap uses CSS media queries to create responsive breakpoints that establish a boundary for each grid size. These grid sizes enable you to change the layout of columns to best match different screen widths and devices__ the essence of responsive design.

What determines a breakpoint in Bootstrap?

Responsive breakpoints These breakpoints are mostly based on minimum viewport widths and allow us to scale up elements as the viewport changes. Bootstrap primarily uses the following media query ranges—or breakpoints—in our source Sass files for our layout, grid system, and components.

What are the Bootstrap 3 breakpoints?

Small devices (tablets, 768px and up): @media (min-width: @screen-sm-min) { ... } Medium devices (desktops, 992px and up): @media (min-width: @screen-md-min) { ... } Large devices (large desktops, 1200px and up): @media (min-width: @screen-lg-min) { ... }


1 Answers

I use this in my project:

@media (min-width: 1600px) {
    @for $i from 1 through 12 {
        $width: $i / 12 * 100;
        .col-xl-#{$i} {
            width: unquote($width + '%');
            float: left;
        }
    }   
}
like image 104
Dariusz Majchrzak Avatar answered Nov 02 '22 08:11

Dariusz Majchrzak