diff options
Diffstat (limited to 'modules/book')
-rw-r--r-- | modules/book/book.css | 21 | ||||
-rw-r--r-- | modules/book/book.module | 4 |
2 files changed, 25 insertions, 0 deletions
diff --git a/modules/book/book.css b/modules/book/book.css new file mode 100644 index 000000000..618eac774 --- /dev/null +++ b/modules/book/book.css @@ -0,0 +1,21 @@ +/* $Id$ */ + +.book-navigation .menu { + border-top: 1px solid #888; + padding: 1em 0 0 3em; +} +.book-navigation .page-links { + border-top: 1px solid #888; + border-bottom: 1px solid #888; + text-align: center; + padding: 0.5em; +} +.book-navigation .page-previous { + text-align: right; +} +.book-navigation .page-up { + margin: 0 4em; +} +.book-navigation .page-next { + text-align: left; +} diff --git a/modules/book/book.module b/modules/book/book.module index a6c59fdf5..51b906f4e 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -118,6 +118,10 @@ function book_menu($may_cache) { 'type' => MENU_CALLBACK); } else { + // Add the CSS for this module + // We put this in !$may_cache so it's only added once per request + drupal_add_css(drupal_get_path('module', 'book') .'/book.css'); + // To avoid SQL overhead, check whether we are on a node page and whether the // user is allowed to outline posts in books. if (arg(0) == 'node' && is_numeric(arg(1)) && user_access('outline posts in books')) { |