create a new "subdued" CSS class for things that shouldn't be in your face unless you want them and intentionally hover over them. Typically this would be accomplished via an opacity or colour change, but themes are free to use other methods. Also changed the channel_tabs "chatroom" link to use the subdued class if no rooms have been created rather than a count of chatrooms. Themse should probably create a .subdued and .subdued:hover definition because we'll probably take most of the stuff which is now hardwired to use opacity by id and change it to use the class definition instead.

This commit is contained in:
friendica 2014-02-08 00:48:19 -08:00
parent ecac985e33
commit 97739920eb
3 changed files with 13 additions and 4 deletions

View File

@ -1491,11 +1491,11 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){
require_once('include/chat.php');
$chats = chatroom_list($a->profile['profile_uid']);
$subdued = ((count($chats)) ? '' : ' subdued');
$tabs[] = array(
'label' => t('Chatrooms') . '(' . count($chats) . ')',
'label' => t('Chatrooms'),
'url' => $a->get_baseurl() . '/chat/' . $nickname,
'sel' => ((argv(0) == 'chat') ? 'active' : ''),
'sel' => ((argv(0) == 'chat') ? 'active' . $subdued : '' . $subdued),
'title' => t('Chatrooms'),
'id' => 'chat-tab',
);

View File

@ -1 +1 @@
2014-02-07.581
2014-02-08.582

View File

@ -114,6 +114,15 @@ blockquote {
margin-right: 5px;
}
.subdued {
opacity: 0.3;
filter:alpha(opacity=30);
}
.subdued:hover {
opacity: 1.0;
filter:alpha(opacity=100);
}
#langselector {