Forked from gabrieljenik/jquery-bootstrap-datepicker.css
Last active
September 5, 2018 12:55
-
-
Save gillespieza/54d5f580719621e0ab97b53fd3c3503b to your computer and use it in GitHub Desktop.
jQuery UI Datepicker Bootstrap 4 SASS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ui-datepicker { | |
background-color: $white; | |
border: 1px solid $primary; | |
border-radius: $border-radius; | |
box-shadow: 0 0 8px rgba(102,175,233,.6); | |
display: none; | |
margin-top: $spacer * 0.5; | |
padding: $spacer * 0.5; | |
width: 240px; | |
font-family: $font-family-base; | |
font-size: $font-size-base !important; | |
} | |
.ui-datepicker a, | |
.ui-datepicker a:hover { | |
text-decoration: none; | |
} | |
.ui-datepicker a:hover, | |
.ui-datepicker td:hover a { | |
color: $gray-500; | |
-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: $spacer * 0.5; | |
text-align: center; | |
} | |
.ui-datepicker .ui-datepicker-title { | |
font-weight: $font-weight-bold; | |
} | |
.ui-datepicker .ui-datepicker-prev, | |
.ui-datepicker .ui-datepicker-next { | |
cursor: default; | |
font-family: 'FontAwesome'; | |
-webkit-font-smoothing: antialiased; | |
font-style: normal; | |
font-weight: $font-weight-base; | |
height: 20px; | |
line-height: 1; | |
margin-top: 2px; | |
width: 20px; | |
color: $gray-900; | |
} | |
.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: "\f104"; // angle-left | |
} | |
.ui-datepicker .ui-datepicker-next:before { | |
content: "\f105"; // angle-right | |
//content: "\f054"; // chevron-right | |
} | |
.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: $spacer*0.25 0; | |
color: $black !important; | |
} | |
.ui-datepicker .ui-datepicker-calendar td { | |
border-radius: $border-radius; | |
-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:not(.ui-datepicker-current-day) { | |
background-color: $gray-300; | |
cursor: pointer; | |
} | |
.ui-datepicker .ui-datepicker-calendar td a { | |
text-decoration: none; | |
color: $black; | |
} | |
.ui-datepicker .ui-datepicker-current-day { | |
background-color: $primary; | |
} | |
.ui-datepicker td.ui-datepicker-current-day a { | |
color: $white; | |
} | |
.ui-datepicker .ui-datepicker-calendar .ui-datepicker-unselectable:hover { | |
background-color: $white; | |
cursor: default; | |
} | |
.ui-datepicker-month { | |
border: 0px; | |
color: $black; | |
} | |
.ui-datepicker-year { | |
border: 0px; | |
color: $black; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment