@media (max-width: 767px) { .container, .container-fluid { padding-left: 20px; padding-right: 20px; } .container-fluid { padding: 0; } .container { width: auto; } .row-fluid { width: 100%; } .row { margin-left: 0; } // Make all grid-sized elements block level again [class*="span"], .uneditable-input[class*="span"], // Makes uneditable inputs full-width when using grid sizing .row-fluid [class*="span"] { float: none; display: block; width: 100%; margin-left: 0; @include box-sizing(border-box); } .span12, .row-fluid .span12 { width: 100%; @include box-sizing(border-box); } .row-fluid [class*="offset"]:first-child { margin-left: 0; } // Make span* classes full width .input-large, .input-xlarge, .input-xxlarge, input[class*="span"], select[class*="span"], textarea[class*="span"], .uneditable-input { @include input-block-level(); } // But don't let it screw up prepend/append inputs .input-prepend input, .input-append input, .input-prepend input[class*="span"], .input-append input[class*="span"] { display: inline-block; // redeclare so they don't wrap to new lines width: auto; } } @media (max-width: 480px) { // Update checkboxes for iOS input[type="checkbox"], input[type="radio"] { border: 1px solid #ccc; } }