diff options
Diffstat (limited to 'modules/forum')
-rw-r--r-- | modules/forum/forum.css | 26 | ||||
-rw-r--r-- | modules/forum/forum.module | 5 |
2 files changed, 31 insertions, 0 deletions
diff --git a/modules/forum/forum.css b/modules/forum/forum.css new file mode 100644 index 000000000..4bee6c4b2 --- /dev/null +++ b/modules/forum/forum.css @@ -0,0 +1,26 @@ +/* $Id$ */ + +#forum .description { + font-size: 0.9em; + margin: 0.5em; +} +#forum td.created, #forum td.posts, #forum td.topics, #forum td.last-reply, #forum td.replies, #forum td.pager { + white-space: nowrap; +} +#forum td.posts, #forum td.topics, #forum td.replies, #forum td.pager { + text-align: center; +} +.forum-topic-navigation { + padding: 1em 0 0 3em; + border-top: 1px solid #888; + border-bottom: 1px solid #888; + text-align: center; + padding: 0.5em; +} +.forum-topic-navigation .topic-previous { + margin-right: 4em; + text-align: right; +} +.forum-topic-navigation .topic-next { + text-align: left; +} diff --git a/modules/forum/forum.module b/modules/forum/forum.module index f2a4b4725..bf3801e13 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -97,6 +97,11 @@ function forum_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', 'forum') .'/forum.css'); + } return $items; } |