aboutsummaryrefslogtreecommitdiff
path: root/src/app/anime/styles/pop_recent_top.module.css
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-05-23 09:45:47 +0530
committerreal-zephex <[email protected]>2024-05-23 09:45:47 +0530
commit442082ac8a8c97d55a5b16c0427247a0f89f304b (patch)
tree63900955e769c411c8d1ea5f7496c879604d2c55 /src/app/anime/styles/pop_recent_top.module.css
parentUpdate README.md (diff)
downloaddramalama-442082ac8a8c97d55a5b16c0427247a0f89f304b.tar.xz
dramalama-442082ac8a8c97d55a5b16c0427247a0f89f304b.zip
🎨 style(anime): UI improvements to the anime page
Diffstat (limited to 'src/app/anime/styles/pop_recent_top.module.css')
-rw-r--r--src/app/anime/styles/pop_recent_top.module.css73
1 files changed, 58 insertions, 15 deletions
diff --git a/src/app/anime/styles/pop_recent_top.module.css b/src/app/anime/styles/pop_recent_top.module.css
index 0feda13..212d07a 100644
--- a/src/app/anime/styles/pop_recent_top.module.css
+++ b/src/app/anime/styles/pop_recent_top.module.css
@@ -1,51 +1,94 @@
.AnimeHeaderText {
color: white;
margin: 0.4rem 0 0 0;
+ text-transform: uppercase;
+ font-size: 30px;
}
.AnimeContainer {
margin: 0.2rem 0 0 0;
display: grid;
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
- grid-gap: 0.7rem;
+ grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
+ grid-gap: 0.5rem;
}
-.AnimeEntry {
+/* .AnimeEntry {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
text-align: center;
padding: 0.8rem;
+ border-radius: 0.4rem;
+ background-color: #1a1a1a;
+ transition: opacity 200ms ease;
+} */
+
+.AnimeEntry {
+ position: relative;
+ display: inline-block;
+ overflow: hidden;
border-radius: 0.5rem;
- background-color: #1f1f1f;
+ transition: opacity 200ms ease;
+
+}
+
+.AnimeContainer:hover .AnimeEntry {
+ opacity: 0.5;
+}
+
+.AnimeContainer:hover .AnimeEntry:hover {
+ opacity: 1;
}
.AnimeEntry img {
- border-radius: 0.5rem;
+ display: block;
+ transition: transform 200ms ease;
}
-.AnimeEntry p {
- margin: 0.2rem 0 -0.4rem 0;
- max-width: 160px;
+.AnimeEntry img:hover {
+ transform: translateY(-5px) scale(1.04);
+}
+
+/* .AnimeEntry p {
+ margin: 0.5rem 0 -0.4rem 0;
+ max-width: 170px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
+ text-transform: uppercase;
+} */
+
+.AnimeTitle {
+ position: absolute;
+ bottom: 0;
+ /* Adjust the value as needed */
+ left: 50%;
+ transform: translateX(-50%);
+ margin: 0;
+ color: white;
+ padding: 5px;
+ text-align: center;
+ background-color: #121212ab;
+ backdrop-filter: blur(10px);
+ text-transform: uppercase;
+ width: 100%;
+ max-width: 170px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
-.EpisodeText {
+/* .EpisodeText {
color: var(--neon-yellow);
font-size: small;
padding-top: 0.2rem;
-}
+} */
+
.AnimeContainer::-webkit-scrollbar {
- height: 0.3rem;
+ height: 0rem;
}
-.AnimeContainer::-webkit-scrollbar-thumb {
- background-color: var(--neon-yellow);
- border-radius: 1rem;
-}
@media screen and (max-width: 768px) {
.AnimeContainer {