General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion Context for CSS selectors in transcluded (conreffed) content

  • schwamkrug

    Context for CSS selectors in transcluded (conreffed) content

    Participants 1
    Replies 0
    Last Activity 9 years, 9 months ago

    I'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

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support