• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Syntax question

John

Well-known member
#1
What would you folks suggest would be the appropriate way to structure a CSS statement where I have a custom style property trigger (on/off setting) that uses <xen: if is="@my property"> that I want to disable for a responsive width? In other words, I can't use display: none but it's the same principle.
 

John

Well-known member
#3
You can use <xen:if is="@enableResponsive"> to specifically select responsive styles.
Right, I'm aware of that, but I want to write a statement that overrides an existing <xen:if...> statement if responsive is enabled. That's what I'm asking.
 

Brogan

XenForo moderator
Staff member
#4
Oh right, I misread your request.

So the style is responsive but you want to override or disable the responsive CSS?
 

John

Well-known member
#5
Oh right, I misread your request.

So the style isresponsive but you want to override or disable the responsive CSS?
Sorry, no. I have a feature of my framework that has an enabled/disabled option controlled via a <xen: if> statement, then just standard CSS options from there. In the responsive version I'm working on, I don't want it to function, even if it's set to enabled (which it is, by default). So, my question is, how does one go about doing that using the <xen:if is="@enableResponsive"> syntax.