CSS: Add grid.less

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-29 17:02:59 +02:00
parent 4ffd09f1be
commit eb246babd5
2 changed files with 33 additions and 0 deletions

View File

@ -17,6 +17,7 @@ class StyleSheet
'css/icinga/colors.less', 'css/icinga/colors.less',
'css/icinga/badges.less', 'css/icinga/badges.less',
'css/icinga/mixins.less', 'css/icinga/mixins.less',
'css/icinga/grid.less',
'css/icinga/base.less', 'css/icinga/base.less',
'css/icinga/nav.less', 'css/icinga/nav.less',
'css/icinga/main.less', 'css/icinga/main.less',

View File

@ -0,0 +1,32 @@
.grid {
.clearfix();
}
[class^="col-"],
[class*=" col-"] {
.pull-left();
}
.col-1-3 {
width: 33.33%;
}
.col-2-3 {
width: 66.66%;
}
.col-3-3 {
width: 100%;
}
// TODO(el): Set proper breakpoints
#layout.twocols,
#layout.compact-layout,
#layout.minimal-layout,
#layout.poor-layout {
[class^="col-"],
[class*=" col-"] {
float: none;
width: 100%;
}
}