Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
jQuery UI Datepicker Bootstrap 3 Style
.ui-datepicker {
background-color: #fff;
border: 1px solid #66AFE9;
border-radius: 4px;
box-shadow: 0 0 8px rgba(102,175,233,.6);
display: none;
margin-top: 4px;
padding: 10px;
width: 240px;
}
.ui-datepicker a,
.ui-datepicker a:hover {
text-decoration: none;
}
.ui-datepicker a:hover,
.ui-datepicker td:hover a {
color: #2A6496;
-webkit-transition: color 0.1s ease-in-out;
-moz-transition: color 0.1s ease-in-out;
-o-transition: color 0.1s ease-in-out;
transition: color 0.1s ease-in-out;
}
.ui-datepicker .ui-datepicker-header {
margin-bottom: 4px;
text-align: center;
}
.ui-datepicker .ui-datepicker-title {
font-weight: 700;
}
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
cursor: default;
font-family: 'Glyphicons Halflings';
-webkit-font-smoothing: antialiased;
font-style: normal;
font-weight: normal;
height: 20px;
line-height: 1;
margin-top: 2px;
width: 30px;
}
.ui-datepicker .ui-datepicker-prev {
float: left;
text-align: left;
}
.ui-datepicker .ui-datepicker-next {
float: right;
text-align: right;
}
.ui-datepicker .ui-datepicker-prev:before {
content: "\e079";
}
.ui-datepicker .ui-datepicker-next:before {
content: "\e080";
}
.ui-datepicker .ui-icon {
display: none;
}
.ui-datepicker .ui-datepicker-calendar {
table-layout: fixed;
width: 100%;
}
.ui-datepicker .ui-datepicker-calendar th,
.ui-datepicker .ui-datepicker-calendar td {
text-align: center;
padding: 4px 0;
}
.ui-datepicker .ui-datepicker-calendar td {
border-radius: 4px;
-webkit-transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out;
-moz-transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out;
-o-transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out;
transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out;
}
.ui-datepicker .ui-datepicker-calendar td:hover {
background-color: #eee;
cursor: pointer;
}
.ui-datepicker .ui-datepicker-calendar td a {
text-decoration: none;
}
.ui-datepicker .ui-datepicker-current-day {
background-color: #4289cc;
}
.ui-datepicker .ui-datepicker-current-day a {
color: #fff
}
.ui-datepicker .ui-datepicker-calendar .ui-datepicker-unselectable:hover {
background-color: #fff;
cursor: default;
}
@joeabill

This comment has been minimized.

Show comment Hide comment
@joeabill

joeabill Oct 13, 2014

Thanks for posting!

Thanks for posting!

@osysltd

This comment has been minimized.

Show comment Hide comment
@osysltd

osysltd Oct 17, 2014

nice work, thank you!

osysltd commented Oct 17, 2014

nice work, thank you!

@grandmanitou

This comment has been minimized.

Show comment Hide comment
@grandmanitou

grandmanitou Oct 27, 2014

Works nicely thank you.

Works nicely thank you.

@garak

This comment has been minimized.

Show comment Hide comment
@garak

garak Nov 11, 2014

