2012-01-30 04:04:26 +01:00
|
|
|
/*!
|
|
|
|
* Bootstrap Responsive v2.0.0
|
|
|
|
*
|
|
|
|
* Copyright 2012 Twitter, Inc
|
|
|
|
* Licensed under the Apache License v2.0
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
|
|
|
*/
|
|
|
|
|
2011-11-26 06:34:55 +01:00
|
|
|
// Responsive.less
|
|
|
|
// For phone and tablet devices
|
|
|
|
// -------------------------------------------------------------
|
2011-10-16 12:15:36 +02:00
|
|
|
|
|
|
|
|
2012-01-25 19:02:52 +01:00
|
|
|
// REPEAT VARIABLES & MIXINS
|
|
|
|
// -------------------------
|
|
|
|
// Required since we compile the responsive stuff separately
|
|
|
|
|
|
|
|
@import "variables.less"; // Modify this for custom colors, font-sizes, etc
|
|
|
|
@import "mixins.less";
|
|
|
|
|
|
|
|
|
2011-12-09 20:32:07 +01:00
|
|
|
// RESPONSIVE CLASSES
|
|
|
|
// ------------------
|
|
|
|
|
|
|
|
// Hide from screenreaders and browsers
|
2012-01-28 01:26:55 +01:00
|
|
|
// Credit: HTML5 Boilerplate
|
2011-12-09 20:32:07 +01:00
|
|
|
.hidden {
|
|
|
|
display: none;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-01-30 01:35:55 +01:00
|
|
|
|
2011-10-16 20:35:24 +02:00
|
|
|
// UP TO LANDSCAPE PHONE
|
|
|
|
// ---------------------
|
|
|
|
|
2011-10-16 12:15:36 +02:00
|
|
|
@media (max-width: 480px) {
|
2012-01-08 12:00:06 +01:00
|
|
|
|
2012-01-31 22:16:11 +01:00
|
|
|
// Smooth out the collapsing/expanding nav
|
|
|
|
.nav-collapse {
|
|
|
|
-webkit-transform: translate3d(0, 0, 0); // activate the GPU
|
|
|
|
}
|
|
|
|
|
2012-01-28 09:29:38 +01:00
|
|
|
// Block level the page header small tag for readability
|
|
|
|
.page-header h1 small {
|
|
|
|
display: block;
|
|
|
|
line-height: @baseLineHeight;
|
|
|
|
}
|
|
|
|
|
2012-01-28 23:30:45 +01:00
|
|
|
// Make span* classes full width
|
|
|
|
input[class*="span"],
|
|
|
|
select[class*="span"],
|
|
|
|
textarea[class*="span"],
|
|
|
|
.uneditable-input {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
height: 28px; /* Make inputs at least the height of their button counterpart */
|
|
|
|
/* Makes inputs behave like true block-level elements */
|
|
|
|
-webkit-box-sizing: border-box; /* Older Webkit */
|
|
|
|
-moz-box-sizing: border-box; /* Older FF */
|
|
|
|
-ms-box-sizing: border-box; /* IE8 */
|
|
|
|
box-sizing: border-box; /* CSS3 spec*/
|
|
|
|
}
|
|
|
|
// But don't let it screw up prepend/append inputs
|
|
|
|
.input-prepend input[class*="span"],
|
|
|
|
.input-append input[class*="span"] {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
2012-01-28 22:07:01 +01:00
|
|
|
// Update checkboxes for iOS
|
|
|
|
input[type="checkbox"],
|
|
|
|
input[type="radio"] {
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
}
|
|
|
|
|
2011-10-16 20:35:24 +02:00
|
|
|
// Remove the horizontal form styles
|
2012-01-15 06:28:47 +01:00
|
|
|
.form-horizontal .control-group > label {
|
2011-10-16 20:35:24 +02:00
|
|
|
float: none;
|
|
|
|
width: auto;
|
|
|
|
padding-top: 0;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
// Move over all input controls and content
|
2012-01-15 06:28:47 +01:00
|
|
|
.form-horizontal .controls {
|
2011-10-16 20:35:24 +02:00
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
// Move the options list down to align with labels
|
2012-01-15 06:28:47 +01:00
|
|
|
.form-horizontal .control-list {
|
2011-10-16 20:35:24 +02:00
|
|
|
padding-top: 0; // has to be padding because margin collaspes
|
2011-10-16 12:15:36 +02:00
|
|
|
}
|
2011-10-16 20:35:24 +02:00
|
|
|
// Move over buttons in .form-actions to align with .controls
|
2012-01-15 06:28:47 +01:00
|
|
|
.form-horizontal .form-actions {
|
2012-01-28 21:58:26 +01:00
|
|
|
padding-left: 10px;
|
|
|
|
padding-right: 10px;
|
2011-10-16 20:35:24 +02:00
|
|
|
}
|
2011-12-27 22:40:58 +01:00
|
|
|
|
|
|
|
// Modals
|
|
|
|
.modal {
|
2012-01-23 22:50:55 +01:00
|
|
|
position: absolute;
|
2012-01-28 09:39:22 +01:00
|
|
|
top: 10px;
|
|
|
|
left: 10px;
|
|
|
|
right: 10px;
|
2011-12-27 22:40:58 +01:00
|
|
|
width: auto;
|
2012-01-23 22:50:55 +01:00
|
|
|
margin: 0;
|
2012-01-08 22:21:44 +01:00
|
|
|
&.fade.in { top: auto; }
|
2011-12-27 22:40:58 +01:00
|
|
|
}
|
2012-01-08 22:21:44 +01:00
|
|
|
.modal-header .close {
|
|
|
|
padding: 10px;
|
2012-01-28 09:39:22 +01:00
|
|
|
margin: -10px;
|
2012-01-08 22:21:44 +01:00
|
|
|
}
|
|
|
|
|
2012-01-28 09:43:25 +01:00
|
|
|
// Carousel
|
|
|
|
.carousel-caption {
|
|
|
|
position: static;
|
|
|
|
}
|
|
|
|
|
2011-10-16 12:15:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-01-30 01:35:55 +01:00
|
|
|
|
2011-10-16 20:35:24 +02:00
|
|
|
// LANDSCAPE PHONE TO SMALL DESKTOP & PORTRAIT TABLET
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2012-02-07 08:34:03 +01:00
|
|
|
@media (max-width: 767px) {
|
2012-01-28 01:26:55 +01:00
|
|
|
// GRID & CONTAINERS
|
|
|
|
// -----------------
|
2011-10-16 12:15:36 +02:00
|
|
|
// Remove width from containers
|
|
|
|
.container {
|
|
|
|
width: auto;
|
2011-12-09 20:32:07 +01:00
|
|
|
padding: 0 20px;
|
2011-10-16 12:15:36 +02:00
|
|
|
}
|
2012-01-29 22:06:57 +01:00
|
|
|
// Fluid rows
|
|
|
|
.row-fluid {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2011-10-23 00:49:42 +02:00
|
|
|
// Undo negative margin on rows
|
|
|
|
.row {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2011-10-16 12:15:36 +02:00
|
|
|
// Make all columns even
|
2012-01-30 09:39:44 +01:00
|
|
|
.row > [class*="span"],
|
|
|
|
.row-fluid > [class*="span"] {
|
2011-10-16 12:15:36 +02:00
|
|
|
float: none;
|
|
|
|
display: block;
|
|
|
|
width: auto;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-01-30 01:35:55 +01:00
|
|
|
|
2011-10-16 20:35:24 +02:00
|
|
|
// PORTRAIT TABLET TO DEFAULT DESKTOP
|
|
|
|
// ----------------------------------
|
2011-10-16 12:15:36 +02:00
|
|
|
|
2012-01-31 22:16:11 +01:00
|
|
|
@media (min-width: 768px) and (max-width: 980px) {
|
2011-10-16 12:15:36 +02:00
|
|
|
|
2012-01-30 09:39:44 +01:00
|
|
|
// Fixed grid
|
|
|
|
#gridSystem > .generate(12, 42px, 20px);
|
2011-10-16 12:15:36 +02:00
|
|
|
|
2012-01-30 09:39:44 +01:00
|
|
|
// Fluid grid
|
|
|
|
#fluidGridSystem > .generate(12, 5.801104972%, 2.762430939%);
|
|
|
|
|
|
|
|
// Input grid
|
|
|
|
#inputGridSystem > .generate(12, 42px, 20px);
|
2011-10-16 12:15:36 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-01-28 01:26:55 +01:00
|
|
|
|
2012-01-30 01:35:55 +01:00
|
|
|
|
2012-01-28 01:26:55 +01:00
|
|
|
// TABLETS AND BELOW
|
|
|
|
// -----------------
|
2012-01-31 22:16:11 +01:00
|
|
|
@media (max-width: 980px) {
|
2012-01-28 01:26:55 +01:00
|
|
|
|
|
|
|
// UNFIX THE TOPBAR
|
|
|
|
// ----------------
|
|
|
|
// Remove any padding from the body
|
|
|
|
body {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
// Unfix the navbar
|
|
|
|
.navbar-fixed-top {
|
|
|
|
position: static;
|
2012-01-29 22:06:57 +01:00
|
|
|
margin-bottom: @baseLineHeight;
|
2012-01-28 01:26:55 +01:00
|
|
|
}
|
2012-01-29 23:07:14 +01:00
|
|
|
.navbar-fixed-top .navbar-inner {
|
2012-01-29 03:11:31 +01:00
|
|
|
padding: 5px;
|
2012-01-28 01:26:55 +01:00
|
|
|
}
|
|
|
|
.navbar .container {
|
2012-01-30 17:15:28 +01:00
|
|
|
width: auto;
|
2012-01-28 01:26:55 +01:00
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
// Account for brand name
|
|
|
|
.navbar .brand {
|
2012-01-29 03:11:31 +01:00
|
|
|
padding-left: 10px;
|
|
|
|
padding-right: 10px;
|
|
|
|
margin: 0 0 0 -5px;
|
|
|
|
}
|
|
|
|
// Nav collapse clears brand
|
|
|
|
.navbar .nav-collapse {
|
|
|
|
clear: left;
|
2012-01-28 01:26:55 +01:00
|
|
|
}
|
|
|
|
// Block-level the nav
|
|
|
|
.navbar .nav {
|
|
|
|
float: none;
|
2012-01-29 03:11:31 +01:00
|
|
|
margin: 0 0 (@baseLineHeight / 2);
|
2012-01-28 01:26:55 +01:00
|
|
|
}
|
|
|
|
.navbar .nav > li {
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
.navbar .nav > li > a {
|
|
|
|
margin-bottom: 2px;
|
|
|
|
}
|
2012-01-30 10:09:34 +01:00
|
|
|
.navbar .nav > .divider-vertical {
|
2012-01-28 01:26:55 +01:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
// Nav and dropdown links in navbar
|
|
|
|
.navbar .nav > li > a,
|
|
|
|
.navbar .dropdown-menu a {
|
|
|
|
padding: 6px 15px;
|
|
|
|
font-weight: bold;
|
|
|
|
color: @navbarLinkColor;
|
|
|
|
.border-radius(3px);
|
|
|
|
}
|
|
|
|
.navbar .dropdown-menu li + li a {
|
|
|
|
margin-bottom: 2px;
|
|
|
|
}
|
|
|
|
.navbar .nav > li > a:hover,
|
|
|
|
.navbar .dropdown-menu a:hover {
|
|
|
|
background-color: @navbarBackground;
|
|
|
|
}
|
|
|
|
// Dropdowns in the navbar
|
|
|
|
.navbar .dropdown-menu {
|
|
|
|
position: static;
|
2012-01-29 03:11:31 +01:00
|
|
|
top: auto;
|
|
|
|
left: auto;
|
2012-01-28 01:26:55 +01:00
|
|
|
float: none;
|
2012-01-29 03:11:31 +01:00
|
|
|
display: block;
|
2012-01-28 01:26:55 +01:00
|
|
|
max-width: none;
|
|
|
|
margin: 0 15px;
|
|
|
|
padding: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
|
|
|
.border-radius(0);
|
|
|
|
.box-shadow(none);
|
|
|
|
}
|
|
|
|
.navbar .dropdown-menu:before,
|
|
|
|
.navbar .dropdown-menu:after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.navbar .dropdown-menu .divider {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
// Forms in navbar
|
|
|
|
.navbar-form,
|
|
|
|
.navbar-search {
|
|
|
|
float: none;
|
|
|
|
padding: (@baseLineHeight / 2) 15px;
|
|
|
|
margin: (@baseLineHeight / 2) 0;
|
|
|
|
border-top: 1px solid @navbarBackground;
|
|
|
|
border-bottom: 1px solid @navbarBackground;
|
|
|
|
@shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1);
|
|
|
|
.box-shadow(@shadow);
|
|
|
|
}
|
|
|
|
// Pull right (secondary) nav content
|
|
|
|
.navbar .nav.pull-right {
|
|
|
|
float: none;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
// Static navbar
|
|
|
|
.navbar-static .navbar-inner {
|
|
|
|
padding-left: 10px;
|
|
|
|
padding-right: 10px;
|
|
|
|
}
|
2012-01-29 00:42:07 +01:00
|
|
|
// Navbar button
|
|
|
|
.btn-navbar {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2012-01-29 03:25:05 +01:00
|
|
|
// Hide everything in the navbar save .brand and toggle button */
|
2012-01-30 01:35:55 +01:00
|
|
|
.nav-collapse {
|
2012-01-29 00:42:07 +01:00
|
|
|
overflow: hidden;
|
|
|
|
height: 0;
|
|
|
|
}
|
2012-01-30 01:35:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DEFAULT DESKTOP
|
|
|
|
// ---------------
|
2012-01-28 01:26:55 +01:00
|
|
|
|
2012-01-31 22:16:11 +01:00
|
|
|
@media (min-width: 980px) {
|
2012-01-30 01:35:55 +01:00
|
|
|
.nav-collapse.collapse {
|
|
|
|
height: auto !important;
|
|
|
|
}
|
2012-01-28 01:26:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-01-30 01:35:55 +01:00
|
|
|
|
2011-10-16 20:35:24 +02:00
|
|
|
// LARGE DESKTOP & UP
|
|
|
|
// ------------------
|
2012-01-29 03:11:31 +01:00
|
|
|
|
2012-01-29 05:34:07 +01:00
|
|
|
@media (min-width: 1200px) {
|
2011-10-16 12:15:36 +02:00
|
|
|
|
2012-01-30 09:39:44 +01:00
|
|
|
// Fixed grid
|
|
|
|
#gridSystem > .generate(12, 70px, 30px);
|
|
|
|
|
|
|
|
// Fluid grid
|
|
|
|
#fluidGridSystem > .generate(12, 5.982905983%, 2.564102564%);
|
2012-01-30 22:59:05 +01:00
|
|
|
|
2012-01-30 09:39:44 +01:00
|
|
|
// Input grid
|
|
|
|
#inputGridSystem > .generate(12, 70px, 30px);
|
2011-10-16 12:15:36 +02:00
|
|
|
|
2012-01-29 22:06:57 +01:00
|
|
|
// Thumbnails
|
|
|
|
.thumbnails {
|
2012-01-30 09:39:44 +01:00
|
|
|
margin-left: -30px;
|
2012-01-29 22:06:57 +01:00
|
|
|
}
|
|
|
|
.thumbnails > li {
|
2012-01-30 09:39:44 +01:00
|
|
|
margin-left: 30px;
|
2012-01-29 22:06:57 +01:00
|
|
|
}
|
|
|
|
|
2011-10-16 21:11:48 +02:00
|
|
|
}
|