Skip to content

Commit 52bfc6f

Browse files
Merge pull request #714 from rishabhsharma1997/master
fix: inline code block in learning-path
2 parents ffae2f5 + 2926704 commit 52bfc6f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/custom/StyledChapter/StyledChapter.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ const StyledChapter = styled('div')(({ theme }) => ({
1818
color: theme.palette.background.brand?.default,
1919
textDecoration: 'none'
2020
},
21+
'& p > code': {
22+
color: 'inherit',
23+
padding: '.2em .4em',
24+
margin: '0',
25+
fontSize: '85%',
26+
wordBreak: 'normal',
27+
backgroundColor: theme.palette.background.code,
28+
borderRadius: '.25rem'
29+
},
2130
'& pre': {
2231
backgroundColor: '#011627',
2332
padding: '1em',
@@ -29,15 +38,6 @@ const StyledChapter = styled('div')(({ theme }) => ({
2938
width: '100%',
3039
margin: '1rem auto autocompleteClasses',
3140
fontFamily: 'Courier New, Courier, monospace'
32-
},
33-
'& code': {
34-
color: 'inherit',
35-
padding: '.2em .4em',
36-
margin: '0',
37-
fontSize: '85%',
38-
wordBreak: 'normal',
39-
backgroundColor: theme.palette.background.code,
40-
borderRadius: '.25rem'
4141
}
4242
}));
4343
export default StyledChapter;

0 commit comments

Comments
 (0)