Skip to content

Commit

Permalink
chore: fix some styling inconsistencies in the blogposts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarmos-san committed Dec 28, 2023
1 parent 9814a1c commit db65c95
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions web/src/pages/blog/[slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,20 @@ const { Content } = await blog.render();
article {
padding: 0 8% 0 8%;
margin: 10% 0 10% 0%;

h1 {
font-size: 2.25rem;
}
}
}

@media screen and (min-width: 768px) {
article {
margin: 5% 15% 5% 15%;

h1 {
font-size: 3rem;
}
}
}

Expand All @@ -48,22 +56,25 @@ const { Content } = await blog.render();

h1 {
font-family: Poppins;
font-size: 3rem;
font-style: normal;
font-weight: 700;
line-height: 142%;
}

.summary {
color: rgba(154, 159, 166, 0.95);
font-size: 1.15em;
font-size: 1.15rem;
line-height: 160%;
}

time {
color: rgba(154, 159, 166, 0.9);
font-style: italic;
font-size: 0.95rem;
font-style: normal;
font-size: 1.15rem;
}

img {
margin: 5% 0;
}
}

Expand All @@ -74,7 +85,7 @@ const { Content } = await blog.render();
font-size: 1.125rem;
font-style: normal;
font-weight: 500;
line-height: 120%;
line-height: 180%;
}

article :global(a) {
Expand All @@ -86,7 +97,7 @@ const { Content } = await blog.render();
article :global(ol) {
list-style: decimal;
padding-left: 2%;
line-height: 280%;
line-height: normal;
}

article :global(pre) {
Expand Down

0 comments on commit db65c95

Please sign in to comment.