I have pulled out the style. That way it will be easier for ppl to style the result without needing to mess around in the module it self.

CommentFileSizeAuthor
votingapi_field.css.txt3.52 KBmorphir

Comments

morphir’s picture

I have no clue what width:$w%; means or does.

.votingapi_choice_field_graph { 
    background-color:lightblue; 
    width:$w%;
}
Chill35’s picture

width:$w%;

$w is a php variable that gives you the percentage width of what I assume are the graph bars...

My guess is it's essential to draw the graph as teh graph is drawn using CSS.

Maybe you can take out only that part to put in an external css file :

.votingapi_choice_field_graph {
background-color:lightblue;
}

Choosing color is rrrreally nice.

and leave the width back in...

I am just GUESSING here LOL...

morphir’s picture

Good idea. Leave the width in the .module.

Now, to fetch the .css-file I guess we can use something like the userreview module uses
theme_add_style(drupal_get_path('module', 'userreview') .'/userreview.css');

I do not where to place this yet... So help us out :)

dfletcher’s picture

Status: Needs work » Closed (fixed)

Applied.