mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-07-25 04:55:58 -04:00
switch monospace font to Source Code Pro
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { styled, theme } from "../../lib/styles/stitches.config";
|
||||
|
||||
const Code = styled("code", {
|
||||
fontSize: "0.925em",
|
||||
backgroundColor: theme.colors.codeBackground,
|
||||
border: `1px solid ${theme.colors.kindaLight}`,
|
||||
borderRadius: theme.radii.corner,
|
||||
|
||||
@@ -13,6 +13,7 @@ const Block = styled("div", {
|
||||
display: "block",
|
||||
overflowX: "auto",
|
||||
padding: "1em",
|
||||
fontSize: "0.925em",
|
||||
tabSize: 2,
|
||||
|
||||
// optional line numbers added at time of prism compilation
|
||||
|
||||
@@ -2,7 +2,8 @@ import Code from "../Code";
|
||||
import { styled } from "../../lib/styles/stitches.config";
|
||||
|
||||
const CodeInline = styled(Code, {
|
||||
padding: "0.2em 0.3em",
|
||||
padding: "0.175em 0.3em",
|
||||
fontSize: "0.975em",
|
||||
pageBreakInside: "avoid",
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user