Fossil SCM
Added new CSS class forumPosts to the <div> containing the list of posts on the /forum page so that skins can target elements of this list differently than others. One immediate use for this is styling read threads differently via a:visited styling. Currently, only one of the stock skins ships with an unconditional a:visited change, so that all links show in the same color regardless of their state. That's fine in most areas of the UI, but in the forum, a skin developer may want something special, so we need a way to mark them differently. This <div> was already using the broadly-used "fileage" style, but we don't want changes to a:visited and such to affect all other users of fileage, so we need a unique style to this page.
Commit
77782490334646c4a68e0c90e6311685422899eaa1363c756b1107c5c033d901
Parent
3f5b25493212ff3…
1 file changed
+1
-1
+1
-1
| --- src/forum.c | ||
| +++ src/forum.c | ||
| @@ -990,11 +990,11 @@ | ||
| 990 | 990 | if( iOfst>0 ){ |
| 991 | 991 | @ <h1>Threads at least %s(zAge) old</h1> |
| 992 | 992 | }else{ |
| 993 | 993 | @ <h1>Most recent threads</h1> |
| 994 | 994 | } |
| 995 | - @ <div class='fileage'><table width="100%%"> | |
| 995 | + @ <div class='forumPosts fileage'><table width="100%%"> | |
| 996 | 996 | if( iOfst>0 ){ |
| 997 | 997 | if( iOfst>iLimit ){ |
| 998 | 998 | @ <tr><td colspan="3">\ |
| 999 | 999 | @ %z(href("%R/forum?x=%d&n=%d",iOfst-iLimit,iLimit))\ |
| 1000 | 1000 | @ ↑ Newer...</a></td></tr> |
| 1001 | 1001 |
| --- src/forum.c | |
| +++ src/forum.c | |
| @@ -990,11 +990,11 @@ | |
| 990 | if( iOfst>0 ){ |
| 991 | @ <h1>Threads at least %s(zAge) old</h1> |
| 992 | }else{ |
| 993 | @ <h1>Most recent threads</h1> |
| 994 | } |
| 995 | @ <div class='fileage'><table width="100%%"> |
| 996 | if( iOfst>0 ){ |
| 997 | if( iOfst>iLimit ){ |
| 998 | @ <tr><td colspan="3">\ |
| 999 | @ %z(href("%R/forum?x=%d&n=%d",iOfst-iLimit,iLimit))\ |
| 1000 | @ ↑ Newer...</a></td></tr> |
| 1001 |
| --- src/forum.c | |
| +++ src/forum.c | |
| @@ -990,11 +990,11 @@ | |
| 990 | if( iOfst>0 ){ |
| 991 | @ <h1>Threads at least %s(zAge) old</h1> |
| 992 | }else{ |
| 993 | @ <h1>Most recent threads</h1> |
| 994 | } |
| 995 | @ <div class='forumPosts fileage'><table width="100%%"> |
| 996 | if( iOfst>0 ){ |
| 997 | if( iOfst>iLimit ){ |
| 998 | @ <tr><td colspan="3">\ |
| 999 | @ %z(href("%R/forum?x=%d&n=%d",iOfst-iLimit,iLimit))\ |
| 1000 | @ ↑ Newer...</a></td></tr> |
| 1001 |