« MediaWiki:Common.css » : différence entre les versions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 52 : | Ligne 52 : | ||
@media screen and (min-width:1024px) | @media screen and (min-width:1024px) | ||
{ | { | ||
/* Taille fixe du carrousel */ | |||
#caroussel slideshow { | |||
display: block; | |||
width: | width: 600px; /* largeur fixe */ | ||
height: 400px; /* hauteur fixe */ | |||
margin: auto; /* centrer le carrousel */ | |||
overflow: hidden; | |||
position: relative; | position: relative; | ||
background: #000; /* fond noir pour remplir */ | |||
} | |||
/* Les images à l’intérieur s’adaptent */ | |||
#caroussel slideshow img { | |||
width: 100%; | |||
height: 100%; | |||
object-fit: contain; /* garde les proportions, ajoute des bandes si besoin */ | |||
display: block; | |||
margin: auto; | |||
} | } | ||
.caroussel-caption | /* Les légendes */ | ||
#caroussel .caroussel-caption { | |||
position: absolute; | |||
bottom: 10px; | |||
left: 0; | |||
right: 0; | |||
text-align: center; | |||
background: rgba(0,0,0,0.6); | |||
color: white; | |||
padding: 5px; | |||
font-size: 14px; | |||
} | } | ||
} | } | ||