aboutsummaryrefslogtreecommitdiff
path: root/src/app/kdrama/styles/popular.module.css
diff options
context:
space:
mode:
authorzephex-alt <[email protected]>2024-05-04 18:18:30 +0000
committerGitHub <[email protected]>2024-05-04 18:18:30 +0000
commita6c3531821aa10d80cc93d1809cbc45943c2c830 (patch)
tree0b9fb3df41a4fb23283b730d699dacaf1ed9a7f3 /src/app/kdrama/styles/popular.module.css
parentUpdate README.md (diff)
downloaddramalama-a6c3531821aa10d80cc93d1809cbc45943c2c830.tar.xz
dramalama-a6c3531821aa10d80cc93d1809cbc45943c2c830.zip
UI changes to improved desktop experience
Diffstat (limited to 'src/app/kdrama/styles/popular.module.css')
-rw-r--r--src/app/kdrama/styles/popular.module.css53
1 files changed, 31 insertions, 22 deletions
diff --git a/src/app/kdrama/styles/popular.module.css b/src/app/kdrama/styles/popular.module.css
index 16c18a2..fce54c1 100644
--- a/src/app/kdrama/styles/popular.module.css
+++ b/src/app/kdrama/styles/popular.module.css
@@ -1,29 +1,20 @@
.popDramasText {
color: var(--soft-purple);
- font-size: 28px;
+ font-size: 36px;
margin-bottom: 10px;
- font-weight: 500;
+ font-weight: 400;
+ text-align: center;
}
.AnimeContainer {
- display: flex;
- overflow-x: auto;
- overflow-y: hidden;
- margin-top: -8px;
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
+ grid-gap: 0.5rem;
+ align-items: center;
}
.AnimeContainer::-webkit-scrollbar {
- height: 5px;
-}
-
-.AnimeContainer::-webkit-scrollbar-track {
- background-color: #3333339d;
- border-radius: 5px;
-}
-
-.AnimeContainer::-webkit-scrollbar-thumb {
- background-color: rgb(68, 68, 68);
- border-radius: 5px;
+ height: 0px;
}
.AnimeContainer:hover .AnimeEntry {
@@ -32,7 +23,7 @@
.AnimeContainer:hover .AnimeEntry:hover {
opacity: 1;
- transform: scale(1.02);
+ transform: scale(1.018);
background-color: #272727;
}
@@ -40,26 +31,44 @@
display: flex;
flex-direction: column;
align-items: center;
- margin: 4px;
background-color: #1f1f1fbb;
padding: 0.5rem;
transition: opacity 200ms ease, transform 200ms ease,
background-color 200ms ease;
cursor: grab;
- border-radius: 1rem;
+ border-radius: 0.4rem;
}
.AnimeEntry img {
- border-radius: 1rem;
+ border-radius: 0.4rem;
}
.AnimeEntry p {
text-align: center;
color: white;
width: auto;
- max-width: 190px;
+ max-width: 180px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
margin: 0.5rem 0rem 0rem 0rem;
}
+
+@media screen and (max-width: 768px) {
+ .popDramasText {
+ text-align: start;
+ font-size: 26px;
+ margin-bottom: 1rem;
+ }
+
+ .AnimeContainer {
+ display: flex;
+ overflow-x: auto;
+ overflow-y: hidden;
+ margin-top: -8px;
+ }
+
+ .AnimeEntry img {
+ width: auto;
+ }
+}