Skip to content

Commit

Permalink
fix: make example/defaults badge consistent with code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Jan 17, 2019
1 parent c7436f2 commit fa39ce4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/common-elements/fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const ClickablePropertyNameCell = styled(PropertyNameCell)`

export const FieldLabel = styled.span`
vertical-align: middle;
font-size: 0.929em;
font-size: ${({ theme }) => theme.typography.code.fontSize};
line-height: 20px;
`;

Expand Down Expand Up @@ -79,6 +79,8 @@ export const ExampleValue = styled(FieldLabel)`
margin: ${theme.spacing.unit}px;
padding: 0 ${theme.spacing.unit}px;
border: 1px solid ${transparentize(0.9, theme.colors.text.primary)};
font-family: ${theme.typography.code.fontFamily};
color: ${theme.typography.code.color};
}`};
& + & {
margin-left: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Markdown/styled.elements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const StyledMarkdownBlock = styled(PrismDiv as StyledComponent<
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;
padding: 0 ${({ theme }) => theme.spacing.unit}px;
font-size: ${props => props.theme.typography.code.fontSize};
font-weight: ${({ theme }) => theme.typography.code.fontWeight};
Expand Down

0 comments on commit fa39ce4

Please sign in to comment.