course-center-page.component.scss 9.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. :host { display: block; min-height: 100%; background: var(--surface-muted); }
  2. .center-page { min-height: 100%; padding-bottom: 18px; }
  3. .library-entry { display: grid; width: calc(100% - 28px); min-height: 78px; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; margin: 12px 14px 0; padding: 13px 16px; color: var(--ink); text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); gap: 12px; }
  4. .library-entry > i { display: grid; width: 46px; height: 46px; color: var(--brand-strong); background: var(--brand-soft); border-radius: 8px; place-items: center; }
  5. .library-entry > span { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
  6. .library-entry strong { font-size: 16px; }
  7. .library-entry small { overflow: hidden; color: var(--ink-soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  8. .library-entry:active { transform: translateY(1px); }
  9. .course-band, .schedule-band { margin: 12px 14px 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
  10. .course-band > header, .schedule-band > header { display: grid; min-height: 56px; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 0 16px; color: white; background: var(--brand-strong); border-bottom: 1px solid color-mix(in srgb, var(--brand-strong) 82%, black); gap: 9px; }
  11. header h2 { margin: 0; color: var(--ink); font-size: 17px; letter-spacing: 0; }
  12. header span { color: var(--ink-soft); font-size: 12px; }
  13. .course-band > header h2, .schedule-band > header h2 { color: white; }
  14. .course-band > header span, .schedule-band > header span { color: rgb(255 255 255 / 78%); }
  15. .course-list { margin: 0; padding: 0; list-style: none; }
  16. .course-list li { border-bottom: 1px solid var(--line); }
  17. .course-list li:last-child { border-bottom: 0; }
  18. .course-list button { display: grid; width: 100%; min-height: 68px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 10px 16px; color: var(--ink); text-align: left; background: transparent; border: 0; gap: 10px; }
  19. .course-list button > span { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
  20. .course-list strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  21. .course-list small { color: var(--ink-soft); font-size: 11px; }
  22. .course-list button > lucide-icon { color: var(--ink-soft); }
  23. .course-list button:disabled { cursor: not-allowed; opacity: .58; }
  24. .schedule-tools { padding: 12px 14px 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--brand-soft) 42%, white), white 72%); border-bottom: 1px solid var(--line); }
  25. .schedule-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 190px); align-items: center; gap: 10px; }
  26. .range-tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding: 3px; background: rgb(255 255 255 / 82%); border: 1px solid var(--line); border-radius: 10px; gap: 3px; }
  27. .range-tabs button { min-height: 36px; padding: 6px 4px; color: var(--ink-soft); background: transparent; border: 0; border-radius: 8px; font-size: 12px; }
  28. .range-tabs button.active { color: white; background: var(--brand-strong); box-shadow: 0 4px 12px rgb(20 53 45 / 16%); font-weight: 700; }
  29. .student-filter { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
  30. .student-filter span { color: var(--ink-soft); font-size: 11px; }
  31. .student-filter select { width: 100%; height: 40px; padding: 0 29px 0 11px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; outline: 0; }
  32. .student-filter select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
  33. .schedule-filters { display: grid; grid-template-columns: repeat(3, 1fr); margin: 12px 14px 8px; padding: 3px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: 8px; gap: 3px; }
  34. .schedule-tools .schedule-filters { margin: 10px 0 0; background: rgb(255 255 255 / 78%); }
  35. .schedule-filters button { min-height: 36px; padding: 6px 4px; color: var(--ink-soft); background: transparent; border: 0; border-radius: 6px; font-size: 12px; }
  36. .schedule-filters button span { margin-left: 2px; color: inherit; font-size: 10px; }
  37. .schedule-filters button.active { color: var(--brand-strong); background: white; box-shadow: 0 1px 4px rgb(20 53 45 / 10%); font-weight: 650; }
  38. .calendar-panel { margin-top: 12px; padding: 11px; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 18px rgb(20 53 45 / 6%); }
  39. .calendar-heading { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; margin-bottom: 8px; text-align: center; }
  40. .calendar-heading strong { color: var(--ink); font-size: 15px; }
  41. .calendar-heading button { display: grid; width: 34px; height: 34px; padding: 0; color: var(--brand-strong); background: var(--brand-soft); border: 0; border-radius: 50%; font-size: 24px; line-height: 1; place-items: center; }
  42. .calendar-heading button:active, .calendar-day:active, .range-tabs button:active, .schedule-filters button:active { transform: translateY(1px); }
  43. .calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
  44. .calendar-weekdays { margin-bottom: 6px; color: var(--ink-soft); font-size: 11px; text-align: center; }
  45. .calendar-day { position: relative; display: grid; min-width: 0; min-height: 42px; padding: 5px 2px 4px; color: var(--ink); background: var(--surface-muted); border: 1px solid transparent; border-radius: 11px; font-size: 13px; place-items: center; }
  46. .calendar-day span { line-height: 1; }
  47. .calendar-day em { display: grid; min-width: 17px; height: 17px; margin-top: 3px; padding: 0 4px; color: white; background: var(--brand-strong); border-radius: 999px; font-size: 10px; font-style: normal; line-height: 17px; }
  48. .calendar-day.outside { color: color-mix(in srgb, var(--ink-soft) 55%, white); background: rgb(247 249 246 / 72%); }
  49. .calendar-day.today { border-color: var(--brand); }
  50. .calendar-day.selected { color: white; background: var(--brand-strong); box-shadow: 0 5px 14px rgb(20 53 45 / 18%); }
  51. .calendar-day.selected em { color: var(--brand-strong); background: white; }
  52. .calendar-day.has-course:not(.selected) { background: color-mix(in srgb, var(--brand-soft) 55%, white); }
  53. .schedule-summary { margin: 10px 2px 0; color: var(--ink-soft); font-size: 12px; text-align: center; }
  54. .schedule-band h3 { margin: 0; padding: 10px 16px 7px; color: var(--ink-soft); background: var(--surface-muted); font-size: 12px; letter-spacing: 0; }
  55. .schedule-list article { display: grid; min-height: 76px; grid-template-columns: 64px minmax(0, 1fr) auto auto auto; align-items: center; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); cursor: pointer; gap: 9px; }
  56. .schedule-list article:last-child { border-bottom: 0; }
  57. .schedule-list time { font-size: 13px; font-weight: 650; }
  58. .schedule-copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
  59. .schedule-copy strong, .schedule-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  60. .schedule-copy strong { font-size: 14px; }
  61. .schedule-copy span { color: var(--ink-soft); font-size: 12px; }
  62. .status { padding: 4px 7px; color: #606266; background: #f0f1f2; border-radius: 4px; font-size: 11px; white-space: nowrap; }
  63. .status-10 { color: #1f5f91; background: #e6f3fc; }
  64. .status-11, .status-20 { color: #82580e; background: #fff4dc; }
  65. .status-30 { color: #236b59; background: #e6f4ef; }
  66. .report-button { display: grid; width: 34px; height: 34px; padding: 0; color: var(--brand-strong); background: transparent; border: 0; place-items: center; }
  67. .chevron { color: var(--ink-soft); }
  68. .band-empty { margin: 0; padding: 28px 16px; color: var(--ink-soft); text-align: center; }
  69. .center-state { display: flex; min-height: 240px; align-items: center; justify-content: center; color: var(--ink-soft); flex-direction: column; gap: 10px; }
  70. .center-state.error { min-height: 140px; margin: 12px 14px 0; padding: 20px; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
  71. .spin { animation: spin .8s linear infinite; }
  72. @keyframes spin { to { transform: rotate(360deg); } }
  73. @media (max-width: 420px) {
  74. .schedule-toolbar { grid-template-columns: 1fr; }
  75. .schedule-list article { grid-template-columns: 54px minmax(0, 1fr) auto auto auto; gap: 7px; }
  76. .schedule-list article:not(:has(.report-button)) { grid-template-columns: 54px minmax(0, 1fr) auto auto; }
  77. .status { width: fit-content; }
  78. }
  79. @media (max-width: 360px) {
  80. .library-entry { width: calc(100% - 20px); margin-inline: 10px; padding-inline: 13px; }
  81. .library-entry small { white-space: normal; }
  82. .course-band, .schedule-band, .center-state.error { margin-inline: 10px; }
  83. .schedule-tools { padding-inline: 10px; }
  84. .calendar-panel { padding-inline: 8px; }
  85. .calendar-weekdays, .calendar-grid { gap: 4px; }
  86. .calendar-day { min-height: 39px; border-radius: 9px; }
  87. }
  88. @media (min-width: 760px) { .center-page { max-width: 760px; margin: 0 auto; border-inline: 1px solid var(--line); } }