lightbox diaporama site

This commit is contained in:
2024-10-17 13:06:30 +02:00
parent f60cb1b088
commit ec5fc137d4
10 changed files with 239 additions and 24 deletions

File diff suppressed because one or more lines are too long

View File

@@ -193,7 +193,7 @@ h2 {
}
.layout-container main {
width: 100%;
padding-top: 320px;
padding-top: 280px;
}
@media (max-width: 810px) {
.layout-container main {
@@ -291,7 +291,7 @@ header .header_left_container #block-quartiers-de-demain-logorepu-2 {
}
header .header_left_container #block-quartiers-de-demain-logoepau-2 {
display: none;
height: 320px;
height: 280px;
}
@media (max-width: 891px) {
header .header_left_container #block-quartiers-de-demain-logoepau-2 {
@@ -316,7 +316,7 @@ header .header_left_container #block-quartiers-de-demain-logoquartiersdedemain .
header .header_left_container img {
width: auto;
margin: auto;
height: calc(320px - 5rem);
height: calc(280px - 1rem);
padding: 2rem;
transition: height 0.3s; /* Add transition for smooth resizing */
}
@@ -379,6 +379,7 @@ header .header_right_container .language-switcher-language-url ul .is-active {
header .header_nav_container {
flex: 0 0 0%;
width: 100%;
min-width: fit-content;
background: rgb(7, 50, 194);
text-align: center;
transform: translateX(0);
@@ -398,10 +399,9 @@ header .header_nav_container #block-quartiers-de-demain-entete ul {
flex-direction: column;
align-items: flex-start;
position: relative;
top: 80px;
padding-left: 1rem;
padding-right: 1rem;
margin: 0;
margin-top: 2rem;
}
@media (max-width: 1025px) {
header .header_nav_container #block-quartiers-de-demain-entete ul {
@@ -409,11 +409,6 @@ header .header_nav_container #block-quartiers-de-demain-entete ul {
align-items: center;
}
}
@media (max-width: 1090px) {
header .header_nav_container #block-quartiers-de-demain-entete ul {
top: 16px;
}
}
@media (max-width: 1090px) {
header .header_nav_container #block-quartiers-de-demain-entete ul li {
padding-top: 0.3rem;
@@ -464,7 +459,7 @@ header .header:hover + .header_nav_container {
/* Taille définitive du header après l'animation */
.header--collapsed {
height: 320px; /* Ou la hauteur que vous souhaitez pour votre header */
height: 280px; /* Ou la hauteur que vous souhaitez pour votre header */
width: 35%;
transform-origin: bottom right;
transition: all 1s ease-in-out;
@@ -495,6 +490,7 @@ header .header:hover + .header_nav_container {
.header--collapsed .header_nav_container {
flex: 0 0 30%;
transform-origin: bottom right;
min-width: fit-content;
}
@media (max-width: 810px) {
.header--collapsed .header_nav_container {
@@ -505,7 +501,7 @@ header .header:hover + .header_nav_container {
}
.header--collapsed-already {
height: 320px; /* Ou la hauteur que vous souhaitez pour votre header */
height: 280px; /* Ou la hauteur que vous souhaitez pour votre header */
width: 35%;
transform-origin: bottom right;
transition: all 0s ease-in-out;
@@ -530,6 +526,7 @@ header .header:hover + .header_nav_container {
}
.header--collapsed-already .header_nav_container {
flex: 0 0 30%;
min-width: fit-content;
transform-origin: bottom right;
}
@media (max-width: 810px) {
@@ -1633,6 +1630,64 @@ header #block-quartiers-de-demain-logoquartiersdedemain .field_field_logo .qdd-h
z-index: 0;
}
body {
font-family: Arial, sans-serif;
}
.diaporama {
display: flex;
gap: 10px;
}
.diaporama img {
width: 150px;
cursor: pointer;
}
.lightbox {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
justify-content: center;
align-items: center;
z-index: 999;
}
.lightbox img {
max-width: 90%;
max-height: 80%;
}
.lightbox .close {
position: absolute;
top: 20px;
right: 40px;
font-size: 40px;
color: white;
cursor: pointer;
}
.prev, .next {
position: absolute;
top: 50%;
color: white;
font-size: 30px;
cursor: pointer;
user-select: none;
}
.prev {
left: 10px;
}
.next {
right: 10px;
}
/*pages*/
#home .config_pages--type--diaporama-home {
position: relative;
@@ -2847,6 +2902,7 @@ header #block-quartiers-de-demain-logoquartiersdedemain .field_field_logo .qdd-h
margin-bottom: 3rem;
}
.node-type-site .layout--threecol-25-50-25 .layout__region--first div {
width: fit-content;
margin-bottom: 0.5rem;
}
.node-type-site .layout--threecol-25-50-25 .layout__region--first div #sites-map-container {
@@ -2915,13 +2971,13 @@ header #block-quartiers-de-demain-logoquartiersdedemain .field_field_logo .qdd-h
padding-left: 0.2rem;
}
.node-type-site .layout--threecol-25-50-25 .layout__region--second {
flex: 0 1 80%;
width: 60%;
}
.node-type-site .layout--threecol-25-50-25 .layout__region--second .block-region-second {
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin-left: 2.5rem;
margin-left: 3.5rem;
}
@media (max-width: 500px) {
.node-type-site .layout--threecol-25-50-25 .layout__region--second .block-region-second {
@@ -3000,6 +3056,12 @@ header #block-quartiers-de-demain-logoquartiersdedemain .field_field_logo .qdd-h
font-size: 0.5rem;
color: rgb(7, 50, 194);
}
.node-type-site .layout--threecol-25-50-25 .layout__region--second .block-region-second .field_field_parties {
width: 70%;
}
.node-type-site .layout--threecol-25-50-25 .layout__region--second .block-region-second .field_field_parties div {
width: fit-content;
}
.node-type-site .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_parties) {
margin-top: 2rem;
}