From e2682cc1f87b240145de1df5ac78651f6b31fdd9 Mon Sep 17 00:00:00 2001 From: Hippo Date: Tue, 28 Dec 2021 17:58:37 +0530 Subject: [PATCH] Add tier selection tiles --- src/index.htm | 47 ++++++++++++++++++++++++++++++++++++++++++++++- src/style.css | 28 ++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+), 1 deletion(-) diff --git a/src/index.htm b/src/index.htm index ddc6cc1..fb929ed 100644 --- a/src/index.htm +++ b/src/index.htm @@ -114,7 +114,52 @@
-

[TK donation deets]

+

Donation options

+ +
    + + + + + + +
diff --git a/src/style.css b/src/style.css index b5c61c9..286cd3f 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,31 @@ @tailwind base; @tailwind components; @tailwind utilities; + +.donate-option > input { + @apply hidden; +} + +.donate-option > li { + @apply row-auto text-center inline-block p-10 bg-white rounded-md text-black border-2 border-white hover:border-green-500 hover:cursor-pointer h-full; +} + +.donate-option > input:checked + li { + @apply border-green-500 bg-green-400; +} + +.input-custom { + @apply bg-inherit border-inherit inline-block text-center overflow-visible p-3; +} + +.donate-option > input:checked + li:hover .input-custom { + @apply bg-white; +} + +.donate-option > input:not(:checked) + li .input-custom { + @apply hidden; +} + +.donate-option > input:checked + li .input-custom + span { + @apply hidden; +}