You are viewing limited content. For full access, please sign in.

Question

Question

forms lf-header color

asked on May 1, 2020

How do you customize the color of the header in forms?  I want my test environment to be visually distinctive from production.

0 0

Answer

SELECTED ANSWER
replied on May 12, 2020

You can change it by editing the "C:\Program Files\Laserfiche\Laserfiche Forms\Forms\Styles\cf-core.css" file.  Open it and search for .lf-header--inverse and change the background color that follows (it is all on a single line).  The only thing to note is that the navigation button colors will not be affected.

4 0
replied on May 13, 2020

This!  Thank you Bert.  

0 0
replied on July 26, 2022

Bert, you are amazing.

0 0

Replies

replied on May 4, 2020

Hi Erik,

I don't think Forms has an option for this.

However, if you have a way of adding a custom stylesheet whenever in Forms, this is the relevant CSS:

.lf-header--inverse {
  background-color: #0069ba;
  color: #fff;
}

/* the active tab */
.lf-header .lfm-toolbar__link.active, .lf-header .lfm-toolbar__link.active:focus, .lf-header .lfm-toolbar__link.active:hover, .lf-header .dropdown.open .lfm-toolbar__link, .lf-header .dropdown.open .lfm-toolbar__link:hover, .lf-header .dropdown.open .lfm-toolbar__link:focus, .lf-header .dropdown.open.lfm-toolbar__link, .lf-header .dropdown.open.lfm-toolbar__link:hover, .lf-header .dropdown.open.lfm-toolbar__link:focus, .lf-header .lfm-toolbar__link.active .lf-icon {
    background-color: #0056a0;
}

(You may need to add !important to any of those, ie "background-color: #ff44aa !important;")

1 0
replied on May 12, 2020

Thanks for the reply Jim, I guess I'm asking which file do I edit to accomplish this?

0 0
replied on May 12, 2020

No idea! But if you have a way of forcing a CSS file to any user on the network on the Forms URL, that would do it.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.