Topic: Where do I style the 'pages' text ?
Can anyone give me some clues on how to style the 'pages' text.
Thanks
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → Where do I style the 'pages' text ?
Can anyone give me some clues on how to style the 'pages' text.
Thanks
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.
whats wrong with using the pagelink class?
.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}
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 !
sometimes I tend to over "engineer" things. your way is better.
EDIT: n/m paul beat me to it
Thanks guys.
Much appreciated!
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;
}
PunBB Forums → PunBB 1.2 troubleshooting → Where do I style the 'pages' text ?
Powered by PunBB, supported by Informer Technologies, Inc.