month-table.scss 1.9 KB

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