UNPKG

@grafana/ui

Version:
45 lines (40 loc) 1.11 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var react = require('@emotion/react'); "use strict"; function getCodeStyles(theme) { return react.css({ "code, pre, kbd, samp": { ...theme.typography.code, fontSize: theme.typography.bodySmall.fontSize, backgroundColor: theme.colors.background.primary, color: theme.colors.text.primary, border: `1px solid ${theme.colors.border.medium}`, borderRadius: theme.shape.radius.default }, code: { whiteSpace: "nowrap", padding: "2px 5px", margin: "0 2px" }, pre: { display: "block", margin: theme.spacing(0, 0, 2), lineHeight: theme.typography.body.lineHeight, wordBreak: "break-all", wordWrap: "break-word", whiteSpace: "pre-wrap", overflow: "auto", padding: "10px", code: { padding: 0, color: "inherit", whiteSpace: "pre-wrap", backgroundColor: "transparent", border: 0 } } }); } exports.getCodeStyles = getCodeStyles; //# sourceMappingURL=code.cjs.map