Jump to content
Erwan

PL core LESS color variables for body and page?

Recommended Posts

Erwan

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
James B

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.

 


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
Erwan

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
Rob

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


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Erwan

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

Share this post


Link to post
Share on other sites
Rob

Great!


Former PageLines Moderator, Food Expert and Raconteur

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


  • Similar Content

    • gregory.guz
      By gregory.guz+
      Hi ,
      I just noticed that the color picker has stopped showing up on my PL5 site ( please see attached image ) 
      Any idea what could be causing the problem?
       
      Thanks 
      Greg

    • greatthingsllc
      By greatthingsllc+
      In Platform 5, Using Framework Section for Content , I have set the hyperlink colors in the CUSTOMIZE section.   However, none of the pages are properly displaying the link colors.   Just defaulting to black, and underline on hover.   I did not see where this would be controlled at the page level or lower
      Site    doritbrauer.com
      Thanks
      Josh

    • GreyFoxWebDesign
      By GreyFoxWebDesign+
      Hi, could you let me know where the custom less/css is saved to - i.e. how I could access it directly via the server.
      I hid the Admin Bar by mistake and now can't save any changes to the Custom CSS as the Save Button is not available - so I need to find another way to access and edit the custom CSS.
      Thanks in advance
    • tkpagelines
      By tkpagelines+
      Hi there ,
      i would like to change the color of menu items on hover and the current menu item. Both should have the same color, but not the color given of the theme scheme.
      Any suggestions ? Maybe a css snippet ?
       
      Thanks
    • Audun MB
      By Audun MB+
      How do I get the LESS in a child theme to compile?
×