taitems / Aristo-jQuery-UI-Theme

The "Aristo" theme for Cappuccino ported to a jQuery UI Theme

Home Page:http://taitems.github.com/Aristo-jQuery-UI-Theme/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Datepicker hover issue

mdi opened this issue · comments

On the datepicker, when hovering over date cells, there is what looks to be a 1px white border at the top of the day cell that looks bad. I can't seem to find where this is in the CSS.

I'm afraid that I introduced this bug when I fixed issues #42 and #43 when the current date not being displayed at all.
I looked for over an hour and I can't find that 1px white line to get rid of it.
I finally reached the point that I needed the current date highlighted, even with the 1px white line, more then not having it highlighted at all.
If someone else that's more skilled at CSS can find it, like @mdi, I'd certainly like to see it go away as well.

Well, that's the last time I blindly merge a pull request without doing proper testing ;)

I'll look into this next chance I get.

Sorry @taitems, at one point it wasn't there, but now it is. I'll try to look at it again. At least I did fix the other issue with the defaultDate not being respected.

I found the problem, it seems that the table cells used for the each day have a gradient applied that starts with white as the very first 1px. For some reason, when you hover over a date, this shows through the highlight color. If you zoom in you can see that when you hover over a date that the highlighted date is 1px shorter on the top.

I'm trying to figure out what needs to change, but I think it's on line 79

I fixed it. It's the box-shadow property.
By default it creates a 1px line at the top before it starts (lines 87-89)
This 1px shows through when the user hovers over the date to select, although you don't see it unless it's the current date which has the border around it.
If you add the following properties to turn off this box shadow for highlighting a date, on line 657, the 1px goes away:

-webkit-box-shadow: 0 0px 0 rgba(255,255,255,0.6) inset;
-moz-box-shadow: 0 0px 0 rgba(255,255,255,0.6) inset;
box-shadow: 0 0px 0 rgba(255,255,255,0.6) inset;

I'll submit another pull request in a minute and, after you've vetted it, should display correctly for everyone. :)

Also, If I zoom in real close I see when I hover over non-selected date the highlight is 1px smaller then the current date that has the border. This is because the hover doesn't have the 1px border on all sides of the hover activated. I add this to line 657 as well and now it's the same size.

border-color: #5F83B9;

Don't worry, I wasn't having a go!

Thanks for the commit. I'll have to update gh-pages to mirror dev soon.