Jump to content
Erwan

PL core LESS color variables for body and page?

Recommended Posts

Erwan    37
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    436
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    37
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    547
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    37
Erwan

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

Share this post


Link to post
Share on other sites
Rob    547
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

    • 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?
    • dymond
      By dymond+
      I've been trying to upload a video to use as a video background, but the size was 12m, and the alotted max file size is 8m. I downloaded a couple of pugins that increase the size by creating php.ini files and all of that jazz, but to no avail. It would say (Max file size = 250mb) but after I uploaded I would get an "HTTP ERROR",
      Soooo I logged into my cpanel and saw that the php I was using was 4 version out of date. I upgraded my php to PHP 5.6 and now I get
      Fatal error: Out of memory (allocated 39583744) (tried to allocate 15 bytes) in /homepages/39/d200014696/htdocs/dymondentertainment.com/wp-content/themes/dms/dms/includes/less.plugin.php on line 848
      When I activiate another theme that is not pagleines, the site works fine.... but will no longer work with Pagelines DMS Version 2.2
       
      My site has no gone dark. What can I do?
    • mistrmint
      By mistrmint+
      Site : http://fireworxmedia.yourdemosite.co.za/
      I need to change the second menu items on hover to different colors.
      i.e factual needs to be blue on hover, fiction red on hover, etc. etc.
      then on the sub menu of factual, all need to hover blue with the main menu factual item staying as blue,
      and the sub menu of fiction needs to hover red with fiction item staying as red.
      etc. etc.
       
      For the life of me I cannot figure it out.
×