Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

alessandroraffa/bootstrap-customization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bootstrap-customization

Customizing Twitter Bootstrap 3.0.0

The next upcoming release of Twitter Bootstrap will be a strong rewrite of the framework, with the mobile first approach.

They added sm, md and lg CSS classes, to identify respectively small, medium and large devices.

In this customization, there is also a fourth CSS class wd, to identify wide devices.


You can use the following code to test those classes.

<div class="row">
  <div class="col-lg-3">
    <div class="visible-sm">Visible small</div>
    <div class="hidden-sm">Hidden small</div>
  </div>
  <div class="col-lg-3">
    <div class="visible-md">Visible medium</div>
    <div class="hidden-md">Hidden medium</div>
  </div>
  <div class="col-lg-3">
    <div class="visible-lg">Visible large</div>
    <div class="hidden-lg">Hidden large</div>
  </div>
  <div class="col-lg-3">
    <div class="visible-wd">Visible wide</div>
    <div class="hidden-wd">Hidden wide</div>
  </div>
</div>

You can use or combine these media queries to customize your CCS3 rules.

/* Small to Wide and larger */

/* Small only */
@media (max-width: 767px) {

}

/* Medium to Large */
@media (min-width: 768px) and (max-width: 991px) {

}

/* Large to Wide */
@media (min-width: 992px) and (max-width: 1199px) {

}

/* Wide and larger */
@media (min-width: 1200px) {

}

About

Customizing Twitter Bootstrap 3.0.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published