Using - color: @primaryMedium;

Xarcell

Well-known member
So i'm trying to get
Code:
    color: @primaryMedium;
in my css code for a module to use in Jaxel's XenPorta mod.

I cannot get it to work. Any thoughts on this? Is there something I'm missing?
 

Brogan

XenForo moderator
Staff member
That's the correct syntax.

You may need to use the !important declaration depending on where you're using it.
 

Xarcell

Well-known member
It's for a quote module to be used with XenPorta by Jaxel.

Code:
  .bq {
    font-family: "WCManoNegraBta";
    font-size: 190%;
    color: @primaryMedium;
 }
 

Brogan

XenForo moderator
Staff member
Have you tried using:
HTML:
  .bq {
    font-family: "WCManoNegraBta";
    font-size: 190%;
    color: @primaryMedium !important;
 }
I don't know how the css is set up for XenPorta though so the !important declaration would only be required if the same class is being applied later.
 

Xarcell

Well-known member
Have you tried using:
HTML:
  .bq {
    font-family: "WCManoNegraBta";
    font-size: 190%;
    color: @primaryMedium !important;
 }
I don't know how the css is set up for XenPorta though so the !important declaration would only be required if the same class is being applied later.
Tried it, didn't seem to work.

Any other ideas?

FYI: "WCManoNegraBta" font-family is a ttf, using @font-face.
 

Brogan

XenForo moderator
Staff member
Can you post a link?
I need to see the css to investigate why it isn't working.
 

Shadab

Well-known member
Checking the (output) source for your portal, the "@primaryMedium" part is being shown as-it-is. That could be because the template (module?) is not being compiled. The style properties are changed to native php code when a template is compiled. So if that step is skipped, you won't be able to take advantage of the color palette or style properties.
 
Top