2014-07-08 12:38:23 +02:00
|
|
|
/// Grid system
|
2014-03-10 08:05:57 +01:00
|
|
|
//
|
|
|
|
// Generate semantic grid columns with these mixins.
|
2014-03-10 07:18:48 +01:00
|
|
|
|
|
|
|
// Centered container element
|
2014-07-08 12:38:23 +02:00
|
|
|
.make-container(@gutter: @grid-gutter-width) {
|
2014-03-10 07:18:48 +01:00
|
|
|
margin-right: auto;
|
|
|
|
margin-left: auto;
|
2014-06-10 16:46:04 +02:00
|
|
|
padding-left: (@gutter / 2);
|
|
|
|
padding-right: (@gutter / 2);
|
2014-03-10 07:18:48 +01:00
|
|
|
&:extend(.clearfix all);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Creates a wrapper for a series of columns
|
|
|
|
.make-row(@gutter: @grid-gutter-width) {
|
|
|
|
margin-left: (@gutter / -2);
|
|
|
|
margin-right: (@gutter / -2);
|
|
|
|
&:extend(.clearfix all);
|
|
|
|
}
|
|
|
|
|
2014-07-08 12:38:23 +02:00
|
|
|
.make-col(@gutter: @grid-gutter-width) {
|
2014-03-10 07:18:48 +01:00
|
|
|
position: relative;
|
|
|
|
float: left;
|
|
|
|
min-height: 1px;
|
|
|
|
padding-left: (@gutter / 2);
|
|
|
|
padding-right: (@gutter / 2);
|
|
|
|
}
|
2014-07-08 12:38:23 +02:00
|
|
|
|
|
|
|
.make-col-span(@columns) {
|
|
|
|
width: percentage((@columns / @grid-columns));
|
|
|
|
}
|
|
|
|
.make-col-offset(@columns) {
|
2014-03-10 07:18:48 +01:00
|
|
|
margin-left: percentage((@columns / @grid-columns));
|
|
|
|
}
|
2014-07-08 12:38:23 +02:00
|
|
|
.make-col-push(@columns) {
|
2014-03-10 07:18:48 +01:00
|
|
|
left: percentage((@columns / @grid-columns));
|
|
|
|
}
|
2014-07-08 12:38:23 +02:00
|
|
|
.make-col-pull(@columns) {
|
2014-03-10 07:18:48 +01:00
|
|
|
right: percentage((@columns / @grid-columns));
|
|
|
|
}
|