layout: Don't use id `header` if it's not a global header
This commit is contained in:
parent
6218ad8cde
commit
31e3ce70a8
|
@ -23,25 +23,25 @@ if ($this->layout()->inlineLayout) {
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div id="announcements" class="container">
|
<div id="header">
|
||||||
<?= $this->widget('announcements') ?>
|
<div id="announcements" class="container">
|
||||||
|
<?= $this->widget('announcements') ?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="content-wrapper">
|
<div id="content-wrapper">
|
||||||
<?php if (! $this->layout()->isIframe): ?>
|
<?php if (! $this->layout()->isIframe): ?>
|
||||||
<div id="sidebar">
|
<div id="sidebar">
|
||||||
<div id="header">
|
<div id="header-logo-container">
|
||||||
<div id="header-logo-container">
|
<?= $this->qlink(
|
||||||
<?= $this->qlink(
|
'',
|
||||||
'',
|
Auth::getInstance()->isAuthenticated() ? 'dashboard' : '',
|
||||||
Auth::getInstance()->isAuthenticated() ? 'dashboard' : '',
|
null,
|
||||||
null,
|
array(
|
||||||
array(
|
'aria-hidden' => 'true',
|
||||||
'aria-hidden' => 'true',
|
'data-base-target' => '_main',
|
||||||
'data-base-target' => '_main',
|
'id' => 'header-logo'
|
||||||
'id' => 'header-logo'
|
)
|
||||||
)
|
); ?>
|
||||||
); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<?= $this->render('parts/navigation.phtml'); ?>
|
<?= $this->render('parts/navigation.phtml'); ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -66,4 +66,3 @@ if ($this->layout()->inlineLayout) {
|
||||||
?></ul>
|
?></ul>
|
||||||
<div id="application-state-summary" class="container" data-icinga-url="<?= $this->url('application-state/summary') ?>" data-last-update="-1" data-icinga-refresh="60"></div>
|
<div id="application-state-summary" class="container" data-icinga-url="<?= $this->url('application-state/summary') ?>" data-last-update="-1" data-icinga-refresh="60"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
#sidebar {
|
#sidebar {
|
||||||
width: 12em;
|
width: 16em;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
|
@ -26,18 +26,13 @@
|
||||||
|
|
||||||
#header,
|
#header,
|
||||||
#login,
|
#login,
|
||||||
#main > .container,
|
#content-wrapper {
|
||||||
#menu {
|
|
||||||
font-size: @font-size;
|
font-size: @font-size;
|
||||||
line-height: @line-height;
|
line-height: @line-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
#header {
|
|
||||||
background-color: @icinga-blue;
|
|
||||||
}
|
|
||||||
|
|
||||||
#header-logo-container {
|
#header-logo-container {
|
||||||
background: inherit;
|
background: @icinga-blue;
|
||||||
height: 6em;
|
height: 6em;
|
||||||
padding: 1.25em;
|
padding: 1.25em;
|
||||||
width: 16em;
|
width: 16em;
|
||||||
|
@ -254,7 +249,7 @@ html.no-js .controls > .tabs {
|
||||||
}
|
}
|
||||||
|
|
||||||
#sidebar {
|
#sidebar {
|
||||||
width: 3em;
|
width: 4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#open-sidebar {
|
#open-sidebar {
|
||||||
|
|
|
@ -331,6 +331,8 @@ ul:not(.nav-level-2) > .selected > a {
|
||||||
// Accessibility skip links
|
// Accessibility skip links
|
||||||
.skip-links {
|
.skip-links {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
font-size: 1/.75em;
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -439,6 +441,8 @@ input[type=text].search-input {
|
||||||
|
|
||||||
// Toggle sidebar button
|
// Toggle sidebar button
|
||||||
#toggle-sidebar {
|
#toggle-sidebar {
|
||||||
|
font-size: 1/.75em;
|
||||||
|
|
||||||
// Reset button styles
|
// Reset button styles
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
@tr-hover-color: #c6cfe4;
|
@tr-hover-color: #c6cfe4;
|
||||||
|
|
||||||
/* Snow, from http://codepen.io/NickyCDK/pen/AIonk */
|
/* Snow, from http://codepen.io/NickyCDK/pen/AIonk */
|
||||||
#header, #login {
|
#login, #header-logo-container {
|
||||||
background-image: url('../img/winter/snow1.png'), url('../img/winter/snow2.png'), url('../img/winter/snow3.png');
|
background-image: url('../img/winter/snow1.png'), url('../img/winter/snow2.png'), url('../img/winter/snow3.png');
|
||||||
-webkit-animation: snow 10s linear infinite;
|
-webkit-animation: snow 10s linear infinite;
|
||||||
-moz-animation: snow 10s linear infinite;
|
-moz-animation: snow 10s linear infinite;
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
// Form colors
|
// Form colors
|
||||||
@button-primary-color: lighten(@base02, 20);
|
@button-primary-color: lighten(@base02, 20);
|
||||||
|
|
||||||
#header {
|
#header-logo-container {
|
||||||
background-color: @base02;
|
background-color: @base02;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue