2 Commits

Author SHA1 Message Date
c53e9461dd responsive /lesprojets 2025-12-01 10:47:35 +01:00
8a8ecbb3e4 responsive node ressource 2025-12-01 10:43:44 +01:00
4 changed files with 99 additions and 8 deletions

View File

@@ -18,18 +18,19 @@
@media (max-width: 810px) { @media (max-width: 810px) {
#sites-map-container { #sites-map-container {
width: 80%; width: 80%;
} }
} }
@media (max-width: 530px) { @media (max-width: 530px) {
#sites-map-container { #sites-map-container {
width: 100%; width: 100%;
height: 485px; height:396px;
} }
} }
@media (max-width: 400px) { @media (max-width: 400px) {
#sites-map-container { #sites-map-container {
width: 100%; width: 100%;
height: 430px;
} }
} }
#sites-map-container .site-link:hover { #sites-map-container .site-link:hover {

View File

@@ -4729,6 +4729,11 @@ body {
width: 100%; width: 100%;
} }
} }
@media (max-width: 810px) {
.node-type-ressource .layout--threecol-25-50-25 .layout__region--first {
order: 2;
}
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--first .block-region-first #sites-map-container { .node-type-ressource .layout--threecol-25-50-25 .layout__region--first .block-region-first #sites-map-container {
width: 100% !important; width: 100% !important;
padding-left: 1rem; padding-left: 1rem;
@@ -4742,6 +4747,11 @@ body {
.node-type-ressource .layout--threecol-25-50-25 .layout__region--first .block-region-first #sites-map-container h2::after { .node-type-ressource .layout--threecol-25-50-25 .layout__region--first .block-region-first #sites-map-container h2::after {
content: " :"; content: " :";
} }
@media (max-width: 810px) {
.node-type-ressource .layout--threecol-25-50-25 .layout__region--first .block-region-first #sites-map-container h2 {
font-size: 1rem;
}
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--first .block-region-first .field_field_link div { .node-type-ressource .layout--threecol-25-50-25 .layout__region--first .block-region-first .field_field_link div {
display: flex; display: flex;
justify-content: center; justify-content: center;
@@ -4759,6 +4769,11 @@ body {
padding-top: 0.2rem; padding-top: 0.2rem;
padding-left: 0.2rem; padding-left: 0.2rem;
} }
@media (max-width: 810px) {
.node-type-ressource .layout--threecol-25-50-25 .layout__region--first .block-region-first .field_field_link a {
font-size: 1rem;
}
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--first .block-region-first .field_field_link a::before { .node-type-ressource .layout--threecol-25-50-25 .layout__region--first .block-region-first .field_field_link a::before {
display: inline-flex; display: inline-flex;
content: url("../img/noun-arrow-to-left.svg"); content: url("../img/noun-arrow-to-left.svg");
@@ -4772,6 +4787,13 @@ body {
margin-top: 3rem; margin-top: 3rem;
margin-right: 2rem; margin-right: 2rem;
} }
@media (max-width: 810px) {
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second {
order: 1;
margin-top: 3rem;
margin-right: 0;
}
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second { .node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -4779,10 +4801,11 @@ body {
margin-left: 2rem; margin-left: 2rem;
margin-right: 3rem; margin-right: 3rem;
} }
@media (max-width: 500px) { @media (max-width: 810px) {
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second { .node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second {
margin-left: 0.5rem; margin-left: 0rem;
margin-top: 1rem; margin-top: 0rem;
margin-right: 0rem;
} }
} }
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second .field_title, .node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second .field_title,
@@ -4931,11 +4954,22 @@ body {
flex-direction: column !important; flex-direction: column !important;
} }
} }
@media (max-width: 810px) {
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_images) .diaporama .images {
margin: auto;
}
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_images) .diaporama .images img { .node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_images) .diaporama .images img {
object-fit: cover; object-fit: cover;
width: 220px !important; width: 220px !important;
height: 145px; height: 145px;
} }
@media (max-width: 810px) {
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_images) .diaporama .images img {
width: 100% !important;
height: auto;
}
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_images) .diaporama .image-field-caption { .node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_images) .diaporama .image-field-caption {
margin: 0; margin: 0;
} }
@@ -4944,6 +4978,11 @@ body {
font-size: 0.5rem; font-size: 0.5rem;
font-family: "gilroy-light"; font-family: "gilroy-light";
} }
@media (max-width: 810px) {
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_images) .diaporama .image-field-caption p {
font-size: 1rem;
}
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field--name-field-documents) { .node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field--name-field-documents) {
order: 5; order: 5;
margin-top: 0.5rem; margin-top: 0.5rem;
@@ -5151,6 +5190,11 @@ main {
position: relative; position: relative;
transition: transform 0.4s ease-in-out; transition: transform 0.4s ease-in-out;
} }
@media (max-width: 810px) {
#lesprojets .content_container .views-element-container .views-row .views-field-group {
font-size: 1rem;
}
}
#lesprojets .content_container .views-element-container .views-row .views-field-group:hover { #lesprojets .content_container .views-element-container .views-row .views-field-group:hover {
transform: scale(1.05); transform: scale(1.05);
} }
@@ -5339,6 +5383,11 @@ main {
margin-top: 0.3rem; margin-top: 0.3rem;
font-family: "gilroy-bold"; font-family: "gilroy-bold";
} }
@media (max-width: 810px) {
#lesprojets .content_container .views-element-container .views-row .views-field-field-projets-lie .field-content ul li .node-type-projet .node-projet-title {
font-size: 1rem;
}
}
#lesprojets .content_container .views-element-container .views-row .views-field-field-projets-lie .field-content ul li .node-type-projet .field_field_nom_de_l_equipe { #lesprojets .content_container .views-element-container .views-row .views-field-field-projets-lie .field-content ul li .node-type-projet .field_field_nom_de_l_equipe {
order: 4; order: 4;
} }
@@ -5347,6 +5396,11 @@ main {
margin: 0; margin: 0;
text-transform: uppercase; text-transform: uppercase;
} }
@media (max-width: 810px) {
#lesprojets .content_container .views-element-container .views-row .views-field-field-projets-lie .field-content ul li .node-type-projet .field_field_nom_de_l_equipe h3 {
font-size: 0.8rem;
}
}
#lesprojets .content_container .views-element-container .views-row .views-field-field-projets-lie .field-content ul li .node-type-projet .field_field_intro { #lesprojets .content_container .views-element-container .views-row .views-field-field-projets-lie .field-content ul li .node-type-projet .field_field_intro {
order: 5; order: 5;
display: none; display: none;

