[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>'; '</section>';
var templateLeftBox = '<section class="logo">' + var templateLeftBox = '<section class="logo">' +
'<div id="header-logo"><img></div>' + '<div id="header-logo"><i /></div>' +
'</section>'; '</section>';
function onAddUser(model, collection, opts) { function onAddUser(model, collection, opts) {
@ -361,7 +361,7 @@ define([
if (value && value.logo && value.logo.image) { if (value && value.logo && value.logo.image) {
element = $('#header-logo'); element = $('#header-logo');
if ( element ) { 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'}); element.css({'background-image': 'none', width: 'auto'});
} }
} }

View file

@ -43,8 +43,7 @@
} }
&.left { &.left {
min-width: 150px; //min-width: 126px;
padding-left: 12px;
} }
&.right { &.right {
@ -73,22 +72,16 @@
} }
#header-logo { #header-logo {
width: 100%; max-width: 200px;
height: 100%; height: 100%;
cursor: pointer; cursor: pointer;
padding: 10px 16px 10px 12px;
line-height: @height-tabs; i {
text-align: center; width: 100px;
height: 20px;
img { display: block;
content: data-uri('@{common-image-path}/header/header-logo.png'); .background-ximage('@{common-image-path}/header/header-logo.png', '@{common-image-path}/header/header-logo@2x.png', 100px);
@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');
}
} }
} }