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

Using - color: @primaryMedium;

Xarcell

Well-known member
#1
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
#3
That's the correct syntax.

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

Xarcell

Well-known member
#4
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
#5
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
#6
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.
 

Shadab

Well-known member
#11
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.