aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/styles
diff options
context:
space:
mode:
authorYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-11-02 09:22:42 +0900
committerYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-11-02 09:22:42 +0900
commitc17312b14977cb8fb032e5f394a64aa0327abef2 (patch)
treea490ee29c68cbed867d068b92c230db77ec64b82 /src/styles
parentbbf533017650012d7ff4a898e890f402b4b52b1e (diff)
hp-archive: カレンダーに「今日」ボタンを追加
- 月表示の横に「今日」ボタンを置き、押すと今日の日付を選んでその月に戻る - ヘッダーの高さが変わらないよう行の高さを固定 - X投稿用のキャプチャ画像を追加
Diffstat (limited to 'src/styles')
-rw-r--r--src/styles/custom.css21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/styles/custom.css b/src/styles/custom.css
index cdaab01..8a27700 100644
--- a/src/styles/custom.css
+++ b/src/styles/custom.css
@@ -2067,6 +2067,27 @@ td.sanpi-open .sanpi-title {
.schedule-cal-title {
font-weight: 600;
}
+.schedule-cal-mid {
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ /* ボタンを足してもヘッダーの高さが変わらないよう、行の高さを固定する */
+ height: 2rem;
+}
+/* 高さを増やさないよう、月表示と同じ行に小さく置く */
+.schedule-cal-today {
+ padding: 0 0.5rem;
+ border: 1px solid var(--sl-color-gray-5);
+ border-radius: 999px;
+ background: var(--sl-color-bg);
+ color: var(--sl-color-text);
+ font-size: 0.72rem;
+ line-height: 1.4;
+ cursor: pointer;
+}
+.schedule-cal-today:hover {
+ background: var(--sl-color-gray-6);
+}
.schedule-cal-nav {
width: 2rem;
height: 2rem;