Fossil SCM
Added forumSel adjustment advice to forum.wiki.
Commit
0194fb677490c6f7819f9f1104892162539854035fc553b572fa643d1ced29e0
Parent
eac15b4c63321d1…
1 file changed
+26
+26
| --- www/forum.wiki | ||
| +++ www/forum.wiki | ||
| @@ -197,10 +197,36 @@ | ||
| 197 | 197 | read or write capability on the forum (2, 3) will see the "Forum" navbar |
| 198 | 198 | link, which just takes you to <tt>/forum</tt>. |
| 199 | 199 | |
| 200 | 200 | The exact code you need here varies depending on which skin you're |
| 201 | 201 | using. Follow the style you see for the other navbar links. |
| 202 | + | |
| 203 | +The new forum feature also brings many new CSS styles to the table. If | |
| 204 | +you're using the stock skin or something sufficiently close, the changes | |
| 205 | +may work with your existing skin as-is. Otherwise, you might need to | |
| 206 | +adjust some things, such as the background color used for the selected | |
| 207 | +forum post: | |
| 208 | + | |
| 209 | +<verbatim> | |
| 210 | + div.forumSel { | |
| 211 | + background-color: rgba(0, 0, 0, 0.05); | |
| 212 | + } | |
| 213 | +</verbatim> | |
| 214 | + | |
| 215 | +That overrides the default — a hard-coded light cyan — with a 95% | |
| 216 | +transparent black overlay instead, which simply darkens your skin's | |
| 217 | +normal background color underneath the selected post. That should work | |
| 218 | +with almost any background color except for very dark background colors. | |
| 219 | +For dark skins, an inverse of the above trick will work better: | |
| 220 | + | |
| 221 | +<verbatim> | |
| 222 | + div.forumSel { | |
| 223 | + background-color: rgba(255, 255, 255, 0.05); | |
| 224 | + } | |
| 225 | +</verbatim> | |
| 226 | + | |
| 227 | +That overlays the background with 5% white to lighten it slightly. | |
| 202 | 228 | |
| 203 | 229 | |
| 204 | 230 | <h3>Enable Forum Search</h3> |
| 205 | 231 | |
| 206 | 232 | One of the underlying assumptions of the forum feature is that you will |
| 207 | 233 |
| --- www/forum.wiki | |
| +++ www/forum.wiki | |
| @@ -197,10 +197,36 @@ | |
| 197 | read or write capability on the forum (2, 3) will see the "Forum" navbar |
| 198 | link, which just takes you to <tt>/forum</tt>. |
| 199 | |
| 200 | The exact code you need here varies depending on which skin you're |
| 201 | using. Follow the style you see for the other navbar links. |
| 202 | |
| 203 | |
| 204 | <h3>Enable Forum Search</h3> |
| 205 | |
| 206 | One of the underlying assumptions of the forum feature is that you will |
| 207 |
| --- www/forum.wiki | |
| +++ www/forum.wiki | |
| @@ -197,10 +197,36 @@ | |
| 197 | read or write capability on the forum (2, 3) will see the "Forum" navbar |
| 198 | link, which just takes you to <tt>/forum</tt>. |
| 199 | |
| 200 | The exact code you need here varies depending on which skin you're |
| 201 | using. Follow the style you see for the other navbar links. |
| 202 | |
| 203 | The new forum feature also brings many new CSS styles to the table. If |
| 204 | you're using the stock skin or something sufficiently close, the changes |
| 205 | may work with your existing skin as-is. Otherwise, you might need to |
| 206 | adjust some things, such as the background color used for the selected |
| 207 | forum post: |
| 208 | |
| 209 | <verbatim> |
| 210 | div.forumSel { |
| 211 | background-color: rgba(0, 0, 0, 0.05); |
| 212 | } |
| 213 | </verbatim> |
| 214 | |
| 215 | That overrides the default — a hard-coded light cyan — with a 95% |
| 216 | transparent black overlay instead, which simply darkens your skin's |
| 217 | normal background color underneath the selected post. That should work |
| 218 | with almost any background color except for very dark background colors. |
| 219 | For dark skins, an inverse of the above trick will work better: |
| 220 | |
| 221 | <verbatim> |
| 222 | div.forumSel { |
| 223 | background-color: rgba(255, 255, 255, 0.05); |
| 224 | } |
| 225 | </verbatim> |
| 226 | |
| 227 | That overlays the background with 5% white to lighten it slightly. |
| 228 | |
| 229 | |
| 230 | <h3>Enable Forum Search</h3> |
| 231 | |
| 232 | One of the underlying assumptions of the forum feature is that you will |
| 233 |