Fix header user menu when using inline or static menu

This commit is contained in:
Alex 2025-03-12 11:05:31 -07:00 committed by GitHub
parent 7a167f70af
commit 80e0efcac4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 42 additions and 40 deletions

View File

@ -1099,6 +1099,16 @@ else { //default: white
-moz-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?>; 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 { div#body_header a {
color: <?=$body_header_text_link_color?>; color: <?=$body_header_text_link_color?>;
@ -1113,7 +1123,9 @@ else { //default: white
z-index: 6; z-index: 6;
display: none; display: none;
position: absolute; position: absolute;
<?php if ($menu_style != 'inline') { ?>
top: 50px; top: 50px;
<?php } ?>
/* right: specified in /resources/classes/menu.php */ /* right: specified in /resources/classes/menu.php */
padding: 15px; padding: 15px;
background-color: <?=$body_header_background_color?>; background-color: <?=$body_header_background_color?>;
@ -1139,16 +1151,6 @@ else { //default: white
font-size: 90%; font-size: 90%;
text-decoration: none; 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 { div#body_header_brand_image {
display: inline-block; display: inline-block;