Theming: Fix preview and center alignment of logo
This commit is contained in:
parent
a494e4f712
commit
608dbc64d9
|
@ -42,11 +42,11 @@ function preview(setting, value) {
|
||||||
var logos = document.getElementsByClassName('logo-icon');
|
var logos = document.getElementsByClassName('logo-icon');
|
||||||
var timestamp = new Date().getTime();
|
var timestamp = new Date().getTime();
|
||||||
if (value !== '') {
|
if (value !== '') {
|
||||||
logos[0].style.background = "url('" + OC.generateUrl('/apps/theming/logo') + "?v" + timestamp + "')";
|
logos[0].style.backgroundImage = "url('" + OC.generateUrl('/apps/theming/logo') + "?v" + timestamp + "')";
|
||||||
logos[0].style.backgroundSize = "62px 34px";
|
logos[0].style.backgroundSize = "contain";
|
||||||
} else {
|
} else {
|
||||||
logos[0].style.background = "url('" + OC.getRootPath() + '/core/img/logo-icon.svg?v' + timestamp +"')";
|
logos[0].style.backgroundImage = "url('" + OC.getRootPath() + '/core/img/logo-icon.svg?v' + timestamp +"')";
|
||||||
logos[0].style.backgroundSize = "62px 34px";
|
logos[0].style.backgroundSize = "contain";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,6 +82,7 @@
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
background-image: url('../img/logo-icon.svg?v=1');
|
background-image: url('../img/logo-icon.svg?v=1');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
|
background-position: center center;
|
||||||
width: 62px;
|
width: 62px;
|
||||||
height: 34px;
|
height: 34px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue