Fix header user menu when using inline or static menu style (#7306)
* Fix header user menu when using inline or static menu * Update template.php
This commit is contained in:
parent
7a167f70af
commit
43edc82cbe
|
|
@ -1099,6 +1099,16 @@ else { //default: white
|
|||
-moz-box-shadow: 0 2px <?=$body_header_shadow_size ?? '7px'?> <?=$body_header_shadow_color?>;
|
||||
box-shadow: 0 2px <?=$body_header_shadow_size ?? '7px'?> <?=$body_header_shadow_color?>;
|
||||
}
|
||||
<?php } else { ?>
|
||||
div#body_header {
|
||||
padding: 10px;
|
||||
margin-top: 5px;
|
||||
height: 40px;
|
||||
-webkit-box-shadow: 0 2px <?=$body_header_shadow_size ?? '7px'?> <?=$body_header_shadow_color?>;
|
||||
-moz-box-shadow: 0 2px <?=$body_header_shadow_size ?? '7px'?> <?=$body_header_shadow_color?>;
|
||||
box-shadow: 0 2px <?=$body_header_shadow_size ?? '7px'?> <?=$body_header_shadow_color?>;
|
||||
}
|
||||
<?php } ?>
|
||||
|
||||
div#body_header a {
|
||||
color: <?=$body_header_text_link_color?>;
|
||||
|
|
@ -1113,7 +1123,9 @@ else { //default: white
|
|||
z-index: 6;
|
||||
display: none;
|
||||
position: absolute;
|
||||
<?php if ($menu_style != 'inline') { ?>
|
||||
top: 50px;
|
||||
<?php } ?>
|
||||
/* right: specified in /resources/classes/menu.php */
|
||||
padding: 15px;
|
||||
background-color: <?=$body_header_background_color?>;
|
||||
|
|
@ -1139,16 +1151,6 @@ else { //default: white
|
|||
font-size: 90%;
|
||||
text-decoration: none;
|
||||
}
|
||||
<?php } else { ?>
|
||||
div#body_header {
|
||||
padding: 10px;
|
||||
margin-top: 5px;
|
||||
height: 40px;
|
||||
-webkit-box-shadow: 0 2px <?=$body_header_shadow_size ?? '7px'?> <?=$body_header_shadow_color?>;
|
||||
-moz-box-shadow: 0 2px <?=$body_header_shadow_size ?? '7px'?> <?=$body_header_shadow_color?>;
|
||||
box-shadow: 0 2px <?=$body_header_shadow_size ?? '7px'?> <?=$body_header_shadow_color?>;
|
||||
}
|
||||
<?php } ?>
|
||||
|
||||
div#body_header_brand_image {
|
||||
display: inline-block;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
<link rel='stylesheet' type='text/css' href='{$project_path}/resources/bootstrap/css/bootstrap-tempusdominus.min.css.php'>
|
||||
<link rel='stylesheet' type='text/css' href='{$project_path}/resources/bootstrap/css/bootstrap-colorpicker.min.css.php'>
|
||||
<link rel='stylesheet' type='text/css' href='{$project_path}/resources/fontawesome/css/all.min.css.php'>
|
||||
<link rel='stylesheet' type='text/css' href='{$project_path}/themes/default/css.php?updated=202503120938'>
|
||||
<link rel='stylesheet' type='text/css' href='{$project_path}/themes/default/css.php?updated=202503121207'>
|
||||
{*//link to custom css file *}
|
||||
{if !empty($settings.theme.custom_css)}
|
||||
<link rel='stylesheet' type='text/css' href='{$settings.theme.custom_css}'>
|
||||
|
|
@ -687,8 +687,7 @@
|
|||
{/literal}
|
||||
{/if}
|
||||
|
||||
//side/fixed menu: hide an open user menu in the body header or menu on scroll
|
||||
{if $settings.theme.menu_style == 'side' || $settings.theme.menu_style == 'fixed' }
|
||||
//hide an open user menu in the body header or menu on scroll
|
||||
{literal}
|
||||
$(window).on('scroll', function() {
|
||||
$('#body_header_user_menu').fadeOut(200);
|
||||
|
|
@ -697,7 +696,6 @@
|
|||
$('#body_header_user_menu').fadeOut(200);
|
||||
});
|
||||
{/literal}
|
||||
{/if}
|
||||
|
||||
//create function to mimic toggling fade and slide at the same time
|
||||
{literal}
|
||||
|
|
|
|||
Loading…
Reference in New Issue