diff --git a/src/components/Questions/QuestionCard.tsx b/src/components/Questions/QuestionCard.tsx index 253178c93..d42ab3120 100644 --- a/src/components/Questions/QuestionCard.tsx +++ b/src/components/Questions/QuestionCard.tsx @@ -51,9 +51,9 @@ export function QuestionCard(props: QuestionCardProps) { <>
-
+
{question.topics?.map((topic, counter) => { const totalTopics = question.topics?.length || 0; @@ -68,8 +68,8 @@ export function QuestionCard(props: QuestionCardProps) { })}
-
-

+

+

{question.question}

@@ -79,7 +79,7 @@ export function QuestionCard(props: QuestionCardProps) { onClick={() => { setIsAnswerVisible(true); }} - className="cursor-pointer text-gray-500 underline underline-offset-4 transition-colors hover:text-black" + className="cursor-pointer text-sm text-gray-500 underline underline-offset-4 transition-colors hover:text-black sm:text-base" > Click to Reveal the Answer @@ -88,13 +88,13 @@ export function QuestionCard(props: QuestionCardProps) {
{!question.isLongAnswer && (
{ setIsAnswerVisible(false); }} - className="cursor-pointer text-base text-gray-500 underline underline-offset-4 transition-colors hover:text-black" + className="cursor-pointer text-sm text-gray-500 underline underline-offset-4 transition-colors hover:text-black sm:text-base" > Hide the Answer diff --git a/src/components/Questions/QuestionFinished.tsx b/src/components/Questions/QuestionFinished.tsx index 10ab35e81..445e0d5f4 100644 --- a/src/components/Questions/QuestionFinished.tsx +++ b/src/components/Questions/QuestionFinished.tsx @@ -23,7 +23,7 @@ function ProgressStatButton(props: ProgressStatButtonProps) {
diff --git a/src/pages/questions/[questionGroupId].astro b/src/pages/questions/[questionGroupId].astro index ba5ba9612..db537cf85 100644 --- a/src/pages/questions/[questionGroupId].astro +++ b/src/pages/questions/[questionGroupId].astro @@ -39,16 +39,33 @@ const { frontmatter } = questionGroup; >
-
-

+
+ +

{frontmatter.title}

-

+

- +

diff --git a/tailwind.config.cjs b/tailwind.config.cjs index 97d265274..9ed86bcaa 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -1,6 +1,9 @@ /** @type {import('tailwindcss').Config} */ module.exports = { content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue,svg}'], + future: { + hoverOnlyWhenSupported: true, + }, theme: { extend: { typography: {