summaryrefslogtreecommitdiff
path: root/modules/book
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-14 07:14:50 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-14 07:14:50 +0000
commit3cc2b1e3d78d7e82572d59939507bb3eddce53b4 (patch)
tree9a31e74cff3d628bb918f1bc2887b6a433f91aba /modules/book
parent4b65446fb63496a12486ed8616ba84186e82f74c (diff)
downloadbrdo-3cc2b1e3d78d7e82572d59939507bb3eddce53b4.tar.gz
brdo-3cc2b1e3d78d7e82572d59939507bb3eddce53b4.tar.bz2
#77183 by m3avrck and timcn, split up drupal.css by module.
Diffstat (limited to 'modules/book')
-rw-r--r--modules/book/book.css21
-rw-r--r--modules/book/book.module4
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')) {