diff options
| author | Mark Otto <[email protected]> | 2012-03-22 21:54:54 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-03-22 21:54:54 -0700 |
| commit | 20da2c8ea08da9d15b72844f54bb91c9cba8b28e (patch) | |
| tree | de117cea9815ad5f1ced4e13e1c34f003046f4b4 /less/responsive-767px-max.less | |
| parent | ab068f6fda525236220af6e1bf879a677ed6bfc0 (diff) | |
| download | bootstrap-20da2c8ea08da9d15b72844f54bb91c9cba8b28e.tar.xz bootstrap-20da2c8ea08da9d15b72844f54bb91c9cba8b28e.zip | |
add the broken out responsive files
Diffstat (limited to 'less/responsive-767px-max.less')
| -rw-r--r-- | less/responsive-767px-max.less | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/less/responsive-767px-max.less b/less/responsive-767px-max.less new file mode 100644 index 000000000..6f54f8880 --- /dev/null +++ b/less/responsive-767px-max.less @@ -0,0 +1,127 @@ +// UP TO LANDSCAPE PHONE +// --------------------- + +@media (max-width: 480px) { + + // Smooth out the collapsing/expanding nav + .nav-collapse { + -webkit-transform: translate3d(0, 0, 0); // activate the GPU + } + + // Block level the page header small tag for readability + .page-header h1 small { + display: block; + line-height: @baseLineHeight; + } + + // Update checkboxes for iOS + input[type="checkbox"], + input[type="radio"] { + border: 1px solid #ccc; + } + + // Remove the horizontal form styles + .form-horizontal .control-group > label { + float: none; + width: auto; + padding-top: 0; + text-align: left; + } + // Move over all input controls and content + .form-horizontal .controls { + margin-left: 0; + } + // Move the options list down to align with labels + .form-horizontal .control-list { + padding-top: 0; // has to be padding because margin collaspes + } + // Move over buttons in .form-actions to align with .controls + .form-horizontal .form-actions { + padding-left: 10px; + padding-right: 10px; + } + + // Modals + .modal { + position: absolute; + top: 10px; + left: 10px; + right: 10px; + width: auto; + margin: 0; + &.fade.in { top: auto; } + } + .modal-header .close { + padding: 10px; + margin: -10px; + } + + // Carousel + .carousel-caption { + position: static; + } + +} + + + +// LANDSCAPE PHONE TO SMALL DESKTOP & PORTRAIT TABLET +// -------------------------------------------------- + +@media (max-width: 767px) { + + // Padding to set content in a bit + body { + padding-left: 20px; + padding-right: 20px; + } + .navbar-fixed-top { + margin-left: -20px; + margin-right: -20px; + } + + // GRID & CONTAINERS + // ----------------- + // Remove width from containers + .container { + width: auto; + } + // Fluid rows + .row-fluid { + width: 100%; + } + // Undo negative margin on rows + .row { + margin-left: 0; + } + // Make all columns even + .row > [class*="span"], + .row-fluid > [class*="span"] { + float: none; + display: block; + width: auto; + margin: 0; + } + + // THUMBNAILS + // ---------- + .thumbnails [class*="span"] { + width: auto; + } + + // FORM FIELDS + // ----------- + // Make span* classes full width + input[class*="span"], + select[class*="span"], + textarea[class*="span"], + .uneditable-input { + .input-block-level(); + } + // But don't let it screw up prepend/append inputs + .input-prepend input[class*="span"], + .input-append input[class*="span"] { + width: auto; + } + +} |
