Closed (fixed)
Project:
Profile Complete Percent
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2012 at 18:27 UTC
Updated:
12 May 2012 at 07:40 UTC
Thank you for the tpl file but to have it easier to style out of the box could you remove the inline styles with the hard-coded ID #selectors and just use some base classes that can be overwritten in the theme?
Referring to this:
<style type="text/css">
#pcp-wrapper-<?php print $entity_type . '-' . $bundle; ?> .pcp-percent-bar-wrapper {width: 100%; border: 1px solid #000; padding: 1px;}
#pcp-wrapper-<?php print $entity_type . '-' . $bundle; ?> .pcp-percent-bar { width: <?php print $current_percent; ?>%; height: 10px; background-color: #777;}
</style>
Comments
Comment #1
joelpittetI guess the width has to be there but everything else would be better served in a css file that can be cached and overwritten.
Comment #2
BarisW commentedThanks for your suggestion. I've fixed it in the dev version.