diff --git a/jcal/src/Calendar.scss b/jcal/src/Calendar.scss index 7fc4f2d..29a73f0 100644 --- a/jcal/src/Calendar.scss +++ b/jcal/src/Calendar.scss @@ -168,21 +168,22 @@ } @media (pointer: coarse), (hover: none) { - .DayDetail-gregorian abbr { + .DayDetail abbr { position: relative; display: inline-flex; justify-content: center; - text-decoration: underline dashed; &:focus::after { content: attr(title); position: absolute; top: 90%; + left: 0; color: #000; background-color: #fff; border: 1px solid; width: fit-content; padding: 3px; + z-index: 20; } } } diff --git a/jcal/src/Calendar.tsx b/jcal/src/Calendar.tsx index dccf3fd..70b5f41 100644 --- a/jcal/src/Calendar.tsx +++ b/jcal/src/Calendar.tsx @@ -21,17 +21,17 @@ function WeekdayName({name}: { name: string }): JSX.Element { function DayDetail({jdn}: { jdn: number }): JSX.Element { const lc = jdnLongCount(jdn); return
-
JD {jdn}
+
JD {jdn}
- G.{' '} + G.{' '} {formatJG(jdnGregorian(jdn))}
{lc &&
- LC{' '} + LC{' '} {lc.join('.\u200b')}
} {jdn >= frStartJD && jdn <= frEndJD &&
- FR{' '} + FR{' '} {frDateFormat(jdnFrench(jdn))}
}
;