Skip to content

Instantly share code, notes, and snippets.

@srujan21
Created November 20, 2016 10:21
Show Gist options
  • Save srujan21/bf35f7178b8b0aecb666a24c6e8d0e71 to your computer and use it in GitHub Desktop.
Save srujan21/bf35f7178b8b0aecb666a24c6e8d0e71 to your computer and use it in GitHub Desktop.
this is bootstrap datetimepicker with imp for SF
/*!
* Datetimepicker for Bootstrap 3
* version : 4.17.43
* https://github.com/Eonasdan/bootstrap-datetimepicker/
*/
.bootstrap-datetimepicker-widget {
list-style: none !important;
}
.bootstrap-datetimepicker-widget.dropdown-menu {
margin: 2px 0 !important;
padding: 4px !important;
width: 19em !important;
}
@media (min-width: 768px) {
.bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs {
width: 38em !important;
}
}
@media (min-width: 992px) {
.bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs {
width: 38em !important;
}
}
@media (min-width: 1200px) {
.bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs {
width: 38em !important;
}
}
.bootstrap-datetimepicker-widget.dropdown-menu:before,
.bootstrap-datetimepicker-widget.dropdown-menu:after {
content: '' !important;
display: inline-block !important;
position: absolute !important;
}
.bootstrap-datetimepicker-widget.dropdown-menu.bottom:before {
border-left: 7px solid transparent !important;
border-right: 7px solid transparent !important;
border-bottom: 7px solid #ccc !important;
border-bottom-color: rgba(0, 0, 0, 0.2) !important;
top: -7px !important;
left: 7px !important;
}
.bootstrap-datetimepicker-widget.dropdown-menu.bottom:after {
border-left: 6px solid transparent !important;
border-right: 6px solid transparent !important;
border-bottom: 6px solid white !important;
top: -6px !important;
left: 8px !important;
}
.bootstrap-datetimepicker-widget.dropdown-menu.top:before {
border-left: 7px solid transparent !important;
border-right: 7px solid transparent !important;
border-top: 7px solid #ccc !important;
border-top-color: rgba(0, 0, 0, 0.2) !important;
bottom: -7px !important;
left: 6px !important;
}
.bootstrap-datetimepicker-widget.dropdown-menu.top:after {
border-left: 6px solid transparent !important;
border-right: 6px solid transparent !important;
border-top: 6px solid white !important;
bottom: -6px !important;
left: 7px !important;
}
.bootstrap-datetimepicker-widget.dropdown-menu.pull-right:before {
left: auto !important;
right: 6px !important;
}
.bootstrap-datetimepicker-widget.dropdown-menu.pull-right:after {
left: auto !important;
right: 7px !important;
}
.bootstrap-datetimepicker-widget .list-unstyled {
margin: 0 !important;
}
.bootstrap-datetimepicker-widget a[data-action] {
padding: 6px 0 !important;
}
.bootstrap-datetimepicker-widget a[data-action]:active {
box-shadow: none !important;
}
.bootstrap-datetimepicker-widget .timepicker-hour,
.bootstrap-datetimepicker-widget .timepicker-minute,
.bootstrap-datetimepicker-widget .timepicker-second {
width: 54px !important;
font-weight: bold !important;
font-size: 1.2em !important;
margin: 0 !important;
}
.bootstrap-datetimepicker-widget button[data-action] {
padding: 6px !important;
}
.bootstrap-datetimepicker-widget .btn[data-action="incrementHours"]::after {
position: absolute !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
padding: 0 !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
border: 0 !important;
content: "Increment Hours" !important;
}
.bootstrap-datetimepicker-widget .btn[data-action="incrementMinutes"]::after {
position: absolute !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
padding: 0 !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
border: 0 !important;
content: "Increment Minutes" !important;
}
.bootstrap-datetimepicker-widget .btn[data-action="decrementHours"]::after {
position: absolute !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
padding: 0 !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
border: 0 !important;
content: "Decrement Hours" !important;
}
.bootstrap-datetimepicker-widget .btn[data-action="decrementMinutes"]::after {
position: absolute !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
padding: 0 !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
border: 0 !important;
content: "Decrement Minutes" !important;
}
.bootstrap-datetimepicker-widget .btn[data-action="showHours"]::after {
position: absolute !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
padding: 0 !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
border: 0 !important;
content: "Show Hours" !important;
}
.bootstrap-datetimepicker-widget .btn[data-action="showMinutes"]::after {
position: absolute !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
padding: 0 !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
border: 0 !important;
content: "Show Minutes" !important;
}
.bootstrap-datetimepicker-widget .btn[data-action="togglePeriod"]::after {
position: absolute !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
padding: 0 !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
border: 0 !important;
content: "Toggle AM/PM" !important;
}
.bootstrap-datetimepicker-widget .btn[data-action="clear"]::after {
position: absolute !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
padding: 0 !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
border: 0 !important;
content: "Clear the picker" !important;
}
.bootstrap-datetimepicker-widget .btn[data-action="today"]::after {
position: absolute !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
padding: 0 !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
border: 0 !important;
content: "Set the date to today" !important;
}
.bootstrap-datetimepicker-widget .picker-switch {
text-align: center !important;
}
.bootstrap-datetimepicker-widget .picker-switch::after {
position: absolute !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
padding: 0 !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
border: 0 !important;
content: "Toggle Date and Time Screens" !important;
}
.bootstrap-datetimepicker-widget .picker-switch td {
padding: 0 !important;
margin: 0 !important;
height: auto !important;
width: auto !important;
line-height: inherit !important;
}
.bootstrap-datetimepicker-widget .picker-switch td span {
line-height: 2.5 !important;
height: 2.5em !important;
width: 100% !important;
}
.bootstrap-datetimepicker-widget table {
width: 100% !important;
margin: 0 !important;
}
.bootstrap-datetimepicker-widget table td,
.bootstrap-datetimepicker-widget table th {
text-align: center !important;
border-radius: 4px !important;
}
.bootstrap-datetimepicker-widget table th {
height: 20px !important;
line-height: 20px !important;
width: 20px !important;
}
.bootstrap-datetimepicker-widget table th.picker-switch {
width: 145px !important;
}
.bootstrap-datetimepicker-widget table th.disabled,
.bootstrap-datetimepicker-widget table th.disabled:hover {
background: none !important;
color: #777777 !important;
cursor: not-allowed !important;
}
.bootstrap-datetimepicker-widget table th.prev::after {
position: absolute !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
padding: 0 !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
border: 0 !important;
content: "Previous Month" !important;
}
.bootstrap-datetimepicker-widget table th.next::after {
position: absolute !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
padding: 0 !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
border: 0 !important;
content: "Next Month" !important;
}
.bootstrap-datetimepicker-widget table thead tr:first-child th {
cursor: pointer !important;
}
.bootstrap-datetimepicker-widget table thead tr:first-child th:hover {
background: #eeeeee !important;
}
.bootstrap-datetimepicker-widget table td {
height: 54px !important;
line-height: 54px !important;
width: 54px !important;
}
.bootstrap-datetimepicker-widget table td.cw {
font-size: .8em !important;
height: 20px !important;
line-height: 20px !important;
color: #777777 !important;
}
.bootstrap-datetimepicker-widget table td.day {
height: 20px !important;
line-height: 20px !important;
width: 20px !important;
}
.bootstrap-datetimepicker-widget table td.day:hover,
.bootstrap-datetimepicker-widget table td.hour:hover,
.bootstrap-datetimepicker-widget table td.minute:hover,
.bootstrap-datetimepicker-widget table td.second:hover {
background: #eeeeee !important;
cursor: pointer !important;
}
.bootstrap-datetimepicker-widget table td.old,
.bootstrap-datetimepicker-widget table td.new {
color: #777777 !important;
}
.bootstrap-datetimepicker-widget table td.today {
position: relative !important;
}
.bootstrap-datetimepicker-widget table td.today:before {
content: '' !important;
display: inline-block !important;
border: solid transparent !important;
border-width: 0 0 7px 7px !important;
border-bottom-color: #337ab7 !important;
border-top-color: rgba(0, 0, 0, 0.2) !important;
position: absolute !important;
bottom: 4px !important;
right: 4px !important;
}
.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
background-color: #337ab7 !important;
color: #fff !important;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25) !important;
}
.bootstrap-datetimepicker-widget table td.active.today:before {
border-bottom-color: #fff !important;
}
.bootstrap-datetimepicker-widget table td.disabled,
.bootstrap-datetimepicker-widget table td.disabled:hover {
background: none !important;
color: #777777 !important;
cursor: not-allowed !important;
}
.bootstrap-datetimepicker-widget table td span {
display: inline-block !important;
width: 54px !important;
height: 54px !important;
line-height: 54px !important;
margin: 2px 1.5px !important;
cursor: pointer !important;
border-radius: 4px !important;
}
.bootstrap-datetimepicker-widget table td span:hover {
background: #eeeeee !important;
}
.bootstrap-datetimepicker-widget table td span.active {
background-color: #337ab7 !important;
color: #fff !important;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25) !important;
}
.bootstrap-datetimepicker-widget table td span.old {
color: #777777 !important;
}
.bootstrap-datetimepicker-widget table td span.disabled,
.bootstrap-datetimepicker-widget table td span.disabled:hover {
background: none !important;
color: #777777 !important;
cursor: not-allowed !important;
}
.bootstrap-datetimepicker-widget.usetwentyfour td.hour {
height: 27px !important;
line-height: 27px !important;
}
.bootstrap-datetimepicker-widget.wider {
width: 21em !important;
}
.bootstrap-datetimepicker-widget .datepicker-decades .decade {
line-height: 1.8em !important !important;
}
.input-group.date .input-group-addon {
cursor: pointer !important;
}
.sr-only {
position: absolute !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
padding: 0 !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
border: 0 !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment