This commit is contained in:
2024-02-26 16:21:45 +01:00
parent 687bf3602e
commit 23cd84ed95
14 changed files with 1348 additions and 340 deletions

View File

@@ -1,8 +1,15 @@
/*quartiers_de_demain*/
/*global*/
/* Colors used for quartiers_de_demain */
.mailto {
text-decoration: underline; }
@media (min-width: 48rem) {
:root {
font-size: calc(1rem + ((1vw - .48rem) * 1.389));
/* .48rem = viewportWidthMinimum /100 */
/* 1.389rem = 100 * fontSizeDifference / viewportWidthDifference */ } }
@media (min-width: 120em) {
:root {
font-size: 2rem; } }
/*marianne*/
@font-face {
@@ -101,46 +108,6 @@
.layout-container footer {
flex: 0 0 100%; }
.layout-content {
order: 2;
padding-top: 3rem;
padding-bottom: 6rem;
width: 70%;
margin: auto; }
@media (max-width: 891px) {
.layout-content {
width: 90%; } }
@media (max-width: 500px) {
.layout-content {
padding-top: 0; } }
aside {
width: 20%;
order: 1;
margin-top: 5rem;
margin-left: 10%;
margin-right: 1rem; }
@media (max-width: 891px) {
aside {
margin-left: 5%;
margin-top: 9rem; } }
@media (max-width: 500px) {
aside {
width: 80%;
margin-top: 3rem; } }
main {
width: 100%;
display: flex;
flex-direction: row;
position: relative; }
@media (max-width: 500px) {
main {
flex-direction: column; } }
.main-content {
margin-top: 7rem; }
ul {
list-style-type: none; }
@@ -168,114 +135,60 @@ svg.ext {
/*partials*/
header {
display: grid;
grid-template-rows: "logo logo logo logo logo nav" "nav nav nav nav nav nav" "logo logo nav rs"; }
header #block-quartiers-de-demain-logorepu-2 {
grid-row: logo; }
header #block-quartiers-de-demain-logoepau-2 {
grid-area: logo; }
footer {
grid-template-columns: repeat(12, 1fr);
grid-gap: 10px;
grid-template-rows: repeat(3, 1fr);
height: 150px;
background-color: white;
padding-top: 3rem;
font-family: "Marianne";
font-weight: 800;
font-size: 1.1rem;
text-transform: lowercase; }
footer div {
z-index: 99;
width: 100vw;
max-width: 100vw;
position: -webkit-sticky;
position: sticky;
top: 0;
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px; }
@media (max-width: 800px) {
header {
width: 800px; } }
header .contextual-region {
width: max-content; }
header .header_left_container {
grid-column: 1 /span 11;
grid-row: 1 /span 2;
display: flex;
flex-direction: row; }
@media (max-width: 891px) {
footer div {
flex-wrap: wrap; } }
@media (max-width: 520px) {
footer div {
flex-direction: column; } }
footer h2 {
font-size: 1.1rem; }
footer section:not(:first-of-type) {
border-left: #fdc300 solid 2px;
header .header_left_container #block-quartiers-de-demain-logoepau-2 {
height: 150px; }
header .header_left_container img {
width: 150px;
height: auto; }
header #block-quartiers-de-demain-entete h2 {
display: none; }
header .close-block, header .open-block {
cursor: pointer; }
header .close-block span, header .open-block span {
display: block;
width: 33px;
height: 2px;
position: relative;
background: black;
border-radius: 3px;
z-index: 1; }
header .close-block {
padding-top: 1.2rem;
padding-left: 2rem; }
@media (max-width: 891px) {
footer section:not(:first-of-type) {
margin-left: 1rem;
margin-right: 1rem;
border-left: #fdc300 solid 2px; } }
@media (max-width: 520px) {
footer section:not(:first-of-type) {
margin-left: 1rem;
margin-right: 1rem;
border-left: none;
border-top: #fdc300 solid 2px; } }
footer section:not(:last-of-type) {
padding-right: 5rem; }
@media (max-width: 891px) {
footer section:not(:last-of-type) {
padding-right: 0; } }
@media (max-width: 520px) {
footer section:not(:last-of-type) {
padding-right: 0; } }
footer section:last-of-type {
padding-right: 5rem; }
@media (max-width: 891px) {
footer section:last-of-type {
border-top: #fdc300 solid 2px;
border-left: none; } }
#footer-left {
margin-left: 10%; }
@media (max-width: 891px) {
#footer-left {
margin-left: 1rem;
padding-left: 2rem;
width: 40%; } }
@media (max-width: 520px) {
#footer-left {
width: 100%;
margin-left: 1rem;
padding-left: 2rem; } }
#footer-left div {
display: flex;
flex-direction: column; }
#footer-left div #block-reha-pieddepage ul {
padding-left: 0; }
#footer-left div #block-reha-logoreha-3 {
display: none; }
#footer-left div .social-media-links--platforms {
display: flex;
flex-direction: row; }
#footer-left div .social-media-links--platforms svg.ext {
display: none; }
@media (max-width: 891px) {
#footer-middle {
width: 40%; } }
@media (max-width: 520px) {
#footer-middle {
width: 100%;
margin-right: 1rem; } }
#footer-middle #block-reha-operateurduprogramme {
display: flex;
flex-direction: column; }
#footer-middle #block-reha-operateurduprogramme img {
max-width: 150px;
height: fit-content;
max-height: 100px;
object-fit: contain;
padding: 1rem; }
#footer-right #block-reha-config-pages-2 {
display: flex;
flex-direction: column; }
#footer-right #block-reha-config-pages-2 .field--name-field-partenaires .field__items {
display: flex;
flex-direction: row;
flex-wrap: wrap; }
#footer-right #block-reha-config-pages-2 .field--name-field-partenaires .field__items img {
max-width: 120px;
height: fit-content;
max-height: 115px;
object-fit: contain; }
header .close-block span {
transform-origin: center; }
header .close-block > div > span:first-child {
transform: translateY(57%) rotate(45deg); }
header .close-block > div > span:nth-child(2) {
transform: rotate(-45deg); }
header .open-block {
height: 100%;
display: grid;
align-items: center; }
header .open-block span {
margin-bottom: 5px;
transform-origin: 4px 0px; }
/*pages*/