implementing variation on height
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
72da352956
commit
c31174bb4f
15
css/app.css
15
css/app.css
|
|
@ -508,6 +508,18 @@
|
||||||
max-height: 24rem;
|
max-height: 24rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gallery-website-screens__screens-grid.is-flex.height--small img{
|
||||||
|
max-height: 16rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gallery-website-screens__screens-grid.is-flex.height--medium img{
|
||||||
|
max-height: 20rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gallery-website-screens__screens-grid.is-flex.height--big img{
|
||||||
|
max-height: 24rem;
|
||||||
|
}
|
||||||
|
|
||||||
@media (min-width: 782px){
|
@media (min-width: 782px){
|
||||||
.gallery-website-screens__screens-grid.is-mobile-capture{
|
.gallery-website-screens__screens-grid.is-mobile-capture{
|
||||||
gap: 1.5rem;
|
gap: 1.5rem;
|
||||||
|
|
@ -536,8 +548,7 @@
|
||||||
/* Fixe la largeur max */
|
/* Fixe la largeur max */
|
||||||
height: 100%;
|
height: 100%;
|
||||||
/* Fixe la hauteur max */
|
/* Fixe la hauteur max */
|
||||||
max-height: 800px;
|
/* max-height: 500px; Ajuste selon ton besoin */
|
||||||
/* Ajuste selon ton besoin */
|
|
||||||
-o-object-fit: cover;
|
-o-object-fit: cover;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
/* Évite les déformations */
|
/* Évite les déformations */
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,21 @@
|
||||||
img {
|
img {
|
||||||
@apply max-h-96;
|
@apply max-h-96;
|
||||||
}
|
}
|
||||||
|
&.height--small {
|
||||||
|
img {
|
||||||
|
@apply max-h-64;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&.height--medium {
|
||||||
|
img {
|
||||||
|
@apply max-h-80;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&.height--big {
|
||||||
|
img {
|
||||||
|
@apply max-h-96;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&.is-mobile-capture {
|
&.is-mobile-capture {
|
||||||
@apply md:gap-6 xl:gap-12;
|
@apply md:gap-6 xl:gap-12;
|
||||||
|
|
@ -30,7 +45,7 @@
|
||||||
img {
|
img {
|
||||||
width: 100%; /* Fixe la largeur max */
|
width: 100%; /* Fixe la largeur max */
|
||||||
height: 100%; /* Fixe la hauteur max */
|
height: 100%; /* Fixe la hauteur max */
|
||||||
max-height: 800px; /* Ajuste selon ton besoin */
|
/* max-height: 500px; Ajuste selon ton besoin */
|
||||||
object-fit: cover; /* Évite les déformations */
|
object-fit: cover; /* Évite les déformations */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user