Skip to content

Commit

Permalink
feat: 夜间模式优化
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Sketon committed Jan 10, 2024
1 parent f6bb7a3 commit 2c9a2c8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/css/_extend.styl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $base-style
&:before
content: ""
width: 100%
border-bottom: 1px solid #eee
border-bottom: 1px solid var(--color-h2-border)
position: absolute
bottom: -15px
box-sizing: unset
Expand Down
3 changes: 3 additions & 0 deletions source/css/_partial/sidebar.styl
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,9 @@ $siderbar-btn-icon
margin: 20px
transition: all 0.3s ease

[data-theme="dark"] &
filter: brightness(0.8)

.sidebar-btn-wrapper
display: flex
justify-content: center
Expand Down
4 changes: 3 additions & 1 deletion source/css/_variables.styl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
--color-dark-pinterest: darken(#cb2027, 20%)
--color-dark-linkedin: darken(#0077B5, 20%)

--color-h2-border: #eee
--color-meta-shadow: --var(--red-6)
--color-hover-shadow: rgba(150, 150, 150, 0.1)
--color-h2-after: rgba(255, 0, 0, 0.6)
Expand Down Expand Up @@ -64,7 +65,7 @@
--color-default-font: #999
--color-default: #999
--color-grey: #999
--color-border: var(--red-3)
--color-border: var(--red-5)
--color-link: var(--red-1)
--color-dark-link: darken(#ff5252, 20%)
--color-background: #21252b
Expand All @@ -83,6 +84,7 @@
--color-dark-pinterest: darken(#cb2027, 20%)
--color-dark-linkedin: darken(#0077B5, 20%)

--color-h2-border: #47474a
--color-meta-shadow: rgba(0, 0, 0, 0.2)
--color-hover-shadow: rgba(0, 0, 0, 0.2)
--color-h2-after: #ff5252
Expand Down

0 comments on commit 2c9a2c8

Please sign in to comment.