View File

@@ -59,6 +59,9 @@ main{
margin-bottom: 2rem; margin-bottom: 2rem;
font-size: 0.4rem; font-size: 0.4rem;
position: relative; position: relative;
@media(max-width: 810px){
font-size: 1rem;
}
transition: transform 0.4s ease-in-out; transition: transform 0.4s ease-in-out;
&:hover { &:hover {
transform: scale(1.05); transform: scale(1.05);
@@ -220,6 +223,9 @@ main{
margin-bottom: 0.3rem; margin-bottom: 0.3rem;
margin-top: 0.3rem; margin-top: 0.3rem;
font-family: "gilroy-bold"; font-family: "gilroy-bold";
@media(max-width: 810px){
font-size: 1rem;
}
} }
.field_field_nom_de_l_equipe{ .field_field_nom_de_l_equipe{
order: 4; order: 4;
@@ -227,6 +233,9 @@ main{
font-size: 0.5rem; font-size: 0.5rem;
margin: 0; margin: 0;
text-transform: uppercase; text-transform: uppercase;
@media(max-width: 810px){
font-size: 0.8rem;
}
} }
} }
.field_field_intro{ .field_field_intro{

View File

@@ -13,8 +13,12 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
} }
.layout__region--first{ .layout__region--first{
@media(max-width: 810px){
order:2
}
.block-region-first{ .block-region-first{
#sites-map-container{ #sites-map-container{
width: 100% !important; width: 100% !important;
@@ -27,6 +31,9 @@
&::after{ &::after{
content: " :"; content: " :";
} }
@media(max-width: 810px){
font-size: 1rem;
}
} }
} }
@@ -47,6 +54,9 @@
padding-bottom: 0.2rem; padding-bottom: 0.2rem;
padding-top: 0.2rem; padding-top: 0.2rem;
padding-left: 0.2rem; padding-left: 0.2rem;
@media(max-width: 810px){
font-size: 1rem;
}
// svg{ // svg{
// display: none; // display: none;
@@ -71,15 +81,21 @@
margin-top: 3rem; margin-top: 3rem;
margin-right: 2rem; margin-right: 2rem;
// width: 60%; // width: 60%;
@media(max-width: 810px){
order:1;
margin-top: 3rem;
margin-right: 0;
}
.block-region-second{ .block-region-second{
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex-wrap: wrap; flex-wrap: wrap;
margin-left: 2rem; margin-left: 2rem;
margin-right: 3rem; margin-right: 3rem;
@media(max-width: 500px){ @media(max-width: 810px){
margin-left: 0.5rem; margin-left: 00rem;
margin-top: 1rem; margin-top: 0rem;
margin-right: 0rem;
} }
.field_title, .field_title,
.field_field_sous_titre{ .field_field_sous_titre{
@@ -219,6 +235,7 @@
div:has(.field_field_images){ div:has(.field_field_images){
order: 10; order: 10;
width: 100%; width: 100%;
.diaporama{ .diaporama{
display: flex !important; display: flex !important;
flex-direction: row !important; flex-direction: row !important;
@@ -231,10 +248,17 @@
} }
.images{ .images{
// margin: auto; // margin: auto;
@media (max-width:810px){
margin: auto;
}
img{ img{
object-fit: cover; object-fit: cover;
width: 220px !important; width: 220px !important;
height: 145px; height: 145px;
@media (max-width:810px){
width: 100% !important;
height: auto;
}
} }
} }
.image-field-caption{ .image-field-caption{
@@ -244,6 +268,9 @@
margin-top: 0; margin-top: 0;
font-size: 0.5rem; font-size: 0.5rem;
font-family: 'gilroy-light'; font-family: 'gilroy-light';
@media (max-width:810px){
font-size: 1rem;
}
} }
} }
} }