Can you point me to a working demo?
I tried and the result is ugly http://jsfiddle.net/tzw63xtm/
(or maybe I'm doing something wrong?)

garak commented Nov 11, 2014

Can you point me to a working demo?
I tried and the result is ugly http://jsfiddle.net/tzw63xtm/
(or maybe I'm doing something wrong?)

@michaelminter

This comment has been minimized.

Show comment Hide comment
@michaelminter

michaelminter Jan 15, 2015

Perfect. Thank you!

Perfect. Thank you!

@j114143

This comment has been minimized.

Show comment Hide comment
@j114143

j114143 May 5, 2015

Thanks you!
Beautiful work

j114143 commented May 5, 2015

Thanks you!
Beautiful work

@arjundas

This comment has been minimized.

Show comment Hide comment
@arjundas

arjundas May 7, 2015

nice, thank you!

arjundas commented May 7, 2015

nice, thank you!

@ghost

This comment has been minimized.

Show comment Hide comment
@ghost

ghost May 25, 2015

Thanks for sharing!

ghost commented May 25, 2015

Thanks for sharing!

@madebyallie

This comment has been minimized.

Show comment Hide comment
@madebyallie

madebyallie Jun 22, 2015

Thank you for sharing. Works like a charm.

Thank you for sharing. Works like a charm.

@shammelburg

This comment has been minimized.

Show comment Hide comment
@shammelburg

shammelburg Jul 6, 2015

Cheers.

Cheers.

@jakehills

This comment has been minimized.

Show comment Hide comment
@jakehills

jakehills Jul 7, 2015

Wonderful, thank you.

Wonderful, thank you.

@trickycdm

This comment has been minimized.

Show comment Hide comment
@trickycdm

trickycdm Jul 7, 2015

Saved me loads of time, thank you.

Saved me loads of time, thank you.

@ghost

This comment has been minimized.

Show comment Hide comment
@ghost

ghost Sep 8, 2015

thank you.

ghost commented Sep 8, 2015

thank you.

@saifmasadeh

This comment has been minimized.

Show comment Hide comment
@saifmasadeh

saifmasadeh Sep 12, 2015

Thanks :)
Do you have an idea why the arrows are not showing up ?

Thanks :)
Do you have an idea why the arrows are not showing up ?

@razinbunsu

This comment has been minimized.

Show comment Hide comment
@razinbunsu

razinbunsu Dec 22, 2015

Thank you!

Thank you!

@gabrieljenik

This comment has been minimized.

Show comment Hide comment
@gabrieljenik

gabrieljenik Dec 29, 2015

Please, You may find usefull a version I did: https://gist.github.com/gabrieljenik/326032547078410083ce

Please, You may find usefull a version I did: https://gist.github.com/gabrieljenik/326032547078410083ce

@atcraigwatson

This comment has been minimized.

Show comment Hide comment
@atcraigwatson

atcraigwatson Apr 23, 2016

This is just a great piece of work!

This is just a great piece of work!

@abeaudoin2013

This comment has been minimized.

Show comment Hide comment
@abeaudoin2013

abeaudoin2013 May 16, 2016

👍

👍

@Loschcode

This comment has been minimized.

Show comment Hide comment
@Loschcode

Loschcode Jun 11, 2016

Thanks, it does the job.

Thanks, it does the job.

@najiboss

This comment has been minimized.

Show comment Hide comment
@najiboss

najiboss Jul 26, 2016

thanks for the good job your are awsome thanks

thanks for the good job your are awsome thanks

@nickmeagher

This comment has been minimized.

Show comment Hide comment
@nickmeagher

nickmeagher Aug 24, 2016

This is awesome, thank you for this. I made a really subtle change in my styles that I think could help.

Here's the link: https://gist.github.com/nickmeagher/089692e445ef9873700081f3e44269e1
Line: 32

Changed the cursor to pointer to accentuate the click action.

This is awesome, thank you for this. I made a really subtle change in my styles that I think could help.

Here's the link: https://gist.github.com/nickmeagher/089692e445ef9873700081f3e44269e1
Line: 32

Changed the cursor to pointer to accentuate the click action.

@besi

This comment has been minimized.

Show comment Hide comment
@besi

besi Oct 1, 2016

👍

I added this to show disabled dates / buttons:

.ui-state-disabled{
    color: #b9b9b9
}

besi commented Oct 1, 2016

👍

I added this to show disabled dates / buttons:

.ui-state-disabled{
    color: #b9b9b9
}
@balony88

This comment has been minimized.

Show comment Hide comment
@balony88

balony88 Jun 12, 2017

Thank you!!

Thank you!!

@chucphamcong

This comment has been minimized.

Show comment Hide comment
@chucphamcong

chucphamcong Jun 30, 2017

thank you !! !

thank you !! !

@AlekseyDevksh

This comment has been minimized.

Show comment Hide comment
@AlekseyDevksh

AlekseyDevksh Jul 25, 2017

Thank you!

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment