1b4658f2c00d9275b9f3dddfd0189bcb6f13d17ef7446d2c4c71c36a0406357b428ddebfa5a9f1835d2d3d196dbbf1ec544670b056c358e0da8d3f40258d31 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @import "../common/var";
  2. @include b(month-table) {
  3. font-size: 12px;
  4. margin: -1px;
  5. border-collapse: collapse;
  6. td {
  7. text-align: center;
  8. padding: 8px 0px;
  9. cursor: pointer;
  10. & div {
  11. height: 48px;
  12. padding: 6px 0;
  13. box-sizing: border-box;
  14. }
  15. &.today {
  16. .cell {
  17. color: $--color-primary;
  18. font-weight: bold;
  19. }
  20. &.start-date .cell,
  21. &.end-date .cell {
  22. color: $--color-white;
  23. }
  24. }
  25. &.disabled .cell {
  26. background-color: $--background-color-base;
  27. cursor: not-allowed;
  28. color: $--color-text-placeholder;
  29. &:hover {
  30. color: $--color-text-placeholder;
  31. }
  32. }
  33. .cell {
  34. width: 60px;
  35. height: 36px;
  36. display: block;
  37. line-height: 36px;
  38. color: $--datepicker-font-color;
  39. margin: 0 auto;
  40. border-radius: 18px;
  41. &:hover {
  42. color: $--datepicker-hover-font-color;
  43. }
  44. }
  45. &.in-range div {
  46. background-color: $--datepicker-inrange-background-color;
  47. &:hover {
  48. background-color: $--datepicker-inrange-hover-background-color;
  49. }
  50. }
  51. &.start-date div,
  52. &.end-date div {
  53. color: $--color-white;
  54. }
  55. &.start-date .cell,
  56. &.end-date .cell {
  57. color: $--color-white;
  58. background-color: $--datepicker-active-color;
  59. }
  60. &.start-date div {
  61. border-top-left-radius: 24px;
  62. border-bottom-left-radius: 24px;
  63. }
  64. &.end-date div {
  65. border-top-right-radius: 24px;
  66. border-bottom-right-radius: 24px;
  67. }
  68. &.current:not(.disabled) .cell {
  69. color: $--datepicker-active-color;
  70. }
  71. }
  72. }