Skip to content

Commit

Permalink
fix code style in articles
Browse files Browse the repository at this point in the history
  • Loading branch information
fish-404 committed Jul 29, 2024
1 parent dce8612 commit 018944c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/articles/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@

code {
font-size: 0.9em;
color: #131212;
background-color: rgb(151 151 151 / 30%);
color: var(--code-text);
background-color: var(--code-background);
padding: 2px 4px;
font-weight: 600;
border-radius: 4px;
Expand Down
4 changes: 4 additions & 0 deletions src/var.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
--border: #1f1e1e;
--shadow: 7px 15px 13px -4px #00000056;
--logo-image: url("./logo.svg");
--code-text: #131212;
--code-background: rgb(151 151 151 / 30%);
}

[data-theme='dark'] {
Expand All @@ -18,4 +20,6 @@
--border: #696969;
--shadow: 7px 15px 13px -4px #ffffff1b;
--logo-image: url("./logo_black.svg");
--code-text: #f2f2f2;
--code-background: #696969;
}

0 comments on commit 018944c

Please sign in to comment.