Book Navigation Font Size

PierreFWalter - May 26, 2006 - 10:08
Project:Bonsai Theme
Version:4.6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:PierreFWalter
Status:needs review
Description

Can anybody help me with this? I had decreased the font size for the book navigation in Drupal. 4.6.6. for the Bonsai theme. There is originally no code for this in the theme's css. But I found the solution for Drupal 4.6.6 looking through the code of the book module. So I put the code for -
- .prev (previous page)
- .next (next page)
- .up (up page)

Then I put the font size 0.7em and it worked fine! So the book navigation used a font much smaller than the font in the body, and this is very useful if you want to have a nice large font in the body (like 1.2em), and when you have long page names a small font for the book navigation is then very useful.

But this does not work any more after the upgrade to Drupal 4.7.0. I looked again through the code of the book module and saw it has changed. Now the functions for the navigation are
- book_prev($node)
- book_next($node)
- book_up($node)

I have modified the code in the css but it does still not work. Does anybody have an idea to get this working under Drupal 4.7.0 or 4.7.1?

Thanks.
Pierre

#1

PierreFWalter - May 28, 2006 - 03:14

I solved the problem. I found the parameter that works for Drupal 4.7.0. Insert this into the theme's CSS:

.book-navigation {
font-size: 0.9em;
}

It makes the whole book navigation smaller and thus more fitting into the limited space of this fixed-column centered theme. But if you go under 0.9 font size, strangely enough, the spaces between previous, up and next link will be left out and all will be glued together. But 0.9 font size is already a distinctive advantage. Most titles then will fit in the little window.

For making the upper navigation more comprehensive and smaller, you can use this code:

.navigation {
float: left;
font: 0.7em 'Verdana', Arial, Helvetica, Sans-Serif;
margin-top: 0.2em;
margin-left: 0em;
}

 
 

Drupal is a registered trademark of Dries Buytaert.