Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
add browser specific col-centered
Browse files Browse the repository at this point in the history
  • Loading branch information
hans2103 committed Sep 29, 2014
1 parent fc3fc3f commit c862c7b
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions less/_custom.less
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,34 @@ h1 {
}
}

// Browser width specific .col-centered
.col-xs-centered {
@media (max-width: @screen-xs-max) {
float: none;
margin: 0 auto;
}
}
.col-sm-centered {
@media (max-width: @screen-sm-max) {
float: none;
margin: 0 auto;
}
}
.col-md-centered {
@media (max-width: @screen-md-max) {
float: none;
margin: 0 auto;
}
}
.col-lg-centered {
@media (min-width: @screen-lg-min) {
float: none;
margin: 0 auto;
}
}
.col-centered {
float:none;
margin:0 auto;
float: none;
margin: 0 auto;
}

@media (min-width: 992px) {
Expand Down

0 comments on commit c862c7b

Please sign in to comment.