Skip to content

Commit 89e4537

Browse files
committed
redo post widths to account for different screen sizes
1 parent 2a23090 commit 89e4537

1 file changed

Lines changed: 37 additions & 3 deletions

File tree

src/css/pages/post.css

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
/* These styles define the layout of the post (and page) */
22

33
.post {
4-
width: 50%;
4+
width: 95%;
55
margin: 0 auto;
66
margin-block-end: 3rem;
77
}
88

9-
.post h1, .post h2, .post h3 {
9+
.post p {
10+
line-height: 1.4rem;
11+
}
12+
13+
.post h1,
14+
.post h2,
15+
.post h3 {
1016
font-family: Rubik;
1117
margin-bottom: 0.25rem;
1218
}
@@ -23,11 +29,39 @@
2329
font-size: 18px;
2430
}
2531

26-
.post p, .post ul {
32+
.post p,
33+
.post ul {
2734
margin-bottom: 27px;
2835
}
2936

3037
.post ul li {
3138
line-height: 1.25rem;
3239
margin-bottom: 0.5em;
3340
}
41+
@media (min-width: 400px) {
42+
.post {
43+
width: 95%;
44+
margin: 0 auto;
45+
}
46+
}
47+
48+
@media (min-width: 550px) {
49+
.post {
50+
width: 80%;
51+
margin: 0 auto;
52+
}
53+
}
54+
55+
@media (min-width: 700px) {
56+
.post {
57+
width: 60%;
58+
max-width: 800px;
59+
margin: 0 auto;
60+
}
61+
}
62+
63+
@media (min-width: 1350px) {
64+
.post {
65+
width: 800px;
66+
}
67+
}

0 commit comments

Comments
 (0)