Created
February 2, 2016 04:58
-
-
Save colorqualia/dbb5b5dbe5c7a903424a to your computer and use it in GitHub Desktop.
Bootstrap標準のグリッドを上下中央並びにするクラス
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ------------------------- | |
| // 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