Merge pull request #4632 from nextcloud/login-logo-ratio

show non landscape logos bigger on the login page
This commit is contained in:
Lukas Reschke 2017-05-08 12:11:15 +02:00 committed by GitHub
commit fecf72fb70
2 changed files with 11 additions and 1 deletions

View File

@ -70,9 +70,16 @@ h3 {
background-size: 175px; background-size: 175px;
background-position: center; background-position: center;
width: 252px; width: 252px;
height: 120px; min-height: 120px;
max-height: 200px;
margin: 0 auto; margin: 0 auto;
} }
#header .logo img {
opacity: 0;
max-width: 100%;
max-height: 200px;
}
.wrapper { .wrapper {
min-height: 100%; min-height: 100%;
margin: 0 auto -70px; margin: 0 auto -70px;

View File

@ -40,6 +40,9 @@
<h1 class="hidden-visually"> <h1 class="hidden-visually">
<?php p($theme->getName()); ?> <?php p($theme->getName()); ?>
</h1> </h1>
<?php if(\OC::$server->getConfig()->getAppValue('theming', 'logoMime', false)): ?>
<img src="<?php p($theme->getLogo()); ?>"/>
<?php endif; ?>
</div> </div>
<div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div> <div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
</div> </div>