File tree Expand file tree Collapse file tree 4 files changed +16
-5
lines changed
hoc/GitHubMarkdownWrapper Expand file tree Collapse file tree 4 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 1515 */
1616
1717.root {
18- background-color : # 272822 ;
1918 font-size : 16px ;
2019}
2120
2221@media only screen and (max-width : 600px ) {
23- .root {
22+ .root {
2423 font-size : 8px ;
2524 }
2625}
Original file line number Diff line number Diff line change @@ -19,12 +19,13 @@ import React from 'react';
1919import GitHubMarkdownWrapper from 'hoc/GitHubMarkdownWrapper' ;
2020import ReactMarkdownWithRenderers from 'components/ReactMarkdownWithRenderers' ;
2121import { reactLoadingPatterns } from 'utils/data/concepts' ;
22+ import styles from './style.module.css' ;
2223
2324const TextDescription = ( { selectedPatternId } ) => {
2425 const pattern = reactLoadingPatterns . find ( reactLoadingPattern => reactLoadingPattern . id === selectedPatternId ) ;
2526
2627 return (
27- < GitHubMarkdownWrapper >
28+ < GitHubMarkdownWrapper className = { styles [ 'code-font' ] } >
2829 < ReactMarkdownWithRenderers source = { pattern . textDescription } />
2930 </ GitHubMarkdownWrapper >
3031 ) ;
Original file line number Diff line number Diff line change 1+
2+ .code-font pre {
3+ font-size : 16px ;
4+ }
5+
6+ @media only screen and (max-width : 600px ) {
7+ .code-font pre {
8+ font-size : 8px ;
9+ }
10+ }
Original file line number Diff line number Diff line change 1616
1717import React from 'react' ;
1818import 'github-markdown-css' ;
19+ import clsx from 'clsx' ;
1920
2021import './style.css' ;
2122
22- const GitHubMarkdownWrapper = ( { children } ) => {
23+ const GitHubMarkdownWrapper = ( { children, className } ) => {
2324 return (
24- < div className = 'markdown-body' >
25+ < div className = { clsx ( 'markdown-body' , className ) } >
2526 { children }
2627 </ div >
2728 ) ;
You can’t perform that action at this time.
0 commit comments