mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-02 05:03:44 +08:00
fix
This commit is contained in:
parent
78a5355aff
commit
f579da9574
@ -4,19 +4,23 @@ import { SyntaxHighlighter } from '@storybook/components';
|
||||
|
||||
import { EmptyBlock } from './EmptyBlock';
|
||||
|
||||
const StyledSyntaxHighlighter = styled(SyntaxHighlighter)(({ theme }) => ({
|
||||
// DocBlocks-specific styling and overrides
|
||||
fontSize: `${theme.typography.size.s2 - 1}px`,
|
||||
lineHeight: '19px',
|
||||
margin: '25px 0 40px',
|
||||
borderRadius: theme.appBorderRadius,
|
||||
boxShadow:
|
||||
theme.base === 'light' ? 'rgba(0, 0, 0, 0.10) 0 1px 3px 0' : 'rgba(0, 0, 0, 0.20) 0 2px 5px 0',
|
||||
'pre.prismjs': {
|
||||
padding: 20,
|
||||
background: 'inherit',
|
||||
},
|
||||
}));
|
||||
const StyledSyntaxHighlighter: typeof SyntaxHighlighter = styled(SyntaxHighlighter)(
|
||||
({ theme }) => ({
|
||||
// DocBlocks-specific styling and overrides
|
||||
fontSize: `${theme.typography.size.s2 - 1}px`,
|
||||
lineHeight: '19px',
|
||||
margin: '25px 0 40px',
|
||||
borderRadius: theme.appBorderRadius,
|
||||
boxShadow:
|
||||
theme.base === 'light'
|
||||
? 'rgba(0, 0, 0, 0.10) 0 1px 3px 0'
|
||||
: 'rgba(0, 0, 0, 0.20) 0 2px 5px 0',
|
||||
'pre.prismjs': {
|
||||
padding: 20,
|
||||
background: 'inherit',
|
||||
},
|
||||
})
|
||||
);
|
||||
|
||||
export enum SourceError {
|
||||
NO_STORY = 'There\u2019s no story here.',
|
||||
|
Loading…
x
Reference in New Issue
Block a user