Overriding Theme CSS

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
athletechs
Posts: 8
Joined: 15 Oct 2016, 21:38

10 Jun 2017, 16:07

Hey -

Great theme! I am excited to incorporate into our site. I have a question about best practice regarding overriding theme CSS. For example, we need to change the size of the logos in the topbar. I would prefer not to make the changes directly to the provided CSS to avoid issues if new versions of Barcelona are released. Is there a recommended approach to handling this?

Thanks!
Dave

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

13 Jun 2017, 07:26

There are variables for some CSS features on layout or theme. Exp;.topbar { background-color: $primaryColor ..} You can change the value of variable on theme.scss and _variables.scss
But, you need to make change for logo size in _topbar.scss. Then, you can provide new layout-*.css for your project. Details; https://www.primefaces.org/barcelona/docs.xhtml

Post Reply

Return to “Barcelona - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests