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.

wyoung 2018-08-25 16:06 trunk
Commit 77782490334646c4a68e0c90e6311685422899eaa1363c756b1107c5c033d901
1 file changed +1 -1
+1 -1
--- src/forum.c
+++ src/forum.c
@@ -990,11 +990,11 @@
990990
if( iOfst>0 ){
991991
@ <h1>Threads at least %s(zAge) old</h1>
992992
}else{
993993
@ <h1>Most recent threads</h1>
994994
}
995
- @ <div class='fileage'><table width="100%%">
995
+ @ <div class='forumPosts fileage'><table width="100%%">
996996
if( iOfst>0 ){
997997
if( iOfst>iLimit ){
998998
@ <tr><td colspan="3">\
999999
@ %z(href("%R/forum?x=%d&n=%d",iOfst-iLimit,iLimit))\
10001000
@ &uarr; Newer...</a></td></tr>
10011001
--- 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 @ &uarr; 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 @ &uarr; Newer...</a></td></tr>
1001

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button