Skip to content

Commit eeab18d

Browse files
Minor updates to font sizes, line-heights and code styling
1 parent 62af67d commit eeab18d

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

web/colorsAndThemes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import duotoneDark from 'prism-react-renderer/themes/duotoneDark'
33

44
const colors = {
55
offWhite: `rgb(252, 249, 237)`,
6-
darkGrey: `rgb(54, 53, 55)`,
6+
darkGrey: `rgb(45, 45, 45)`,
77
primaryColor: `rgb(3, 152, 252)`,
88
primaryColorDarker: `rgb(0, 85, 143)`,
99
secondaryColor: `rgb(250, 223, 147)`,

web/components/GlobalStyles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const GlobalStyles = createGlobalStyle`
2929
}
3030
3131
main {
32-
padding: 0 2.5em 2.5em 2.5em;
32+
padding: 0 2.25em 2.25em 2.25em;
3333
}
3434
3535
a {

web/pages/posts/[slug].js

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import matchExtLinkMarkDef from '../../utils/matchExtLinkMarkDef'
1010

1111
const MainContent = styled.div`
1212
margin-top: 1.5em;
13-
font-size: 1.15em;
13+
font-size: 1.25em;
1414
line-height: 1.75em;
1515
`
1616
const PostDescription = styled.p`
@@ -19,18 +19,19 @@ const PostDescription = styled.p`
1919
margin: 3px 0 0;
2020
`
2121
const PostDate = styled(PostDescription)`
22-
font-size: 1em;
22+
font-size: 1.2em;
2323
color: ${({ theme }) => theme.text};
2424
`
2525
const ArticleBlock = styled.div`
2626
margin-bottom: 1em;
27+
color: ${({ theme }) => theme.text};
2728
`
2829
const AsideBlock = styled.div`
2930
margin-bottom: 1em;
3031
padding: 1em 2em;
3132
background-color: ${({ theme }) => theme.asideBackground};
3233
font-size: .9em;
33-
line-height: 1.25em;
34+
line-height: 1.5em;
3435
/* TODO: dynamically change border and text according to theme? */
3536
/* light text: rgb(178, 151, 98) */
3637
/* light border: */
@@ -41,7 +42,7 @@ const AsideBlock = styled.div`
4142
`
4243
const Pre = styled.pre`
4344
font-family: 'Nanum Gothic Coding', monospace;
44-
font-size: .9em;
45+
font-size: .85em;
4546
overflow: auto;
4647
text-align: left;
4748
margin: 1em 0;
@@ -58,15 +59,17 @@ const LineNo = styled.span`
5859
user-select: none;
5960
opacity: 0.3;
6061
`
61-
const InlineCode = styled.span`
62+
const InlineCodeMain = styled.span`
6263
font-family: 'Courier Prime', monospace;
6364
display: inline-block;
64-
padding: 0 5px;
65+
font-size: .85em;
66+
line-height: 1.3;
6567
border-radius: 3px;
6668
background-color: ${({ theme }) => theme.secondaryColor};
69+
padding: 1px 3px;
6770
`
68-
const AsideCode = styled(InlineCode)`
69-
font-size: .9em;
71+
const AsideCode = styled(InlineCodeMain)`
72+
padding: 0 5px;
7073
margin-bottom: 1em;
7174
font-family: 'Courier Prime', monospace;
7275
`
@@ -131,9 +134,9 @@ function Post(props) {
131134
if (!section.children[i].marks) {
132135
// console.log('paragraphBlock inline code')
133136
blockContent.push(
134-
<InlineCode>
137+
<InlineCodeMain>
135138
{section.children[i].str_content_inline}
136-
</InlineCode>
139+
</InlineCodeMain>
137140
)
138141
}
139142
// returns href of external link that matches href mark with actual href info

0 commit comments

Comments
 (0)