Skip to content

Commit 2e5154a

Browse files
committed
fix the blog display issue on mobile devices
Signed-off-by: faweizhao26 <faweizhao26@gmail.com>
1 parent 44d43cd commit 2e5154a

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

src/css/custom.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,32 @@
138138
color: #ccc;
139139
border-color: #f3f4f6;
140140
background: #fafafa;
141+
}
142+
143+
@media (max-width: 768px) {
144+
.custom-horizontal-card {
145+
flex-direction: column !important;
146+
height: auto !important;
147+
}
148+
149+
.card-left-img {
150+
flex: 0 0 auto !important;
151+
width: 100% !important;
152+
border-right: none !important;
153+
border-bottom: 1px solid #eee;
154+
height: 200px;
155+
}
156+
157+
.card-right-content {
158+
padding: 16px !important;
159+
}
160+
161+
.post-item-title {
162+
font-size: 1.2rem !important;
163+
margin-bottom: 8px !important;
164+
}
165+
166+
.post-item-tags {
167+
margin-top: 12px;
168+
}
141169
}

0 commit comments

Comments
 (0)