datepicker-bs4.scss 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. $dp-background-color: $white !default;
  2. $dp-border-color: $border-color !default;
  3. $dp-border-radius: $border-radius !default;
  4. $dp-border-radius-small: $border-radius-sm !default;
  5. $dp-line-height-base: 1.5 !default;
  6. $dp-font-size-normal: $font-size-base !default;
  7. $dp-font-size-small: $font-size-sm !default;
  8. $dp-font-weight-semibold: 600 !default;
  9. $dp-font-weight-bold: $font-weight-bold !default;
  10. $dp-dropdown-offset: 4px !default;
  11. $dp-dropdown-shadow: $dropdown-box-shadow !default;
  12. $dp-dropdown-z: $zindex-dropdown !default;
  13. $dp-title-background-color: $light !default;
  14. $dp-cell-size-base: 2.25rem !default;
  15. $dp-cell-focus-background-color: darken($dropdown-link-hover-bg, 2.5) !default;
  16. $dp-cell-prevnext-color: color('gray') !default;
  17. $dp-cell-disabled-color: $dropdown-link-disabled-color !default;
  18. $dp-cell-selected-background-color: $dropdown-link-active-bg !default;
  19. $dp-cell-selected-color: $dropdown-link-active-color !default;
  20. $dp-cell-selected-font-weight: 600 !default;
  21. $dp-cell-today-background-color: $teal !default;
  22. $dp-cell-today-color: $white !default;
  23. $dp-cell-highlighted-background-color: $gray-100 !default;
  24. $dp-range-start-end-background-color: $secondary !default;
  25. $dp-range-start-end-color: $dp-cell-selected-color !default;
  26. $dp-range-background-color: $gray-200 !default;
  27. $dp-range-today-background-color: $dp-cell-today-background-color !default;
  28. $dp-week-color: $gray-300 !default;
  29. $dp-footer-background-color: $light !default;
  30. $dp-input-in-edit-border-color: darken($input-focus-border-color, 5%) !default;
  31. $dp-input-in-edit-focus-box-shadow-size: 0 0 0.25em 0.25em !default;
  32. @import 'mixins';
  33. @mixin dp-button {
  34. .btn {
  35. // use custom version of .btn-light
  36. $background: $light;
  37. $border: $light;
  38. $hover-background: darken($background, 7.5%);
  39. $hover-border: darken($border, 10%);
  40. $active-background: darken($background, 10%);
  41. $active-border: darken($border, 12.5%);
  42. border-color: $border;
  43. background-color: $dp-background-color;
  44. &:hover {
  45. border-color: $hover-border;
  46. background-color: $hover-background;
  47. color: color-yiq($hover-background);
  48. }
  49. &:focus {
  50. border-color: $hover-border;
  51. box-shadow: 0 0 0 $btn-focus-width rgba(mix(color-yiq($background), $border, 15%), 0.5);
  52. background-color: $hover-background;
  53. color: color-yiq($hover-background);
  54. }
  55. &:disabled {
  56. border-color: $border;
  57. background-color: $background;
  58. color: color-yiq($background);
  59. }
  60. &:not(:disabled):active {
  61. border-color: $active-border;
  62. background-color: $active-background;
  63. color: color-yiq($active-background);
  64. &:focus {
  65. box-shadow: 0 0 0 $btn-focus-width rgba(mix(color-yiq($background), $border, 15%), 0.5);
  66. }
  67. }
  68. .datepicker-header & {
  69. @include dp-header-button-common;
  70. }
  71. .datepicker-footer & {
  72. @include dp-footer-button-common;
  73. }
  74. }
  75. }
  76. @import 'datepicker';