Skip to content

Commit

Permalink
Waline会自动适配白天/黑夜模式无需再写CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
Hscpro committed Apr 17, 2023
1 parent a496e34 commit acfc248
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
1 change: 1 addition & 0 deletions components/WalineComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 29,7 @@ const WalineComponent = (props) => {
serverURL: BLOG.COMMENT_WALINE_SERVER_URL,
lang: BLOG.lang,
reaction: true,
dark: 'html.dark',
emoji: [
'//npm.elemecdn.com/@waline/[email protected]/tieba',
'//npm.elemecdn.com/@waline/[email protected]/weibo',
Expand Down
14 changes: 0 additions & 14 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -181,20 181,6 @@ nav {
margin: -0.125em 0.25em;
}


/* waline评论插件夜间适配 */
.wl-panel{
@apply dark:bg-black dark:border-gray-800
}

.wl-input,.wl-editor{
@apply dark:focus-within:bg-gray-900 dark:text-gray-200
}

.wl-meta > span {
@apply dark:bg-gray-800 !important
}

/* 固定两行 */
.text-line-2 {
overflow : hidden;
Expand Down

0 comments on commit acfc248

Please sign in to comment.