From bb406952a28ce596fb06141e9c8feddbcafe51e1 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Thu, 28 Sep 2023 17:57:31 +0200 Subject: [PATCH] refining taxonomy scheme --- css/app.css | 935 ++++++++++++------ css/editor-style.css | 40 +- includes/utilities.php | 3 +- .../editor-content/color-taxonomy-scheme.css | 274 ++++- single-conseils.php | 9 +- tailwind.config.js | 29 +- template-archive-conseils.php | 2 +- .../post-conseils/chapter-header.css | 7 + .../post-conseils/chapter-header.php | 6 +- theme.json | 35 +- 10 files changed, 924 insertions(+), 416 deletions(-) diff --git a/css/app.css b/css/app.css index 6400e89..ffac3dc 100644 --- a/css/app.css +++ b/css/app.css @@ -765,17 +765,17 @@ video { .bg-patrimoine-renovation-light { --tw-bg-opacity: 1; - background-color: rgb(255 229 253 / var(--tw-bg-opacity)); + background-color: rgb(248 242 255 / var(--tw-bg-opacity)); } -.bg-location { +.bg-location-renovation-circulaire { --tw-bg-opacity: 1; background-color: rgb(223 0 43 / var(--tw-bg-opacity)); } -.bg-location-light { +.bg-location-renovation-circulaire-light { --tw-bg-opacity: 1; - background-color: rgb(254 226 231 / var(--tw-bg-opacity)); + background-color: rgb(254 245 246 / var(--tw-bg-opacity)); } .px-4 { @@ -885,17 +885,17 @@ video { .text-patrimoine-renovation-light { --tw-text-opacity: 1; - color: rgb(255 229 253 / var(--tw-text-opacity)); + color: rgb(248 242 255 / var(--tw-text-opacity)); } -.text-location { +.text-location-renovation-circulaire { --tw-text-opacity: 1; color: rgb(223 0 43 / var(--tw-text-opacity)); } -.text-location-light { +.text-location-renovation-circulaire-light { --tw-text-opacity: 1; - color: rgb(254 226 231 / var(--tw-text-opacity)); + color: rgb(254 245 246 / var(--tw-text-opacity)); } .antialiased { @@ -2132,6 +2132,9 @@ summary { .post-conseils-chapter-header { margin-bottom: 20px; + /* .post-conseil-page--acoustique & { + @apply !bg-pink-500; + } */ } .post-conseils-chapter-header__page-thematic-cover { @@ -2161,6 +2164,21 @@ summary { margin-bottom: 2rem; } +.post-conseils-chapter-header__infos time { + margin-top: 1.5rem; + display: block; + width: -webkit-fit-content; + width: -moz-fit-content; + width: fit-content; + border-radius: 1.5rem; + --tw-bg-opacity: 1; + background-color: rgb(255 255 255 / var(--tw-bg-opacity)); + padding-top: 0.5rem; + padding-bottom: 0.5rem; + padding-left: 1.5rem; + padding-right: 1.5rem; +} + .post-chapter-header { margin-left: auto; margin-right: auto; @@ -3130,344 +3148,563 @@ header#main-header { /* ###### EDITOR ##### */ -.entry-content--acoustique-coproprietes h2, - .entry-content--acoustique-coproprietes h3, - .entry-content--acoustique-coproprietes h4, - .entry-content--acoustique-coproprietes h5, - .entry-content--acoustique-coproprietes h6, - .entry-content--acoustique-coproprietes ul li::marker, - body.acoustique-coproprietes h2, - body.acoustique-coproprietes h3, - body.acoustique-coproprietes h4, - body.acoustique-coproprietes h5, - body.acoustique-coproprietes h6, - body.acoustique-coproprietes ul li::marker, - .post-conseil-page--acoustique-coproprietes h2, - .post-conseil-page--acoustique-coproprietes h3, - .post-conseil-page--acoustique-coproprietes h4, - .post-conseil-page--acoustique-coproprietes h5, - .post-conseil-page--acoustique-coproprietes h6, - .post-conseil-page--acoustique-coproprietes ul li::marker, - .post-question-page--acoustique-coproprietes h2, - .post-question-page--acoustique-coproprietes h3, - .post-question-page--acoustique-coproprietes h4, - .post-question-page--acoustique-coproprietes h5, - .post-question-page--acoustique-coproprietes h6, - .post-question-page--acoustique-coproprietes ul li::marker { +/* ------------------------------------------------- + BLUE SCHEME — PETITES COPROPRIÉTÉS & ACOUSTIQUE +---------------------------------------------------*/ + +body.petites-coproprietes h2, + body.petites-coproprietes h3, + body.petites-coproprietes h4, + body.petites-coproprietes h5, + body.petites-coproprietes h6, + body.petites-coproprietes ul li::marker, + .entry-content--petites-coproprietes h2, + .entry-content--petites-coproprietes h3, + .entry-content--petites-coproprietes h4, + .entry-content--petites-coproprietes h5, + .entry-content--petites-coproprietes h6, + .entry-content--petites-coproprietes ul li::marker, + .post-conseil-page--petites-coproprietes h2, + .post-conseil-page--petites-coproprietes h3, + .post-conseil-page--petites-coproprietes h4, + .post-conseil-page--petites-coproprietes h5, + .post-conseil-page--petites-coproprietes h6, + .post-conseil-page--petites-coproprietes ul li::marker, + .post-question-page--petites-coproprietes h2, + .post-question-page--petites-coproprietes h3, + .post-question-page--petites-coproprietes h4, + .post-question-page--petites-coproprietes h5, + .post-question-page--petites-coproprietes h6, + .post-question-page--petites-coproprietes ul li::marker, + body.acoustique h2, + body.acoustique h3, + body.acoustique h4, + body.acoustique h5, + body.acoustique h6, + body.acoustique ul li::marker, + .entry-content--acoustique h2, + .entry-content--acoustique h3, + .entry-content--acoustique h4, + .entry-content--acoustique h5, + .entry-content--acoustique h6, + .entry-content--acoustique ul li::marker, + .post-conseil-page--acoustique h2, + .post-conseil-page--acoustique h3, + .post-conseil-page--acoustique h4, + .post-conseil-page--acoustique h5, + .post-conseil-page--acoustique h6, + .post-conseil-page--acoustique ul li::marker, + .post-question-page--acoustique h2, + .post-question-page--acoustique h3, + .post-question-page--acoustique h4, + .post-question-page--acoustique h5, + .post-question-page--acoustique h6, + .post-question-page--acoustique ul li::marker { --tw-text-opacity: 1; color: rgb(36 94 242 / var(--tw-text-opacity)); } -.entry-content--acoustique-coproprietes .homegrade-blocks-highlight, - .entry-content--acoustique-coproprietes .homegrade-blocks-chapter-header-block, - .entry-content--acoustique-coproprietes .post-conseils-chapter-header, - body.acoustique-coproprietes .homegrade-blocks-highlight, - body.acoustique-coproprietes .homegrade-blocks-chapter-header-block, - body.acoustique-coproprietes .post-conseils-chapter-header, - .post-conseil-page--acoustique-coproprietes .homegrade-blocks-highlight, - .post-conseil-page--acoustique-coproprietes .homegrade-blocks-chapter-header-block, - .post-conseil-page--acoustique-coproprietes .post-conseils-chapter-header, - .post-question-page--acoustique-coproprietes .homegrade-blocks-highlight, - .post-question-page--acoustique-coproprietes .homegrade-blocks-chapter-header-block, - .post-question-page--acoustique-coproprietes .post-conseils-chapter-header { - --tw-bg-opacity: 1; - background-color: rgb(223 241 255 / var(--tw-bg-opacity)); -} - -.entry-content--acoustique-coproprietes .chapter_index__position-indicator, - .entry-content--acoustique-coproprietes .homegrade-blocks-focus-point-bullet, - .entry-content--acoustique-coproprietes .homegrade-blocks-focused-schema ol li:before, - .entry-content--acoustique-coproprietes .wp-block-button__link, - .entry-content--acoustique-coproprietes ul li:before, - body.acoustique-coproprietes .chapter_index__position-indicator, - body.acoustique-coproprietes .homegrade-blocks-focus-point-bullet, - body.acoustique-coproprietes .homegrade-blocks-focused-schema ol li:before, - body.acoustique-coproprietes .wp-block-button__link, - body.acoustique-coproprietes ul li:before, - .post-conseil-page--acoustique-coproprietes .chapter_index__position-indicator, - .post-conseil-page--acoustique-coproprietes .homegrade-blocks-focus-point-bullet, - .post-conseil-page--acoustique-coproprietes .homegrade-blocks-focused-schema ol li:before, - .post-conseil-page--acoustique-coproprietes .wp-block-button__link, - .post-conseil-page--acoustique-coproprietes ul li:before, - .post-question-page--acoustique-coproprietes .chapter_index__position-indicator, - .post-question-page--acoustique-coproprietes .homegrade-blocks-focus-point-bullet, - .post-question-page--acoustique-coproprietes .homegrade-blocks-focused-schema ol li:before, - .post-question-page--acoustique-coproprietes .wp-block-button__link, - .post-question-page--acoustique-coproprietes ul li:before { +body.petites-coproprietes .chapter_index__position-indicator, + body.petites-coproprietes .homegrade-blocks-focus-point-bullet, + body.petites-coproprietes .homegrade-blocks-focused-schema ol li:before, + body.petites-coproprietes .wp-block-button__link, + body.petites-coproprietes ul li:before, + .entry-content--petites-coproprietes .chapter_index__position-indicator, + .entry-content--petites-coproprietes .homegrade-blocks-focus-point-bullet, + .entry-content--petites-coproprietes .homegrade-blocks-focused-schema ol li:before, + .entry-content--petites-coproprietes .wp-block-button__link, + .entry-content--petites-coproprietes ul li:before, + .post-conseil-page--petites-coproprietes .chapter_index__position-indicator, + .post-conseil-page--petites-coproprietes .homegrade-blocks-focus-point-bullet, + .post-conseil-page--petites-coproprietes .homegrade-blocks-focused-schema ol li:before, + .post-conseil-page--petites-coproprietes .wp-block-button__link, + .post-conseil-page--petites-coproprietes ul li:before, + .post-question-page--petites-coproprietes .chapter_index__position-indicator, + .post-question-page--petites-coproprietes .homegrade-blocks-focus-point-bullet, + .post-question-page--petites-coproprietes .homegrade-blocks-focused-schema ol li:before, + .post-question-page--petites-coproprietes .wp-block-button__link, + .post-question-page--petites-coproprietes ul li:before, + body.acoustique .chapter_index__position-indicator, + body.acoustique .homegrade-blocks-focus-point-bullet, + body.acoustique .homegrade-blocks-focused-schema ol li:before, + body.acoustique .wp-block-button__link, + body.acoustique ul li:before, + .entry-content--acoustique .chapter_index__position-indicator, + .entry-content--acoustique .homegrade-blocks-focus-point-bullet, + .entry-content--acoustique .homegrade-blocks-focused-schema ol li:before, + .entry-content--acoustique .wp-block-button__link, + .entry-content--acoustique ul li:before, + .post-conseil-page--acoustique .chapter_index__position-indicator, + .post-conseil-page--acoustique .homegrade-blocks-focus-point-bullet, + .post-conseil-page--acoustique .homegrade-blocks-focused-schema ol li:before, + .post-conseil-page--acoustique .wp-block-button__link, + .post-conseil-page--acoustique ul li:before, + .post-question-page--acoustique .chapter_index__position-indicator, + .post-question-page--acoustique .homegrade-blocks-focus-point-bullet, + .post-question-page--acoustique .homegrade-blocks-focused-schema ol li:before, + .post-question-page--acoustique .wp-block-button__link, + .post-question-page--acoustique ul li:before { --tw-bg-opacity: 1; background-color: rgb(36 94 242 / var(--tw-bg-opacity)); } -.entry-content--acoustique-coproprietes .tooltip-word, body.acoustique-coproprietes .tooltip-word, .post-conseil-page--acoustique-coproprietes .tooltip-word, .post-question-page--acoustique-coproprietes .tooltip-word { +body.petites-coproprietes .homegrade-blocks-highlight, .entry-content--petites-coproprietes .homegrade-blocks-highlight, .post-conseil-page--petites-coproprietes .homegrade-blocks-highlight, .post-question-page--petites-coproprietes .homegrade-blocks-highlight, body.acoustique .homegrade-blocks-highlight, .entry-content--acoustique .homegrade-blocks-highlight, .post-conseil-page--acoustique .homegrade-blocks-highlight, .post-question-page--acoustique .homegrade-blocks-highlight { + --tw-bg-opacity: 1; + background-color: rgb(223 241 255 / var(--tw-bg-opacity)); +} + +body.petites-coproprietes .tooltip-word, .entry-content--petites-coproprietes .tooltip-word, .post-conseil-page--petites-coproprietes .tooltip-word, .post-question-page--petites-coproprietes .tooltip-word, body.acoustique .tooltip-word, .entry-content--acoustique .tooltip-word, .post-conseil-page--acoustique .tooltip-word, .post-question-page--acoustique .tooltip-word { -webkit-text-decoration-color: #245EF2 !important; text-decoration-color: #245EF2 !important; } -.entry-content--acoustique-coproprietes .homegrade-blocks-aside, body.acoustique-coproprietes .homegrade-blocks-aside, .post-conseil-page--acoustique-coproprietes .homegrade-blocks-aside, .post-question-page--acoustique-coproprietes .homegrade-blocks-aside { +body.petites-coproprietes .homegrade-blocks-aside, .entry-content--petites-coproprietes .homegrade-blocks-aside, .post-conseil-page--petites-coproprietes .homegrade-blocks-aside, .post-question-page--petites-coproprietes .homegrade-blocks-aside, body.acoustique .homegrade-blocks-aside, .entry-content--acoustique .homegrade-blocks-aside, .post-conseil-page--acoustique .homegrade-blocks-aside, .post-question-page--acoustique .homegrade-blocks-aside { --tw-border-opacity: 1; border-color: rgb(36 94 242 / var(--tw-border-opacity)); } -.entry-content--energies-urbanisme h2, - .entry-content--energies-urbanisme h3, - .entry-content--energies-urbanisme h4, - .entry-content--energies-urbanisme h5, - .entry-content--energies-urbanisme h6, - .entry-content--energies-urbanisme ol li::marker, - .entry-content--energies-urbanisme ul li::marker, - body.energies-urbanisme h2, - body.energies-urbanisme h3, - body.energies-urbanisme h4, - body.energies-urbanisme h5, - body.energies-urbanisme h6, - body.energies-urbanisme ol li::marker, - body.energies-urbanisme ul li::marker, - .post-conseil-page--energies-urbanisme h2, - .post-conseil-page--energies-urbanisme h3, - .post-conseil-page--energies-urbanisme h4, - .post-conseil-page--energies-urbanisme h5, - .post-conseil-page--energies-urbanisme h6, - .post-conseil-page--energies-urbanisme ol li::marker, - .post-conseil-page--energies-urbanisme ul li::marker, - .post-question-page--energies-urbanisme h2, - .post-question-page--energies-urbanisme h3, - .post-question-page--energies-urbanisme h4, - .post-question-page--energies-urbanisme h5, - .post-question-page--energies-urbanisme h6, - .post-question-page--energies-urbanisme ol li::marker, - .post-question-page--energies-urbanisme ul li::marker { +body.petites-coproprietes .post-conseils-chapter-header__infos p, .entry-content--petites-coproprietes .post-conseils-chapter-header__infos p, .post-conseil-page--petites-coproprietes .post-conseils-chapter-header__infos p, .post-question-page--petites-coproprietes .post-conseils-chapter-header__infos p, body.acoustique .post-conseils-chapter-header__infos p, .entry-content--acoustique .post-conseils-chapter-header__infos p, .post-conseil-page--acoustique .post-conseils-chapter-header__infos p, .post-question-page--acoustique .post-conseils-chapter-header__infos p { + --tw-text-opacity: 1; + color: rgb(36 94 242 / var(--tw-text-opacity)); +} + +body.petites-coproprietes .post-conseils-chapter-header time, .entry-content--petites-coproprietes .post-conseils-chapter-header time, .post-conseil-page--petites-coproprietes .post-conseils-chapter-header time, .post-question-page--petites-coproprietes .post-conseils-chapter-header time, body.acoustique .post-conseils-chapter-header time, .entry-content--acoustique .post-conseils-chapter-header time, .post-conseil-page--acoustique .post-conseils-chapter-header time, .post-question-page--acoustique .post-conseils-chapter-header time { + --tw-text-opacity: 1; + color: rgb(36 94 242 / var(--tw-text-opacity)); +} + +/* PETITES COPROPRIÉTÉS — SPECIFIC */ + +body.petites-coproprietes .post-conseils-chapter-header, .entry-content--petites-coproprietes .post-conseils-chapter-header, .post-conseil-page--petites-coproprietes .post-conseils-chapter-header, .post-question-page--petites-coproprietes .post-conseils-chapter-header { + background: var(--wp--preset--gradient--gradient-blue); +} + +/* ACOUSTIQUE — SPECIFIC */ + +body.acoustique .post-conseils-chapter-header, .entry-content--acoustique .post-conseils-chapter-header, .post-conseil-page--acoustique .post-conseils-chapter-header, .post-question-page--acoustique .post-conseils-chapter-header { + --tw-bg-opacity: 1; + background-color: rgb(223 241 255 / var(--tw-bg-opacity)); +} + +/* ----------------------------------- + GREEN SCHEME — ÉNERGIES & URBANISME +-------------------------------------*/ + +body.urbanisme h2, + body.urbanisme h3, + body.urbanisme h4, + body.urbanisme h5, + body.urbanisme h6, + body.urbanisme ol li::marker, + body.urbanisme ul li::marker, + .entry-content--urbanisme h2, + .entry-content--urbanisme h3, + .entry-content--urbanisme h4, + .entry-content--urbanisme h5, + .entry-content--urbanisme h6, + .entry-content--urbanisme ol li::marker, + .entry-content--urbanisme ul li::marker, + .post-conseil-page--urbanisme h2, + .post-conseil-page--urbanisme h3, + .post-conseil-page--urbanisme h4, + .post-conseil-page--urbanisme h5, + .post-conseil-page--urbanisme h6, + .post-conseil-page--urbanisme ol li::marker, + .post-conseil-page--urbanisme ul li::marker, + .post-question-page--urbanisme h2, + .post-question-page--urbanisme h3, + .post-question-page--urbanisme h4, + .post-question-page--urbanisme h5, + .post-question-page--urbanisme h6, + .post-question-page--urbanisme ol li::marker, + .post-question-page--urbanisme ul li::marker, + body.energies h2, + body.energies h3, + body.energies h4, + body.energies h5, + body.energies h6, + body.energies ol li::marker, + body.energies ul li::marker, + .entry-content--energies h2, + .entry-content--energies h3, + .entry-content--energies h4, + .entry-content--energies h5, + .entry-content--energies h6, + .entry-content--energies ol li::marker, + .entry-content--energies ul li::marker, + .post-conseil-page--energies h2, + .post-conseil-page--energies h3, + .post-conseil-page--energies h4, + .post-conseil-page--energies h5, + .post-conseil-page--energies h6, + .post-conseil-page--energies ol li::marker, + .post-conseil-page--energies ul li::marker, + .post-question-page--energies h2, + .post-question-page--energies h3, + .post-question-page--energies h4, + .post-question-page--energies h5, + .post-question-page--energies h6, + .post-question-page--energies ol li::marker, + .post-question-page--energies ul li::marker { --tw-text-opacity: 1; color: rgb(2 126 80 / var(--tw-text-opacity)); } -.entry-content--energies-urbanisme .homegrade-blocks-highlight, - .entry-content--energies-urbanisme .homegrade-blocks-chapter-header-block, - .entry-content--energies-urbanisme .post-conseils-chapter-header, - body.energies-urbanisme .homegrade-blocks-highlight, - body.energies-urbanisme .homegrade-blocks-chapter-header-block, - body.energies-urbanisme .post-conseils-chapter-header, - .post-conseil-page--energies-urbanisme .homegrade-blocks-highlight, - .post-conseil-page--energies-urbanisme .homegrade-blocks-chapter-header-block, - .post-conseil-page--energies-urbanisme .post-conseils-chapter-header, - .post-question-page--energies-urbanisme .homegrade-blocks-highlight, - .post-question-page--energies-urbanisme .homegrade-blocks-chapter-header-block, - .post-question-page--energies-urbanisme .post-conseils-chapter-header { +body.urbanisme .homegrade-blocks-highlight, + body.urbanisme .post-conseils-chapter-header, + .entry-content--urbanisme .homegrade-blocks-highlight, + .entry-content--urbanisme .post-conseils-chapter-header, + .post-conseil-page--urbanisme .homegrade-blocks-highlight, + .post-conseil-page--urbanisme .post-conseils-chapter-header, + .post-question-page--urbanisme .homegrade-blocks-highlight, + .post-question-page--urbanisme .post-conseils-chapter-header, + body.energies .homegrade-blocks-highlight, + body.energies .post-conseils-chapter-header, + .entry-content--energies .homegrade-blocks-highlight, + .entry-content--energies .post-conseils-chapter-header, + .post-conseil-page--energies .homegrade-blocks-highlight, + .post-conseil-page--energies .post-conseils-chapter-header, + .post-question-page--energies .homegrade-blocks-highlight, + .post-question-page--energies .post-conseils-chapter-header { --tw-bg-opacity: 1; background-color: rgb(227 255 240 / var(--tw-bg-opacity)); } -.entry-content--energies-urbanisme .chapter_index__position-indicator, - .entry-content--energies-urbanisme .homegrade-blocks-focus-point-bullet, - .entry-content--energies-urbanisme .homegrade-blocks-focused-schema ol li:before, - .entry-content--energies-urbanisme ul li:before, - .entry-content--energies-urbanisme .wp-block-button__link, - body.energies-urbanisme .chapter_index__position-indicator, - body.energies-urbanisme .homegrade-blocks-focus-point-bullet, - body.energies-urbanisme .homegrade-blocks-focused-schema ol li:before, - body.energies-urbanisme ul li:before, - body.energies-urbanisme .wp-block-button__link, - .post-conseil-page--energies-urbanisme .chapter_index__position-indicator, - .post-conseil-page--energies-urbanisme .homegrade-blocks-focus-point-bullet, - .post-conseil-page--energies-urbanisme .homegrade-blocks-focused-schema ol li:before, - .post-conseil-page--energies-urbanisme ul li:before, - .post-conseil-page--energies-urbanisme .wp-block-button__link, - .post-question-page--energies-urbanisme .chapter_index__position-indicator, - .post-question-page--energies-urbanisme .homegrade-blocks-focus-point-bullet, - .post-question-page--energies-urbanisme .homegrade-blocks-focused-schema ol li:before, - .post-question-page--energies-urbanisme ul li:before, - .post-question-page--energies-urbanisme .wp-block-button__link { +body.urbanisme .chapter_index__position-indicator, + body.urbanisme .homegrade-blocks-focus-point-bullet, + body.urbanisme .homegrade-blocks-focused-schema ol li:before, + body.urbanisme ul li:before, + body.urbanisme .wp-block-button__link, + .entry-content--urbanisme .chapter_index__position-indicator, + .entry-content--urbanisme .homegrade-blocks-focus-point-bullet, + .entry-content--urbanisme .homegrade-blocks-focused-schema ol li:before, + .entry-content--urbanisme ul li:before, + .entry-content--urbanisme .wp-block-button__link, + .post-conseil-page--urbanisme .chapter_index__position-indicator, + .post-conseil-page--urbanisme .homegrade-blocks-focus-point-bullet, + .post-conseil-page--urbanisme .homegrade-blocks-focused-schema ol li:before, + .post-conseil-page--urbanisme ul li:before, + .post-conseil-page--urbanisme .wp-block-button__link, + .post-question-page--urbanisme .chapter_index__position-indicator, + .post-question-page--urbanisme .homegrade-blocks-focus-point-bullet, + .post-question-page--urbanisme .homegrade-blocks-focused-schema ol li:before, + .post-question-page--urbanisme ul li:before, + .post-question-page--urbanisme .wp-block-button__link, + body.energies .chapter_index__position-indicator, + body.energies .homegrade-blocks-focus-point-bullet, + body.energies .homegrade-blocks-focused-schema ol li:before, + body.energies ul li:before, + body.energies .wp-block-button__link, + .entry-content--energies .chapter_index__position-indicator, + .entry-content--energies .homegrade-blocks-focus-point-bullet, + .entry-content--energies .homegrade-blocks-focused-schema ol li:before, + .entry-content--energies ul li:before, + .entry-content--energies .wp-block-button__link, + .post-conseil-page--energies .chapter_index__position-indicator, + .post-conseil-page--energies .homegrade-blocks-focus-point-bullet, + .post-conseil-page--energies .homegrade-blocks-focused-schema ol li:before, + .post-conseil-page--energies ul li:before, + .post-conseil-page--energies .wp-block-button__link, + .post-question-page--energies .chapter_index__position-indicator, + .post-question-page--energies .homegrade-blocks-focus-point-bullet, + .post-question-page--energies .homegrade-blocks-focused-schema ol li:before, + .post-question-page--energies ul li:before, + .post-question-page--energies .wp-block-button__link { --tw-bg-opacity: 1; background-color: rgb(2 126 80 / var(--tw-bg-opacity)); } -.entry-content--energies-urbanisme .tooltip-word, body.energies-urbanisme .tooltip-word, .post-conseil-page--energies-urbanisme .tooltip-word, .post-question-page--energies-urbanisme .tooltip-word { +body.urbanisme .tooltip-word, .entry-content--urbanisme .tooltip-word, .post-conseil-page--urbanisme .tooltip-word, .post-question-page--urbanisme .tooltip-word, body.energies .tooltip-word, .entry-content--energies .tooltip-word, .post-conseil-page--energies .tooltip-word, .post-question-page--energies .tooltip-word { -webkit-text-decoration-color: #027E50 !important; text-decoration-color: #027E50 !important; } -.entry-content--energies-urbanisme .homegrade-blocks-aside, body.energies-urbanisme .homegrade-blocks-aside, .post-conseil-page--energies-urbanisme .homegrade-blocks-aside, .post-question-page--energies-urbanisme .homegrade-blocks-aside { +body.urbanisme .homegrade-blocks-aside, .entry-content--urbanisme .homegrade-blocks-aside, .post-conseil-page--urbanisme .homegrade-blocks-aside, .post-question-page--urbanisme .homegrade-blocks-aside, body.energies .homegrade-blocks-aside, .entry-content--energies .homegrade-blocks-aside, .post-conseil-page--energies .homegrade-blocks-aside, .post-question-page--energies .homegrade-blocks-aside { --tw-border-opacity: 1; border-color: rgb(2 126 80 / var(--tw-border-opacity)); } -.entry-content--isolation-quotidien h2, - .entry-content--isolation-quotidien h3, - .entry-content--isolation-quotidien h4, - .entry-content--isolation-quotidien h5, - .entry-content--isolation-quotidien h6, - .entry-content--isolation-quotidien ol li::marker, - .entry-content--isolation-quotidien ul li::marker, - body.isolation-quotidien h2, - body.isolation-quotidien h3, - body.isolation-quotidien h4, - body.isolation-quotidien h5, - body.isolation-quotidien h6, - body.isolation-quotidien ol li::marker, - body.isolation-quotidien ul li::marker, - .post-conseil-page--isolation-quotidien h2, - .post-conseil-page--isolation-quotidien h3, - .post-conseil-page--isolation-quotidien h4, - .post-conseil-page--isolation-quotidien h5, - .post-conseil-page--isolation-quotidien h6, - .post-conseil-page--isolation-quotidien ol li::marker, - .post-conseil-page--isolation-quotidien ul li::marker, - .post-question-page--isolation-quotidien h2, - .post-question-page--isolation-quotidien h3, - .post-question-page--isolation-quotidien h4, - .post-question-page--isolation-quotidien h5, - .post-question-page--isolation-quotidien h6, - .post-question-page--isolation-quotidien ol li::marker, - .post-question-page--isolation-quotidien ul li::marker { +body.urbanisme .post-conseils-chapter-header__infos p, .entry-content--urbanisme .post-conseils-chapter-header__infos p, .post-conseil-page--urbanisme .post-conseils-chapter-header__infos p, .post-question-page--urbanisme .post-conseils-chapter-header__infos p, body.energies .post-conseils-chapter-header__infos p, .entry-content--energies .post-conseils-chapter-header__infos p, .post-conseil-page--energies .post-conseils-chapter-header__infos p, .post-question-page--energies .post-conseils-chapter-header__infos p { + --tw-text-opacity: 1; + color: rgb(2 126 80 / var(--tw-text-opacity)); +} + +body.urbanisme .post-conseils-chapter-header time, .entry-content--urbanisme .post-conseils-chapter-header time, .post-conseil-page--urbanisme .post-conseils-chapter-header time, .post-question-page--urbanisme .post-conseils-chapter-header time, body.energies .post-conseils-chapter-header time, .entry-content--energies .post-conseils-chapter-header time, .post-conseil-page--energies .post-conseils-chapter-header time, .post-question-page--energies .post-conseils-chapter-header time { + --tw-text-opacity: 1; + color: rgb(2 126 80 / var(--tw-text-opacity)); +} + +/* URBANISME — SPECIFIC */ + +body.urbanisme .post-conseils-chapter-header, .entry-content--urbanisme .post-conseils-chapter-header, .post-conseil-page--urbanisme .post-conseils-chapter-header, .post-question-page--urbanisme .post-conseils-chapter-header { + background: var(--wp--preset--gradient--gradient-green); +} + +/* ENERGIES — SPECIFIC */ + +body.energies .post-conseils-chapter-header, .entry-content--energies .post-conseils-chapter-header, .post-conseil-page--energies .post-conseils-chapter-header, .post-question-page--energies .post-conseils-chapter-header { + --tw-bg-opacity: 1; + background-color: rgb(227 255 240 / var(--tw-bg-opacity)); +} + +/* ---------------------------------------- + YELLOW SCHEME — ISOLATION & AU QUOTIDIEN +------------------------------------------*/ + +body.au-quotidien h2, + body.au-quotidien h3, + body.au-quotidien h4, + body.au-quotidien h5, + body.au-quotidien h6, + body.au-quotidien ol li::marker, + body.au-quotidien ul li::marker, + .entry-content--au-quotidien h2, + .entry-content--au-quotidien h3, + .entry-content--au-quotidien h4, + .entry-content--au-quotidien h5, + .entry-content--au-quotidien h6, + .entry-content--au-quotidien ol li::marker, + .entry-content--au-quotidien ul li::marker, + .post-conseil-page--au-quotidien h2, + .post-conseil-page--au-quotidien h3, + .post-conseil-page--au-quotidien h4, + .post-conseil-page--au-quotidien h5, + .post-conseil-page--au-quotidien h6, + .post-conseil-page--au-quotidien ol li::marker, + .post-conseil-page--au-quotidien ul li::marker, + .post-question-page--au-quotidien h2, + .post-question-page--au-quotidien h3, + .post-question-page--au-quotidien h4, + .post-question-page--au-quotidien h5, + .post-question-page--au-quotidien h6, + .post-question-page--au-quotidien ol li::marker, + .post-question-page--au-quotidien ul li::marker, + body.isolation h2, + body.isolation h3, + body.isolation h4, + body.isolation h5, + body.isolation h6, + body.isolation ol li::marker, + body.isolation ul li::marker, + .entry-content--isolation h2, + .entry-content--isolation h3, + .entry-content--isolation h4, + .entry-content--isolation h5, + .entry-content--isolation h6, + .entry-content--isolation ol li::marker, + .entry-content--isolation ul li::marker, + .post-conseil-page--isolation h2, + .post-conseil-page--isolation h3, + .post-conseil-page--isolation h4, + .post-conseil-page--isolation h5, + .post-conseil-page--isolation h6, + .post-conseil-page--isolation ol li::marker, + .post-conseil-page--isolation ul li::marker, + .post-question-page--isolation h2, + .post-question-page--isolation h3, + .post-question-page--isolation h4, + .post-question-page--isolation h5, + .post-question-page--isolation h6, + .post-question-page--isolation ol li::marker, + .post-question-page--isolation ul li::marker { --tw-text-opacity: 1; color: rgb(194 69 3 / var(--tw-text-opacity)); } -.entry-content--isolation-quotidien .homegrade-blocks-highlight, - .entry-content--isolation-quotidien .homegrade-blocks-chapter-header-block, - .entry-content--isolation-quotidien .post-conseils-chapter-header, - body.isolation-quotidien .homegrade-blocks-highlight, - body.isolation-quotidien .homegrade-blocks-chapter-header-block, - body.isolation-quotidien .post-conseils-chapter-header, - .post-conseil-page--isolation-quotidien .homegrade-blocks-highlight, - .post-conseil-page--isolation-quotidien .homegrade-blocks-chapter-header-block, - .post-conseil-page--isolation-quotidien .post-conseils-chapter-header, - .post-question-page--isolation-quotidien .homegrade-blocks-highlight, - .post-question-page--isolation-quotidien .homegrade-blocks-chapter-header-block, - .post-question-page--isolation-quotidien .post-conseils-chapter-header { +body.au-quotidien .homegrade-blocks-highlight, .entry-content--au-quotidien .homegrade-blocks-highlight, .post-conseil-page--au-quotidien .homegrade-blocks-highlight, .post-question-page--au-quotidien .homegrade-blocks-highlight, body.isolation .homegrade-blocks-highlight, .entry-content--isolation .homegrade-blocks-highlight, .post-conseil-page--isolation .homegrade-blocks-highlight, .post-question-page--isolation .homegrade-blocks-highlight { --tw-bg-opacity: 1; background-color: rgb(255 251 236 / var(--tw-bg-opacity)); } -.entry-content--isolation-quotidien .chapter_index__position-indicator, - .entry-content--isolation-quotidien .homegrade-blocks-focus-point-bullet, - .entry-content--isolation-quotidien .homegrade-blocks-focused-schema ol li:before, - .entry-content--isolation-quotidien ul li:before, - .entry-content--isolation-quotidien .wp-block-button__link, - body.isolation-quotidien .chapter_index__position-indicator, - body.isolation-quotidien .homegrade-blocks-focus-point-bullet, - body.isolation-quotidien .homegrade-blocks-focused-schema ol li:before, - body.isolation-quotidien ul li:before, - body.isolation-quotidien .wp-block-button__link, - .post-conseil-page--isolation-quotidien .chapter_index__position-indicator, - .post-conseil-page--isolation-quotidien .homegrade-blocks-focus-point-bullet, - .post-conseil-page--isolation-quotidien .homegrade-blocks-focused-schema ol li:before, - .post-conseil-page--isolation-quotidien ul li:before, - .post-conseil-page--isolation-quotidien .wp-block-button__link, - .post-question-page--isolation-quotidien .chapter_index__position-indicator, - .post-question-page--isolation-quotidien .homegrade-blocks-focus-point-bullet, - .post-question-page--isolation-quotidien .homegrade-blocks-focused-schema ol li:before, - .post-question-page--isolation-quotidien ul li:before, - .post-question-page--isolation-quotidien .wp-block-button__link { +body.au-quotidien .chapter_index__position-indicator, + body.au-quotidien .homegrade-blocks-focus-point-bullet, + body.au-quotidien .homegrade-blocks-focused-schema ol li:before, + body.au-quotidien ul li:before, + body.au-quotidien .wp-block-button__link, + .entry-content--au-quotidien .chapter_index__position-indicator, + .entry-content--au-quotidien .homegrade-blocks-focus-point-bullet, + .entry-content--au-quotidien .homegrade-blocks-focused-schema ol li:before, + .entry-content--au-quotidien ul li:before, + .entry-content--au-quotidien .wp-block-button__link, + .post-conseil-page--au-quotidien .chapter_index__position-indicator, + .post-conseil-page--au-quotidien .homegrade-blocks-focus-point-bullet, + .post-conseil-page--au-quotidien .homegrade-blocks-focused-schema ol li:before, + .post-conseil-page--au-quotidien ul li:before, + .post-conseil-page--au-quotidien .wp-block-button__link, + .post-question-page--au-quotidien .chapter_index__position-indicator, + .post-question-page--au-quotidien .homegrade-blocks-focus-point-bullet, + .post-question-page--au-quotidien .homegrade-blocks-focused-schema ol li:before, + .post-question-page--au-quotidien ul li:before, + .post-question-page--au-quotidien .wp-block-button__link, + body.isolation .chapter_index__position-indicator, + body.isolation .homegrade-blocks-focus-point-bullet, + body.isolation .homegrade-blocks-focused-schema ol li:before, + body.isolation ul li:before, + body.isolation .wp-block-button__link, + .entry-content--isolation .chapter_index__position-indicator, + .entry-content--isolation .homegrade-blocks-focus-point-bullet, + .entry-content--isolation .homegrade-blocks-focused-schema ol li:before, + .entry-content--isolation ul li:before, + .entry-content--isolation .wp-block-button__link, + .post-conseil-page--isolation .chapter_index__position-indicator, + .post-conseil-page--isolation .homegrade-blocks-focus-point-bullet, + .post-conseil-page--isolation .homegrade-blocks-focused-schema ol li:before, + .post-conseil-page--isolation ul li:before, + .post-conseil-page--isolation .wp-block-button__link, + .post-question-page--isolation .chapter_index__position-indicator, + .post-question-page--isolation .homegrade-blocks-focus-point-bullet, + .post-question-page--isolation .homegrade-blocks-focused-schema ol li:before, + .post-question-page--isolation ul li:before, + .post-question-page--isolation .wp-block-button__link { --tw-bg-opacity: 1; background-color: rgb(194 69 3 / var(--tw-bg-opacity)); } -.entry-content--isolation-quotidien .tooltip-word, body.isolation-quotidien .tooltip-word, .post-conseil-page--isolation-quotidien .tooltip-word, .post-question-page--isolation-quotidien .tooltip-word { +body.au-quotidien .tooltip-word, .entry-content--au-quotidien .tooltip-word, .post-conseil-page--au-quotidien .tooltip-word, .post-question-page--au-quotidien .tooltip-word, body.isolation .tooltip-word, .entry-content--isolation .tooltip-word, .post-conseil-page--isolation .tooltip-word, .post-question-page--isolation .tooltip-word { -webkit-text-decoration-color: #C24503 !important; text-decoration-color: #C24503 !important; } -.entry-content--isolation-quotidien .homegrade-blocks-aside, body.isolation-quotidien .homegrade-blocks-aside, .post-conseil-page--isolation-quotidien .homegrade-blocks-aside, .post-question-page--isolation-quotidien .homegrade-blocks-aside { +body.au-quotidien .homegrade-blocks-aside, .entry-content--au-quotidien .homegrade-blocks-aside, .post-conseil-page--au-quotidien .homegrade-blocks-aside, .post-question-page--au-quotidien .homegrade-blocks-aside, body.isolation .homegrade-blocks-aside, .entry-content--isolation .homegrade-blocks-aside, .post-conseil-page--isolation .homegrade-blocks-aside, .post-question-page--isolation .homegrade-blocks-aside { --tw-border-opacity: 1; border-color: rgb(194 69 3 / var(--tw-border-opacity)); } -.entry-content--patrimoine-renovation h2, - .entry-content--patrimoine-renovation h3, - .entry-content--patrimoine-renovation h4, - .entry-content--patrimoine-renovation h5, - .entry-content--patrimoine-renovation h6, - .entry-content--patrimoine-renovation ol li::marker, - .entry-content--patrimoine-renovation ul li::marker, - body.patrimoine-renovation h2, - body.patrimoine-renovation h3, - body.patrimoine-renovation h4, - body.patrimoine-renovation h5, - body.patrimoine-renovation h6, - body.patrimoine-renovation ol li::marker, - body.patrimoine-renovation ul li::marker, - .post-conseil-page--patrimoine-renovation h2, - .post-conseil-page--patrimoine-renovation h3, - .post-conseil-page--patrimoine-renovation h4, - .post-conseil-page--patrimoine-renovation h5, - .post-conseil-page--patrimoine-renovation h6, - .post-conseil-page--patrimoine-renovation ol li::marker, - .post-conseil-page--patrimoine-renovation ul li::marker, - .post-question-page--patrimoine-renovation h2, - .post-question-page--patrimoine-renovation h3, - .post-question-page--patrimoine-renovation h4, - .post-question-page--patrimoine-renovation h5, - .post-question-page--patrimoine-renovation h6, - .post-question-page--patrimoine-renovation ol li::marker, - .post-question-page--patrimoine-renovation ul li::marker { +body.au-quotidien .post-conseils-chapter-header__infos p, .entry-content--au-quotidien .post-conseils-chapter-header__infos p, .post-conseil-page--au-quotidien .post-conseils-chapter-header__infos p, .post-question-page--au-quotidien .post-conseils-chapter-header__infos p, body.isolation .post-conseils-chapter-header__infos p, .entry-content--isolation .post-conseils-chapter-header__infos p, .post-conseil-page--isolation .post-conseils-chapter-header__infos p, .post-question-page--isolation .post-conseils-chapter-header__infos p { + --tw-text-opacity: 1; + color: rgb(194 69 3 / var(--tw-text-opacity)); +} + +body.au-quotidien .post-conseils-chapter-header time, .entry-content--au-quotidien .post-conseils-chapter-header time, .post-conseil-page--au-quotidien .post-conseils-chapter-header time, .post-question-page--au-quotidien .post-conseils-chapter-header time, body.isolation .post-conseils-chapter-header time, .entry-content--isolation .post-conseils-chapter-header time, .post-conseil-page--isolation .post-conseils-chapter-header time, .post-question-page--isolation .post-conseils-chapter-header time { + --tw-text-opacity: 1; + color: rgb(194 69 3 / var(--tw-text-opacity)); +} + +/* AU QUOTIDIEN — SPECIFIC */ + +body.au-quotidien .post-conseils-chapter-header, .entry-content--au-quotidien .post-conseils-chapter-header, .post-conseil-page--au-quotidien .post-conseils-chapter-header, .post-question-page--au-quotidien .post-conseils-chapter-header { + background: var(--wp--preset--gradient--gradient-yellow); +} + +/* ISOLATION — SPECIFIC */ + +body.isolation .post-conseils-chapter-header, .entry-content--isolation .post-conseils-chapter-header, .post-conseil-page--isolation .post-conseils-chapter-header, .post-question-page--isolation .post-conseils-chapter-header { + --tw-bg-opacity: 1; + background-color: rgb(255 251 236 / var(--tw-bg-opacity)); +} + +/* ---------------------------------------- + PURPLE SCHEME — PATRIMOINE +------------------------------------------*/ + +body.patrimoine h2, + body.patrimoine h3, + body.patrimoine h4, + body.patrimoine h5, + body.patrimoine h6, + body.patrimoine ol li::marker, + body.patrimoine ul li::marker, + .entry-content--patrimoine h2, + .entry-content--patrimoine h3, + .entry-content--patrimoine h4, + .entry-content--patrimoine h5, + .entry-content--patrimoine h6, + .entry-content--patrimoine ol li::marker, + .entry-content--patrimoine ul li::marker, + .post-conseil-page--patrimoine h2, + .post-conseil-page--patrimoine h3, + .post-conseil-page--patrimoine h4, + .post-conseil-page--patrimoine h5, + .post-conseil-page--patrimoine h6, + .post-conseil-page--patrimoine ol li::marker, + .post-conseil-page--patrimoine ul li::marker, + .post-question-page--patrimoine h2, + .post-question-page--patrimoine h3, + .post-question-page--patrimoine h4, + .post-question-page--patrimoine h5, + .post-question-page--patrimoine h6, + .post-question-page--patrimoine ol li::marker, + .post-question-page--patrimoine ul li::marker { --tw-text-opacity: 1; color: rgb(139 47 247 / var(--tw-text-opacity)); } -.entry-content--patrimoine-renovation .homegrade-blocks-highlight, - .entry-content--patrimoine-renovation .homegrade-blocks-chapter-header-block, - .entry-content--patrimoine-renovation .post-conseils-chapter-header, - body.patrimoine-renovation .homegrade-blocks-highlight, - body.patrimoine-renovation .homegrade-blocks-chapter-header-block, - body.patrimoine-renovation .post-conseils-chapter-header, - .post-conseil-page--patrimoine-renovation .homegrade-blocks-highlight, - .post-conseil-page--patrimoine-renovation .homegrade-blocks-chapter-header-block, - .post-conseil-page--patrimoine-renovation .post-conseils-chapter-header, - .post-question-page--patrimoine-renovation .homegrade-blocks-highlight, - .post-question-page--patrimoine-renovation .homegrade-blocks-chapter-header-block, - .post-question-page--patrimoine-renovation .post-conseils-chapter-header { +body.patrimoine .homegrade-blocks-highlight, .entry-content--patrimoine .homegrade-blocks-highlight, .post-conseil-page--patrimoine .homegrade-blocks-highlight, .post-question-page--patrimoine .homegrade-blocks-highlight { --tw-bg-opacity: 1; - background-color: rgb(255 229 253 / var(--tw-bg-opacity)); + background-color: rgb(248 242 255 / var(--tw-bg-opacity)); } -.entry-content--patrimoine-renovation .chapter_index__position-indicator, - .entry-content--patrimoine-renovation .homegrade-blocks-focus-point-bullet, - .entry-content--patrimoine-renovation .homegrade-blocks-focused-schema ol li:before, - .entry-content--patrimoine-renovation ul li:before, - .entry-content--patrimoine-renovation .wp-block-button__link, - body.patrimoine-renovation .chapter_index__position-indicator, - body.patrimoine-renovation .homegrade-blocks-focus-point-bullet, - body.patrimoine-renovation .homegrade-blocks-focused-schema ol li:before, - body.patrimoine-renovation ul li:before, - body.patrimoine-renovation .wp-block-button__link, - .post-conseil-page--patrimoine-renovation .chapter_index__position-indicator, - .post-conseil-page--patrimoine-renovation .homegrade-blocks-focus-point-bullet, - .post-conseil-page--patrimoine-renovation .homegrade-blocks-focused-schema ol li:before, - .post-conseil-page--patrimoine-renovation ul li:before, - .post-conseil-page--patrimoine-renovation .wp-block-button__link, - .post-question-page--patrimoine-renovation .chapter_index__position-indicator, - .post-question-page--patrimoine-renovation .homegrade-blocks-focus-point-bullet, - .post-question-page--patrimoine-renovation .homegrade-blocks-focused-schema ol li:before, - .post-question-page--patrimoine-renovation ul li:before, - .post-question-page--patrimoine-renovation .wp-block-button__link { +body.patrimoine .chapter_index__position-indicator, + body.patrimoine .homegrade-blocks-focus-point-bullet, + body.patrimoine .homegrade-blocks-focused-schema ol li:before, + body.patrimoine ul li:before, + body.patrimoine .wp-block-button__link, + .entry-content--patrimoine .chapter_index__position-indicator, + .entry-content--patrimoine .homegrade-blocks-focus-point-bullet, + .entry-content--patrimoine .homegrade-blocks-focused-schema ol li:before, + .entry-content--patrimoine ul li:before, + .entry-content--patrimoine .wp-block-button__link, + .post-conseil-page--patrimoine .chapter_index__position-indicator, + .post-conseil-page--patrimoine .homegrade-blocks-focus-point-bullet, + .post-conseil-page--patrimoine .homegrade-blocks-focused-schema ol li:before, + .post-conseil-page--patrimoine ul li:before, + .post-conseil-page--patrimoine .wp-block-button__link, + .post-question-page--patrimoine .chapter_index__position-indicator, + .post-question-page--patrimoine .homegrade-blocks-focus-point-bullet, + .post-question-page--patrimoine .homegrade-blocks-focused-schema ol li:before, + .post-question-page--patrimoine ul li:before, + .post-question-page--patrimoine .wp-block-button__link { --tw-bg-opacity: 1; background-color: rgb(139 47 247 / var(--tw-bg-opacity)); } -.entry-content--patrimoine-renovation .tooltip-word, body.patrimoine-renovation .tooltip-word, .post-conseil-page--patrimoine-renovation .tooltip-word, .post-question-page--patrimoine-renovation .tooltip-word { +body.patrimoine .tooltip-word, .entry-content--patrimoine .tooltip-word, .post-conseil-page--patrimoine .tooltip-word, .post-question-page--patrimoine .tooltip-word { -webkit-text-decoration-color: #8B2FF7 !important; text-decoration-color: #8B2FF7 !important; } -.entry-content--patrimoine-renovation .homegrade-blocks-aside, body.patrimoine-renovation .homegrade-blocks-aside, .post-conseil-page--patrimoine-renovation .homegrade-blocks-aside, .post-question-page--patrimoine-renovation .homegrade-blocks-aside { +body.patrimoine .homegrade-blocks-aside, .entry-content--patrimoine .homegrade-blocks-aside, .post-conseil-page--patrimoine .homegrade-blocks-aside, .post-question-page--patrimoine .homegrade-blocks-aside { --tw-border-opacity: 1; border-color: rgb(139 47 247 / var(--tw-border-opacity)); } -.entry-content--location h2, - .entry-content--location h3, - .entry-content--location h4, - .entry-content--location h5, - .entry-content--location h6, - .entry-content--location ol li::marker, - .entry-content--location ul li::marker, - body.location h2, +body.patrimoine .post-conseils-chapter-header__infos p, .entry-content--patrimoine .post-conseils-chapter-header__infos p, .post-conseil-page--patrimoine .post-conseils-chapter-header__infos p, .post-question-page--patrimoine .post-conseils-chapter-header__infos p { + --tw-text-opacity: 1; + color: rgb(139 47 247 / var(--tw-text-opacity)); +} + +body.patrimoine .post-conseils-chapter-header time, .entry-content--patrimoine .post-conseils-chapter-header time, .post-conseil-page--patrimoine .post-conseils-chapter-header time, .post-question-page--patrimoine .post-conseils-chapter-header time { + --tw-text-opacity: 1; + color: rgb(139 47 247 / var(--tw-text-opacity)); +} + +body.renovation .post-conseils-chapter-header, .entry-content--newpurplethematic .post-conseils-chapter-header, .post-conseil-page--newpurplethematic .post-conseils-chapter-header, .post-question-page--newpurplethematic .post-conseils-chapter-header { + background: var(--wp--preset--gradient--gradient-purple); +} + +body.patrimoine .post-conseils-chapter-header, .entry-content--patrimoine .post-conseils-chapter-header, .post-conseil-page--patrimoine .post-conseils-chapter-header, .post-question-page--patrimoine .post-conseils-chapter-header { + --tw-bg-opacity: 1; + background-color: rgb(248 242 255 / var(--tw-bg-opacity)); +} + +/* ---------------------------------------- + RED SCHEME — LOCATION +------------------------------------------*/ + +body.location h2, body.location h3, body.location h4, body.location h5, body.location h6, body.location ol li::marker, body.location ul li::marker, + .entry-content--location h2, + .entry-content--location h3, + .entry-content--location h4, + .entry-content--location h5, + .entry-content--location h6, + .entry-content--location ol li::marker, + .entry-content--location ul li::marker, .post-conseil-page--location h2, .post-conseil-page--location h3, .post-conseil-page--location h4, @@ -3481,37 +3718,54 @@ header#main-header { .post-question-page--location h5, .post-question-page--location h6, .post-question-page--location ol li::marker, - .post-question-page--location ul li::marker { + .post-question-page--location ul li::marker, + body.renovation-circulaire h2, + body.renovation-circulaire h3, + body.renovation-circulaire h4, + body.renovation-circulaire h5, + body.renovation-circulaire h6, + body.renovation-circulaire ol li::marker, + body.renovation-circulaire ul li::marker, + .entry-content--renovation-circulaire h2, + .entry-content--renovation-circulaire h3, + .entry-content--renovation-circulaire h4, + .entry-content--renovation-circulaire h5, + .entry-content--renovation-circulaire h6, + .entry-content--renovation-circulaire ol li::marker, + .entry-content--renovation-circulaire ul li::marker, + .post-conseil-page--renovation-circulaire h2, + .post-conseil-page--renovation-circulaire h3, + .post-conseil-page--renovation-circulaire h4, + .post-conseil-page--renovation-circulaire h5, + .post-conseil-page--renovation-circulaire h6, + .post-conseil-page--renovation-circulaire ol li::marker, + .post-conseil-page--renovation-circulaire ul li::marker, + .post-question-page--renovation-circulaire h2, + .post-question-page--renovation-circulaire h3, + .post-question-page--renovation-circulaire h4, + .post-question-page--renovation-circulaire h5, + .post-question-page--renovation-circulaire h6, + .post-question-page--renovation-circulaire ol li::marker, + .post-question-page--renovation-circulaire ul li::marker { --tw-text-opacity: 1; color: rgb(223 0 43 / var(--tw-text-opacity)); } -.entry-content--location .homegrade-blocks-highlight, - .entry-content--location .homegrade-blocks-chapter-header-block, - .entry-content--location .post-conseils-chapter-header, - body.location .homegrade-blocks-highlight, - body.location .homegrade-blocks-chapter-header-block, - body.location .post-conseils-chapter-header, - .post-conseil-page--location .homegrade-blocks-highlight, - .post-conseil-page--location .homegrade-blocks-chapter-header-block, - .post-conseil-page--location .post-conseils-chapter-header, - .post-question-page--location .homegrade-blocks-highlight, - .post-question-page--location .homegrade-blocks-chapter-header-block, - .post-question-page--location .post-conseils-chapter-header { +body.location .homegrade-blocks-highlight, .entry-content--location .homegrade-blocks-highlight, .post-conseil-page--location .homegrade-blocks-highlight, .post-question-page--location .homegrade-blocks-highlight, body.renovation-circulaire .homegrade-blocks-highlight, .entry-content--renovation-circulaire .homegrade-blocks-highlight, .post-conseil-page--renovation-circulaire .homegrade-blocks-highlight, .post-question-page--renovation-circulaire .homegrade-blocks-highlight { --tw-bg-opacity: 1; - background-color: rgb(254 226 231 / var(--tw-bg-opacity)); + background-color: rgb(254 245 246 / var(--tw-bg-opacity)); } -.entry-content--location .chapter_index__position-indicator, - .entry-content--location .homegrade-blocks-focus-point-bullet, - .entry-content--location .homegrade-blocks-focused-schema ol li:before, - .entry-content--location ul li:before, - .entry-content--location .wp-block-button__link, - body.location .chapter_index__position-indicator, +body.location .chapter_index__position-indicator, body.location .homegrade-blocks-focus-point-bullet, body.location .homegrade-blocks-focused-schema ol li:before, body.location ul li:before, body.location .wp-block-button__link, + .entry-content--location .chapter_index__position-indicator, + .entry-content--location .homegrade-blocks-focus-point-bullet, + .entry-content--location .homegrade-blocks-focused-schema ol li:before, + .entry-content--location ul li:before, + .entry-content--location .wp-block-button__link, .post-conseil-page--location .chapter_index__position-indicator, .post-conseil-page--location .homegrade-blocks-focus-point-bullet, .post-conseil-page--location .homegrade-blocks-focused-schema ol li:before, @@ -3521,21 +3775,102 @@ header#main-header { .post-question-page--location .homegrade-blocks-focus-point-bullet, .post-question-page--location .homegrade-blocks-focused-schema ol li:before, .post-question-page--location ul li:before, - .post-question-page--location .wp-block-button__link { + .post-question-page--location .wp-block-button__link, + body.renovation-circulaire .chapter_index__position-indicator, + body.renovation-circulaire .homegrade-blocks-focus-point-bullet, + body.renovation-circulaire .homegrade-blocks-focused-schema ol li:before, + body.renovation-circulaire ul li:before, + body.renovation-circulaire .wp-block-button__link, + .entry-content--renovation-circulaire .chapter_index__position-indicator, + .entry-content--renovation-circulaire .homegrade-blocks-focus-point-bullet, + .entry-content--renovation-circulaire .homegrade-blocks-focused-schema ol li:before, + .entry-content--renovation-circulaire ul li:before, + .entry-content--renovation-circulaire .wp-block-button__link, + .post-conseil-page--renovation-circulaire .chapter_index__position-indicator, + .post-conseil-page--renovation-circulaire .homegrade-blocks-focus-point-bullet, + .post-conseil-page--renovation-circulaire .homegrade-blocks-focused-schema ol li:before, + .post-conseil-page--renovation-circulaire ul li:before, + .post-conseil-page--renovation-circulaire .wp-block-button__link, + .post-question-page--renovation-circulaire .chapter_index__position-indicator, + .post-question-page--renovation-circulaire .homegrade-blocks-focus-point-bullet, + .post-question-page--renovation-circulaire .homegrade-blocks-focused-schema ol li:before, + .post-question-page--renovation-circulaire ul li:before, + .post-question-page--renovation-circulaire .wp-block-button__link { --tw-bg-opacity: 1; background-color: rgb(223 0 43 / var(--tw-bg-opacity)); } -.entry-content--location .tooltip-word, body.location .tooltip-word, .post-conseil-page--location .tooltip-word, .post-question-page--location .tooltip-word { +body.location .tooltip-word, .entry-content--location .tooltip-word, .post-conseil-page--location .tooltip-word, .post-question-page--location .tooltip-word, body.renovation-circulaire .tooltip-word, .entry-content--renovation-circulaire .tooltip-word, .post-conseil-page--renovation-circulaire .tooltip-word, .post-question-page--renovation-circulaire .tooltip-word { -webkit-text-decoration-color: #DF002B !important; text-decoration-color: #DF002B !important; } -.entry-content--location .homegrade-blocks-aside, body.location .homegrade-blocks-aside, .post-conseil-page--location .homegrade-blocks-aside, .post-question-page--location .homegrade-blocks-aside { +body.location .homegrade-blocks-aside, .entry-content--location .homegrade-blocks-aside, .post-conseil-page--location .homegrade-blocks-aside, .post-question-page--location .homegrade-blocks-aside, body.renovation-circulaire .homegrade-blocks-aside, .entry-content--renovation-circulaire .homegrade-blocks-aside, .post-conseil-page--renovation-circulaire .homegrade-blocks-aside, .post-question-page--renovation-circulaire .homegrade-blocks-aside { --tw-border-opacity: 1; border-color: rgb(223 0 43 / var(--tw-border-opacity)); } +body.location .post-conseils-chapter-header__infos p, .entry-content--location .post-conseils-chapter-header__infos p, .post-conseil-page--location .post-conseils-chapter-header__infos p, .post-question-page--location .post-conseils-chapter-header__infos p, body.renovation-circulaire .post-conseils-chapter-header__infos p, .entry-content--renovation-circulaire .post-conseils-chapter-header__infos p, .post-conseil-page--renovation-circulaire .post-conseils-chapter-header__infos p, .post-question-page--renovation-circulaire .post-conseils-chapter-header__infos p { + --tw-text-opacity: 1; + color: rgb(223 0 43 / var(--tw-text-opacity)); +} + +body.location .post-conseils-chapter-header time, .entry-content--location .post-conseils-chapter-header time, .post-conseil-page--location .post-conseils-chapter-header time, .post-question-page--location .post-conseils-chapter-header time, body.renovation-circulaire .post-conseils-chapter-header time, .entry-content--renovation-circulaire .post-conseils-chapter-header time, .post-conseil-page--renovation-circulaire .post-conseils-chapter-header time, .post-question-page--renovation-circulaire .post-conseils-chapter-header time { + --tw-text-opacity: 1; + color: rgb(223 0 43 / var(--tw-text-opacity)); +} + +/* RENOVATION CIRCULAIRE — SPECIFIC */ + +body.renovation-circulaire .post-conseils-chapter-header, .entry-content--renovation-circulaire .post-conseils-chapter-header, .post-conseil-page--renovation-circulaire .post-conseils-chapter-header, .post-question-page--renovation-circulaire .post-conseils-chapter-header { + background: var(--wp--preset--gradient--gradient-red); +} + +/* LOCATION — SPECIFIC */ + +body.location .post-conseils-chapter-header, .entry-content--location .post-conseils-chapter-header, .post-conseil-page--location .post-conseils-chapter-header, .post-question-page--location .post-conseils-chapter-header { + --tw-bg-opacity: 1; + background-color: rgb(254 245 246 / var(--tw-bg-opacity)); +} + +/* WHITE TEXT ON GRADIENTS COVER */ + +body.petites-coproprietes .post-conseils-chapter-header p, + body.petites-coproprietes .post-conseils-chapter-header h1, + .entry-content--petites-coproprietes .post-conseils-chapter-header p, + .entry-content--petites-coproprietes .post-conseils-chapter-header h1, + .post-conseil-page--petites-coproprietes .post-conseils-chapter-header p, + .post-conseil-page--petites-coproprietes .post-conseils-chapter-header h1, + .post-question-page--petites-coproprietes .post-conseils-chapter-header p, + .post-question-page--petites-coproprietes .post-conseils-chapter-header h1, + body.urbanisme .post-conseils-chapter-header p, + body.urbanisme .post-conseils-chapter-header h1, + .entry-content--urbanisme .post-conseils-chapter-header p, + .entry-content--urbanisme .post-conseils-chapter-header h1, + .post-conseil-page--urbanisme .post-conseils-chapter-header p, + .post-conseil-page--urbanisme .post-conseils-chapter-header h1, + .post-question-page--urbanisme .post-conseils-chapter-header p, + .post-question-page--urbanisme .post-conseils-chapter-header h1, + body.au-quotidien .post-conseils-chapter-header p, + body.au-quotidien .post-conseils-chapter-header h1, + .entry-content--au-quotidien .post-conseils-chapter-header p, + .entry-content--au-quotidien .post-conseils-chapter-header h1, + .post-conseil-page--au-quotidien .post-conseils-chapter-header p, + .post-conseil-page--au-quotidien .post-conseils-chapter-header h1, + .post-question-page--au-quotidien .post-conseils-chapter-header p, + .post-question-page--au-quotidien .post-conseils-chapter-header h1, + body.renovation-circulaire .post-conseils-chapter-header p, + body.renovation-circulaire .post-conseils-chapter-header h1, + .entry-content--renovation-circulaire .post-conseils-chapter-header p, + .entry-content--renovation-circulaire .post-conseils-chapter-header h1, + .post-conseil-page--renovation-circulaire .post-conseils-chapter-header p, + .post-conseil-page--renovation-circulaire .post-conseils-chapter-header h1, + .post-question-page--renovation-circulaire .post-conseils-chapter-header p, + .post-question-page--renovation-circulaire .post-conseils-chapter-header h1 { + --tw-text-opacity: 1; + color: rgb(255 255 255 / var(--tw-text-opacity)); +} + article > *:not(.entry-content, .chapter-header-block), .entry-content > * { margin-left: auto; @@ -4499,17 +4834,7 @@ article > *:not(.entry-content, .chapter-header-block), .hover\:bg-patrimoine-renovation-light:hover { --tw-bg-opacity: 1; - background-color: rgb(255 229 253 / var(--tw-bg-opacity)); -} - -.hover\:bg-location:hover { - --tw-bg-opacity: 1; - background-color: rgb(223 0 43 / var(--tw-bg-opacity)); -} - -.hover\:bg-location-light:hover { - --tw-bg-opacity: 1; - background-color: rgb(254 226 231 / var(--tw-bg-opacity)); + background-color: rgb(248 242 255 / var(--tw-bg-opacity)); } .hover\:text-primary:hover { @@ -4559,17 +4884,7 @@ article > *:not(.entry-content, .chapter-header-block), .hover\:text-patrimoine-renovation-light:hover { --tw-text-opacity: 1; - color: rgb(255 229 253 / var(--tw-text-opacity)); -} - -.hover\:text-location:hover { - --tw-text-opacity: 1; - color: rgb(223 0 43 / var(--tw-text-opacity)); -} - -.hover\:text-location-light:hover { - --tw-text-opacity: 1; - color: rgb(254 226 231 / var(--tw-text-opacity)); + color: rgb(248 242 255 / var(--tw-text-opacity)); } @media (min-width: 782px) { diff --git a/css/editor-style.css b/css/editor-style.css index b87791b..c122934 100644 --- a/css/editor-style.css +++ b/css/editor-style.css @@ -212,17 +212,17 @@ .bg-patrimoine-renovation-light { --tw-bg-opacity: 1; - background-color: rgb(255 229 253 / var(--tw-bg-opacity)) + background-color: rgb(248 242 255 / var(--tw-bg-opacity)) } -.bg-location { +.bg-location-renovation-circulaire { --tw-bg-opacity: 1; background-color: rgb(223 0 43 / var(--tw-bg-opacity)) } -.bg-location-light { +.bg-location-renovation-circulaire-light { --tw-bg-opacity: 1; - background-color: rgb(254 226 231 / var(--tw-bg-opacity)) + background-color: rgb(254 245 246 / var(--tw-bg-opacity)) } .px-4 { @@ -332,17 +332,17 @@ .text-patrimoine-renovation-light { --tw-text-opacity: 1; - color: rgb(255 229 253 / var(--tw-text-opacity)) + color: rgb(248 242 255 / var(--tw-text-opacity)) } -.text-location { +.text-location-renovation-circulaire { --tw-text-opacity: 1; color: rgb(223 0 43 / var(--tw-text-opacity)) } -.text-location-light { +.text-location-renovation-circulaire-light { --tw-text-opacity: 1; - color: rgb(254 226 231 / var(--tw-text-opacity)) + color: rgb(254 245 246 / var(--tw-text-opacity)) } .antialiased { @@ -495,17 +495,7 @@ body { .hover\:bg-patrimoine-renovation-light:hover { --tw-bg-opacity: 1; - background-color: rgb(255 229 253 / var(--tw-bg-opacity)) -} - -.hover\:bg-location:hover { - --tw-bg-opacity: 1; - background-color: rgb(223 0 43 / var(--tw-bg-opacity)) -} - -.hover\:bg-location-light:hover { - --tw-bg-opacity: 1; - background-color: rgb(254 226 231 / var(--tw-bg-opacity)) + background-color: rgb(248 242 255 / var(--tw-bg-opacity)) } .hover\:text-primary:hover { @@ -555,17 +545,7 @@ body { .hover\:text-patrimoine-renovation-light:hover { --tw-text-opacity: 1; - color: rgb(255 229 253 / var(--tw-text-opacity)) -} - -.hover\:text-location:hover { - --tw-text-opacity: 1; - color: rgb(223 0 43 / var(--tw-text-opacity)) -} - -.hover\:text-location-light:hover { - --tw-text-opacity: 1; - color: rgb(254 226 231 / var(--tw-text-opacity)) + color: rgb(248 242 255 / var(--tw-text-opacity)) } @media (min-width: 782px) { diff --git a/includes/utilities.php b/includes/utilities.php index 93f2976..531c244 100644 --- a/includes/utilities.php +++ b/includes/utilities.php @@ -31,8 +31,9 @@ function getThematiqueFamilySlug($thematique_slug) return "patrimoine-renovation"; case "location": + case "renovation-circulaire": case "verhuur": - return "location"; + return "location-renovation-circulaire"; } } diff --git a/resources/css/editor-content/color-taxonomy-scheme.css b/resources/css/editor-content/color-taxonomy-scheme.css index ce0542d..f8446fc 100644 --- a/resources/css/editor-content/color-taxonomy-scheme.css +++ b/resources/css/editor-content/color-taxonomy-scheme.css @@ -1,7 +1,14 @@ -.entry-content--acoustique-coproprietes, -body.acoustique-coproprietes, -.post-conseil-page--acoustique-coproprietes, -.post-question-page--acoustique-coproprietes { +/* ------------------------------------------------- + BLUE SCHEME — PETITES COPROPRIÉTÉS & ACOUSTIQUE +---------------------------------------------------*/ +body.petites-coproprietes, +.entry-content--petites-coproprietes, +.post-conseil-page--petites-coproprietes, +.post-question-page--petites-coproprietes, +body.acoustique, +.entry-content--acoustique, +.post-conseil-page--acoustique, +.post-question-page--acoustique { h2, h3, h4, @@ -11,12 +18,6 @@ body.acoustique-coproprietes, @apply text-acoustique-coproprietes; } - .homegrade-blocks-highlight, - .homegrade-blocks-chapter-header-block, - .post-conseils-chapter-header { - @apply bg-acoustique-coproprietes-light; - } - .chapter_index__position-indicator, .homegrade-blocks-focus-point-bullet, .homegrade-blocks-focused-schema ol li:before, @@ -24,17 +25,57 @@ body.acoustique-coproprietes, ul li:before { @apply bg-acoustique-coproprietes; } + .homegrade-blocks-highlight { + @apply bg-acoustique-coproprietes-light; + } .tooltip-word { @apply !decoration-acoustique-coproprietes; } .homegrade-blocks-aside { @apply border-acoustique-coproprietes; } + .post-conseils-chapter-header { + &__infos { + p { + @apply text-acoustique-coproprietes; + } + } + time { + @apply text-acoustique-coproprietes; + } + } } -.entry-content--energies-urbanisme, -body.energies-urbanisme, -.post-conseil-page--energies-urbanisme, -.post-question-page--energies-urbanisme { + +/* PETITES COPROPRIÉTÉS — SPECIFIC */ +body.petites-coproprietes, +.entry-content--petites-coproprietes, +.post-conseil-page--petites-coproprietes, +.post-question-page--petites-coproprietes { + .post-conseils-chapter-header { + background: var(--wp--preset--gradient--gradient-blue); + } +} +/* ACOUSTIQUE — SPECIFIC */ +body.acoustique, +.entry-content--acoustique, +.post-conseil-page--acoustique, +.post-question-page--acoustique { + .post-conseils-chapter-header { + @apply bg-acoustique-coproprietes-light; + } +} + +/* ----------------------------------- + GREEN SCHEME — ÉNERGIES & URBANISME +-------------------------------------*/ +body.urbanisme, +.entry-content--urbanisme, +.post-conseil-page--urbanisme, +.post-question-page--urbanisme, +body.energies, +.entry-content--energies, +.post-conseil-page--energies, +.post-question-page--energies { h2, h3, h4, @@ -45,7 +86,6 @@ body.energies-urbanisme, @apply text-energies-urbanisme; } .homegrade-blocks-highlight, - .homegrade-blocks-chapter-header-block, .post-conseils-chapter-header { @apply bg-energies-urbanisme-light; } @@ -62,11 +102,48 @@ body.energies-urbanisme, .homegrade-blocks-aside { @apply border-energies-urbanisme; } + .post-conseils-chapter-header { + &__infos { + p { + @apply text-energies-urbanisme; + } + } + time { + @apply text-energies-urbanisme; + } + } } -.entry-content--isolation-quotidien, -body.isolation-quotidien, -.post-conseil-page--isolation-quotidien, -.post-question-page--isolation-quotidien { + +/* URBANISME — SPECIFIC */ +body.urbanisme, +.entry-content--urbanisme, +.post-conseil-page--urbanisme, +.post-question-page--urbanisme { + .post-conseils-chapter-header { + background: var(--wp--preset--gradient--gradient-green); + } +} +/* ENERGIES — SPECIFIC */ +body.energies, +.entry-content--energies, +.post-conseil-page--energies, +.post-question-page--energies { + .post-conseils-chapter-header { + @apply bg-energies-urbanisme-light; + } +} + +/* ---------------------------------------- + YELLOW SCHEME — ISOLATION & AU QUOTIDIEN +------------------------------------------*/ +body.au-quotidien, +.entry-content--au-quotidien, +.post-conseil-page--au-quotidien, +.post-question-page--au-quotidien, +body.isolation, +.entry-content--isolation, +.post-conseil-page--isolation, +.post-question-page--isolation { h2, h3, h4, @@ -76,9 +153,7 @@ body.isolation-quotidien, ul li::marker { @apply text-isolation-quotidien; } - .homegrade-blocks-highlight, - .homegrade-blocks-chapter-header-block, - .post-conseils-chapter-header { + .homegrade-blocks-highlight { @apply bg-isolation-quotidien-light; } .chapter_index__position-indicator, @@ -94,11 +169,46 @@ body.isolation-quotidien, .homegrade-blocks-aside { @apply border-isolation-quotidien; } + .post-conseils-chapter-header { + &__infos { + p { + @apply text-isolation-quotidien; + } + } + time { + @apply text-isolation-quotidien; + } + } } -.entry-content--patrimoine-renovation, -body.patrimoine-renovation, -.post-conseil-page--patrimoine-renovation, -.post-question-page--patrimoine-renovation { + +/* AU QUOTIDIEN — SPECIFIC */ +body.au-quotidien, +.entry-content--au-quotidien, +.post-conseil-page--au-quotidien, +.post-question-page--au-quotidien { + .post-conseils-chapter-header { + background: var(--wp--preset--gradient--gradient-yellow); + } +} +/* ISOLATION — SPECIFIC */ + +body.isolation, +.entry-content--isolation, +.post-conseil-page--isolation, +.post-question-page--isolation { + .post-conseils-chapter-header { + @apply bg-isolation-quotidien-light; + } +} + +/* ---------------------------------------- + PURPLE SCHEME — PATRIMOINE +------------------------------------------*/ + +body.patrimoine, +.entry-content--patrimoine, +.post-conseil-page--patrimoine, +.post-question-page--patrimoine { h2, h3, h4, @@ -108,9 +218,7 @@ body.patrimoine-renovation, ul li::marker { @apply text-patrimoine-renovation; } - .homegrade-blocks-highlight, - .homegrade-blocks-chapter-header-block, - .post-conseils-chapter-header { + .homegrade-blocks-highlight { @apply bg-patrimoine-renovation-light; } .chapter_index__position-indicator, @@ -126,11 +234,46 @@ body.patrimoine-renovation, .homegrade-blocks-aside { @apply border-patrimoine-renovation; } + .post-conseils-chapter-header { + &__infos { + p { + @apply text-patrimoine-renovation; + } + } + time { + @apply text-patrimoine-renovation; + } + } } -.entry-content--location, + +body.renovation, +.entry-content--newpurplethematic, +.post-conseil-page--newpurplethematic, +.post-question-page--newpurplethematic { + .post-conseils-chapter-header { + background: var(--wp--preset--gradient--gradient-purple); + } +} +body.patrimoine, +.entry-content--patrimoine, +.post-conseil-page--patrimoine, +.post-question-page--patrimoine { + .post-conseils-chapter-header { + @apply bg-patrimoine-renovation-light; + } +} + +/* ---------------------------------------- + RED SCHEME — LOCATION +------------------------------------------*/ body.location, +.entry-content--location, .post-conseil-page--location, -.post-question-page--location { +.post-question-page--location, +body.renovation-circulaire, +.entry-content--renovation-circulaire, +.post-conseil-page--renovation-circulaire, +.post-question-page--renovation-circulaire { h2, h3, h4, @@ -138,24 +281,77 @@ body.location, h6, ol li::marker, ul li::marker { - @apply text-location; + @apply text-location-renovation-circulaire; } - .homegrade-blocks-highlight, - .homegrade-blocks-chapter-header-block, - .post-conseils-chapter-header { - @apply bg-location-light; + .homegrade-blocks-highlight { + @apply bg-location-renovation-circulaire-light; } .chapter_index__position-indicator, .homegrade-blocks-focus-point-bullet, .homegrade-blocks-focused-schema ol li:before, ul li:before, .wp-block-button__link { - @apply bg-location; + @apply bg-location-renovation-circulaire; } .tooltip-word { - @apply !decoration-location; + @apply !decoration-location-renovation-circulaire; } .homegrade-blocks-aside { - @apply border-location; + @apply border-location-renovation-circulaire; + } + .post-conseils-chapter-header { + &__infos { + p { + @apply text-location-renovation-circulaire; + } + } + time { + @apply text-location-renovation-circulaire; + } + } +} + +/* RENOVATION CIRCULAIRE — SPECIFIC */ +body.renovation-circulaire, +.entry-content--renovation-circulaire, +.post-conseil-page--renovation-circulaire, +.post-question-page--renovation-circulaire { + .post-conseils-chapter-header { + background: var(--wp--preset--gradient--gradient-red); + } +} + +/* LOCATION — SPECIFIC */ +body.location, +.entry-content--location, +.post-conseil-page--location, +.post-question-page--location { + .post-conseils-chapter-header { + @apply bg-location-renovation-circulaire-light; + } +} + +/* WHITE TEXT ON GRADIENTS COVER */ +body.petites-coproprietes, +.entry-content--petites-coproprietes, +.post-conseil-page--petites-coproprietes, +.post-question-page--petites-coproprietes, +body.urbanisme, +.entry-content--urbanisme, +.post-conseil-page--urbanisme, +.post-question-page--urbanisme, +body.au-quotidien, +.entry-content--au-quotidien, +.post-conseil-page--au-quotidien, +.post-question-page--au-quotidien, +body.renovation-circulaire, +.entry-content--renovation-circulaire, +.post-conseil-page--renovation-circulaire, +.post-question-page--renovation-circulaire { + .post-conseils-chapter-header { + p, + h1 { + @apply text-white; + } } } diff --git a/single-conseils.php b/single-conseils.php index be97a45..373881f 100644 --- a/single-conseils.php +++ b/single-conseils.php @@ -20,7 +20,6 @@ function build_chapter_index($blocks) ]); } } - write_log($chapterBlockIndex); return $chapterBlockIndex; } ?> @@ -31,7 +30,8 @@ function build_chapter_index($blocks) slug); + // $thematiqueColorSlug = getThematiqueFamilySlug($thematiqueParent->slug); + $thematiqueColorSlug = $thematiqueParent->slug; ?>
""> "> - -
- -
-
diff --git a/tailwind.config.js b/tailwind.config.js index 9d00474..a28a9eb 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -30,10 +30,10 @@ module.exports = { 'text-patrimoine-renovation', 'bg-patrimoine-renovation-light', 'text-patrimoine-renovation-light', - 'bg-location', - 'text-location', - 'bg-location-light', - 'text-location-light', + 'bg-location-renovation-circulaire', + 'text-location-renovation-circulaire', + 'bg-location-renovation-circulaire-light', + 'text-location-renovation-circulaire-light', 'hover:bg-primary', 'hover:text-primary', 'hover:bg-secondary', @@ -68,28 +68,15 @@ module.exports = { }, }, extend: { - colors: tailpress.colorMapper( - tailpress.theme('settings.color.palette', theme) - ), - fontSize: tailpress.fontSizeMapper( - tailpress.theme( - 'settings.typography.fontSizes', - theme - ) - ), + colors: tailpress.colorMapper(tailpress.theme('settings.color.palette', theme)), + fontSize: tailpress.fontSizeMapper(tailpress.theme('settings.typography.fontSizes', theme)), }, screens: { xs: '480px', sm: '600px', md: '782px', - lg: tailpress.theme( - 'settings.layout.contentSize', - theme - ), - xl: tailpress.theme( - 'settings.layout.wideSize', - theme - ), + lg: tailpress.theme('settings.layout.contentSize', theme), + xl: tailpress.theme('settings.layout.wideSize', theme), '2xl': '1440px', }, }, diff --git a/template-archive-conseils.php b/template-archive-conseils.php index 0fba88a..9a12af8 100644 --- a/template-archive-conseils.php +++ b/template-archive-conseils.php @@ -14,7 +14,7 @@ $thematiquesTerms = get_terms(array( -
+

    diff --git a/template-components/post-conseils/chapter-header.css b/template-components/post-conseils/chapter-header.css index 4eba4f0..8d500ce 100644 --- a/template-components/post-conseils/chapter-header.css +++ b/template-components/post-conseils/chapter-header.css @@ -25,5 +25,12 @@ .cta { @apply my-8; } + time { + @apply bg-white block py-2 mt-6 px-6 w-fit rounded-3xl; + } } + + /* .post-conseil-page--acoustique & { + @apply !bg-pink-500; + } */ } diff --git a/template-components/post-conseils/chapter-header.php b/template-components/post-conseils/chapter-header.php index f9767c5..1563909 100644 --- a/template-components/post-conseils/chapter-header.php +++ b/template-components/post-conseils/chapter-header.php @@ -32,9 +32,9 @@ $relatedBrochure = get_field('brochure_pdf', $relatedBrochuresPosts[0]->ID) ?? n
    parent == 0) : ?> -

    slug) ?>">

    +

    -

    slug) ?>">name ?>

    +

    name ?>

    @@ -44,7 +44,7 @@ $relatedBrochure = get_field('brochure_pdf', $relatedBrochuresPosts[0]->ID) ?? n Télécharger la brochure post_title ?> - + diff --git a/theme.json b/theme.json index 7ad6ea0..b308fce 100644 --- a/theme.json +++ b/theme.json @@ -82,17 +82,44 @@ { "name": "Patrimoine / Rénovation | Light", "slug": "patrimoine-renovation-light", - "color": "#FFE5FD" + "color": "#F8F2FF" }, { "name": "Location / Rénovation Circulaire", - "slug": "location", + "slug": "location-renovation-circulaire", "color": "#DF002B" }, { "name": "Location | Light", - "slug": "location-light", - "color": "#FEE2E7" + "slug": "location-renovation-circulaire-light", + "color": "#FEF5F6" + } + ], + "gradients": [ + { + "slug": "gradient-blue", + "gradient": "linear-gradient(160deg, #3C75FF, #0BB1FF)", + "name": "Blue Gradient" + }, + { + "slug": "gradient-green", + "gradient": "linear-gradient(160deg, #008050, #09D17B)", + "name": "Green Gradient" + }, + { + "slug": "gradient-red", + "gradient": "linear-gradient(160deg, #F40634, #FF928B)", + "name": "Red Gradient" + }, + { + "slug": "gradient-yellow", + "gradient": "linear-gradient(160deg, #D44A00, #FE9000)", + "name": "Yellow Gradient" + }, + { + "slug": "gradient-purple", + "gradient": "linear-gradient(160deg, #8B2FF7, #EB79FF)", + "name": "Purple Gradient" } ] },