Permalink
Browse files

Fix #15328: CSS for bracketed sub-menus

Make the bracketed sub-menus more similar to 1.2.x-style GUI by adding
padding between each line item and around current menu text.
  • Loading branch information...
1 parent 47bdc42 commit 8ca85e1a646bffba21efe266071828b2b461bdf9 @dregad dregad committed Dec 27, 2012
Showing with 12 additions and 3 deletions.
  1. +1 −1 core/html_api.php
  2. +11 −2 css/default.css
View
@@ -1175,7 +1175,7 @@ function print_account_menu( $p_page = '' ) {
echo '<ul class="menu">';
foreach ( $t_pages as $t_page ) {
if( $t_page['url'] == '' ) {
- echo '<li>', lang_get( $t_page['label'] ), '</li>';
+ echo '<li><span>', lang_get( $t_page['label'] ), '</span></li>';
} else {
echo '<li><a href="'. helper_mantis_url( $t_page['url'] ) .'">' . lang_get( $t_page['label'] ) . '</a></li>';
}
View
@@ -127,7 +127,6 @@ td.login-info-right { width: 33%; padding: 0px; text-align: right; white-space:
.main-menu ul li a { padding-right: .9em; border-right: 1px solid #000; text-decoration: underline; }
.main-menu ul li > a#logout-link { padding-right: 0; border-right: none; }
-
/* sub-menus */
#manage-menu,
@@ -153,7 +152,7 @@ td.login-info-right { width: 33%; padding: 0px; text-align: right; white-space:
#summary-submenu ul li,
#manage-user-filter-menu ul li,
#manage-tags-filter-menu ul li
- { display:block; float: left; list-style: none; margin: .5em 0; padding: 0; position: relative; right: 50%; }
+ { display:block; float: left; list-style: none; margin: .5em 0; padding: 0 .25em; position: relative; right: 50%; }
#manage-menu ul a,
#manage-config-menu ul a,
@@ -165,6 +164,16 @@ td.login-info-right { width: 33%; padding: 0px; text-align: right; white-space:
#manage-tags-filter-menu ul a
{ text-decoration: underline; padding: 0 .25em; }
+#manage-menu ul span,
+#manage-config-menu ul span,
+#summary-menu ul span,
+#summary-submenu ul span,
+#account-menu ul span,
+#doc-menu ul span,
+#manage-user-filter-menu ul span,
+#manage-tags-filter-menu ul span
+ { padding: 0 .25em; }
+
#account-menu, #doc-menu { top: 0; }
#account-menu ul, #doc-menu ul { margin: 0 auto; padding: .25em; float: right; text-align: center; }
#account-menu ul li, #doc-menu ul li { display: block; float: left; padding: 0; margin: 0; }

0 comments on commit 8ca85e1

Please sign in to comment.