Sfoglia il codice sorgente

Change the markup of forum/topic lists

Visman 4 anni fa
parent
commit
eb8d8fe33e

+ 4 - 4
app/templates/forum.forkbb.php

@@ -118,11 +118,11 @@
                 @endforeach
                   </span>
             @endif
-            @if (false !== $topic->hasNew)
-                  <span class="f-tnew"><a href="{!! $topic->linkNew !!}" title="{!! __('New posts info') !!}"><span class="f-newtxt">{!! __('New posts') !!}</span></a></span>
-            @endif
             @if (false !== $topic->hasUnread)
-                  <span class="f-tunread"><a href="{!! $topic->linkUnread !!}" title="{!! __('Unread posts info') !!}"><span class="f-unreadtxt">{!! __('Unread posts') !!}</span></a></span>
+                  <small class="f-tunread"><a href="{!! $topic->linkUnread !!}" title="{!! __('Unread posts info') !!}"><span class="f-unreadtxt">{!! __('Unread posts') !!}</span></a></small>
+            @endif
+            @if (false !== $topic->hasNew)
+                  <small class="f-tnew"><a href="{!! $topic->linkNew !!}" title="{!! __('New posts info') !!}"><span class="f-newtxt">{!! __('New posts') !!}</span></a></small>
             @endif
                 </h3>
                 <p><!-- inline -->

+ 1 - 1
app/templates/layouts/subforums.forkbb.php

@@ -19,7 +19,7 @@
                   <h3>
                     <a class="f-ftname" href="{!! $cur->link !!}">{{ $cur->forum_name }}</a>
         @if ($cur->tree->newMessages)
-                    <span class="f-fnew"><a href="{!! $cur->linkNew !!}" title="{!! __('New posts') !!}"><span class="f-newtxt">{!! __('New posts') !!}</span></a></span>
+                    <small class="f-fnew"><a href="{!! $cur->linkNew !!}" title="{!! __('New posts') !!}"><span class="f-newtxt">{!! __('New posts') !!}</span></a></small>
         @endif
                   </h3>
         @if ($cur->subforums)

+ 5 - 3
public/style/ForkBB/style.css

@@ -1360,6 +1360,7 @@ body,
   white-space: nowrap;
 }
 
+/*
 #fork .f-tnew:before,
 #fork .f-tunread:before {
   content: "[ ";
@@ -1369,6 +1370,7 @@ body,
 #fork .f-tunread:after {
   content: " ]";
 }
+*/
 
 #fork .f-newtxt,
 #fork .f-unreadtxt {
@@ -1438,7 +1440,7 @@ body,
 }
 
 #fork .f-ftlist .f-hcell,
-#fork .f-ftlist small {
+#fork .f-ftlist .f-clast small {
   display: none;
 }
 
@@ -2380,8 +2382,8 @@ body,
     vertical-align: middle;
   }
 
-  #fork .f-ulist .f-cell > small,
-  #fork .f-ulist .f-hcell > small {
+  #fork .f-ulist small,
+  #fork .f-ulist small {
     display: none;
   }