change default color calendar icon [SOLVED]

UI Components for JSF
Post Reply
diegooli
Posts: 6
Joined: 08 Apr 2015, 15:41

02 Sep 2015, 18:41

tried this:

.ui-icon {

color: white !important;
}


ant this:

.ui-icon-calendar {

color: white !important;
}


tried change icon also, but the old icon disappears and the New isn't displayed:


.ui-icon-calendar {
background-image: ../img/calendar.png !important;
}


is not the url path, because it is correct. There is another way?
Last edited by diegooli on 08 Sep 2015, 13:46, edited 1 time in total.

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

04 Sep 2015, 15:29

For Aristo, please try with;

Code: Select all

.ui-state-default .ui-icon-calendar
{
    background-image: url("#{resource['primefaces-aristo:images/ui-icons_ffffff_256x240.png']}");
}

diegooli
Posts: 6
Joined: 08 Apr 2015, 15:41

08 Sep 2015, 13:45

White icon now :o

I'm trying for weeks and magically it works.

Thanks, aragorn!

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

09 Sep 2015, 10:55

Glad to hear, thanks :)

primate
Posts: 8
Joined: 12 Aug 2015, 10:54

15 Sep 2015, 17:44

Me gusta!!!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests