[Common] debug Header's logo

This commit is contained in:
Maxim Kadushkin 2017-04-25 19:52:51 +03:00
parent b8ba681b94
commit 343c014b17
2 changed files with 10 additions and 17 deletions

View file

@ -90,7 +90,7 @@ define([
'</section>';
var templateLeftBox = '<section class="logo">' +
'<div id="header-logo"><img></div>' +
'<div id="header-logo"><i /></div>' +
'</section>';
function onAddUser(model, collection, opts) {
@ -361,7 +361,7 @@ define([
if (value && value.logo && value.logo.image) {
element = $('#header-logo');
if ( element ) {
element.html('<img src="' + value.logo.image + '" style="max-width:86px; max-height:42px; margin: 0 8px 0 15px;"/>');
element.html('<img src="' + value.logo.image + '" style="max-width:100px; max-height:20px; margin: 0;"/>');
element.css({'background-image': 'none', width: 'auto'});
}
}

View file

@ -43,8 +43,7 @@
}
&.left {
min-width: 150px;
padding-left: 12px;
//min-width: 126px;
}
&.right {
@ -73,22 +72,16 @@
}
#header-logo {
width: 100%;
max-width: 200px;
height: 100%;
cursor: pointer;
padding: 10px 16px 10px 12px;
line-height: @height-tabs;
text-align: center;
img {
content: data-uri('@{common-image-path}/header/header-logo.png');
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min-resolution: 2dppx),
only screen and (min-resolution: 192dpi) {
content: data-uri('@{common-image-path}/header/header-logo@2x.png');
}
i {
width: 100px;
height: 20px;
display: block;
.background-ximage('@{common-image-path}/header/header-logo.png', '@{common-image-path}/header/header-logo@2x.png', 100px);
}
}