2012-06-29 04:46:45 +00:00
|
|
|
//
|
|
|
|
// Responsive: Landscape phone to desktop/tablet
|
2012-03-23 04:54:54 +00:00
|
|
|
// --------------------------------------------------
|
|
|
|
|
2012-06-29 04:46:45 +00:00
|
|
|
|
2012-03-23 04:54:54 +00:00
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
|
|
|
// Padding to set content in a bit
|
|
|
|
body {
|
|
|
|
padding-left: 20px;
|
|
|
|
padding-right: 20px;
|
|
|
|
}
|
2012-03-25 23:40:51 +00:00
|
|
|
// Negative indent the now static "fixed" navbar
|
2012-03-23 07:38:13 +00:00
|
|
|
.navbar-fixed-top,
|
2012-08-27 18:05:01 +00:00
|
|
|
.navbar-fixed-bottom,
|
|
|
|
.navbar-static-top {
|
2012-03-23 04:54:54 +00:00
|
|
|
margin-left: -20px;
|
|
|
|
margin-right: -20px;
|
|
|
|
}
|
2012-03-25 23:40:51 +00:00
|
|
|
// Remove padding on container given explicit padding set on body
|
|
|
|
.container-fluid {
|
|
|
|
padding: 0;
|
|
|
|
}
|
2012-03-23 04:54:54 +00:00
|
|
|
|
2012-04-01 06:53:54 +00:00
|
|
|
// TYPOGRAPHY
|
|
|
|
// ----------
|
|
|
|
// Reset horizontal dl
|
|
|
|
.dl-horizontal {
|
|
|
|
dt {
|
|
|
|
float: none;
|
|
|
|
clear: none;
|
|
|
|
width: auto;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
dd {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-03-23 04:54:54 +00:00
|
|
|
// GRID & CONTAINERS
|
|
|
|
// -----------------
|
|
|
|
// Remove width from containers
|
|
|
|
.container {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
// Fluid rows
|
|
|
|
.row-fluid {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2012-04-07 21:31:55 +00:00
|
|
|
// Undo negative margin on rows and thumbnails
|
|
|
|
.row,
|
|
|
|
.thumbnails {
|
2012-03-23 04:54:54 +00:00
|
|
|
margin-left: 0;
|
|
|
|
}
|
2012-07-10 04:07:49 +00:00
|
|
|
.thumbnails > li {
|
|
|
|
float: none;
|
2012-08-20 18:31:24 +00:00
|
|
|
margin-left: 0; // Reset the default margin for all li elements when no .span* classes are present
|
2012-07-10 04:07:49 +00:00
|
|
|
}
|
2012-04-01 04:31:01 +00:00
|
|
|
// Make all grid-sized elements block level again
|
|
|
|
[class*="span"],
|
2012-09-23 23:06:28 +00:00
|
|
|
.uneditable-input[class*="span"], // Makes uneditable inputs full-width when using grid sizing
|
2012-04-01 04:31:01 +00:00
|
|
|
.row-fluid [class*="span"] {
|
2012-03-23 04:54:54 +00:00
|
|
|
float: none;
|
|
|
|
display: block;
|
2012-08-29 20:06:47 +00:00
|
|
|
width: 100%;
|
2012-04-07 21:31:55 +00:00
|
|
|
margin-left: 0;
|
2012-08-29 20:06:47 +00:00
|
|
|
.box-sizing(border-box);
|
2012-03-23 04:54:54 +00:00
|
|
|
}
|
2012-08-02 02:33:37 +00:00
|
|
|
.span12,
|
|
|
|
.row-fluid .span12 {
|
|
|
|
width: 100%;
|
|
|
|
.box-sizing(border-box);
|
|
|
|
}
|
2012-09-07 14:54:15 +00:00
|
|
|
.row-fluid [class*="offset"]:first-child {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2012-03-23 04:54:54 +00:00
|
|
|
|
|
|
|
// FORM FIELDS
|
|
|
|
// -----------
|
|
|
|
// Make span* classes full width
|
2012-04-08 06:41:09 +00:00
|
|
|
.input-large,
|
|
|
|
.input-xlarge,
|
|
|
|
.input-xxlarge,
|
2012-03-23 04:54:54 +00:00
|
|
|
input[class*="span"],
|
|
|
|
select[class*="span"],
|
|
|
|
textarea[class*="span"],
|
|
|
|
.uneditable-input {
|
|
|
|
.input-block-level();
|
|
|
|
}
|
|
|
|
// But don't let it screw up prepend/append inputs
|
2012-04-01 04:31:01 +00:00
|
|
|
.input-prepend input,
|
|
|
|
.input-append input,
|
2012-03-23 04:54:54 +00:00
|
|
|
.input-prepend input[class*="span"],
|
|
|
|
.input-append input[class*="span"] {
|
2012-04-01 04:31:01 +00:00
|
|
|
display: inline-block; // redeclare so they don't wrap to new lines
|
2012-03-23 04:54:54 +00:00
|
|
|
width: auto;
|
|
|
|
}
|
2012-08-27 18:46:47 +00:00
|
|
|
.controls-row [class*="span"] + [class*="span"] {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2012-03-23 04:54:54 +00:00
|
|
|
|
2012-07-24 07:44:11 +00:00
|
|
|
// Modals
|
|
|
|
.modal {
|
|
|
|
position: fixed;
|
|
|
|
top: 20px;
|
|
|
|
left: 20px;
|
|
|
|
right: 20px;
|
|
|
|
width: auto;
|
|
|
|
margin: 0;
|
2012-09-27 09:44:48 +00:00
|
|
|
&.fade { top: -100px; }
|
|
|
|
&.fade.in { top: 20px; }
|
2012-07-24 07:44:11 +00:00
|
|
|
}
|
|
|
|
|
2012-03-23 04:54:54 +00:00
|
|
|
}
|
2012-06-25 23:25:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 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
|
2012-08-29 20:05:43 +00:00
|
|
|
.form-horizontal {
|
|
|
|
.control-label {
|
|
|
|
float: none;
|
|
|
|
width: auto;
|
|
|
|
padding-top: 0;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
// Move over all input controls and content
|
|
|
|
.controls {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
// Move the options list down to align with labels
|
|
|
|
.control-list {
|
|
|
|
padding-top: 0; // has to be padding because margin collaspes
|
|
|
|
}
|
|
|
|
// Move over buttons in .form-actions to align with .controls
|
|
|
|
.form-actions {
|
|
|
|
padding-left: 10px;
|
|
|
|
padding-right: 10px;
|
|
|
|
}
|
2012-06-25 23:25:50 +00:00
|
|
|
}
|
|
|
|
|
2012-09-17 23:43:18 +00:00
|
|
|
// Medias
|
2012-09-18 01:15:39 +00:00
|
|
|
// Reset float and spacing to stack
|
2012-09-17 23:43:18 +00:00
|
|
|
.media .pull-left,
|
2012-09-18 01:15:39 +00:00
|
|
|
.media .pull-right {
|
2012-09-17 23:43:18 +00:00
|
|
|
float: none;
|
|
|
|
display: block;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
2012-09-18 01:15:39 +00:00
|
|
|
// Remove side margins since we stack instead of indent
|
|
|
|
.media-object {
|
2012-09-17 23:43:18 +00:00
|
|
|
margin-right: 0;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
2012-06-25 23:25:50 +00:00
|
|
|
// Modals
|
|
|
|
.modal {
|
|
|
|
top: 10px;
|
|
|
|
left: 10px;
|
|
|
|
right: 10px;
|
|
|
|
}
|
|
|
|
.modal-header .close {
|
|
|
|
padding: 10px;
|
|
|
|
margin: -10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Carousel
|
|
|
|
.carousel-caption {
|
|
|
|
position: static;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|