* Fix typo * Fix 1px line showing in middle of divs * Increase inline code padding by 2px * Make masonry block not full width on screens larger than mobile * Align list items * Change button text to copied if it's been copied
16 lines
438 B
TypeScript
16 lines
438 B
TypeScript
import * as React from 'react';
|
|
import styled from 'styled-components';
|
|
import { colors } from '../variables';
|
|
|
|
interface InlineCodeProps {
|
|
alt?: boolean;
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
const InlineCode = styled(({ alt, children, ...props }: InlineCodeProps) => <code {...props}>{children}</code>)`
|
|
background-color: ${props => (props.alt ? '#E5E8E9' : colors.blueGray)};
|
|
padding: 0.3125rem;
|
|
`;
|
|
|
|
export default InlineCode;
|