1 (edited by monkii 2005-03-17 05:57)

Topic: Where do I style the 'pages' text ?

http://www.monkii.com/up/pun.gif

Can anyone give me some clues on how to style the 'pages' text.
Thanks

Re: Where do I style the 'pages' text ?

the default text color can be found here in "stylename_cs.css"

/****************************************************************/
/* 1. BACKGROUND AND TEXT COLOURS */
/****************************************************************/

/* 1.1 Default background colour and text colour */

BODY {BACKGROUND-COLOR: #FFF}

.pun {COLOR: #333}

The problem is if you change it, it will affect the other text with the same color settings.  (i.e. where you have test/Guest... in your screen shot)  If you only want it to change the "Pages: #" you will have to make your own style rule for it and change the markup in viewtopic.php to reflect your custom style.


Look in viewtopic.php on line 170 for this:

<p class="pagelink conl"><?php echo $paging_links ?></p>

and change it to this AFTER you have made your own rule in the color scheme CSS file. I would put your own style rule at te bottom of the page so its easy t find your mods.

<p class="pagelink conl yourpagelinkstylename"><?php echo $paging_links ?></p>

I am have not tested this, but I am pretty sure it should work.

Re: Where do I style the 'pages' text ?

whats wrong with using the pagelink class?

4

Re: Where do I style the 'pages' text ?

.pun P.pagelink {color: whatever}

If you want the number of the selected page which is not a link to be a different colour then

.pun P.pagelink STRONG {color: whatever}

5 (edited by buzzkill 2005-03-17 18:48)

Re: Where do I style the 'pages' text ?

Nothing. 

Its not in the color scheme file by default.  So I guess he could add this class definition to the Color Scheme file also. which would be a hell of lot easier.

Therefore: 

He should just open the _cs file and add the following to the bottom of the file:

.pagelink {
  color: #FFF;
}

If he wants it to be white text.  right?

this way there is no need to modify viewtopic.

Thanks connorhd ! big_smile

sometimes I tend to over "engineer" things.  your way is better.

EDIT: n/m paul beat me to it big_smile

Re: Where do I style the 'pages' text ?

Thanks guys.

Much appreciated!

Re: Where do I style the 'pages' text ?

Thanks for the pointers.  My version...

/* picked up from punBB.org posted by connerHD */
span.pagelink
{
  width:100%;
  margin-top: 5px;
  margin-bottom: 5px;
  padding: 2px;
  background-color: #99cccc;
  border-top: 1px solid #009999;
  border-bottom: 1px solid #009999;
  text-align: left;
}

span.pagelink strong
{
  border-left: 1px solid #ccffff;
  border-right: 1px solid #ccffff;
  padding-left:2px;
  padding-right:2px;
}

http://www.gidnetwork.com/images/user/2994-23-rothcode_pagenav.png