Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
[ASTRO] Code cleanup and make phone Song list responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicjhon1 committed Dec 16, 2022
1 parent d74437c commit ab30ee8
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions 05 KanoColle-UI/src/components/Main.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
import Song from "./Song.astro";
import ThreeDotsIcon from "./ThreeDotsIcon.astro";
---

<main class="font-700">
Expand Down Expand Up @@ -52,18 +51,12 @@ import ThreeDotsIcon from "./ThreeDotsIcon.astro";
}
}

@media screen and (min-width:381px) and (max-width: 580px) {
@media screen and (min-width:381px) and (max-width: 800px) {
main {
padding-left: 2rem;
}
}

@media screen and (min-width:581px) and (max-width:800px) {
main {
padding-left: 7rem;
}
}

@media screen and (min-width:801px) {
main {
padding-left: 7rem;
Expand All @@ -90,17 +83,13 @@ import ThreeDotsIcon from "./ThreeDotsIcon.astro";
letter-spacing: -.02em;
text-shadow: rgba(0,0,0,.171) .2rem -.12rem .5rem;
}
@media (min-width: 320px) and (max-width: 499px) {
.title {
font-size: 2rem;
}
}
@media (min-width: 500px) and (max-width: 640px) {

@media (min-width: 320px) and (max-width: 640px) {
.title {
font-size: 2rem;
}
}
@media screen and (min-width: 642px) and (max-width: 839px) {
@media screen and (min-width: 641px) and (max-width: 839px) {
.title {
font-size: 2.5rem;
}
Expand All @@ -119,4 +108,10 @@ import ThreeDotsIcon from "./ThreeDotsIcon.astro";
section {
width: calc(100vw - 14rem);
}

@media screen and (max-width: 800px) {
section {
width: calc(100vw - 5rem);
}
}
</style>

0 comments on commit ab30ee8

Please sign in to comment.