Skip to content

Commit

Permalink
feat: improve style
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Sketon committed Oct 4, 2024
1 parent 8a8dfd5 commit 5a3fa44
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 2 deletions.
1 change: 1 addition & 0 deletions layout/layout.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<div id="reimu-hits"></div>
<div id="reimu-pagination" class="reimu-pagination"></div>
</div>
<img class="reimu-bg" src="<%- url_for('/images/reimu.png', {relative: false}) %>"/>
</div>
</div>
<%- partial('_partial/after-footer') %>
Expand Down
1 change: 1 addition & 0 deletions source/css/_partial/header.styl
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ $nav-link-wrap
background: url("../images/taichi.png") no-repeat center / 80%
transform: rotate(0deg)
transition: transform 1s
will-change: transform
if reimu_cursor
cursor: var(--cursor-pointer)
else
Expand Down
7 changes: 7 additions & 0 deletions source/css/_partial/highlight.styl
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ pre
else
cursor: pointer
color: #fff
transition: .3s

&:hover
opacity: .7

.code-lang
margin: 5px
Expand All @@ -269,6 +273,9 @@ pre
transform: rotate(0deg)
color: #fff

&:hover
opacity: .7

.code-closed .code-expand
transform: rotate(-180deg) !important
transition: .3s
Expand Down
4 changes: 4 additions & 0 deletions source/css/_partial/post.styl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ $post-wrap
.post-wrapper
border-radius: post-radius
transition: .3s

img
will-change: transform

@media mq-normal
&:hover
transform: scale(1.015)
Expand Down
21 changes: 19 additions & 2 deletions source/css/_partial/search.styl
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
else
cursor: pointer
padding-left: 15px
transition: 0.3s

&:hover
opacity: .8

.reimu-search
display: flex
Expand Down Expand Up @@ -93,7 +97,10 @@
overflow: auto
padding: 10px 30px
box-sizing: border-box
height: calc(100% - 50px)
max-height: calc(100% - 50px)

@media mq-normal
min-height: 300px

hr
margin: 10px 0
Expand All @@ -108,6 +115,10 @@
margin-top: 10px
margin-left: 10px

mark
background: var(--red-1)
color: white

.reimu-hit-item-link
display: block
text-decoration: none
Expand Down Expand Up @@ -136,7 +147,6 @@

.reimu-pagination
margin: 10px auto
background: var(--color-wrap)
border-radius: post-radius
text-align: center
color: var(--grey-9)
Expand Down Expand Up @@ -171,3 +181,10 @@
.disabled-item
display: none


.reimu-bg
position: absolute
right: 0
bottom: 0
z-index: -1
opacity: .5
2 changes: 2 additions & 0 deletions source/css/_partial/sidebar.styl
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ $sidebar-state-content
height: 25px
font: 20px font-icon
transition: transform .2s
will-change: transform

&:hover
transform: scale(1.2)
Expand Down Expand Up @@ -244,6 +245,7 @@ $menu-link
transform: rotate(0deg)
transition: transform 1s
pointer-events: none
will-change: transform

.sidebar-menu-link-dummy
position: absolute
Expand Down
Binary file added source/images/reimu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5a3fa44

Please sign in to comment.