diff options
author | friendica <info@friendica.com> | 2014-02-08 00:48:19 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-02-08 00:48:19 -0800 |
commit | 97739920ebfa0d7b0db95c61187d5820c0939f14 (patch) | |
tree | 465e28dd9b4825d3de4e0802b4770fefcb2761ca | |
parent | ecac985e338b8b79e3768d3f1cf42e80f2ce8f90 (diff) | |
download | volse-hubzilla-97739920ebfa0d7b0db95c61187d5820c0939f14.tar.gz volse-hubzilla-97739920ebfa0d7b0db95c61187d5820c0939f14.tar.bz2 volse-hubzilla-97739920ebfa0d7b0db95c61187d5820c0939f14.zip |
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.
-rw-r--r-- | include/conversation.php | 6 | ||||
-rw-r--r-- | version.inc | 2 | ||||
-rw-r--r-- | view/theme/redbasic/css/style.css | 9 |
3 files changed, 13 insertions, 4 deletions
diff --git a/include/conversation.php b/include/conversation.php index 77c7bac70..16ac4e909 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -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', ); diff --git a/version.inc b/version.inc index a760a1660..bd1fa0985 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2014-02-07.581 +2014-02-08.582 diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 776b4c31a..209399d0c 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -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 { |