carroussel thumbnial vertical
This commit is contained in:
+24
-25
@@ -5841,12 +5841,14 @@ svg.ext {
|
|||||||
width: 80%;
|
width: 80%;
|
||||||
}
|
}
|
||||||
.page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .carousel {
|
.page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .carousel {
|
||||||
display: block;
|
display: flex;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .carousel .main-image-container {
|
.page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .carousel .main-image-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
flex: 1;
|
||||||
|
max-width: 600px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
@@ -5865,10 +5867,10 @@ svg.ext {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
background: #818181;
|
background: none;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
color: white;
|
color: black;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
content .page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .carousel .main-image-container .arrow.left {
|
content .page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .carousel .main-image-container .arrow.left {
|
||||||
@@ -5882,36 +5884,21 @@ content .page-node-type-ressource .type-les-projets-en-images.layout__region--to
|
|||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
}
|
}
|
||||||
.page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .carousel .thumbnails-wrapper {
|
.page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .carousel .thumbnails-wrapper {
|
||||||
position: relative;
|
|
||||||
max-width: 100%;
|
|
||||||
overflow: hidden;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
max-height: 500px;
|
||||||
}
|
overflow: hidden;
|
||||||
.page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .carousel .thumbnails-wrapper .thumb-arrow {
|
|
||||||
cursor: pointer;
|
|
||||||
padding: 5px 10px;
|
|
||||||
background: #00aaff;
|
|
||||||
color: white;
|
|
||||||
border-radius: 50%;
|
|
||||||
user-select: none;
|
|
||||||
z-index: 2;
|
|
||||||
}
|
|
||||||
.page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .carousel .thumbnails-wrapper .thumb-arrow.left {
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
.page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .carousel .thumbnails-wrapper .thumb-arrow.right {
|
|
||||||
margin-left: 10px;
|
|
||||||
}
|
}
|
||||||
.page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .carousel .thumbnails-wrapper .thumbnails {
|
.page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .carousel .thumbnails-wrapper .thumbnails {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
overflow-x: auto;
|
overflow-y: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
max-width: 100%;
|
max-height: 400px;
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
scrollbar-width: none;
|
|
||||||
}
|
}
|
||||||
.page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .carousel .thumbnails-wrapper .thumbnails::-webkit-scrollbar {
|
.page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .carousel .thumbnails-wrapper .thumbnails::-webkit-scrollbar {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -5926,6 +5913,18 @@ content .page-node-type-ressource .type-les-projets-en-images.layout__region--to
|
|||||||
.page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .carousel .thumbnails-wrapper .thumbnails img.active {
|
.page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .carousel .thumbnails-wrapper .thumbnails img.active {
|
||||||
border-color: #00aaff;
|
border-color: #00aaff;
|
||||||
}
|
}
|
||||||
|
.page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .carousel .thumbnails-wrapper .thumb-arrow {
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 5px;
|
||||||
|
background: #00aaff;
|
||||||
|
color: white;
|
||||||
|
border-radius: 50%;
|
||||||
|
user-select: none;
|
||||||
|
margin: 5px 0;
|
||||||
|
}
|
||||||
|
.page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .carousel .thumbnails-wrapper .thumb-arrow.left, .page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .carousel .thumbnails-wrapper .thumb-arrow.right {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
.page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .field__items {
|
.page-node-type-ressource .type-les-projets-en-images.layout__region--top .block-region-top .block-entity-fieldnodefield-images .field__items {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
order: 7;
|
order: 7;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
.carousel {
|
.carousel {
|
||||||
display: block;
|
display: flex;
|
||||||
// max-width: 60vw;
|
// max-width: 60vw;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -27,6 +27,8 @@
|
|||||||
// background: #e0f5ff;
|
// background: #e0f5ff;
|
||||||
// height: 500px;
|
// height: 500px;
|
||||||
// max-height: 500px;
|
// max-height: 500px;
|
||||||
|
flex: 1; // prend l’espace restant
|
||||||
|
max-width: 600px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
@@ -47,10 +49,10 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
background: #818181;
|
background:none;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
color: white;
|
color: black;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
content
|
content
|
||||||
|
|
||||||
@@ -82,45 +84,25 @@
|
|||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
.thumbnails-wrapper {
|
.thumbnails-wrapper {
|
||||||
position: relative;
|
|
||||||
max-width: 100%;
|
|
||||||
overflow: hidden;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
max-height: 500px;
|
||||||
|
overflow: hidden;
|
||||||
.thumb-arrow {
|
|
||||||
cursor: pointer;
|
|
||||||
padding: 5px 10px;
|
|
||||||
background: #00aaff;
|
|
||||||
color: white;
|
|
||||||
border-radius: 50%;
|
|
||||||
user-select: none;
|
|
||||||
z-index: 2;
|
|
||||||
// font-weight: bold;
|
|
||||||
|
|
||||||
&.left {
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.right {
|
|
||||||
margin-left: 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.thumbnails {
|
.thumbnails {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
overflow-x: auto;
|
overflow-y: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
max-width: 100%;
|
max-height: 400px;
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
scrollbar-width: none; // Firefox
|
|
||||||
|
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
display: none; // Chrome, Safari
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
@@ -135,7 +117,76 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.thumb-arrow {
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 5px;
|
||||||
|
background: #00aaff;
|
||||||
|
color: white;
|
||||||
|
border-radius: 50%;
|
||||||
|
user-select: none;
|
||||||
|
margin: 5px 0;
|
||||||
|
|
||||||
|
&.left, &.right {
|
||||||
|
// on ne les utilise plus horizontalement
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// .thumbnails-wrapper {
|
||||||
|
// position: relative;
|
||||||
|
// max-width: 100%;
|
||||||
|
// overflow: hidden;
|
||||||
|
// display: flex;
|
||||||
|
// align-items: center;
|
||||||
|
// justify-content: center;
|
||||||
|
|
||||||
|
// .thumb-arrow {
|
||||||
|
// cursor: pointer;
|
||||||
|
// padding: 5px 10px;
|
||||||
|
// background: #00aaff;
|
||||||
|
// color: white;
|
||||||
|
// border-radius: 50%;
|
||||||
|
// user-select: none;
|
||||||
|
// z-index: 2;
|
||||||
|
// // font-weight: bold;
|
||||||
|
|
||||||
|
// &.left {
|
||||||
|
// margin-right: 10px;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// &.right {
|
||||||
|
// margin-left: 10px;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// .thumbnails {
|
||||||
|
// display: flex;
|
||||||
|
// gap: 10px;
|
||||||
|
// overflow-x: auto;
|
||||||
|
// scroll-behavior: smooth;
|
||||||
|
// max-width: 100%;
|
||||||
|
// padding: 10px 0;
|
||||||
|
// scrollbar-width: none; // Firefox
|
||||||
|
|
||||||
|
// &::-webkit-scrollbar {
|
||||||
|
// display: none; // Chrome, Safari
|
||||||
|
// }
|
||||||
|
|
||||||
|
// img {
|
||||||
|
// width: 60px;
|
||||||
|
// height: 60px;
|
||||||
|
// object-fit: cover;
|
||||||
|
// border: 2px solid transparent;
|
||||||
|
// cursor: pointer;
|
||||||
|
|
||||||
|
// &.active {
|
||||||
|
// border-color: #00aaff;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
// Masquer les images Drupal originales (facultatif)
|
// Masquer les images Drupal originales (facultatif)
|
||||||
.field__items {
|
.field__items {
|
||||||
|
|||||||
Reference in New Issue
Block a user