Skip to content

Commit f000ac3

Browse files
committed
fix: image sizes and stuff
1 parent 3b24c4d commit f000ac3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/index.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,19 @@ code {
2121
}
2222

2323
.prose img {
24-
max-width: 25%;
24+
max-width: 75%; /* Full width on mobile */
2525
height: auto;
2626
display: block;
2727
margin-left: auto;
2828
margin-right: auto;
29+
border: 5px solid #4b5563; /* subtle gray border */
30+
border-radius: 0.25rem; /* rounded corners */
31+
}
32+
33+
@media (min-width: 700px) { /* md breakpoint */
34+
.prose img {
35+
max-width: 25%; /* 25% width on larger screens */
36+
}
2937
}
3038

3139
/* Styling for inline code blocks */

0 commit comments

Comments
 (0)