2011-10-16 06:15:36 -04:00
|
|
|
/* Responsive.less
|
|
|
|
* For phone and tablet devices
|
|
|
|
* ------------------------------------------------------------- */
|
|
|
|
|
|
|
|
|
2011-10-16 14:35:24 -04:00
|
|
|
// UP TO LANDSCAPE PHONE
|
|
|
|
// ---------------------
|
|
|
|
|
2011-10-16 06:15:36 -04:00
|
|
|
@media (max-width: 480px) {
|
|
|
|
// Remove width from containers
|
|
|
|
.container {
|
|
|
|
width: auto;
|
2011-10-23 01:49:37 -04:00
|
|
|
padding: 0 15px;
|
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
|
|
|
|
[class*="span"] {
|
|
|
|
float: none;
|
|
|
|
display: block;
|
|
|
|
width: auto;
|
2011-10-16 14:35:24 -04:00
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
// Resize modals
|
|
|
|
.modal {
|
|
|
|
width: auto;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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
|
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
|
|
|
|
.form-horizontal .form-actions {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
|
2011-10-16 06:15:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-10-16 14:35:24 -04:00
|
|
|
// LANDSCAPE PHONE TO SMALL DESKTOP & PORTRAIT TABLET
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2011-10-16 06:15:36 -04:00
|
|
|
@media (min-width: 480px) and (max-width: 768px) {
|
|
|
|
// Remove width from containers
|
|
|
|
.container {
|
|
|
|
width: auto;
|
|
|
|
padding: 0 10px;
|
|
|
|
}
|
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
|
|
|
|
[class*="span"] {
|
|
|
|
float: none;
|
|
|
|
display: block;
|
|
|
|
width: auto;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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
|
|
|
|
.columns(@columnSpan: 1) {
|
|
|
|
width: (@gridColumnWidth * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1));
|
|
|
|
}
|
|
|
|
.offset(@columnOffset: 1) {
|
2011-10-16 14:35:24 -04:00
|
|
|
margin-left: (@gridColumnWidth * @columnOffset) + (@gridGutterWidth * (@columnOffset - 1)) + @gridGutterWidth;
|
2011-10-16 06:15:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// 16cols at 30px wide with 16px gutters
|
|
|
|
.container {
|
|
|
|
width: @siteWidth;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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-17 02:04:31 -04:00
|
|
|
/*
|
2011-10-16 14:35:24 -04:00
|
|
|
// LARGE DESKTOP & UP
|
|
|
|
// ------------------
|
2011-10-16 06:15:36 -04: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
|
|
|
|
.columns(@columnSpan: 1) {
|
|
|
|
width: (@gridColumnWidth * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1));
|
|
|
|
}
|
|
|
|
.offset(@columnOffset: 1) {
|
|
|
|
margin-left: (@gridColumnWidth * @columnOffset) + (@gridGutterWidth * (@columnOffset - 1)) + @gridGutterWidth;
|
|
|
|
}
|
|
|
|
|
|
|
|
.container {
|
|
|
|
width: @siteWidth;
|
|
|
|
}
|
|
|
|
[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
|
|
|
}
|
2011-10-17 02:04:31 -04:00
|
|
|
*/
|