You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
119 lines
2.4 KiB
119 lines
2.4 KiB
/* Conteneur pour les suggestions en deux colonnes */
|
|
.suggestions-container {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-around;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
a.link-citation {
|
|
text-decoration: none;
|
|
color: white;
|
|
width: 47.5%;
|
|
height: 100%;
|
|
}
|
|
|
|
/* Citations */
|
|
.citation-container {
|
|
background: linear-gradient(to right, #4a148c, #7b1fa2);
|
|
border-radius: 12px;
|
|
color: white;
|
|
display: flex;
|
|
width: 100%;
|
|
align-items: flex-start;
|
|
box-sizing: border-box;
|
|
padding: 0;
|
|
height: 150px;
|
|
overflow: hidden;
|
|
margin-bottom: 20px;
|
|
word-wrap: break-word; /* Permet de couper les mots trop longs */
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Fixe la taille pour s'assurer que toutes les citations restent cohérentes */
|
|
.citation-container .text-content {
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
height: 150px;
|
|
}
|
|
|
|
.quote {
|
|
padding: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.citation-image {
|
|
width: 150px;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
margin: 0;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.text-content {
|
|
flex: 1;
|
|
padding: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center; /* Centre verticalement le texte */
|
|
word-wrap: break-word; /* Permet de couper les mots trop longs */
|
|
word-break: break-word;
|
|
}
|
|
|
|
.quoteContent {
|
|
font-size: 1.2em;
|
|
margin-bottom: 10px;
|
|
font-style: italic;
|
|
}
|
|
|
|
|
|
|
|
.citation .movie, .character, .year {
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
/* Mode sombre */
|
|
body.dark-mode .quote {
|
|
background: linear-gradient(45deg, #4a148c, #7b1fa2);
|
|
color:white;
|
|
}
|
|
|
|
/* Mode clair */
|
|
body.light-mode .quote {
|
|
background-image: linear-gradient(-28deg, #f3e7e9 0%, #e3eeff 99%, #e3eeff 100%);
|
|
color:black; /* Changer le texte en noir pour le mode clair */
|
|
}
|
|
|
|
body.light-mode .citation,
|
|
body.light-mode .movie,
|
|
body.light-mode .character,
|
|
body.light-mode .year {
|
|
color: black; /* Forcer le texte en noir pour le mode clair */
|
|
}
|
|
|
|
/* Responsive design */
|
|
@media (max-width: 768px) {
|
|
.suggestions-container {
|
|
flex-direction: column;
|
|
width: 100%;
|
|
}
|
|
|
|
.citation-container {
|
|
width: 100%; /* Chaque citation prend toute la largeur sur mobile */
|
|
max-width: 100%;
|
|
height: 100px; /* Supprimer la hauteur fixe sur mobile */
|
|
}
|
|
|
|
.citation-image {
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
|
|
.quote {
|
|
font-size: 1em;
|
|
}
|
|
}
|