mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-blog.git
synced 2026-10-25 21:43:53 +00:00
rollback stlye on phone
This commit is contained in:
parent
d62ac361c0
commit
43154122e3
2 changed files with 22 additions and 11 deletions
|
|
@ -187,19 +187,20 @@ const tags = data.tags;
|
|||
@media (max-width: 600px) {
|
||||
.post-link {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) clamp(88px, 24vw, 104px);
|
||||
grid-template-columns: 1fr 145px;
|
||||
grid-template-areas:
|
||||
"title title"
|
||||
"desc image"
|
||||
"tags tags"
|
||||
"meta meta";
|
||||
"tags image"
|
||||
"meta image";
|
||||
column-gap: 0.75rem;
|
||||
row-gap: 0;
|
||||
row-gap: 0.2rem;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.post-text {
|
||||
display: contents;
|
||||
min-height: auto;
|
||||
}
|
||||
|
||||
.post-title-link {
|
||||
|
|
@ -214,20 +215,30 @@ const tags = data.tags;
|
|||
grid-area: desc;
|
||||
}
|
||||
|
||||
.tags {
|
||||
grid-area: tags;
|
||||
}
|
||||
|
||||
.post-meta-row {
|
||||
grid-area: meta;
|
||||
gap: 0.7rem;
|
||||
}
|
||||
|
||||
.post-image {
|
||||
grid-area: image;
|
||||
width: 100%;
|
||||
height: calc(145px * 10 / 16);
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.post-image-link {
|
||||
grid-area: image;
|
||||
margin-top: 0.5rem;
|
||||
width: 100%;
|
||||
align-self: center;
|
||||
width: 145px;
|
||||
aspect-ratio: auto;
|
||||
overflow: visible;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.post-card {
|
||||
padding-bottom: 0.2rem;
|
||||
padding-top: 0.2rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -337,7 +337,7 @@ const t = getTranslations(lang);
|
|||
font-size: 0.88rem;
|
||||
}
|
||||
|
||||
@media (max-width: 800px) {
|
||||
@media (max-width: 560px) {
|
||||
.post-header {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue