From 1905ffa495b5ae5b9dd02c8a18f94b457765df21 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 7 Nov 2023 10:16:24 +0100 Subject: [PATCH] refactoring to handle independant staff-member block --- resources/css/blocks/staff-list.css | 19 ------------------ resources/css/blocks/staff-member.css | 28 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 19 deletions(-) create mode 100644 resources/css/blocks/staff-member.css diff --git a/resources/css/blocks/staff-list.css b/resources/css/blocks/staff-list.css index 0f98dcf..78b1e8b 100644 --- a/resources/css/blocks/staff-list.css +++ b/resources/css/blocks/staff-list.css @@ -11,22 +11,3 @@ } } -.homegrade-blocks-staff-member { - @apply flex items-center gap-6 !pl-0; - &__member-icon { - @apply bg-white shadowed rounded-2xl w-20 h-20; - @apply shrink-0; - img { - @apply max-w-full max-h-full h-auto; - } - } - &__member-informations { - @apply shrink flex flex-col content-center; - } - &__name { - @apply font-bold text-secondary text-lg; - } - &__position { - @apply !mb-0 font-medium pt-1; - } -} diff --git a/resources/css/blocks/staff-member.css b/resources/css/blocks/staff-member.css new file mode 100644 index 0000000..6c8f0b9 --- /dev/null +++ b/resources/css/blocks/staff-member.css @@ -0,0 +1,28 @@ +.homegrade-blocks-staff-member { + @apply flex items-center gap-6 !pl-0; + &__member-icon { + @apply bg-white shadowed rounded-2xl w-20 h-20; + @apply shrink-0; + img { + @apply max-w-full max-h-full h-auto; + } + } + &__member-informations { + @apply shrink flex flex-col content-center; + } + &__name { + @apply font-bold text-secondary text-lg; + } + &__position { + @apply !mb-0 font-medium pt-1; + } +} + +.homegrade-blocks-highlight--classic { + .homegrade-blocks-staff-member { + @apply my-5; + &__name { + @apply text-white; + } + } +}