datepicker-foundation.scss 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. $dp-background-color: $body-background !default;
  2. $dp-border-color: $light-gray !default;
  3. $dp-border-radius: $global-radius !default;
  4. $dp-border-radius-small: $global-radius !default;
  5. $dp-line-height-base: $global-lineheight !default;
  6. $dp-font-size-normal: 1rem !default;
  7. $dp-font-size-small: 0.75rem !default;
  8. $dp-font-weight-semibold: semibold !default;
  9. $dp-font-weight-bold: bold !default;
  10. $dp-dropdown-offset: 4px !default;
  11. $dp-dropdown-shadow: 0 0 0 1px $medium-gray !default;
  12. $dp-dropdown-z: 10 !default;
  13. $dp-title-background-color: $light-gray !default;
  14. $dp-cell-size-base: 2.25rem !default;
  15. $dp-cell-focus-background-color: darken($white, 5%) !default;
  16. $dp-cell-prevnext-color: $medium-gray !default;
  17. $dp-cell-disabled-color: $light-gray !default;
  18. $dp-cell-selected-background-color: get-color('primary') !default;
  19. $dp-cell-selected-color: $white !default;
  20. $dp-cell-selected-font-weight: $dp-font-weight-semibold !default;
  21. $dp-cell-today-background-color: scale-color(get-color('primary'), $lightness: 85%) !default;
  22. $dp-cell-today-color: $dark-gray !default;
  23. $dp-cell-highlighted-background-color: scale-color($medium-gray, $lightness: 85%) !default;
  24. $dp-range-start-end-background-color: get-color('secondary') !default;
  25. $dp-range-start-end-color: $dp-cell-selected-color !default;
  26. $dp-range-background-color: $light-gray !default;
  27. $dp-range-today-background-color: darken($dp-cell-today-background-color, 8%) !default;
  28. $dp-week-color: $dark-gray !default;
  29. $dp-footer-background-color: $light-gray !default;
  30. $dp-input-in-edit-border-color: darken($medium-gray, 15%) !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. .button {
  35. margin: 0;
  36. background-color: $dp-background-color;
  37. color: $body-font-color;
  38. &:hover,
  39. &:focus {
  40. background-color: scale-color($dp-background-color, $lightness: -15%);
  41. &[disabled] {
  42. opacity: 0.25; // $button-opacity-disabled
  43. background-color: $dp-background-color;
  44. color: $body-font-color;
  45. }
  46. }
  47. .datepicker-header & {
  48. @include dp-header-button-common;
  49. }
  50. .datepicker-footer & {
  51. @include dp-footer-button-common;
  52. }
  53. }
  54. }
  55. @import 'datepicker';