mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-07-22 21:55:57 -04:00
don't load fathom script unless on production
This commit is contained in:
@@ -9,7 +9,7 @@ const Block = styled("div", {
|
||||
margin: "1em auto",
|
||||
color: "$codeText",
|
||||
|
||||
[`& ${Code}`]: {
|
||||
[`${Code}`]: {
|
||||
display: "block",
|
||||
overflowX: "auto",
|
||||
padding: "1em",
|
||||
|
||||
@@ -9,7 +9,7 @@ const Title = styled("h1", {
|
||||
lineHeight: 1.3,
|
||||
fontWeight: 700,
|
||||
|
||||
"& code": {
|
||||
code: {
|
||||
margin: "0 0.075em",
|
||||
},
|
||||
|
||||
|
||||
@@ -12,10 +12,10 @@ const Display = styled(
|
||||
maxWidth: "800px",
|
||||
|
||||
// these are injected by noVNC after connection, so we can't target them directly:
|
||||
"& div": {
|
||||
div: {
|
||||
background: "none !important",
|
||||
|
||||
"& canvas": {
|
||||
canvas: {
|
||||
cursor: "inherit !important",
|
||||
},
|
||||
},
|
||||
|
||||
@@ -13,7 +13,7 @@ const Player = styled(ReactPlayer, {
|
||||
top: 0,
|
||||
left: 0,
|
||||
|
||||
"& video": {
|
||||
video: {
|
||||
borderRadius: "$rounded",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -14,7 +14,7 @@ const Player = styled(ReactPlayer, {
|
||||
left: 0,
|
||||
|
||||
// target both the lazy thumbnail preview *and* the actual YouTube embed
|
||||
"& .react-player__preview, & iframe": {
|
||||
".react-player__preview, iframe": {
|
||||
borderRadius: "$rounded",
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user