We wanted to set style the Close link:
div.share_popup a.share_close

but noticed that the share.css is loading up after the theme style.css, am using the $styles variable in my page.tpl.php file, which means that any css definitions in style.css get over-ridden by share.css.

Is it possible for the module to fix this so that share.css loads before the theme style.css.

Comments

greenskin’s picture

Status: Active » Closed (won't fix)

The share.css file gets loaded after the style.css so to allow for a constant look between different themes. Otherwise some themes might overwrite the share.css styles. The share.css file is loaded inside of a theme function so you can create your own share.css file. To do this, in your template.php file add the function phptemplate_share_css($block = FALSE) function (you can replace 'phptemplate' with your theme name if you want). The first drupal_add_css() addes the share.css file where as the second adds the one for the block. Copy either or both of the css files from the Share folder and put them in your theme folder. Make any changes needed then change the path in the phptemplate_share_css($block = FALSE) function to your css files.

captcha’s picture

Thanks to the detailed instructions, I was able to load the custom styles.
It appears that the instructions that you posted would apply to the dev version.

For version 1.0 and 1.6, the function declaration as below works:
function phptemplate_share_css()

Thanks again for the fast response.