Skip to content

Commit 0289937

Browse files
committed
Improve inline code & nested list padding in blog/docs
1 parent e86ccf0 commit 0289937

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/components/modules/block-code/block-code.styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const StyledInlineCode = styled(Text)`
4141
color: var(--prism-text);
4242
background-color: var(--prism-bg);
4343
box-shadow: 0 0 0 1px ${({ theme }) => theme.colors.button.border};
44-
padding: 0 6px;
44+
padding: 2px 6px;
4545
border-radius: 4px;
4646
margin: 0 4px;
4747
font-size: 13px;

src/components/sections/rich-text/components/default.styles.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ export const StyledUL = styled.ul`
4444
margin-bottom: 2rem;
4545
color: ${({ theme }) => theme.colors.text.darkGrey};
4646
font-size: ${({ theme }) => theme.fontSizes.text.m};
47+
48+
ul, ol {
49+
margin-top: 2px;
50+
margin-bottom: 2px;
51+
}
4752
`;
4853

4954
export const StyledOL = styled.ol`
@@ -52,6 +57,11 @@ export const StyledOL = styled.ol`
5257
margin-bottom: 2rem;
5358
color: ${({ theme }) => theme.colors.text.darkGrey};
5459
font-size: ${({ theme }) => theme.fontSizes.text.m};
60+
61+
ul, ol {
62+
margin-top: 2px;
63+
margin-bottom: 2px;
64+
}
5565
}`;
5666

5767
export const StyledImage = styled(Image)`

0 commit comments

Comments
 (0)