2011-11-26 00:34:55 -05:00
|
|
|
// Responsive.less
|
|
|
|
// For phone and tablet devices
|
|
|
|
// -------------------------------------------------------------
|
2011-10-16 06:15:36 -04:00
|
|
|
|
|
|
|
|
2012-01-25 13:02:52 -05: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 14:32:07 -05:00
|
|
|
// RESPONSIVE CLASSES
|
|
|
|
// ------------------
|
|
|
|
|
|
|
|
// Hide from screenreaders and browsers
|
2012-01-27 19:26:55 -05:00
|
|
|
// Credit: HTML5 Boilerplate
|
2011-12-09 14:32:07 -05:00
|
|
|
.hidden {
|
|
|
|
display: none;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-10-16 14:35:24 -04:00
|
|
|
// UP TO LANDSCAPE PHONE
|
|
|
|
// ---------------------
|
|
|
|
|
2011-10-16 06:15:36 -04:00
|
|
|
@media (max-width: 480px) {
|
2012-01-08 06:00:06 -05:00
|
|
|
|
2011-10-16 14:35:24 -04:00
|
|
|
// Remove the horizontal form styles
|
2012-01-15 00:28:47 -05:00
|
|
|
.form-horizontal .control-group > label {
|
2011-10-16 14:35:24 -04:00
|
|
|
float: none;
|
|
|
|
width: auto;
|
|
|
|
padding-top: 0;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
// Move over all input controls and content
|
2012-01-15 00:28:47 -05:00
|
|
|
.form-horizontal .controls {
|
2011-10-16 14:35:24 -04:00
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
// Move the options list down to align with labels
|
2012-01-15 00:28:47 -05:00
|
|
|
.form-horizontal .control-list {
|
2011-10-16 14:35:24 -04:00
|
|
|
padding-top: 0; // has to be padding because margin collaspes
|
2011-10-16 06:15:36 -04:00
|
|
|
}
|
2011-10-16 14:35:24 -04:00
|
|
|
// Move over buttons in .form-actions to align with .controls
|
2012-01-15 00:28:47 -05:00
|
|
|
.form-horizontal .form-actions {
|
2011-10-16 14:35:24 -04:00
|
|
|
padding-left: 0;
|
|
|
|
}
|
2011-12-27 16:40:58 -05:00
|
|
|
|
|
|
|
// Modals
|
|
|
|
.modal {
|
2012-01-23 16:50:55 -05:00
|
|
|
position: absolute;
|
2011-12-27 16:40:58 -05:00
|
|
|
top: 20px;
|
|
|
|
left: 20px;
|
|
|
|
right: 20px;
|
|
|
|
width: auto;
|
2012-01-23 16:50:55 -05:00
|
|
|
margin: 0;
|
2012-01-08 16:21:44 -05:00
|
|
|
&.fade.in { top: auto; }
|
2011-12-27 16:40:58 -05:00
|
|
|
}
|
2012-01-08 16:21:44 -05:00
|
|
|
.modal-header .close {
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
2011-10-16 06:15:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-10-16 14:35:24 -04:00
|
|
|
// LANDSCAPE PHONE TO SMALL DESKTOP & PORTRAIT TABLET
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2011-12-09 14:32:07 -05:00
|
|
|
@media (max-width: 768px) {
|
2012-01-08 06:00:06 -05:00
|
|
|
|
2012-01-27 19:26:55 -05:00
|
|
|
// GRID & CONTAINERS
|
|
|
|
// -----------------
|
2011-10-16 06:15:36 -04:00
|
|
|
// Remove width from containers
|
|
|
|
.container {
|
|
|
|
width: auto;
|
2011-12-09 14:32:07 -05:00
|
|
|
padding: 0 20px;
|
2011-10-16 06:15:36 -04:00
|
|
|
}
|
2011-10-22 18:49:42 -04:00
|
|
|
// Undo negative margin on rows
|
|
|
|
.row {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2011-10-16 06:15:36 -04:00
|
|
|
// Make all columns even
|
2011-12-21 20:31:01 -05:00
|
|
|
.row > [class*="span"] {
|
2011-10-16 06:15:36 -04:00
|
|
|
float: none;
|
|
|
|
display: block;
|
|
|
|
width: auto;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2011-12-09 14:32:07 -05:00
|
|
|
|
2011-10-16 06:15:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-10-16 14:35:24 -04:00
|
|
|
// PORTRAIT TABLET TO DEFAULT DESKTOP
|
|
|
|
// ----------------------------------
|
2011-10-16 06:15:36 -04:00
|
|
|
|
|
|
|
@media (min-width: 768px) and (max-width: 940px) {
|
|
|
|
|
|
|
|
// Reset grid variables
|
|
|
|
@gridColumns: 16;
|
2011-10-16 14:35:24 -04:00
|
|
|
@gridColumnWidth: 44px;
|
2011-10-16 06:15:36 -04:00
|
|
|
@gridGutterWidth: 20px;
|
|
|
|
@siteWidth: 748px;
|
|
|
|
|
|
|
|
// Bring grid mixins to recalculate widths
|
2012-01-25 13:48:08 -05:00
|
|
|
.columns(@columns: 1) {
|
|
|
|
width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1));
|
2011-10-16 06:15:36 -04:00
|
|
|
}
|
2012-01-25 13:48:08 -05:00
|
|
|
.offset(@columns: 1) {
|
|
|
|
margin-left: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)) + (@gridGutterWidth * 2);
|
2011-10-16 06:15:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// 16cols at 30px wide with 16px gutters
|
|
|
|
.container {
|
|
|
|
width: @siteWidth;
|
2012-01-27 16:20:02 -05:00
|
|
|
padding-left: 10px;
|
|
|
|
padding-right: 10px;
|
2011-10-16 06:15:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Default columns
|
|
|
|
.span1 { .columns(1); }
|
|
|
|
.span2 { .columns(2); }
|
|
|
|
.span3 { .columns(3); }
|
|
|
|
.span4 { .columns(4); }
|
|
|
|
.span5 { .columns(5); }
|
|
|
|
.span6 { .columns(6); }
|
|
|
|
.span7 { .columns(7); }
|
|
|
|
.span8 { .columns(8); }
|
|
|
|
.span9 { .columns(9); }
|
|
|
|
.span10 { .columns(10); }
|
|
|
|
.span11 { .columns(11); }
|
|
|
|
.span12 { .columns(12); }
|
|
|
|
|
|
|
|
// Offset column options
|
|
|
|
.offset1 { .offset(1); }
|
|
|
|
.offset2 { .offset(2); }
|
|
|
|
.offset3 { .offset(3); }
|
|
|
|
.offset4 { .offset(4); }
|
|
|
|
.offset5 { .offset(5); }
|
|
|
|
.offset6 { .offset(6); }
|
|
|
|
.offset7 { .offset(7); }
|
|
|
|
.offset8 { .offset(8); }
|
|
|
|
.offset9 { .offset(9); }
|
|
|
|
.offset10 { .offset(10); }
|
|
|
|
.offset11 { .offset(11); }
|
|
|
|
.offset12 { .offset(12); }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-01-27 19:26:55 -05:00
|
|
|
|
|
|
|
// TABLETS AND BELOW
|
|
|
|
// -----------------
|
|
|
|
@media (max-width: 940px) {
|
|
|
|
|
|
|
|
// UNFIX THE TOPBAR
|
|
|
|
// ----------------
|
|
|
|
// Remove any padding from the body
|
|
|
|
body {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
// Unfix the navbar
|
|
|
|
.navbar-fixed-top {
|
|
|
|
position: static;
|
|
|
|
margin-bottom: @baseLineHeight * 2;
|
|
|
|
}
|
|
|
|
.navbar-inner {
|
|
|
|
padding: 10px;
|
|
|
|
background-image: none;
|
|
|
|
}
|
|
|
|
.navbar .container {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
// Account for brand name
|
|
|
|
.navbar .brand {
|
|
|
|
float: none;
|
|
|
|
display: block;
|
|
|
|
padding-left: 15px;
|
|
|
|
padding-right: 15px;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
// Block-level the nav
|
|
|
|
.navbar .nav {
|
|
|
|
float: none;
|
|
|
|
margin: (@baseLineHeight / 2) 0;
|
|
|
|
}
|
|
|
|
.navbar .nav > li {
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
.navbar .nav > li > a {
|
|
|
|
margin-bottom: 2px;
|
|
|
|
}
|
|
|
|
.navbar .nav > .vertical-divider {
|
|
|
|
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;
|
|
|
|
display: block;
|
|
|
|
float: none;
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-10-16 14:35:24 -04:00
|
|
|
// LARGE DESKTOP & UP
|
|
|
|
// ------------------
|
2011-12-09 17:39:23 -05:00
|
|
|
/*
|
2011-10-16 22:12:33 -04:00
|
|
|
@media (min-width: 1210px) {
|
2011-10-16 06:15:36 -04:00
|
|
|
|
|
|
|
// Reset grid variables
|
|
|
|
@gridColumns: 12;
|
|
|
|
@gridColumnWidth: 70px;
|
|
|
|
@gridGutterWidth: 30px;
|
|
|
|
@siteWidth: 1170px;
|
|
|
|
|
|
|
|
// Bring grid mixins to recalculate widths
|
2012-01-25 13:48:08 -05:00
|
|
|
.columns(@columns: 1) {
|
|
|
|
width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1));
|
2011-10-16 06:15:36 -04:00
|
|
|
}
|
2012-01-25 13:48:08 -05:00
|
|
|
.offset(@columns: 1) {
|
|
|
|
margin-left: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)) + (@gridGutterWidth * 2);
|
2011-10-16 06:15:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.container {
|
|
|
|
width: @siteWidth;
|
|
|
|
}
|
2012-01-07 03:29:36 -05:00
|
|
|
.row {
|
|
|
|
margin-left: @gridGutterWidth * -1;
|
|
|
|
}
|
2011-10-16 06:15:36 -04:00
|
|
|
[class*="span"] {
|
|
|
|
margin-left: @gridGutterWidth;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Default columns
|
|
|
|
.span1 { .columns(1); }
|
|
|
|
.span2 { .columns(2); }
|
|
|
|
.span3 { .columns(3); }
|
|
|
|
.span4 { .columns(4); }
|
|
|
|
.span5 { .columns(5); }
|
|
|
|
.span6 { .columns(6); }
|
|
|
|
.span7 { .columns(7); }
|
|
|
|
.span8 { .columns(8); }
|
|
|
|
.span9 { .columns(9); }
|
|
|
|
.span10 { .columns(10); }
|
|
|
|
.span11 { .columns(11); }
|
|
|
|
.span12 { .columns(12); }
|
|
|
|
|
|
|
|
// Offset column options
|
|
|
|
.offset1 { .offset(1); }
|
|
|
|
.offset2 { .offset(2); }
|
|
|
|
.offset3 { .offset(3); }
|
|
|
|
.offset4 { .offset(4); }
|
|
|
|
.offset5 { .offset(5); }
|
|
|
|
.offset6 { .offset(6); }
|
|
|
|
.offset7 { .offset(7); }
|
|
|
|
.offset8 { .offset(8); }
|
|
|
|
.offset9 { .offset(9); }
|
|
|
|
.offset10 { .offset(10); }
|
|
|
|
.offset11 { .offset(11); }
|
|
|
|
.offset12 { .offset(12); }
|
|
|
|
|
2011-10-16 15:11:48 -04:00
|
|
|
}
|
2012-01-07 03:29:36 -05:00
|
|
|
*/
|