-
Notifications
You must be signed in to change notification settings - Fork 144
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
How to set MEDIA attribute for stylesheet? #9
Comments
This is a missing feature. I would think this needs to be configurable at the module level. In web.config, something like this perhaps:
? |
That would work out great for me, and is consistent with how everything else is configured in Cassette. |
I'll leave this open, until the feature is implemented. |
Great :) |
In Cassette 0.6, the moduleSource.Add(new DirectorySource<StylesheetModule>("styles/mobile")
{
FilePattern = "*.css",
CustomizeModule = m => m.Media = "your-media-query-here"
}); However, I assume you'd rather use on /// after adding the module source...
moduleSource.Customize<StylesheetModule>("styles/mobile", m =>m.Media = "etc"); |
Great enhancements with 0.6! I currently just use the DirectorySource class, but you you're right that I'd rather use the PerSubDirectorySource to save me from explicitly specifying each subfolder under /css. Thanks! |
For mobile devices I want to include certain stylesheets and set the "media" attribute.
Currently I don't see how to do that using Cassette and am forced to usedirectly the element.
The text was updated successfully, but these errors were encountered: