Skip to content

Commit

Permalink
fix: theme default dark mode css update
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxiaohei committed May 5, 2022
1 parent a6797cc commit e57ba00
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion themes/default/archives.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
{{template "head.html" .}}

<body class="dark:bg-zinc-900">
<body>
{{template "header.html" .}}
<main class="main">
<div class="main-container">
Expand Down
2 changes: 1 addition & 1 deletion themes/default/page.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
{{template "head.html" .}}
<body class="dark:bg-zinc-900">
<body>
{{template "header.html" .}}
<main class="main">
<div class="main-container">
Expand Down
2 changes: 1 addition & 1 deletion themes/default/post-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
{{template "head.html" .}}

<body class="dark:bg-zinc-900">
<body>
{{template "header.html" .}}
<main class="main">
<div class="main-container">
Expand Down
2 changes: 1 addition & 1 deletion themes/default/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
{{template "head.html" .}}

<body class="dark:bg-zinc-900">
<body>
{{template "header.html" .}}
<main class="main">
<div class="main-container">
Expand Down
8 changes: 6 additions & 2 deletions themes/default/static/css/input.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
@tailwind components;
@tailwind utilities;

body{
@apply dark:bg-zinc-800
}

.main {
@apply w-full flex-none
@apply w-full flex-none dark:bg-zinc-900
}

.main-container {
Expand All @@ -19,7 +23,7 @@
}

.post-header {
@apply flex-auto pb-4 mb-4 text-xl text-gray-500 border-b border-slate-200
@apply flex-auto pb-4 mb-4 text-xl text-gray-500 border-b border-slate-200 dark:border-zinc-800
}

.post-list .post-container {
Expand Down
2 changes: 1 addition & 1 deletion themes/default/static/css/style.css

Large diffs are not rendered by default.

0 comments on commit e57ba00

Please sign in to comment.