css - Bootstrap custom break points -


i using bootstrap 3.x build client site. have specific bootstrap break points request client:

small 320px 768px, medium 769px 1034px, large 1035px 1280px, , large 1281 plus.

at same time, don't want site break future bootstrap version upgrades. key client keep using bootstrap classes such col-md-* col-lg-* etc after handed on site , moved on. how can achieve this? can share css or simple scss snippet (new scss using scout).

any appreciated.

never ever edit of bootstrap core files, instead overwrite them custom files -> way can update bootstrap.

lets got folder called bootstrap bootstrap core sass files. create new folder "custom". in folder put files overwrite bootstrap core files (like grid). within sass folder create style.scss

sass   -bootstrap-sass     - bootstrap.scss     - bootstrap        - alert.scss        - ...   -custom     - custom-grid.scss   -style.scss 

now in custom-grid.scss put , replace values:

$screen-xs:                  480px !default; //** deprecated `$screen-xs-min` of v3.2.0 $screen-xs-min:              $screen-xs !default; //** deprecated `$screen-phone` of v3.0.1 $screen-phone:               $screen-xs-min !default;  // small screen / tablet //** deprecated `$screen-sm` of v3.0.1 $screen-sm:                  768px !default; $screen-sm-min:              $screen-sm !default; //** deprecated `$screen-tablet` of v3.0.1 $screen-tablet:              $screen-sm-min !default;  // medium screen / desktop //** deprecated `$screen-md` of v3.0.1 $screen-md:                  992px !default; $screen-md-min:              $screen-md !default; //** deprecated `$screen-desktop` of v3.0.1 $screen-desktop:             $screen-md-min !default;  // large screen / wide desktop //** deprecated `$screen-lg` of v3.0.1 $screen-lg:                  1200px !default; $screen-lg-min:              $screen-lg !default; //** deprecated `$screen-lg-desktop` of v3.0.1 $screen-lg-desktop:          $screen-lg-min !default; 

in style.scss import files:

// core bootstrap @import "bootstrap-sass/_bootstrap.scss";  // overwrite bootstrap @import "custom/custom-grid.scss ... 

what trying say, way (if using sass or less) can overwrite bootstrap core files while keeping update functionality


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -