• 0

PL core LESS color variables for body and page?


Question

Posted · Report post

Hi,

 

I use the PL color variable @pl-base in my custom LESS, so that some customizations (e.g. PL or personal LESS mixins) immediately take in account any change in global settings.

 

This @pl-base variable is described as "Page background color" in documentation http://support.pagelines.me/docs/miscellaneous/less/: actually, it seems to me it's the "Content Background" color defined in Site Options \ Color Control.

 

If they exist (I never managed to find them in documentation, including the "PHP Cross Reference of PageLines Framework"), what are the PL LESS variables referring to "Body background" color and (real) "Page background" color?

 

I most certainly miss something considering there are variables for all other colors defined in Site Options (e.g. @pl-text, @pl-header,...).

 

Many thanks in advance!

Share this post


Link to post
Share on other sites

5 answers to this question

  • 0

Posted · Report post

Hi there,

 

I'm not a LESS guru so hold tight in case someone who knows exactly follows up on this. 

 

But as far as I'm aware that's the only preset variable for the main/background colour. From what I can see the @pl-base applies to the main body background and the other variables @darkbase @lightbase work off of that color.

It can be re-used to colour other classes if required by adding them to the css. Like .page-canvas {background:@pl-base;}

 

Or you can make your own variable and use that for the other areas you want to color. Like @pl-content-area for example.

 

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

James,

No, @pl-base doesn't refer to PL "body backround" color but to PL "content background" color defined in site options. It's just a matter of vocabulary that can be confusing: but nevermind, we coul call it "main color" ;)

And yes it's a very useful one, just like all variables linked to this same color i.e. @dark-base, @light-base, @baseContrastSlight, @baseContrast, @baseContrastMore, @baseContrastDark,...

 

It's just weird that the variables for "Body background" & "Page background" colors defined in site options are not available / "preset", as you confirm to me: it would help making customizations fully coherent with site options settings.

Instead, I created my own @pl-set-body-color + @pl-set-page-color variables and must not forget to change their value each time I change the corresponding colors in site settings: not a big deal but
I'm rather perfectionist ^_^ !

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

It seems you have resolved this matter.  I will let our developers know of your concerns.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Yes we can consider... in some way the matter is solved ;) Thanks.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Great!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now