year-table.scss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. @use '../mixins/mixins' as *;
  2. @use '../common/var' as *;
  3. @include b(year-table) {
  4. font-size: 12px;
  5. margin: -1px;
  6. border-collapse: collapse;
  7. .#{$namespace}-icon {
  8. color: getCssVar('datepicker', 'icon-color');
  9. }
  10. td {
  11. text-align: center;
  12. padding: 20px 3px;
  13. cursor: pointer;
  14. &.today {
  15. .cell {
  16. color: getCssVar('color', 'primary');
  17. font-weight: bold;
  18. }
  19. }
  20. &.disabled .cell {
  21. background-color: getCssVar('fill-color', 'light');
  22. cursor: not-allowed;
  23. color: getCssVar('text-color', 'placeholder');
  24. &:hover {
  25. color: getCssVar('text-color', 'placeholder');
  26. }
  27. }
  28. .cell {
  29. width: 48px;
  30. height: 36px;
  31. display: block;
  32. line-height: 36px;
  33. color: getCssVar('datepicker-text-color');
  34. border-radius: 18px;
  35. margin: 0 auto;
  36. &:hover {
  37. color: getCssVar('datepicker-hover-text-color');
  38. }
  39. }
  40. &.current:not(.disabled) .cell {
  41. color: getCssVar('datepicker-active-color');
  42. }
  43. &:focus-visible {
  44. outline: none;
  45. .cell {
  46. outline: 2px solid getCssVar('datepicker-active-color');
  47. }
  48. }
  49. }
  50. }