Skip to content

Commit b02b6d9

Browse files
committed
Use more width for blog posts in portrait mode
1 parent 3f9d1ee commit b02b6d9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

LinkDotNet.Blog.Web/Pages/BlogPostPage.razor.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
}
66
.blog-container {
77
background: white;
8-
width: 60%;
8+
width: clamp(60%, 2vw, 90%);
99
box-shadow: 0 3px 7px -1px rgba(0, 0, 0, 0.1);
1010
border-radius: 5px;
1111
font-size: 125%;
@@ -28,4 +28,10 @@
2828
width: 100%;
2929
height: 100%;
3030
object-fit: cover;
31+
}
32+
33+
@media only screen and (max-width: 700px) {
34+
.blog-outer-box .blog-container {
35+
width: 90%;
36+
}
3137
}

0 commit comments

Comments
 (0)