Skip to content

Instantly share code, notes, and snippets.

@colorqualia
Created February 2, 2016 04:58
Show Gist options
  • Save colorqualia/dbb5b5dbe5c7a903424a to your computer and use it in GitHub Desktop.
Save colorqualia/dbb5b5dbe5c7a903424a to your computer and use it in GitHub Desktop.
Bootstrap標準のグリッドを上下中央並びにするクラス
// -------------------------
// Bootstrap標準のグリッドを上下中央並びにするクラス
// -------------------------
.row-inlineblock {
@extend .row;
font-size: 0;
@for $i from 1 through $grid-columns {
.col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i} {
float: none;
font-size: $font-size-base;
vertical-align: middle;
}
.col-xs-#{$i} {
display: inline-block;
}
@media (min-width: $screen-sm-min) {
.col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i} {
display: inline-block;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment