new theme changes

This commit is contained in:
Yurov Dmitry 2019-01-10 17:28:55 +03:00
parent f16eb578de
commit 0fb2fd9366
3 changed files with 5 additions and 8 deletions

View File

@ -9,7 +9,6 @@ export const PrismDiv = styled.div`
pre[class*='language-'] {
/* color: white;
background: none; */
text-shadow: 0 -0.1em 0.2em black;
text-align: left;
white-space: pre;
word-spacing: normal;

View File

@ -65,11 +65,9 @@ export const StyledMarkdownBlock = styled(PrismDiv as StyledComponent<
code {
color: ${({ theme }) => theme.typography.code.color};
background-color: ${({ theme }) => theme.typography.code.backgroundColor};
background-color: #fff;
font-family: ${props => props.theme.typography.code.fontFamily};
border-radius: 2px;
border: 1px solid rgba(38, 50, 56, 0.1);
padding: 0.1em 0.25em 0.2em;
font-size: ${props => props.theme.typography.code.fontSize};
font-weight: ${({ theme }) => theme.typography.code.fontWeight};
@ -80,8 +78,8 @@ export const StyledMarkdownBlock = styled(PrismDiv as StyledComponent<
pre {
font-family: ${props => props.theme.typography.code.fontFamily};
white-space:${({ theme }) => (theme.typography.code.wrap ? 'pre-wrap' : 'pre')};
background-color: #263238;
color: white;
background-color: #f5f5f5;
color: #333333;
padding: 12px 14px 15px 14px;
overflow-x: auto;
line-height: normal;
@ -90,7 +88,7 @@ export const StyledMarkdownBlock = styled(PrismDiv as StyledComponent<
code {
background-color: transparent;
color: white;
color: #333333;
padding: 0;
&:before,

View File

@ -4,7 +4,7 @@ const defaultTheme: ThemeInterface = {
spacing: {
unit: 5,
sectionHorizontal: ({ spacing }) => spacing.unit * 8,
sectionVertical: ({ spacing }) => spacing.unit * 8,
sectionVertical: 0,
},
breakpoints: {
small: '50rem',