From b384ebdecaa53e4db6d10b02f87fed9aaf50f06f Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 8 Nov 2023 14:01:59 +0100 Subject: [PATCH] adding alignment handling feature --- resources/css/blocks/card.css | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/resources/css/blocks/card.css b/resources/css/blocks/card.css index c60cfc4..b7740bb 100644 --- a/resources/css/blocks/card.css +++ b/resources/css/blocks/card.css @@ -1,10 +1,23 @@ .homegrade-blocks-card { - @apply bg-white w-full p-8 rounded-3xl - flex - flex-col - items-center - justify-center; + @apply bg-white w-full p-8 rounded-3xl; *:first-child { @apply mt-0; } + &--align-center { + @apply text-center + flex + flex-col + items-center + justify-center; + } + &--align-left { + @apply text-left; + } + &--align-right { + @apply text-right + flex + flex-col + items-end + justify-center; + } }