Page 1 of 1

change icon of datepicker CSS

Posted: Wed Jun 11, 2014 2:07 pm
by Bad Addy

I am trying to change the grid icon with a custom one for the datetime picker, and its not working as planned due to the icon showing, under the grid.

Searching these forums has shown me, but not how to over come this.

This is how it looks:

Image

This is the chrome element info:

Image

And in my custom CSS I have this simple requestL

pre
[dsid=prop_availDate] .ui-icon-grid {
background: url('../image/calendar_icon.jpg') !important;
}
/pre

How do I stop the grid from showing? I have tried using :after, but the new icon will not show. I have tried to z-index, but that did not work.

Thanks


change icon of datepicker CSS

Posted: Wed Jun 11, 2014 3:47 pm
by Evgene Karachevtsev

Hello Addy,

This code works correctly gor me:

code[dsid=mobiledatepicker_113] .ui-icon-grid:after{
background: url('../image/calendar.png') !important;
background-size: 20px 20px !important;
background-repeat: no-repeat !important;

}/code
Image


change icon of datepicker CSS

Posted: Wed Jun 11, 2014 3:57 pm
by Bad Addy

if I use that code, this is what I get:

pre
[dsid=prop_availDate] .ui-icon-grid:after{
background: url('../image/calendar-icon.jpg') !important;
background-size: 20px 20px !important;
background-repeat: no-repeat !important;
}
/pre

Image

The icon does not change at all :(


change icon of datepicker CSS

Posted: Wed Jun 11, 2014 4:01 pm
by Bad Addy

Sorry, the image title was wrong, with the correct I still get the grid:

Image


change icon of datepicker CSS

Posted: Wed Jun 11, 2014 4:48 pm
by Evgene Karachevtsev

Addy,

Could you please send us public link to your application
http://docs.appery.io/documentation/s...


change icon of datepicker CSS

Posted: Wed Jun 11, 2014 4:57 pm
by Bad Addy

I sent in a support ticket with it as it cannot be public :)


change icon of datepicker CSS

Posted: Wed Jun 11, 2014 6:15 pm
by Evgene Karachevtsev

Addy,

It's all because of the theme ios7. Please add one more property:
content:""!important;


change icon of datepicker CSS

Posted: Wed Jun 11, 2014 6:17 pm
by Bad Addy

awesome, thank you :)