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
|
2013-06-02 22:38:45 +02:00
|
|
|
.col-1,
|
|
|
|
.col-2,
|
|
|
|
.col-3,
|
|
|
|
.col-4,
|
|
|
|
.col-5,
|
|
|
|
.col-6,
|
|
|
|
.col-7,
|
|
|
|
.col-8,
|
|
|
|
.col-9,
|
|
|
|
.col-10,
|
|
|
|
.col-11,
|
2013-06-04 06:51:35 +02:00
|
|
|
.col-12,
|
2013-06-08 23:04:16 +02:00
|
|
|
.col-sm-1,
|
|
|
|
.col-sm-2,
|
|
|
|
.col-sm-3,
|
|
|
|
.col-sm-4,
|
|
|
|
.col-sm-5,
|
|
|
|
.col-sm-6,
|
|
|
|
.col-sm-7,
|
|
|
|
.col-sm-8,
|
|
|
|
.col-sm-9,
|
|
|
|
.col-sm-10,
|
|
|
|
.col-sm-11,
|
|
|
|
.col-sm-12,
|
2013-06-02 22:38:45 +02:00
|
|
|
.col-lg-1,
|
|
|
|
.col-lg-2,
|
|
|
|
.col-lg-3,
|
|
|
|
.col-lg-4,
|
|
|
|
.col-lg-5,
|
|
|
|
.col-lg-6,
|
|
|
|
.col-lg-7,
|
|
|
|
.col-lg-8,
|
|
|
|
.col-lg-9,
|
|
|
|
.col-lg-10,
|
2013-06-04 06:51:35 +02:00
|
|
|
.col-lg-11,
|
|
|
|
.col-lg-12 {
|
2013-03-16 07:21:10 +01:00
|
|
|
position: relative;
|
2013-04-27 08:59:51 +02:00
|
|
|
// 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-06-02 22:38:45 +02:00
|
|
|
|
2013-06-08 23:04:16 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Container and grid column sizing
|
|
|
|
//
|
|
|
|
|
|
|
|
// Tiny device columns (smartphones)
|
2013-06-24 00:05:50 +02:00
|
|
|
.col-1,
|
|
|
|
.col-2,
|
|
|
|
.col-3,
|
|
|
|
.col-4,
|
|
|
|
.col-5,
|
|
|
|
.col-6,
|
|
|
|
.col-7,
|
|
|
|
.col-8,
|
|
|
|
.col-9,
|
|
|
|
.col-10,
|
|
|
|
.col-11,
|
|
|
|
.col-12 {
|
|
|
|
float: left;
|
|
|
|
}
|
2013-06-04 06:48:52 +02:00
|
|
|
.col-1 { width: percentage((1 / @grid-columns)); }
|
|
|
|
.col-2 { width: percentage((2 / @grid-columns)); }
|
|
|
|
.col-3 { width: percentage((3 / @grid-columns)); }
|
|
|
|
.col-4 { width: percentage((4 / @grid-columns)); }
|
|
|
|
.col-5 { width: percentage((5 / @grid-columns)); }
|
|
|
|
.col-6 { width: percentage((6 / @grid-columns)); }
|
|
|
|
.col-7 { width: percentage((7 / @grid-columns)); }
|
|
|
|
.col-8 { width: percentage((8 / @grid-columns)); }
|
|
|
|
.col-9 { width: percentage((9 / @grid-columns)); }
|
|
|
|
.col-10 { width: percentage((10/ @grid-columns)); }
|
|
|
|
.col-11 { width: percentage((11/ @grid-columns)); }
|
2013-06-04 06:51:35 +02:00
|
|
|
.col-12 { width: 100%; }
|
2013-04-27 08:59:51 +02:00
|
|
|
|
2013-06-08 23:04:16 +02:00
|
|
|
// Small device columns (phones to tablets)
|
2013-06-02 22:38:45 +02:00
|
|
|
@media (min-width: @screen-tablet) {
|
2013-06-08 23:04:16 +02:00
|
|
|
.container {
|
|
|
|
max-width: @container-tablet;
|
|
|
|
}
|
|
|
|
|
2013-06-24 00:05:50 +02:00
|
|
|
.col-sm-1,
|
|
|
|
.col-sm-2,
|
|
|
|
.col-sm-3,
|
|
|
|
.col-sm-4,
|
|
|
|
.col-sm-5,
|
|
|
|
.col-sm-6,
|
|
|
|
.col-sm-7,
|
|
|
|
.col-sm-8,
|
|
|
|
.col-sm-9,
|
|
|
|
.col-sm-10,
|
|
|
|
.col-sm-11,
|
|
|
|
.col-sm-12 {
|
|
|
|
float: left;
|
|
|
|
}
|
2013-06-08 23:04:16 +02:00
|
|
|
.col-sm-1 { width: percentage((1 / @grid-columns)); }
|
|
|
|
.col-sm-2 { width: percentage((2 / @grid-columns)); }
|
|
|
|
.col-sm-3 { width: percentage((3 / @grid-columns)); }
|
|
|
|
.col-sm-4 { width: percentage((4 / @grid-columns)); }
|
|
|
|
.col-sm-5 { width: percentage((5 / @grid-columns)); }
|
|
|
|
.col-sm-6 { width: percentage((6 / @grid-columns)); }
|
|
|
|
.col-sm-7 { width: percentage((7 / @grid-columns)); }
|
|
|
|
.col-sm-8 { width: percentage((8 / @grid-columns)); }
|
|
|
|
.col-sm-9 { width: percentage((9 / @grid-columns)); }
|
|
|
|
.col-sm-10 { width: percentage((10/ @grid-columns)); }
|
|
|
|
.col-sm-11 { width: percentage((11/ @grid-columns)); }
|
|
|
|
.col-sm-12 { width: 100%; }
|
2013-06-02 22:38:45 +02:00
|
|
|
|
|
|
|
// Push and pull columns for source order changes
|
2013-06-04 06:48:52 +02:00
|
|
|
.col-push-1 { left: percentage((1 / @grid-columns)); }
|
|
|
|
.col-push-2 { left: percentage((2 / @grid-columns)); }
|
|
|
|
.col-push-3 { left: percentage((3 / @grid-columns)); }
|
|
|
|
.col-push-4 { left: percentage((4 / @grid-columns)); }
|
|
|
|
.col-push-5 { left: percentage((5 / @grid-columns)); }
|
|
|
|
.col-push-6 { left: percentage((6 / @grid-columns)); }
|
|
|
|
.col-push-7 { left: percentage((7 / @grid-columns)); }
|
|
|
|
.col-push-8 { left: percentage((8 / @grid-columns)); }
|
|
|
|
.col-push-9 { left: percentage((9 / @grid-columns)); }
|
|
|
|
.col-push-10 { left: percentage((10/ @grid-columns)); }
|
|
|
|
.col-push-11 { left: percentage((11/ @grid-columns)); }
|
2013-06-02 22:38:45 +02:00
|
|
|
|
2013-06-04 06:48:52 +02:00
|
|
|
.col-pull-1 { right: percentage((1 / @grid-columns)); }
|
|
|
|
.col-pull-2 { right: percentage((2 / @grid-columns)); }
|
|
|
|
.col-pull-3 { right: percentage((3 / @grid-columns)); }
|
|
|
|
.col-pull-4 { right: percentage((4 / @grid-columns)); }
|
|
|
|
.col-pull-5 { right: percentage((5 / @grid-columns)); }
|
|
|
|
.col-pull-6 { right: percentage((6 / @grid-columns)); }
|
|
|
|
.col-pull-7 { right: percentage((7 / @grid-columns)); }
|
|
|
|
.col-pull-8 { right: percentage((8 / @grid-columns)); }
|
|
|
|
.col-pull-9 { right: percentage((9 / @grid-columns)); }
|
|
|
|
.col-pull-10 { right: percentage((10/ @grid-columns)); }
|
|
|
|
.col-pull-11 { right: percentage((11/ @grid-columns)); }
|
2013-06-02 22:38:45 +02:00
|
|
|
}
|
2013-04-03 04:40:43 +02:00
|
|
|
|
2013-06-08 23:04:16 +02:00
|
|
|
// Medium and large device columns (desktop and up)
|
2013-06-03 00:33:42 +02:00
|
|
|
@media (min-width: @screen-desktop) {
|
2013-06-08 23:04:16 +02:00
|
|
|
.container {
|
|
|
|
max-width: @container-desktop;
|
|
|
|
}
|
2013-06-24 00:05:50 +02:00
|
|
|
.col-lg-1,
|
|
|
|
.col-lg-2,
|
|
|
|
.col-lg-3,
|
|
|
|
.col-lg-4,
|
|
|
|
.col-lg-5,
|
|
|
|
.col-lg-6,
|
|
|
|
.col-lg-7,
|
|
|
|
.col-lg-8,
|
|
|
|
.col-lg-9,
|
|
|
|
.col-lg-10,
|
|
|
|
.col-lg-11,
|
|
|
|
.col-lg-12 {
|
|
|
|
float: left;
|
|
|
|
}
|
2013-06-04 06:48:52 +02:00
|
|
|
.col-lg-1 { width: percentage((1 / @grid-columns)); }
|
|
|
|
.col-lg-2 { width: percentage((2 / @grid-columns)); }
|
|
|
|
.col-lg-3 { width: percentage((3 / @grid-columns)); }
|
|
|
|
.col-lg-4 { width: percentage((4 / @grid-columns)); }
|
|
|
|
.col-lg-5 { width: percentage((5 / @grid-columns)); }
|
|
|
|
.col-lg-6 { width: percentage((6 / @grid-columns)); }
|
|
|
|
.col-lg-7 { width: percentage((7 / @grid-columns)); }
|
|
|
|
.col-lg-8 { width: percentage((8 / @grid-columns)); }
|
|
|
|
.col-lg-9 { width: percentage((9 / @grid-columns)); }
|
|
|
|
.col-lg-10 { width: percentage((10/ @grid-columns)); }
|
|
|
|
.col-lg-11 { width: percentage((11/ @grid-columns)); }
|
2013-06-04 06:51:35 +02:00
|
|
|
.col-lg-12 { width: 100%; }
|
2013-06-24 00:15:42 +02:00
|
|
|
|
|
|
|
// Offsets
|
|
|
|
.col-offset-1 { margin-left: percentage((1 / @grid-columns)); }
|
|
|
|
.col-offset-2 { margin-left: percentage((2 / @grid-columns)); }
|
|
|
|
.col-offset-3 { margin-left: percentage((3 / @grid-columns)); }
|
|
|
|
.col-offset-4 { margin-left: percentage((4 / @grid-columns)); }
|
|
|
|
.col-offset-5 { margin-left: percentage((5 / @grid-columns)); }
|
|
|
|
.col-offset-6 { margin-left: percentage((6 / @grid-columns)); }
|
|
|
|
.col-offset-7 { margin-left: percentage((7 / @grid-columns)); }
|
|
|
|
.col-offset-8 { margin-left: percentage((8 / @grid-columns)); }
|
|
|
|
.col-offset-9 { margin-left: percentage((9 / @grid-columns)); }
|
|
|
|
.col-offset-10 { margin-left: percentage((10/ @grid-columns)); }
|
|
|
|
.col-offset-11 { margin-left: percentage((11/ @grid-columns)); }
|
2013-06-03 00:33:42 +02:00
|
|
|
}
|
|
|
|
|
2013-06-08 23:04:16 +02:00
|
|
|
// Large desktops and up
|
|
|
|
@media (min-width: @screen-large-desktop) {
|
2013-01-17 09:42:31 +01:00
|
|
|
.container {
|
2013-05-27 22:00:39 +02:00
|
|
|
max-width: @container-large-desktop;
|
2013-01-17 09:42:31 +01:00
|
|
|
}
|
|
|
|
}
|