diff --git a/docs/public/static/styles/prism-okaidia.css b/docs/public/static/styles/prism-okaidia.css index 13783c48963b1c..0a01bed2a94acb 100644 --- a/docs/public/static/styles/prism-okaidia.css +++ b/docs/public/static/styles/prism-okaidia.css @@ -16,7 +16,7 @@ pre[class*='language-'] { word-spacing: normal; word-break: normal; word-wrap: normal; - line-height: 1.5; + /* line-height: 1.5; */ /* -moz-tab-size: 4; */ /* -o-tab-size: 4; */ diff --git a/docs/src/modules/components/MarkdownElement.js b/docs/src/modules/components/MarkdownElement.js index 64664cbcdd7071..c172864f676d7e 100644 --- a/docs/src/modules/components/MarkdownElement.js +++ b/docs/src/modules/components/MarkdownElement.js @@ -10,12 +10,14 @@ import { const Root = styled('div')( ({ theme }) => ({ ...lightTheme.typography.body1, + lineHeight: 1.5625, // Increased compared to the 1.5 default to make the docs easier to read. color: `var(--muidocs-palette-text-primary, ${lightTheme.palette.text.primary})`, '& strong': { color: `var(--muidocs-palette-text-primary, ${lightTheme.palette.text.primary})`, }, wordBreak: 'break-word', '& pre': { + lineHeight: 1.5, // Developers likes when the code is dense. margin: theme.spacing(2, 'auto'), padding: theme.spacing(2), backgroundColor: `var(--muidocs-palette-primaryDark-800, ${lightTheme.palette.primaryDark[800]})`, diff --git a/docs/src/modules/components/TopLayoutBlog.js b/docs/src/modules/components/TopLayoutBlog.js index f5c097bd38fb8b..b258d489d1a894 100644 --- a/docs/src/modules/components/TopLayoutBlog.js +++ b/docs/src/modules/components/TopLayoutBlog.js @@ -143,7 +143,6 @@ const Root = styled('div')( marginBottom: theme.spacing(3), }, '& .markdown-body': { - fontSize: theme.typography.pxToRem(16), lineHeight: 1.7, }, '& img, & video': {