From 97160081cd56dc5cb94f9411ce01eb711915b1a4 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Thu, 21 Dec 2023 15:45:46 +0100 Subject: [PATCH] handling text alignments --- resources/css/editor-content/gutenberg.css | 32 +++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/resources/css/editor-content/gutenberg.css b/resources/css/editor-content/gutenberg.css index dd5dd3a..74eca70 100644 --- a/resources/css/editor-content/gutenberg.css +++ b/resources/css/editor-content/gutenberg.css @@ -8,6 +8,15 @@ article > *:not(.entry-content, .chapter-header-block), } .wp-block-table { + .has-text-align-left { + @apply text-left; + } + .has-text-align-center { + @apply text-center; + } + .has-text-align-right { + @apply text-right; + } thead { @apply bg-gray rounded-xl border-b-0; th { @@ -21,27 +30,18 @@ article > *:not(.entry-content, .chapter-header-block), } } tr { - @apply mt-8; - td:first-child { - @apply border-l-0; - } - td:last-child { - @apply border-r-0; - } - } - tr:first-child { + @apply mt-8 border-t border-neutral-200; td { + @apply py-3 border-0; + } + &:first-child { @apply border-t-0; } - } - tr:last-child { - td { + &:last-child { @apply border-b-0; } } - td { - @apply border border-neutral-200 py-3; - } + .table-cell-icon { @apply mx-auto p-2 w-fit h-auto rounded-full flex items-center justify-center relative grow-0; aspect-ratio: 1; @@ -144,7 +144,7 @@ article > *:not(.entry-content, .chapter-header-block), margin-top: 9px; } - a { + a:not(.wp-block-button__link, .cta) { @apply text-primary underline font-bold; /* text-decoration: underline; */ }