Skip to content

Commit

Permalink
CSS: Layout main container with flex-box
Browse files Browse the repository at this point in the history
refs #3810
  • Loading branch information
flourish86 committed May 29, 2019
1 parent 3bef086 commit 69d1137
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
20 changes: 10 additions & 10 deletions public/css/icinga/layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -109,25 +109,25 @@

// x-column-layout
#main {
.clearfix();
display: flex;

& > .container {
float: left;
// Column width controlled by #layout
width: 100%;

// Container scrolling
height: 100%;
overflow: auto;
display: flex;
flex: 1;
flex-direction: column;

&:empty {
display: none;
}

& > .content {
overflow: auto;
flex: 1;
padding: @gutter;
z-index: 2;
}

& > .controls {
z-index: 3;

padding-left: @gutter;
padding-right: @gutter;

Expand Down
4 changes: 4 additions & 0 deletions public/css/icinga/menu.less
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ ul:not(.nav-level-2) > .selected > a {
}
}

#menu .nav-level-2 {
z-index: 10;
}

.no-js #menu .nav-level-2 > .nav-item {
// Expand menu if JavaScript is disabled
display: block;
Expand Down
5 changes: 0 additions & 5 deletions public/css/icinga/responsive.less
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,8 @@

// Columns

#layout #col2 {
display: none;
}

#layout.twocols #col2 {
border-left: 1px solid @gray-lighter;
display: block;
}

#layout.twocols > #main > .container {
Expand Down

0 comments on commit 69d1137

Please sign in to comment.