Howto customize color class with FA and Adamantium?

Locked
n3tmaster
Posts: 14
Joined: 29 Nov 2013, 16:35

24 May 2016, 11:38

Hi,

I'm trying to customize color class with Adamantium theme.

In order to ad my custom color I added

Code: Select all

.FCropGreen{color:#8BC53F;}
into adamantium-layout.less

then I recompiled my less files and I put my new color class in code:

Code: Select all

<i class="fa fa-th-large Fs60 FCropGreen"></i><p:spacer width="20"/>
            <b class="Fs60 FCropGreen">#{languageBean.getElementName('homepage')}</b>
But it doesn't work, when I load my page FA icon and text colors are black ...

any idea?

thank you in advance

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

24 May 2016, 12:26

Please try;

Code: Select all

.FCropGreen{color:#8BC53F !important;}

n3tmaster
Posts: 14
Joined: 29 Nov 2013, 16:35

24 May 2016, 12:38

Yeah! It works like a charm!

Thank you!

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

24 May 2016, 13:43

You're welcome!

Also, improve text and background color classes of Layouts for Components;
https://github.com/primefaces/layouts/issues/86

Locked

Return to “Adamantium”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests