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

Not a bug Automatic Browser Specific code doesn't work on Pages

Lisa

Well-known member
#1
(What a terrible thread title!)

Anyway, I'm finding that if I add css that requires browser-specific css (say transform, for instance), while I can put in a single line for it to work within the forums, I have to list every variation - moz, o, ms, etc) to make it work within pages.
 

Jeremy

Well-known member
#2
Are you placing the CSS directly into the template or is it in a separate .css file and including it via css.php (xen:include may automatically do that)? I believe the extrapolating of those lines of CSS occur in CSS.php. Lemme check real fast.

Yup, seems that's a css.php function. (y)
 

Lisa

Well-known member
#3
Are you placing the CSS directly into the template or is it in a separate .css file and including it via css.php (xen:include may automatically do that)? I believe the extrapolating of those lines of CSS occur in CSS.php. Lemme check real fast.
Within the page template.
 

Jeremy

Well-known member
#4
Yeah, it looks like css.php accomplished that using XenForo_CssOutput::translateCssRules();. Try adding it into its own page.css template and including it via css.php (you may only need to do a <xen call).