diff --git a/css/app.css b/css/app.css index f26395c..08d9180 100644 --- a/css/app.css +++ b/css/app.css @@ -715,11 +715,6 @@ video { background-color: rgb(47 1 84 / var(--tw-bg-opacity)); } -.bg-white { - --tw-bg-opacity: 1; - background-color: rgb(255 255 255 / var(--tw-bg-opacity)); -} - .bg-secondary { --tw-bg-opacity: 1; background-color: rgb(223 30 30 / var(--tw-bg-opacity)); @@ -1141,13 +1136,20 @@ body:not(.wp-admin) { font-weight: 400; } +body { + --tw-bg-opacity: 1; + background-color: rgb(255 255 255 / var(--tw-bg-opacity)); + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + a:focus, button:focus { outline: red solid 1px; outline-width: 1px; outline-offset: 8px; outline-radius: 50px; - border-radius: 10px; + /* border-radius: 10px; */ } .filter-acoustique-coproprietes { @@ -1826,6 +1828,38 @@ header#main-header { } } +.skiplinks { + --tw-bg-opacity: 1; + background-color: rgb(47 1 84 / var(--tw-bg-opacity)); + padding-left: 2rem; +} + +.skiplinks__link { + transition: margin 0.25s ease-in-out; + display: block; + max-height: 0px; + width: -webkit-fit-content; + width: -moz-fit-content; + width: fit-content; + overflow: hidden; + border-radius: 0.375rem; + --tw-border-opacity: 1; + border-color: rgb(255 255 255 / var(--tw-border-opacity)); + padding-left: 1rem; + padding-right: 1rem; + --tw-text-opacity: 1; + color: rgb(255 255 255 / var(--tw-text-opacity)); +} + +.skiplinks__link:focus { + margin-top: 1rem; + margin-bottom: 1rem; + max-height: 3rem; + border-width: 1px; + padding-top: 0.5rem; + padding-bottom: 0.5rem; +} + .sub-menu { z-index: 10; } @@ -1867,18 +1901,30 @@ header#main-header { } .site-footer__infos-contact { - grid-column: span 1 / span 1; + grid-column: span 4 / span 4; display: grid; gap: 1.5rem; } +@media (min-width: 960px) { + .site-footer__infos-contact { + grid-column: span 1 / span 1; + } +} + .site-footer__infos-contact .external-link { margin-top: 0.25rem; padding-top: 0.5rem; } .site-footer__navigation-menu { - grid-column: span 3 / span 3; + grid-column: span 4 / span 4; +} + +@media (min-width: 960px) { + .site-footer__navigation-menu { + grid-column: span 3 / span 3; + } } .site-footer__navigation-menu .footer-menu-renovateur { @@ -1908,15 +1954,28 @@ header#main-header { } .site-footer__partenaires { - grid-column: span 2 / span 2; + grid-column: span 4 / span 4; display: flex; + flex-wrap: wrap; align-items: center; justify-content: center; gap: 3rem; } +@media (min-width: 782px) { + .site-footer__partenaires { + grid-column: span 2 / span 2; + } +} + .site-footer__metiers-patrimoine { - grid-column: span 2 / span 2; + grid-column: span 4 / span 4; +} + +@media (min-width: 782px) { + .site-footer__metiers-patrimoine { + grid-column: span 2 / span 2; + } } article > *:not(.entry-content), @@ -1978,13 +2037,27 @@ article > *:not(.entry-content), justify-content: space-between; padding-top: 2rem; padding-bottom: 2rem; - padding-left: 4rem; - padding-right: 4rem; + padding-left: 1rem; + padding-right: 1rem; --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } +@media (min-width: 600px) { + .menu-renovateur { + padding-left: 2rem; + padding-right: 2rem; + } +} + +@media (min-width: 782px) { + .menu-renovateur { + padding-left: 4rem; + padding-right: 4rem; + } +} + .menu-renovateur .website_logo { order: 1; margin-right: 3rem; @@ -2004,8 +2077,6 @@ article > *:not(.entry-content), .menu-renovateur__navlist { position: relative; justify-content: center; - --tw-bg-opacity: 1; - background-color: rgb(240 171 252 / var(--tw-bg-opacity)); } @media (min-width: 960px) { @@ -2278,7 +2349,19 @@ article > *:not(.entry-content), .menu-renovateur--footer { display: grid; - grid-template-columns: repeat(4, minmax(0, 1fr)); + row-gap: 1rem; +} + +@media (min-width: 600px) { + .menu-renovateur--footer { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } +} + +@media (min-width: 960px) { + .menu-renovateur--footer { + grid-template-columns: repeat(4, minmax(0, 1fr)); + } } .menu-renovateur--footer li .page_icon { @@ -2389,7 +2472,7 @@ article > *:not(.entry-content), display: block; } -.menu-homegrade li .sub-menu { +.menu-homegrade .sub-menu { position: static; margin-left: auto; margin-right: auto; @@ -2399,34 +2482,38 @@ article > *:not(.entry-content), } @media (min-width: 960px) { - .menu-homegrade li .sub-menu { + .menu-homegrade .sub-menu { position: absolute; margin-left: 0px; margin-right: 0px; } } -.menu-homegrade li .sub-menu { +.menu-homegrade .sub-menu { z-index: 999; display: none; } -/* &.sub-menu--open { - display: block; - } */ +.menu-homegrade .sub-menu--closed { + display: none; +} -.menu-homegrade li .sub-menu li { +.menu-homegrade .sub-menu--open { + display: block; +} + +.menu-homegrade .sub-menu li { padding-top: 0.5rem; padding-bottom: 0.5rem; } @media (min-width: 960px) { - .menu-homegrade li .sub-menu li { + .menu-homegrade .sub-menu li { text-align: left; } } -.menu-homegrade li .sub-menu > a::after { +.menu-homegrade .sub-menu > a::after { transform: translateY(-2px) rotate(-90deg); content: ''; display: inline-block; @@ -2619,10 +2706,21 @@ article > *:not(.entry-content), .menu-homegrade--footer { margin-top: 2rem; display: grid; - grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 2rem; } +@media (min-width: 600px) { + .menu-homegrade--footer { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } +} + +@media (min-width: 782px) { + .menu-homegrade--footer { + grid-template-columns: repeat(4, minmax(0, 1fr)); + } +} + .menu-homegrade--footer li.menu-item a:hover { --tw-text-opacity: 1; color: rgb(223 30 30 / var(--tw-text-opacity)); @@ -2711,9 +2809,19 @@ article > *:not(.entry-content), .home-header__title { padding-bottom: 1.5rem; padding-top: 4rem; - font-size: 2.25rem; - line-height: 2.5rem; + font-size: 1.875rem; + line-height: 2.25rem; font-weight: 500; +} + +@media (min-width: 782px) { + .home-header__title { + font-size: 2.25rem; + line-height: 2.5rem; + } +} + +.home-header__title { line-height: 1.2; } @@ -2811,7 +2919,7 @@ article > *:not(.entry-content), margin-right: auto; display: grid; max-width: 1440px; - grid-template-columns: repeat(4, minmax(0, 1fr)); + grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 2rem; padding-left: 2rem; padding-right: 2rem; @@ -2819,6 +2927,18 @@ article > *:not(.entry-content), padding-bottom: 4rem; } +@media (min-width: 600px) { + .section_latest_news .articles_container { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } +} + +@media (min-width: 1280px) { + .section_latest_news .articles_container { + grid-template-columns: repeat(4, minmax(0, 1fr)); + } +} + #block-aides-financieres .section_titling { max-width: 782px; } @@ -3042,7 +3162,19 @@ article > *:not(.entry-content), } #block-demarches-administratives .card-large-content__links-container { - grid-template-columns: repeat(4, minmax(0, 1fr)); + grid-template-columns: repeat(1, minmax(0, 1fr)); +} + +@media (min-width: 782px) { + #block-demarches-administratives .card-large-content__links-container { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } +} + +@media (min-width: 960px) { + #block-demarches-administratives .card-large-content__links-container { + grid-template-columns: repeat(4, minmax(0, 1fr)); + } } #block-questions-frequentes { @@ -3055,12 +3187,23 @@ article > *:not(.entry-content), margin-right: auto; display: grid; max-width: 1280px; - grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; -moz-column-gap: 2rem; column-gap: 2rem; } +@media (min-width: 782px) { + .questions-frequentes-grid { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } +} + +@media (min-width: 960px) { + .questions-frequentes-grid { + grid-template-columns: repeat(3, minmax(0, 1fr)); + } +} + /* ########### PAGE ############ */ .demo-components .title { diff --git a/css/editor-style.css b/css/editor-style.css index 96e4f5c..1452ff0 100644 --- a/css/editor-style.css +++ b/css/editor-style.css @@ -162,11 +162,6 @@ background-color: rgb(47 1 84 / var(--tw-bg-opacity)) } -.bg-white { - --tw-bg-opacity: 1; - background-color: rgb(255 255 255 / var(--tw-bg-opacity)) -} - .bg-secondary { --tw-bg-opacity: 1; background-color: rgb(223 30 30 / var(--tw-bg-opacity)) diff --git a/header.php b/header.php index 906df8b..8073204 100644 --- a/header.php +++ b/header.php @@ -9,8 +9,7 @@ -
> - + post_name ?>" class="min-h-screen flex flex-col"> + +'; +// echo ''; ?> diff --git a/template-blocks/home/home-header/home-header.css b/template-blocks/home/home-header/home-header.css index af6a58a..4936d9c 100755 --- a/template-blocks/home/home-header/home-header.css +++ b/template-blocks/home/home-header/home-header.css @@ -18,7 +18,7 @@ lg:mb-0; } &__title { - @apply text-4xl font-medium pb-6 pt-16; + @apply text-3xl md:text-4xl font-medium pb-6 pt-16; line-height: 1.2; } diff --git a/template-blocks/home/latest-news/latest-news.css b/template-blocks/home/latest-news/latest-news.css index eec9d82..50912eb 100644 --- a/template-blocks/home/latest-news/latest-news.css +++ b/template-blocks/home/latest-news/latest-news.css @@ -5,7 +5,9 @@ } .articles_container { @apply grid - grid-cols-4 + grid-cols-1 + sm:grid-cols-2 + xl:grid-cols-4 max-w-screen-2xl px-8 py-16 diff --git a/template-blocks/home/questions-frequentes/questions-frequentes.css b/template-blocks/home/questions-frequentes/questions-frequentes.css index d6c9cc3..5001830 100644 --- a/template-blocks/home/questions-frequentes/questions-frequentes.css +++ b/template-blocks/home/questions-frequentes/questions-frequentes.css @@ -3,5 +3,5 @@ } .questions-frequentes-grid { - @apply grid grid-cols-3 gap-8 gap-x-8 max-w-screen-xl mx-auto; + @apply grid md:grid-cols-2 lg:grid-cols-3 gap-8 gap-x-8 max-w-screen-xl mx-auto; } diff --git a/template-components/header/menu-renovateur.php b/template-components/header/menu-renovateur.php index ac042ae..25ce600 100644 --- a/template-components/header/menu-renovateur.php +++ b/template-components/header/menu-renovateur.php @@ -3,8 +3,11 @@ $menu_name = 'renovateur'; $locations = get_nav_menu_locations(); $menu = wp_get_nav_menu_object($locations[$menu_name]); $menuitems = wp_get_nav_menu_items($menu->term_id, array('order' => 'DESC')); +$logoID = get_theme_mod('custom_logo'); +$logoSRC = wp_get_attachment_image_src($logoID, 'full'); + // echo ''; // print_r($demarches_administratives_links); -echo ''; +// echo '
'; -// print_r($menuitems); +// print_r($image); // echo ''; ?> @@ -13,26 +16,23 @@ $menuitems = wp_get_nav_menu_items($menu->term_id, array('order' => 'DESC'));