@@ -48,7 +48,7 @@ const yearSuffix = isChinese ? "年" : " ";
4848>
4949 <div class =" flex justify-between items-center mb-2 mt-2" >
5050 <div
51- class =" font-bold transition text-lg text-neutral-900 dark:text-neutral-100 relative ml-4 flex items-center
51+ class =" font-bold transition text-lg text-90 relative ml-4 flex items-center
5252 before:w-1 before:h-4 before:rounded-md before:bg-(--primary)
5353 before:absolute before:left-[-16px] before:top-[13.5px]"
5454 >
@@ -58,7 +58,7 @@ const yearSuffix = isChinese ? "年" : " ";
5858 >
5959 <span
6060 id =" calendar-title"
61- class =" text-lg font-bold text-neutral-900 dark:text-neutral-100 select-none"
61+ class =" text-lg font-bold text-90 select-none"
6262 ></span >
6363 </div >
6464 </div >
@@ -76,14 +76,14 @@ const yearSuffix = isChinese ? "年" : " ";
7676 </button >
7777 <button
7878 id =" prev-month-btn"
79- class =" p-1.5 rounded-md hover:bg-(--btn-plain-bg-hover) text-neutral-600 dark:text-neutral-400 hover:text-(--primary) transition-colors text-xl font-extrabold"
79+ class =" p-1.5 rounded-md hover:bg-(--btn-plain-bg-hover) text-75 hover:text-(--primary) transition-colors text-xl font-extrabold"
8080 aria-label =" Previous month"
8181 >
8282 <
8383 </button >
8484 <button
8585 id =" next-month-btn"
86- class =" p-1.5 rounded-md hover:bg-(--btn-plain-bg-hover) text-neutral-600 dark:text-neutral-400 hover:text-(--primary) transition-colors text-xl font-extrabold"
86+ class =" p-1.5 rounded-md hover:bg-(--btn-plain-bg-hover) text-75 hover:text-(--primary) transition-colors text-xl font-extrabold"
8787 aria-label =" Next month"
8888 >
8989 >
@@ -95,7 +95,7 @@ const yearSuffix = isChinese ? "年" : " ";
9595 <div class =" grid grid-cols-7 gap-1 mb-2" >
9696 {
9797 weekDays .map ((day ) => (
98- <div class = " text-center text-xs text-neutral-500 dark:text-neutral-400 font-medium py-1" >
98+ <div class = " text-center text-xs text-50 font-medium py-1" >
9999 { day }
100100 </div >
101101 ))
@@ -104,7 +104,7 @@ const yearSuffix = isChinese ? "年" : " ";
104104 <div id =" calendar-grid" class =" grid grid-cols-7 gap-1" ></div >
105105 <div id =" calendar-posts" class =" mt-4" >
106106 <div
107- class =" h-px w-full bg-neutral-200 dark:bg-neutral-700 mb-2 hidden"
107+ class =" h-px w-full bg-(--line-divider) mb-2 hidden"
108108 id =" calendar-posts-divider"
109109 >
110110 </div >
@@ -319,9 +319,9 @@ const yearSuffix = isChinese ? "年" : " ";
319319 if (shouldShowReset) dom.backTodayBtn.classList.remove("invisible");
320320 else dom.backTodayBtn.classList.add("invisible");
321321
322- const isDayView = currentView === "day";
323- dom.prevBtn.style.visibility = isDayView ? "visible" : "hidden";
324- dom.nextBtn.style.visibility = isDayView ? "visible" : "hidden";
322+ // const isDayView = currentView === "day";
323+ // dom.prevBtn.style.visibility = isDayView ? "visible" : "hidden";
324+ // dom.nextBtn.style.visibility = isDayView ? "visible" : "hidden";
325325 }
326326
327327 function renderCalendar() {
@@ -351,7 +351,7 @@ const yearSuffix = isChinese ? "年" : " ";
351351 const isSelected = selectedDateKey === dateKey;
352352
353353 let bgClass =
354- "hover:bg-(--btn-plain-bg-hover) text-neutral-700 dark:text-neutral-300 border border-transparent";
354+ "hover:bg-(--btn-plain-bg-hover) text-75 border border-transparent";
355355
356356 if (isSelected) {
357357 bgClass =
@@ -361,7 +361,7 @@ const yearSuffix = isChinese ? "年" : " ";
361361 "text-(--primary) font-bold bg-(--primary)/10 border border-(--primary)";
362362 } else if (hasPost) {
363363 bgClass =
364- "font-bold text-neutral-900 dark:text-neutral-100 hover:bg-(--btn-plain-bg-hover) border border-transparent";
364+ "font-bold text-90 hover:bg-(--btn-plain-bg-hover) border border-transparent";
365365 }
366366
367367 html += `
0 commit comments