From c9eb632dd23f0aa40ae8d908fae381711220116d Mon Sep 17 00:00:00 2001 From: Antoine M Date: Thu, 26 Jun 2025 17:38:31 +0200 Subject: [PATCH] =?UTF-8?q?FIX=20Refining=20the=20aspect=20of=20the=20h1?= =?UTF-8?q?=20h=C3=A9=20etc=20on=20editor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/css/base/typography.css | 56 +++++++++++++++---------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/resources/css/base/typography.css b/resources/css/base/typography.css index 3ba6ea7..d008190 100644 --- a/resources/css/base/typography.css +++ b/resources/css/base/typography.css @@ -1,26 +1,26 @@ @import url('https://fonts.googleapis.com/css2?family=Fjalla+One&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap'); - -body { +body .editor-visual-editor, +body:not(.wp-admin) { font-family: 'Nunito Sans', sans-serif; - @apply text-primary text-xl; -} + /* @apply text-primary text-xl; */ + @apply text-carhop-gray text-xl; + h1, + h2, + h3, + h4, + h5, + h6 { + font-family: 'Fjalla One', sans-serif; + @apply text-primary; + } -h1, -h2, -h3, -h4, -h5, -h6 { - font-family: 'Fjalla One', sans-serif; - @apply text-primary; -} + h1 { + @apply text-6xl; + } -h1 { - @apply text-6xl; -} - -h2 { - @apply text-5xl; + h2 { + @apply text-5xl; + } } p { @@ -28,20 +28,20 @@ p { line-height: 1.8; } -body.wp-admin h1:not(.editor-visual-editor h1), +/* body.wp-admin h1:not(.editor-visual-editor h1), body.wp-admin h2:not(.editor-visual-editor h2), body.wp-admin h3:not(.editor-visual-editor h3), body.wp-admin h4:not(.editor-visual-editor h4), body.wp-admin h5:not(.editor-visual-editor h5), body.wp-admin h6:not(.editor-visual-editor h6) { - font-family: unset !important; - font-style: unset !important; - font-size: unset !important; - line-height: unset !important; - letter-spacing: unset !important; - text-transform: unset !important; - text-align: unset !important; -} + font-family: initial !important; + font-style: initial !important; + font-size: initial !important; + line-height: initial !important; + letter-spacing: initial !important; + text-transform: initial !important; + text-align: initial !important; +} */ .nunito { font-family: 'Nunito Sans', sans-serif;