General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › Context for CSS selectors in transcluded (conreffed) content
-
schwamkrug January 10, 2013 at 4:15 pm
Context for CSS selectors in transcluded (conreffed) content
January 10, 2013 at 4:15 pmParticipants 1Replies 0Last Activity 10 years agoI'm trying to use some different styling for transcluded content… As a trivial example, lets say I want to hide some subelements if they're within within conreffed content. I figured I could use a selector like this:
[conref] [class~=some-d/someClass] {
display:none;
}That works great while I'm viewing local content, but if I switch to referenced content, those CSS rules are ignored. I'm assuming that's because the CSS context for referenced content is such that
doesn't have a parent. The top-level element in that case is the element I'm referencing. Is that true? Is there another CSS method I can use to select elements within conreffed content?
This is in XMetaL 6.
Thanks!
-Kyle -
AuthorPosts
- You must be logged in to reply to this topic.