Skip to content

Commit

Permalink
improve code color and accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
AngeloChecked committed Oct 5, 2024
1 parent e1a5f04 commit b452c5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions blog/components/Base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@ export const Base = (props: BaseProps) =>
${props.scripts ?? ""}
${props.style ?? ""}
${ props.content.includes("lite-youtube") ? `<link rel="preload" as="style" href="https://cdnjs.cloudflare.com/ajax/libs/lite-youtube-embed/0.3.3/lite-yt-embed.min.css" onload="this.onload=null;this.rel='stylesheet'"/>` : ""}
<link rel="preload" as="style" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css" onload="this.onload=null;this.rel='stylesheet'">
<link rel="preload" as="style" href="https://cdn.jsdelivr.net/npm/highlight.js@11.10.0/styles/atom-one-dark.min.css" onload="this.onload=null;this.rel='stylesheet'">
<noscript>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@11.10.0/styles/atom-one-dark.min.css">
</noscript>
</head>
${googleTagManagerScript()}
<body>
Expand Down
4 changes: 2 additions & 2 deletions blog/style/mainCss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ const preStyle = cssElement({
properties: {
lineHeight: "1.1",
fontFamily: "verdana",
fontSize: "10px",
backgroundColor: "rgb(5,4,4)",
fontSize: "12px",
backgroundColor: "#282c34",
padding: "15px",
overflowX: "auto",
borderRadius: "20px",
Expand Down

0 comments on commit b452c5a

Please sign in to comment.