#72467 by m3avrck. Better display for long book page and forum topic titles.

5.x
Neil Drumm 2006-11-14 06:30:10 +00:00
parent e7ca0fe512
commit 392041edf6
4 changed files with 16 additions and 4 deletions

View File

@ -12,10 +12,19 @@
}
.book-navigation .page-previous {
text-align: right;
width: 42%;
display: block;
float: left;
}
.book-navigation .page-up {
margin: 0 4em;
margin: 0 5%;
width: 4%;
display: block;
float: left;
}
.book-navigation .page-next {
text-align: left;
width: 42%;
display: block;
float: left;
}

View File

@ -511,7 +511,7 @@ function theme_book_navigation($node) {
$output .= $tree;
}
if (isset($links)) {
$output .= '<div class="page-links">'. $links .'</div>';
$output .= '<div class="page-links clear-block">'. $links .'</div>';
}
$output .= '</div>';
}

View File

@ -18,9 +18,12 @@
padding: 0.5em;
}
.forum-topic-navigation .topic-previous {
margin-right: 4em;
text-align: right;
float: left;
width: 46%;
}
.forum-topic-navigation .topic-next {
text-align: left;
float: right;
width: 46%;
}

View File

@ -1098,7 +1098,7 @@ function theme_forum_topic_navigation($node) {
}
if ($prev || $next) {
$output .= '<div class="forum-topic-navigation">';
$output .= '<div class="forum-topic-navigation clear-block">';
if ($prev) {
$output .= l(t(' ') . $prev->title, 'node/'. $prev->nid, array('class' => 'topic-previous', 'title' => t('Go to previous forum topic')));