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.
136 lines
3.1 KiB
136 lines
3.1 KiB
@import url('style.css'); /* Import de style.css */
|
|
|
|
/* Conteneur général pour les citations */
|
|
.citations-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
padding: 20px 0;
|
|
align-items: center;
|
|
width: 100%;
|
|
margin: 0 0;
|
|
}
|
|
|
|
/* Conteneur pour les suggestions en deux colonnes */
|
|
.suggestions-container {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
width: 90%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Citations */
|
|
.citation-container {
|
|
background: linear-gradient(to right, #4a148c, #7b1fa2);
|
|
border-radius: 12px;
|
|
color: white;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
width: 49%; /* Chaque citation occupe 45% de la largeur pour laisser 5% d'espace */
|
|
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;
|
|
}
|
|
|
|
/* Citation du jour - toujours en pleine largeur */
|
|
.citation-du-jour {
|
|
width: 90%; /* Prend toute la largeur */
|
|
background: linear-gradient(to right, #ff5722, #ff9800); /* Dégradé spécial pour la citation du jour */
|
|
padding: 0;
|
|
overflow: hidden;
|
|
margin-bottom: 20px;
|
|
height: 150px;
|
|
}
|
|
|
|
.suggestion {
|
|
background: linear-gradient(180deg, rgba(187,211,249,1) 0%, rgba(199,246,196,1) 100%);
|
|
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;
|
|
}
|
|
|
|
.quote {
|
|
font-size: 1.2em;
|
|
margin-bottom: 10px;
|
|
font-style: italic;
|
|
}
|
|
|
|
|
|
|
|
.movie, .character, .year {
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
/* Mode sombre */
|
|
body.dark-mode .suggestion {
|
|
background: linear-gradient(to right, #4a148c, #7b1fa2);
|
|
color:white;
|
|
}
|
|
|
|
/* Mode clair */
|
|
body.light-mode .suggestion {
|
|
background: linear-gradient(180deg, rgba(187,211,249,1) 0%, rgba(199,246,196,1) 100%);
|
|
color:black; /* Changer le texte en noir pour le mode clair */
|
|
}
|
|
|
|
body.light-mode .quote,
|
|
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;
|
|
}
|
|
}
|