Skip to content

Commit

Permalink
CSS: Avoid fixed positioning
Browse files Browse the repository at this point in the history
refs #3810
  • Loading branch information
flourish86 committed May 29, 2019
1 parent e23a0e5 commit 9f0c6aa
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 29 deletions.
7 changes: 7 additions & 0 deletions public/css/icinga/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,15 @@

// Make padding not affect the final computed width of an element
html {
min-height: 100%;
height: 100%;
box-sizing: border-box;
}

body {
height: 100%;
}

*,
*:before,
*:after {
Expand Down
31 changes: 12 additions & 19 deletions public/css/icinga/layout-structure.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,28 @@ html {

#layout {
height: 100%;
width: 100%;
position: fixed;
left: 0;
top: 0;
display: flex;
flex-direction: column;
}

#header {
width: 100%;
padding-bottom: 3em;
position: fixed;
left: 0;
top: 0;
#content-wrapper {
flex: 1;
display: flex;
}

#header {
}

#sidebar {
width: 12em;
position: fixed;
bottom: 0;
left: 0;
top: 4.5em;
display: flex;
flex-direction: column;
overflow: hidden;
}

#main {
position: fixed;
bottom: 0;
left: 12em;
right: 0;
top: 2.25em;
flex: 1;
overflow: hidden;
}

.iframe {
Expand Down
5 changes: 0 additions & 5 deletions public/css/icinga/layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@
height: 6em;
padding: 1.25em;
width: 16em;
position: fixed;
left: 0;
margin-top: -3em;
}

#header-logo,
Expand Down Expand Up @@ -178,7 +175,6 @@

> .tabs {
height: 2.6em;
margin-top: -2.6em;
overflow: hidden;
}

Expand All @@ -192,7 +188,6 @@ html.no-js .controls > .tabs {
background-color: @icinga-blue;
margin-left: -1 * @gutter;
margin-right: -1 * @gutter;
margin-top: -1 * @gutter;
}

// Dashboard grid
Expand Down
5 changes: 0 additions & 5 deletions public/css/icinga/setup.less
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*! Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */

#layout {
overflow: auto; // TODO: Shouldn't be necessary, here, IMHO
}


#setup {
.header {
width: 100%;
Expand Down

0 comments on commit 9f0c6aa

Please sign in to comment.