Просмотр исходного кода

#123 - make logo height to use full height of toolbar

Alex Trofimov 11 лет назад
Родитель
Сommit
364c9ea8b5
2 измененных файлов с 6 добавлено и 1 удалено
  1. 5 0
      template/css/general.css
  2. 1 1
      template/scripts/BxBaseFunctions.php

+ 5 - 0
template/css/general.css

@@ -77,6 +77,11 @@
     font-size:2rem;
 }  
 
+#bx-logo {
+    vertical-align:middle;
+    margin-top:-0.375rem;
+}
+
 /* --------------- menu bar */
 
 #bx-menu-main-bar-wrapper {

+ 1 - 1
template/scripts/BxBaseFunctions.php

@@ -312,7 +312,7 @@ class BxBaseFunctions extends BxDol implements iBxDolSingleton
         if ($sFileUrl = $this->getMainLogoUrl()) {
             $sMaxWidth = getParam('sys_site_logo_width') > 0 ? 'max-width:' . round(getParam('sys_site_logo_width')/16, 3) . 'rem;' : '';
             $sMaxHeight = getParam('sys_site_logo_height') > 0 ? 'max-height:' . round(getParam('sys_site_logo_height')/16, 3) . 'rem;' : '';
-            $sLogo = '<img style="' . $sMaxWidth . $sMaxHeight . '" src="' . $sFileUrl . '" id="bx-logo" class="bx-def-margin-sec" alt="' . bx_html_attribute($sAlt, BX_ESCAPE_STR_QUOTE) . '" />';
+            $sLogo = '<img style="' . $sMaxWidth . $sMaxHeight . '" src="' . $sFileUrl . '" id="bx-logo" alt="' . bx_html_attribute($sAlt, BX_ESCAPE_STR_QUOTE) . '" />';
         }
 
         return '<a class="bx-def-font-contrasted" href="' . BX_DOL_URL_ROOT . '" title="' . bx_html_attribute($sAlt, BX_ESCAPE_STR_QUOTE) . '">' . $sLogo . '</a>';