]> git.mxchange.org Git - friendica.git/commitdiff
This is a quick fix for the the forumlist.
authorMichael Vogel <icarus@dabo.de>
Tue, 17 Nov 2015 18:56:32 +0000 (19:56 +0100)
committerMichael Vogel <icarus@dabo.de>
Tue, 17 Nov 2015 18:56:32 +0000 (19:56 +0100)
view/templates/widget_forumlist.tpl
view/theme/vier/style.css

index 4d155fd0ad99a565172e9a4c9418fcea573cb5fe..0298dc6ff0a31954aaddf8bbcb74e2b99e607b79 100644 (file)
@@ -18,7 +18,7 @@ function showHideForumlist() {
 
        {{foreach $forums as $forum}}
                {{if $forum.id <= $visible_forums}}
-               <div class="forum-widget-entry" id="forum-widget-entry" role="menuitem">
+               <div class="forum-widget-entry" id="forum-widget-entry-{{$forum.id}}" role="menuitem">
                        <a href="{{$forum.external_url}}" title="{{$forum.link_desc}}" class="label sparkle" target="_blank">
                                <img class="forumlist-img" src="{{$forum.micro}}" alt="{{$forum.link_desc}}" />
                        </a>
@@ -27,7 +27,7 @@ function showHideForumlist() {
                {{/if}}
        
                {{if $forum.id > $visible_forums}}
-               <div class="forum-widget-entry" id="forum-widget-entry-extended" role="menuitem" style="display: none;">
+               <div class="forum-widget-entry" id="forum-widget-entry-extended-{{$forum.id}}" role="menuitem" style="display: none;">
                        <a href="{{$forum.external_url}}" title="{{$forum.link_desc}}" class="label sparkle" target="_blank">
                                <img class="forumlist-img" src="{{$forum.micro}}" alt="{{$forum.link_desc}}" />
                        </a>
@@ -37,9 +37,9 @@ function showHideForumlist() {
        {{/foreach}}
 
        {{if $total > $visible_forums }}
-       <ul class="forum-widget-ul">
-               <li onclick="showHideForumlist(); return false;" id="forum-widget-collapse" class="fakelink tool">{{$showmore}}</li>
-       </ul>
+       <div id="forum-widget-showmore" class="forum-widget-entry" role="menuitem">
+               <a onclick="showHideForumlist(); return false;" id="forum-widget-collapse" class="forum-widget-link">{{$showmore}}</a>
+       </div>
        {{/if}}
 
 </div>
index a59d7a9df391c66213294936b47d6085c18b7289..db96be9fb1c474557b32c173b1240836f38c0160 100644 (file)
@@ -401,7 +401,7 @@ code {
 }
 
 .sidebar-group-li:hover, #sidebar-new-group:hover, #hide-forum-list:hover,
-#sidebar-ungrouped:hover, .side-link:hover, .nets-ul li:hover, #forum-list div:hover, #forum-list-right div:hover,
+#sidebar-ungrouped:hover, .side-link:hover, .nets-ul li:hover, #forumlist-sidebar div:hover, #forum-list-right div:hover,
 .nets-all:hover, .saved-search-li:hover, li.tool:hover, .admin.link:hover, aside h4 a:hover, right_aside h4 a:hover, #message-new:hover {
   /* background-color: #ddd; */
 /*  background-color: #e5e5e5; */
@@ -420,7 +420,7 @@ code {
   font-weight: bold;
 }
 
-#sidebar-new-group, #hide-forum-list, #forum-list, #forum-list-right, #sidebar-ungrouped,
+#forum-widget-showmore, #sidebar-new-group, #hide-forum-list, #forum-list-right, #sidebar-ungrouped,
 .side-link, #peoplefind-desc, #connect-desc, .nets-all, .admin.link, #message-new {
   padding-left: 10px;
   padding-top: 3px;
@@ -429,6 +429,17 @@ code {
   display: block;
 }
 
+#forumlist-sidebar {
+  padding-top: 3px;
+  padding-bottom: 3px;
+  display: block;
+}
+
+.forum-widget-entry {
+  padding-left: 10px;
+  padding-right: 5px;
+}
+
 a.nets-link, .side-link a, #sidebar-new-group a, a.savedsearchterm, a.fileas-link, aside h4 a, right_aside h4 a {
   display: block;
   color: #737373;
@@ -456,11 +467,11 @@ a.sidebar-group-element {
   color: black;
 }
 
-#forum-list a, #forum-list-right a, .tool a, .admin.link a {
+#forumlist-sidebar a, #forum-list-right a, .tool a, .admin.link a {
   color: #737373;
 }
 
-#forum-list, #forum-list-right {
+#forumlist-sidebar, #forum-list-right {
   margin-top: 2px;
 }