summaryrefslogtreecommitdiff
path: root/modules/poll
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/poll
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/poll')
-rw-r--r--modules/poll/poll.css33
-rw-r--r--modules/poll/poll.module4
2 files changed, 37 insertions, 0 deletions
diff --git a/modules/poll/poll.css b/modules/poll/poll.css
new file mode 100644
index 000000000..3b5544580
--- /dev/null
+++ b/modules/poll/poll.css
@@ -0,0 +1,33 @@
+/* $Id$ */
+
+.poll .bar {
+ height: 1em;
+ margin: 1px 0;
+ background-color: #ddd;
+}
+.poll .bar .foreground {
+ background-color: #000;
+ height: 1em;
+ clear: left;
+ float: left;
+}
+.poll .links {
+ text-align: center;
+}
+.poll .percent {
+ text-align: right;
+}
+.poll .total {
+ text-align: center;
+}
+.poll .vote-form {
+ text-align: center;
+}
+.poll .vote-form .choices {
+ text-align: left;
+ margin: 0 auto;
+ display: table;
+}
+.node-form .poll-form fieldset {
+ display: block;
+}
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 9499a6764..5b75f69d8 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -207,6 +207,10 @@ function poll_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', 'poll') .'/poll.css');
+
if (arg(0) == 'node' && is_numeric(arg(1))) {
$node = node_load(arg(1));
if ($node->type == 'poll') {