diff options
Diffstat (limited to 'modules/block')
-rw-r--r-- | modules/block/block.css | 18 | ||||
-rw-r--r-- | modules/block/block.module | 5 |
2 files changed, 23 insertions, 0 deletions
diff --git a/modules/block/block.css b/modules/block/block.css new file mode 100644 index 000000000..1ff1b76ee --- /dev/null +++ b/modules/block/block.css @@ -0,0 +1,18 @@ +/* $Id$ */ + +#blocks td.region { + font-weight: bold; +} +#blocks td.block { + padding-left: 1.5em; +} +.block-region { + background-color: #ff6; + margin-top: 4px; + margin-bottom: 4px; + padding: 3px; +} +.block ul { + margin: 0; + padding: 0 0 0.25em 1em; +} diff --git a/modules/block/block.module b/modules/block/block.module index c22667b6e..39e54828f 100644 --- a/modules/block/block.module +++ b/modules/block/block.module @@ -99,6 +99,11 @@ function block_menu($may_cache) { } } } + 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', 'block') .'/block.css'); + } return $items; } |