Skip to content
Permalink
Browse files

Support theming for the header logo

refs #10705
  • Loading branch information
lippserd committed Dec 7, 2015
1 parent cce6af9 commit a7c6535bf9db4f5d5a383abc70eae06ee963d17a
Showing with 12 additions and 17 deletions.
  1. +1 −6 application/layouts/scripts/body.phtml
  2. +11 −11 public/css/icinga/header-elements.less
@@ -19,21 +19,16 @@ if ($this->layout()->autorefreshInterval) {
?>
<div id="header">
<div id="logo">
<?php if (Auth::getInstance()->isAuthenticated()): ?>
<?= $this->qlink(
'',
'dashboard',
Auth::getInstance()->isAuthenticated() ? 'dashboard' : '',
null,
array(
'icon' => 'img/logo_icinga-inv.png',
'data-base-target' => '_main',
'aria-hidden' => 'true',
'tabindex' => -1
)
); ?>
<?php else: ?>
<?= $this->icon('img/logo_icinga-inv.png'); ?>
<?php endif ?>
</div>
</div>
<?php if (! $this->layout()->isIframe): ?>
@@ -1,18 +1,18 @@
/*! Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */

#logo {
height: 4.0em;
width: 13em;
display: inline-block;
height: 4em;
margin-left: 1.5em;
margin-top: 0.2em;
margin-bottom: 0.2em;
width: 100px;
}

#logo a {
#logo > a {
background-image: url('../img/logo_icinga-inv.png');
background-position: center;
background-repeat: no-repeat;
background-size: contain;
display: block;
outline: 0;
}

#logo img {
width: 100px;
margin-left: 1.5em;
margin-top: 0.8em;
height: 100%;
}

0 comments on commit a7c6535

Please sign in to comment.
You can’t perform that action at this time.