Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cssSandpaper does not work with Drupal Zen theme #11

Open
peterdemaeyer opened this issue Apr 17, 2012 · 2 comments
Open

cssSandpaper does not work with Drupal Zen theme #11

peterdemaeyer opened this issue Apr 17, 2012 · 2 comments

Comments

@peterdemaeyer
Copy link

I wanted to use this library to get text-shadows in IE in my Drupal Zen subtheme, but unfortunately that doesn't work. I can make it work for a standalone example (plain HTML file with CSS alongside), but not for my Drupal Zen subtheme. I tried to debug the script with my limited knowledge of JavaScript, and this is as far as I got:

I've pin-pointed as far as function getStyleSheet(node) in cssSandpaper.css. Somehow it doesn't find any styleSheets, decides there is nothing to transform, and nothing is replaced.

@peterdemaeyer
Copy link
Author

The page that works has the following in its content:

<link href="css/textShadowPeter.css" type="text/css" rel="stylesheet" />

which is correctly scanned by function getStyleSheet(node). However, the drupal page has a more complicated looking style:

<style type="text/css" media="all">
  @import url("http://192.168.0.100/ooginstituut/modules/system/system.base.css?m2dtow");
  @import url("http://192.168.0.100/ooginstituut/modules/system/system.menus.css?m2dtow");
  @import url("http://192.168.0.100/ooginstituut/modules/system/system.messages.css?m2dtow");
  @import url("http://192.168.0.100/ooginstituut/modules/system/system.theme.css?m2dtow");
</style>

Apparently the latter cannot be scanned correctly... What would it take to make cssSandpaper work for the latter type of styles?

@2dareis2do
Copy link

Yes, I have tried to get this working (not with drupal zen theme) and seem to be having the same problem. I have posted an issue here:

http://drupal.org/node/1660836

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants