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
Overriding Theme CSS
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
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
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
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 2 guests