You are here

BuroRaDer.DateRangePicker.css in Availability Calendars 7.5

This file contains styling for the BuroRaDer.DateRangePicker extension plugin that turns the jQuery UI datepicker into a date range picker.

It is based to work on top of the standard jQuery UI styling, so yoo probably want to adapt this to your own situation.

File

BuroRaDer.DateRangePicker.css
View source
  1. /**
  2. * @file
  3. * This file contains styling for the BuroRaDer.DateRangePicker extension plugin
  4. * that turns the jQuery UI datepicker into a date range picker.
  5. *
  6. * It is based to work on top of the standard jQuery UI styling, so yoo probably
  7. * want to adapt this to your own situation.
  8. */
  9. /*
  10. * Do not fade the color of the selected date range on non selectable elements.
  11. */
  12. .date-range-start.ui-state-disabled,
  13. .date-range-in.ui-state-disabled {
  14. opacity: initial;
  15. }
  16. /*
  17. * But do fade the text. Unfortunately we had to copy the RGB part value of the
  18. * color as well, making it "fail" when another color was defined as text color.
  19. */
  20. .date-range-start.ui-state-disabled > .ui-state-active,
  21. .date-range-start.ui-state-disabled > .ui-state-default,
  22. .date-range-in.ui-state-disabled > .ui-state-active,
  23. .date-range-in.ui-state-disabled > .ui-state-default {
  24. color: rgba(85, 85, 85, 0.35);
  25. }
  26. .date-range-start > .ui-state-active,
  27. .date-range-start > .ui-state-default,
  28. .date-range-in > .ui-state-active,
  29. .date-range-in > .ui-state-default,
  30. .date-range-is-to .date-range-end > .ui-state-active,
  31. .date-range-is-to .date-range-end > .ui-state-default {
  32. background: lightgreen none;
  33. }
  34. /*
  35. * Split day settings (for a LTR txt direction).
  36. */
  37. .date-range-split-day .date-range-start,
  38. .date-range-split-day .date-range-end {
  39. background-color: #e6e6e6;
  40. }
  41. .date-range-split-day .date-range-start > .ui-state-active,
  42. .date-range-split-day .date-range-start > .ui-state-default {
  43. background: linear-gradient(to bottom right, transparent, transparent 50%, lightgreen 50%, lightgreen); /* LTR */
  44. }
  45. .date-range-split-day .date-range-end > .ui-state-active,
  46. .date-range-split-day .date-range-end > .ui-state-default {
  47. background: linear-gradient(to top left, transparent, transparent 50%, lightgreen 50%, lightgreen); /* LTR */
  48. }
  49. /*
  50. * Split day settings for a RTL text direction.
  51. *
  52. * This plugin assumes that this is explicitly specified on a container element,
  53. * e.g. the html or body element. It will fail when a lower element reverses the
  54. * direction.
  55. */
  56. [dir=rtl] .date-range-split-day .date-range-start > .ui-state-active,
  57. [dir=rtl] .date-range-split-day .date-range-start > .ui-state-default {
  58. background: linear-gradient(to bottom left, transparent, transparent 50%, lightgreen 50%, lightgreen); /* RTL */
  59. }
  60. [dir=rtl] .date-range-split-day .date-range-end > .ui-state-active,
  61. [dir=rtl] .date-range-split-day .date-range-end > .ui-state-default {
  62. background: linear-gradient(to top right, transparent, transparent 50%, lightgreen 50%, lightgreen); /* RTL */
  63. }
  64. /*
  65. * Buttons
  66. */
  67. #ui-datepicker-div > button {
  68. float: right;
  69. margin-left: 0.5em;
  70. }