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>
<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 {
display: block;
content: "";

View File

@ -15,7 +15,18 @@ import DefaultLayout from '../../../layouts/DefaultLayout.astro';
</DefaultLayout>
<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 {
margin: 1em 0 0 0;
margin: 0.5em 0 0 0;
}
</style>

View File

@ -15,7 +15,18 @@ import DefaultLayout from '../../../layouts/DefaultLayout.astro';
</DefaultLayout>
<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 {
margin: 1em 0 0 0;
margin: 0.5em 0 0 0;
}
</style>

View File

@ -15,7 +15,18 @@ import DefaultLayout from '../../../layouts/DefaultLayout.astro';
</DefaultLayout>
<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 {
margin: 1em 0 0 0;
margin: 0.5em 0 0 0;
}
</style>

View File

@ -15,7 +15,18 @@ import DefaultLayout from '../../../layouts/DefaultLayout.astro';
</DefaultLayout>
<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 {
margin: 1em 0 0 0;
margin: 0.5em 0 0 0;
}
</style>

View File

@ -15,7 +15,18 @@ import DefaultLayout from '../../../layouts/DefaultLayout.astro';
</DefaultLayout>
<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 {
margin: 1em 0 0 0;
margin: 0.5em 0 0 0;
}
</style>

View File

@ -15,7 +15,18 @@ import DefaultLayout from '../../../layouts/DefaultLayout.astro';
</DefaultLayout>
<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 {
margin: 1em 0 0 0;
margin: 0.5em 0 0 0;
}
</style>

View File

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