Skip to content

Commit

Permalink
(core) only highlight the profile entry in the menu bar when we are v…
Browse files Browse the repository at this point in the history
…iewing our own profile (that's what the button is for)
  • Loading branch information
silvercircle committed Jan 28, 2013
1 parent cfbe0b6 commit 2d89a51
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Sources/lib/Subs.php
Original file line number Diff line number Diff line change
Expand Up @@ -3983,6 +3983,9 @@ function setupMenuContext()
elseif ($context['current_action'] == 'pm')
$current_action = 'inbox';

if($current_action === 'profile' && isset($_REQUEST['u']))
$current_action = $_REQUEST['u'] != $user_info['id'] ? 'home' : 'profile';

if(isset($context['usermenu_buttons'][$current_action]))
$context['usermenu_buttons'][$current_action]['active_button'] = true;
else
Expand Down
11 changes: 6 additions & 5 deletions Themes/default/css/skin_default.css
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ div.content {
font-size: 90%;
}
ul.dropmenu, ul.dropmenu ul {
background-color: #f2f2f2;
background-color: #222;
}
ul.dropmenu li a {
color: #eee;
Expand All @@ -345,7 +345,7 @@ ul.dropmenu.highcontrast li a {
color: #777;
}
ul.dropmenu li a.firstlevel {
text-shadow: 0 0 2px #555;
/*text-shadow: 0 0 2px #555;*/
}
ul.dropmenu li a.firstlevel.compact {
font-weight: normal;
Expand All @@ -354,11 +354,11 @@ ul.dropmenu li a.firstlevel.compact {
text-shadow: 0 0 2px #555;
}
ul.dropmenu li ul {
background-color: #f2f2f2;
background-color: #222;
box-shadow: 1px 3px 10px 1px #888;
}
ul.dropmenu li li a {
color:black;
color:#f0f0f0;
}
ul.dropmenu li.active {
background-color: #f5f5f5;
Expand All @@ -369,8 +369,9 @@ ul.dropmenu.compact li.active {
border-bottom:2px solid orange;
border-top:0;
}
ul.dropmenu.compact li.active a {
ul.dropmenu.compact li.active > a {
color:black;
text-shadow: none;
}
ul.dropmenu li.active > a {
color: black;
Expand Down

0 comments on commit 2d89a51

Please sign in to comment.