diff --git a/src/Calendar.scss b/src/Calendar.scss index a9ffe56..08c7772 100644 --- a/src/Calendar.scss +++ b/src/Calendar.scss @@ -150,6 +150,26 @@ background: $gray-300; } +@media (pointer: coarse), (hover: none) { + .Day-rural { + position: relative; + display: inline-flex; + justify-content: center; + text-decoration: underline dashed; + } + + .Day-rural:focus::after { + content: attr(title); + position: absolute; + top: 90%; + color: #000; + background-color: #fff; + border: 1px solid; + width: fit-content; + padding: 3px; + } +} + .Calendar-month-name.input-group { justify-content: center; font-size: 0.75em; diff --git a/src/Calendar.tsx b/src/Calendar.tsx index 91df123..4389cf7 100644 --- a/src/Calendar.tsx +++ b/src/Calendar.tsx @@ -41,7 +41,7 @@ function NormalDay({year, month, day, todayJDN}: DateProps & { todayJDN: number return