2012-06-29 06:46:45 +02:00
|
|
|
//
|
|
|
|
// Grid system
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
|
2012-08-28 22:33:06 +02:00
|
|
|
// Set the container width, and override it for fixed navbars in media queries
|
2012-11-30 21:42:37 +01:00
|
|
|
.container {
|
2012-12-01 01:18:40 +01:00
|
|
|
.container-fixed();
|
2012-11-30 21:42:37 +01:00
|
|
|
}
|
2012-01-29 22:06:57 +01:00
|
|
|
|
2013-01-16 02:55:14 +01:00
|
|
|
// Mobile-first defaults
|
|
|
|
.row {
|
2013-03-16 07:21:10 +01:00
|
|
|
.make-row();
|
2013-01-16 02:55:14 +01:00
|
|
|
}
|
2013-04-27 08:59:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
// Common styles for small and large grid columns
|
|
|
|
.col {
|
2013-03-16 07:21:10 +01:00
|
|
|
position: relative;
|
2013-04-27 08:59:51 +02:00
|
|
|
// Float and set width: 100%; for easy stacking on mobile devices
|
|
|
|
float: left;
|
|
|
|
width: 100%;
|
|
|
|
// Prevent columns from collapsing when empty
|
2013-01-16 22:11:45 +01:00
|
|
|
min-height: 1px;
|
2013-04-27 08:59:51 +02:00
|
|
|
// Inner gutter via padding
|
2013-03-06 17:38:20 +01:00
|
|
|
padding-left: (@grid-gutter-width / 2);
|
|
|
|
padding-right: (@grid-gutter-width / 2);
|
2013-01-16 02:55:14 +01:00
|
|
|
}
|
|
|
|
|
2013-04-27 08:59:51 +02:00
|
|
|
// Generate small grid classes first
|
|
|
|
.generate-grid-columns(@grid-columns);
|
|
|
|
|
|
|
|
// Then generate the larger grid classes via media query
|
|
|
|
@media screen and (min-width: 768px) {
|
|
|
|
.generate-large-grid-columns(@grid-columns);
|
2013-04-03 04:40:43 +02:00
|
|
|
}
|
2013-04-27 08:59:51 +02:00
|
|
|
|
2013-04-03 04:40:43 +02:00
|
|
|
|
2013-01-17 09:42:31 +01:00
|
|
|
// Responsive: Tablets and up
|
|
|
|
@media screen and (min-width: 768px) {
|
2013-01-17 09:58:34 +01:00
|
|
|
.container {
|
|
|
|
max-width: 728px;
|
|
|
|
}
|
2013-01-17 09:42:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Responsive: Desktops and up
|
|
|
|
@media screen and (min-width: 992px) {
|
|
|
|
.container {
|
|
|
|
max-width: 940px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Responsive: Large desktops and up
|
|
|
|
@media screen and (min-width: 1200px) {
|
|
|
|
.container {
|
|
|
|
max-width: 1170px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-07-30 01:51:24 +02:00
|
|
|
// Reset utility classes due to specificity
|
2013-04-27 08:59:51 +02:00
|
|
|
/*[class*="col-span-"].pull-right {
|
2012-07-30 01:51:24 +02:00
|
|
|
float: right;
|
2013-04-27 08:59:51 +02:00
|
|
|
}*/
|