Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

Commit 2dc563e

Browse files
committed
adjust styles.
1 parent b3374e6 commit 2dc563e

File tree

1 file changed

+27
-22
lines changed

1 file changed

+27
-22
lines changed

src/templates/blog.tsx

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ interface BlogTemplateProps {
4545

4646
const StyledBlogTemplate = styled.div`
4747
max-width: 80rem;
48-
margin: 12rem auto;
48+
margin: 8rem auto;
4949
box-shadow: ${shadows.light};
5050
5151
.contents {
5252
padding: 5rem 3rem;
5353
}
5454
5555
img {
56-
display: inline-block;
56+
display: block;
5757
max-width: 100%;
5858
max-height: 50rem;
5959
margin-bottom: 2rem;
@@ -63,32 +63,37 @@ const StyledBlogTemplate = styled.div`
6363
margin: 6rem 0 2.5rem;
6464
}
6565
66-
li + li {
66+
h2 + p {
67+
margin: 2rem 0;
68+
}
69+
70+
li + li,
71+
p + p {
6772
margin-top: 2rem;
6873
}
6974
75+
table {
76+
font-size: 90%;
77+
background-color: ${colors.offWhite};
78+
border: 1px solid rgba(0,0,0, .1);
79+
border-collapse: collapse;
80+
overflow-x: scroll;
81+
box-shadow: ${shadows.light};
82+
border-radius: 3px;
83+
}
7084
71-
table {
72-
font-size: 90%;
73-
background-color: ${colors.offWhite};
74-
border: 1px solid rgba(0,0,0, .1);
75-
border-collapse: collapse;
76-
overflow-x: scroll;
77-
box-shadow: ${shadows.light};
78-
border-radius: 3px;
79-
}
80-
th {
81-
padding: 1rem;
82-
}
83-
td {
84-
text-align: center;
85-
border: 1px solid rgba(0,0,0, .1);
86-
&:last-child {
87-
text-align: left;
88-
padding: 3rem;
85+
th {
86+
padding: 1rem;
8987
}
90-
}
9188
89+
td {
90+
text-align: center;
91+
border: 1px solid rgba(0,0,0, .1);
92+
&:last-child {
93+
text-align: left;
94+
padding: 3rem;
95+
}
96+
}
9297
`
9398

9499

0 commit comments

Comments
 (0)