[camélianimes] optimisation pour lecture sur mobile
All checks were successful
camelia / deploy (push) Successful in 31s

This commit is contained in:
Esenjin 2024-10-04 16:24:00 +02:00
parent dac35b6107
commit e466e203f9

View File

@ -9,6 +9,7 @@ body {
background-color: #2c2f33; background-color: #2c2f33;
color: #ffffff; color: #ffffff;
overflow: auto; overflow: auto;
font-size: 16px;
} }
body a { body a {
@ -31,11 +32,18 @@ header {
z-index: 1000; z-index: 1000;
} }
nav {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
nav a { nav a {
margin: 0 15px; margin: 5px 10px;
color: #ffffff; color: #ffffff;
text-decoration: none; text-decoration: none;
font-weight: bold; font-weight: bold;
font-size: 0.9em;
} }
nav a:hover { nav a:hover {
@ -45,8 +53,10 @@ nav a:hover {
.container { .container {
padding-top: 70px; padding-top: 70px;
max-width: 800px; max-width: 100%;
margin: auto; margin: auto;
padding-left: 15px;
padding-right: 15px;
} }
/* Carousel Styles */ /* Carousel Styles */
@ -90,18 +100,20 @@ nav a:hover {
color: #ffffff; color: #ffffff;
text-align: center; text-align: center;
background-color: rgba(35, 39, 42, 0.9); background-color: rgba(35, 39, 42, 0.9);
padding: 20px; padding: 15px;
border-radius: 10px; border-radius: 10px;
z-index: 2; z-index: 2;
width: 80%;
max-width: 400px;
} }
.carousel-text h1 { .carousel-text h1 {
font-size: 3em; font-size: 2em;
margin: 0 0 10px; margin: 0 0 10px;
} }
.carousel-text p { .carousel-text p {
font-size: 1.5em; font-size: 1em;
} }
/* Page-specific Styles */ /* Page-specific Styles */
@ -122,24 +134,27 @@ nav a:hover {
text-align: center; text-align: center;
color: #ffffff; color: #ffffff;
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.5);
padding: 20px; padding: 15px;
border-radius: 10px; border-radius: 10px;
width: 80%;
max-width: 400px;
} }
.home-content h1 { .home-content h1 {
font-size: 48px; font-size: 2em;
margin: 0; margin: 0;
} }
.home-content p { .home-content p {
font-size: 24px; font-size: 1em;
} }
/* Description Page */ /* Description Page */
ol { ol {
background: #40444b; background: #40444b;
padding: 20px; padding: 15px;
border-radius: 10px; border-radius: 10px;
margin-left: 20px;
} }
ol li { ol li {
@ -167,29 +182,29 @@ ul li a:hover {
/* Liste page */ /* Liste page */
.anime-list { .anime-list {
list-style-type: none; list-style-type: none;
padding: 0; padding: 0;
margin: 20px; margin: 20px 0;
font-size: 1rem; font-size: 1rem;
color: #b9bbbe; color: #b9bbbe;
} }
.anime-list li { .anime-list li {
margin-bottom: 10px; margin-bottom: 15px;
} }
.anime-list a { .anime-list a {
color: #7289da; color: #7289da;
text-decoration: none; text-decoration: none;
transition: color 0.3s ease; transition: color 0.3s ease;
} }
.anime-list a:hover { .anime-list a:hover {
color: #ffffff; color: #ffffff;
} }
.anime-list a:visited { .anime-list a:visited {
color: #a58dff; color: #a58dff;
} }
/* Footer */ /* Footer */
@ -198,4 +213,72 @@ footer {
text-align: center; text-align: center;
margin-top: 20px; margin-top: 20px;
color: #99aab5; color: #99aab5;
font-size: 0.9em;
}
/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
body {
font-size: 14px;
}
nav a {
margin: 5px;
font-size: 0.8em;
}
.carousel-text h1 {
font-size: 1.8em;
}
.carousel-text p {
font-size: 0.9em;
}
.home-content h1 {
font-size: 1.8em;
}
.home-content p {
font-size: 0.9em;
}
.container {
padding-top: 60px;
}
}
@media screen and (max-width: 480px) {
body {
font-size: 12px;
}
nav {
flex-direction: column;
align-items: center;
}
nav a {
margin: 3px 0;
}
.carousel-text h1 {
font-size: 1.5em;
}
.carousel-text p {
font-size: 0.8em;
}
.home-content h1 {
font-size: 1.5em;
}
.home-content p {
font-size: 0.8em;
}
.container {
padding-top: 50px;
}
} }