calendar.css 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. :root {
  2. --bordercolor: rgba(195, 203, 248, 1);
  3. --backgroundcolor: rgba(195, 203, 248, 0.8);
  4. --currentcolor: rgba(0, 255, 0, 0.6); // rgba(255, 255, 0, 0.6); //#FFFF00; //#20FF20;
  5. --holidaycolor: rgba(255, 0, 0, 0.6);
  6. --hovercolor: rgba(195, 203, 248, 1);
  7. }
  8. .calendar {
  9. width: 680px;
  10. height: 300px;
  11. margin:0px auto;
  12. padding:0px;
  13. font-family: "Segoe UI",Arial,sans-serif;
  14. }
  15. table.heading {
  16. table-layout: fixed;
  17. width: 100%;
  18. height: 60px;
  19. text-align: center;
  20. background-color: white;
  21. border-spacing: 0px;
  22. border-collapse: collapse;
  23. border: 0;
  24. }
  25. table.heading td {
  26. border: 0;
  27. background-color: var(--backgroundcolor);
  28. }
  29. table.heading a {
  30. text-decoration: none;
  31. display: inline-block;
  32. color: white;
  33. font-size: 14px;
  34. padding: 8px 16px;
  35. }
  36. table.calendar {
  37. width: 100%;
  38. height: 100%;
  39. text-align: center;
  40. background-color: transparent;
  41. border-spacing: 0px;
  42. border-collapse: collapse;
  43. }
  44. table.calendar td {
  45. border: 1px solid var(--bordercolor);
  46. background-color: var(--backgroundcolor);
  47. }
  48. table.calendar td.current {
  49. background-color: var(--currentcolor);
  50. }
  51. table.calendar td.holiday {
  52. background-color: var(--holidaycolor);
  53. }
  54. table.calendar button {
  55. width: 100%;
  56. height: 100%;
  57. text-align: center;
  58. cursor: pointer;
  59. border: none;
  60. background-color: transparent;
  61. }
  62. table.calendar button:hover {
  63. background-color: var(--hovercolor);
  64. }
  65. table.heading a:hover {
  66. background-color: var(--hovercolor);
  67. }