Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | 10x | import { css, cssClass } from '../styled';
import { borderRadius, palette, theme } from '../utils';
export const Code = styleProps => cssClass`
background-color: ${
styleProps.palette === 'default'
? palette('white700')(styleProps)
: palette(`${styleProps.palette}Tint`)(styleProps)
};
border-radius: ${borderRadius('1')(styleProps)};
color: ${
styleProps.palette === 'default' ? palette('text')(styleProps) : palette(`${styleProps.palette}700`)(styleProps)
};
font-family: 'SF Mono', 'Segoe UI Mono', 'Roboto Mono', Menlo, Courier, monospace;
padding: 0.1rem 0.2rem;
overflow: scroll;
& {
${styleProps.isBlock &&
css`
padding: 1rem;
${theme(styleProps.themeKey, `css.block`)(styleProps)};
`}
};
& {
${theme(styleProps.themeKey, `css.root`)(styleProps)};
};
`;
|