Skip to content

Instantly share code, notes, and snippets.

@aagouda
Forked from andyl/bootstrap_ms.css
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aagouda/91ff69da8996f81ca830 to your computer and use it in GitHub Desktop.
Save aagouda/91ff69da8996f81ca830 to your computer and use it in GitHub Desktop.
/**
Bootstrap Mid-msall - col-ms-* - the missing grid set for Bootstrap3.
This is a hack to fill the gap between 480 and 760 pixels - a missing range
in the bootstrap responsive grid structure. Use these classes to style pages
on cellphones when they transition from portrait to landscape.
See https://github.com/twbs/bootstrap/issues/10203 for more info.
Columns, offsets, pushes, and pulls for the ms device range, from phones
to tablets.
Note that `.col-ms-12` doesn't get floated on purpose—there's no need since
it's full-width.
**/
.col-ms-1,
.col-ms-2,
.col-ms-3,
.col-ms-4,
.col-ms-5,
.col-ms-6,
.col-ms-7,
.col-ms-8,
.col-ms-9,
.col-ms-10,
.col-ms-11,
.col-ms-12 {
position: relative;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
}
@media (min-width: 480px) and (max-width: 767px) {
.col-ms-1,
.col-ms-2,
.col-ms-3,
.col-ms-4,
.col-ms-5,
.col-ms-6,
.col-ms-7,
.col-ms-8,
.col-ms-9,
.col-ms-10,
.col-ms-11 {
float: left;
}
.col-ms-1 {
width: 8.33333%;
}
.col-ms-2 {
width: 16.66667%;
}
.col-ms-3 {
width: 25%;
}
.col-ms-4 {
width: 33.33333%;
}
.col-ms-5 {
width: 41.66667%;
}
.col-ms-6 {
width: 50%; }
.col-ms-7 {
width: 58.33333%;
}
.col-ms-8 {
width: 66.66667%;
}
.col-ms-9 {
width: 75%;
}
.col-ms-10 {
width: 83.33333%;
}
.col-ms-11 {
width: 91.66667%;
}
.col-ms-12 {
width: 100%;
}
.col-ms-push-1 {
left: 8.33333%;
}
.col-ms-push-2 {
left: 16.66667%;
}
.col-ms-push-3 {
left: 25%;
}
.col-ms-push-4 {
left: 33.33333%;
}
.col-ms-push-5 {
left: 41.66667%;
}
.col-ms-push-6 {
left: 50%;
}
.col-ms-push-7 {
left: 58.33333%;
}
.col-ms-push-8 {
left: 66.66667%;
}
.col-ms-push-9 {
left: 75%;
}
.col-ms-push-10 {
left: 83.33333%;
}
.col-ms-push-11 {
left: 91.66667%;
}
.col-sm-push-12 {
left: 100%;
}
.col-ms-pull-1 {
right: 8.33333%;
}
.col-ms-pull-2 {
right: 16.66667%;
}
.col-ms-pull-3 {
right: 25%;
}
.col-ms-pull-4 {
right: 33.33333%;
}
.col-ms-pull-5 {
right: 41.66667%;
}
.col-ms-pull-6 {
right: 50%;
}
.col-ms-pull-7 {
right: 58.33333%;
}
.col-ms-pull-8 {
right: 66.66667%;
}
.col-ms-pull-9 {
right: 75%;
}
.col-ms-pull-10 {
right: 83.33333%;
}
.col-ms-pull-11 {
right: 91.66667%;
}
.col-ms-pull-12 {
right: 100%;
}
.col-ms-offset-1 {
margin-left: 8.33333%;
}
.col-ms-offset-2 {
margin-left: 16.66667%;
}
.col-ms-offset-3 {
margin-left: 25%;
}
.col-ms-offset-4 {
margin-left: 33.33333%;
}
.col-ms-offset-5 {
margin-left: 41.66667%;
}
.col-ms-offset-6 {
margin-left: 50%;
}
.col-ms-offset-7 {
margin-left: 58.33333%;
}
.col-ms-offset-8 {
margin-left: 66.66667%;
}
.col-ms-offset-9 {
margin-left: 75%;
}
.col-ms-offset-10 {
margin-left: 83.33333%;
}
.col-ms-offset-11 {
margin-left: 91.66667%;
}
.col-ms-offset-12 {
margin-left: 100%;
}
}
@media (min-width: 480px) and (max-width: 767px) {
.container {
max-width: 748px;
}
.form-horizontal .form-group .control-label {
text-align:right;
}
}
.visible-ms {
display: none !important;
}
.visible-ms-block,
.visible-ms-inline,
.visible-ms-inline-block {
display: none !important;
}
@media (min-width: 480px) and (max-width: 767px) {
.visible-ms {
display: block !important;
}
table.visible-ms {
display: table;
}
tr.visible-ms {
display: table-row !important;
}
th.visible-ms,
td.visible-ms {
display: table-cell !important;
}
}
@media (min-width: 480px) and (max-width: 767px) {
.visible-ms-block {
display: block !important;
}
}
@media (min-width: 480px) and (max-width: 767px) {
.visible-ms-inline {
display: inline !important;
}
}
@media (min-width: 480px) and (max-width: 767px) {
.visible-ms-inline-block {
display: inline-block !important;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.hidden-ms {
display: none !important;
}
}
/**
Bootstrap Mid-msall - col-ms-* - the missing grid set for Bootstrap3.
This is a hack to fill the gap between 480 and 760 pixels - a missing range
in the bootstrap responsive grid structure. Use these classes to style pages
on cellphones when they transition from portrait to landscape.
See https://github.com/twbs/bootstrap/issues/10203 for more info.
Columns, offsets, pushes, and pulls for the ms device range, from phones
to tablets.
Note that `.col-ms-12` doesn't get floated on purpose—there's no need since
it's full-width.
**/
.col-ms-1,
.col-ms-2,
.col-ms-3,
.col-ms-4,
.col-ms-5,
.col-ms-6,
.col-ms-7,
.col-ms-8,
.col-ms-9,
.col-ms-10,
.col-ms-11,
.col-ms-12 {
position: relative;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
}
@media (min-width: 480px) and (max-width: 767px) {
.col-ms-1,
.col-ms-2,
.col-ms-3,
.col-ms-4,
.col-ms-5,
.col-ms-6,
.col-ms-7,
.col-ms-8,
.col-ms-9,
.col-ms-10,
.col-ms-11,
.col-ms-12 {
float: right;
}
.col-ms-1 {
width: 8.33333%;
}
.col-ms-2 {
width: 16.66667%;
}
.col-ms-3 {
width: 25%;
}
.col-ms-4 {
width: 33.33333%;
}
.col-ms-5 {
width: 41.66667%;
}
.col-ms-6 {
width: 50%;
}
.col-ms-7 {
width: 58.33333%;
}
.col-ms-8 {
width: 66.66667%;
}
.col-ms-9 {
width: 75%;
}
.col-ms-10 {
width: 83.33333%;
}
.col-ms-11 {
width: 91.66667%;
}
.col-ms-12 {
width: 100%;
}
.col-ms-push-1 {
right: 8.33333%;
left: 0;
}
.col-ms-push-2 {
right: 16.66667%;
left: 0;
}
.col-ms-push-3 {
right: 25%;
left: 0;
}
.col-ms-push-4 {
right: 33.33333%;
left: 0;
}
.col-ms-push-5 {
right: 41.66667%;
left: 0;
}
.col-ms-push-6 {
right: 50%;
left: 0;
}
.col-ms-push-7 {
right: 58.33333%;
left: 0;
}
.col-ms-push-8 {
right: 66.66667%;
left: 0;
}
.col-ms-push-9 {
right: 75%;
left: 0;
}
.col-ms-push-10 {
right: 83.33333%;
left: 0;
}
.col-ms-push-11 {
right: 91.66667%;
left: 0;
}
.col-ms-push-12 {
right: 100%;
left: 0;
}
.col-ms-pull-1 {
left: 8.33333%;
right: auto;
}
.col-ms-pull-2 {
left: 16.66667%;
right: auto;
}
.col-ms-pull-3 {
left: 25%;
right: auto;
}
.col-ms-pull-4 {
left: 33.33333%;
right: auto;
}
.col-ms-pull-5 {
left: 41.66667%;
right: auto;
}
.col-ms-pull-6 {
left: 50%;
right: auto;
}
.col-ms-pull-7 {
left: 58.33333%;
right: auto;
}
.col-ms-pull-8 {
left: 66.66667%;
right: auto;
}
.col-ms-pull-9 {
left: 75%;
right: auto;
}
.col-ms-pull-10 {
left: 83.33333%;
right: auto;
}
.col-ms-pull-11 {
left: 91.66667%;
right: auto;
}
.col-ms-pull-12 {
left: 100%;
right: auto;
}
.col-ms-offset-0 {
margin-right: 0%;
margin-left: 0;
}
.col-ms-offset-1 {
margin-right: 8.33333%;
margin-left: 0;
}
.col-ms-offset-2 {
margin-right: 16.66667%;
margin-left: 0;
}
.col-ms-offset-3 {
margin-right: 25%;
margin-left: 0;
}
.col-ms-offset-4 {
margin-right: 33.33333%;
margin-left: 0;
}
.col-ms-offset-5 {
margin-right: 41.66667%;
margin-left: 0;
}
.col-ms-offset-6 {
margin-right: 50%;
margin-left: 0;
}
.col-ms-offset-7 {
margin-right: 58.33333%;
margin-left: 0;
}
.col-ms-offset-8 {
margin-right: 66.66667%;
margin-left: 0;
}
.col-ms-offset-9 {
margin-right: 75%;
margin-left: 0;
}
.col-ms-offset-10 {
margin-right: 83.33333%;
margin-left: 0;
}
.col-ms-offset-11 {
margin-right: 91.66667%;
margin-left: 0;
}
.col-ms-offset-12 {
margin-right: 100%;
margin-left: 0;
}
}
@media (min-width: 480px) and (max-width: 767px) {
.container {
max-width: 748px;
}
.form-horizontal .form-group .control-label {text-align:right;}
}
.visible-ms {
display: none !important;
}
.visible-ms-block,
.visible-ms-inline,
.visible-ms-inline-block {
display: none !important;
}
@media (min-width: 480px) and (max-width: 767px) {
.visible-ms {
display: block !important;
}
table.visible-ms {
display: table;
}
tr.visible-ms {
display: table-row !important;
}
th.visible-ms,
td.visible-ms {
display: table-cell !important;
}
}
@media (min-width: 480px) and (max-width: 767px) {
.visible-ms-block {
display: block !important;
}
}
@media (min-width: 480px) and (max-width: 767px) {
.visible-ms-inline {
display: inline !important;
}
}
@media (min-width: 480px) and (max-width: 767px) {
.visible-ms-inline-block {
display: inline-block !important;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.hidden-ms {
display: none !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment