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.
131 lines
2.2 KiB
131 lines
2.2 KiB
@import url(./style.css);
|
|
|
|
/* Dark mode */
|
|
|
|
body.dark-mode a.link-citation{
|
|
color: var(--main-dark-text-color);
|
|
}
|
|
|
|
body.dark-mode .citation-container{
|
|
background: var(--main-dark-gradient);
|
|
color: var(--main-dark-text-color);
|
|
}
|
|
|
|
/* Light mode */
|
|
|
|
body.light-mode a.link-citation{
|
|
color: var(--main-light-text-color);
|
|
}
|
|
|
|
|
|
body.light-mode .citation-container{
|
|
background: var(--main-light-gradient);
|
|
color: var(--main-light-text-color);
|
|
}
|
|
|
|
/* écran par défaut */
|
|
|
|
a.link-citation:hover {
|
|
transform: scale(1.02);
|
|
z-index: 5;
|
|
position: relative;
|
|
}
|
|
|
|
.suggestions-container {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-around;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
a.link-citation {
|
|
text-decoration: none;
|
|
width: 47.5vw;
|
|
height: 100%;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.citation-container {
|
|
border-radius: 12px;
|
|
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;
|
|
}
|
|
|
|
.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;
|
|
font-size: 1em;
|
|
}
|
|
|
|
h2 {
|
|
text-align: center;
|
|
font-size: 2em;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
/* écran tablette*/
|
|
|
|
@media (max-width: 780px){
|
|
.suggestions-container {
|
|
flex-direction: column;
|
|
width: 100%;
|
|
}
|
|
|
|
a.link-citation {
|
|
width: 96vw;
|
|
margin-left: 2vw;
|
|
margin-right: 2vw;
|
|
}
|
|
}
|
|
|
|
/* écran téléphone */
|
|
|
|
@media (max-width: 480px){
|
|
|
|
}
|