Merge branch 'ha_custom_image_logo'

This commit is contained in:
Henry Oswald 2016-06-21 12:07:49 +01:00
commit 5800c88d80
3 changed files with 12 additions and 8 deletions

View file

@ -3,7 +3,9 @@ nav.navbar.navbar-default
.navbar-header .navbar-header
button.navbar-toggle(ng-init="navCollapsed = true", ng-click="navCollapsed = !navCollapsed", ng-class="{active: !navCollapsed}") button.navbar-toggle(ng-init="navCollapsed = true", ng-click="navCollapsed = !navCollapsed", ng-class="{active: !navCollapsed}")
i.fa.fa-bars i.fa.fa-bars
if nav.title if settings.nav.custom_logo
a(href='/', style='background-image:url("#{settings.nav.custom_logo}")').navbar-brand
else if (nav.title)
a(href='/').navbar-title #{nav.title} a(href='/').navbar-title #{nav.title}
else else
a(href='/').navbar-brand a(href='/').navbar-brand

View file

@ -15,7 +15,7 @@ httpAuthUsers[httpAuthUser] = httpAuthPass
sessionSecret = "secret-please-change" sessionSecret = "secret-please-change"
module.exports = module.exports = settings =
# File storage # File storage
# ------------ # ------------
# #

View file

@ -381,13 +381,15 @@
padding: 1rem 2rem; padding: 1rem 2rem;
.navbar-brand { .navbar-brand {
background-image: url('/img/logo.png'); position: absolute;
background-size: 135px 16px; top: 5px;
background-repeat: no-repeat; bottom: 5px;
height: 16px;
margin-top: 10px;
padding: 0;
width: 135px; width: 135px;
padding: 0;
background-image: url('/img/logo.png');
background-size: contain;
background-repeat: no-repeat;
background-position: left center;
} }
@media @media
only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-webkit-min-device-pixel-ratio: 2),