Add more media query steps for small-screen devices.

This commit is contained in:
liding 2024-06-15 17:48:45 +08:00
parent b39c3499c3
commit 37f035709d
8 changed files with 75 additions and 20 deletions

View File

@ -101,17 +101,6 @@ const categoriedPostListSortedByArticleAmount: Array<CategoriedPosts> =
</div> </div>
<style> <style>
@media screen and (max-width: 125ex) {
.collection-desc-item {
width: 100%;
}
}
@media screen and (min-width: 125ex) {
.collection-desc-item {
width: 50%;
float: left;
}
}
.collection-desc::after { .collection-desc::after {
display: block; display: block;
content: ""; content: "";

View File

@ -15,7 +15,18 @@ import DefaultLayout from '../../../layouts/DefaultLayout.astro';
</DefaultLayout> </DefaultLayout>
<style> <style>
:global(@media screen and (max-width: 768px)) {
.collection-desc-item {
width: 100%;
}
}
:global(@media screen and (min-width: 768px)) {
.collection-desc-item {
width: 50%;
float: left;
}
}
.options { .options {
margin: 1em 0 0 0; margin: 0.5em 0 0 0;
} }
</style> </style>

View File

@ -15,7 +15,18 @@ import DefaultLayout from '../../../layouts/DefaultLayout.astro';
</DefaultLayout> </DefaultLayout>
<style> <style>
:global(@media screen and (max-width: 768px)) {
.collection-desc-item {
width: 100%;
}
}
:global(@media screen and (min-width: 768px)) {
.collection-desc-item {
width: 50%;
float: left;
}
}
.options { .options {
margin: 1em 0 0 0; margin: 0.5em 0 0 0;
} }
</style> </style>

View File

@ -15,7 +15,18 @@ import DefaultLayout from '../../../layouts/DefaultLayout.astro';
</DefaultLayout> </DefaultLayout>
<style> <style>
:global(@media screen and (max-width: 768px)) {
.collection-desc-item {
width: 100%;
}
}
:global(@media screen and (min-width: 768px)) {
.collection-desc-item {
width: 50%;
float: left;
}
}
.options { .options {
margin: 1em 0 0 0; margin: 0.5em 0 0 0;
} }
</style> </style>

View File

@ -15,7 +15,18 @@ import DefaultLayout from '../../../layouts/DefaultLayout.astro';
</DefaultLayout> </DefaultLayout>
<style> <style>
:global(@media screen and (max-width: 768px)) {
.collection-desc-item {
width: 100%;
}
}
:global(@media screen and (min-width: 768px)) {
.collection-desc-item {
width: 50%;
float: left;
}
}
.options { .options {
margin: 1em 0 0 0; margin: 0.5em 0 0 0;
} }
</style> </style>

View File

@ -15,7 +15,18 @@ import DefaultLayout from '../../../layouts/DefaultLayout.astro';
</DefaultLayout> </DefaultLayout>
<style> <style>
:global(@media screen and (max-width: 1024px)) {
.collection-desc-item {
width: 100%;
}
}
:global(@media screen and (min-width: 1024px)) {
.collection-desc-item {
width: 50%;
float: left;
}
}
.options { .options {
margin: 1em 0 0 0; margin: 0.5em 0 0 0;
} }
</style> </style>

View File

@ -15,7 +15,18 @@ import DefaultLayout from '../../../layouts/DefaultLayout.astro';
</DefaultLayout> </DefaultLayout>
<style> <style>
:global(@media screen and (max-width: 1024px)) {
.collection-desc-item {
width: 100%;
}
}
:global(@media screen and (min-width: 1024px)) {
.collection-desc-item {
width: 50%;
float: left;
}
}
.options { .options {
margin: 1em 0 0 0; margin: 0.5em 0 0 0;
} }
</style> </style>

View File

@ -1,12 +1,12 @@
@media screen and (max-width: 125ex) { @media screen and (max-width: 1024px) {
body { body {
width: 95%; width: 95%;
} }
} }
@media screen and (min-width: 125ex) { @media screen and (min-width: 1024px) {
body { body {
width: 125ex; width: 954px;
} }
} }