Skip to content

Commit

Permalink
style: minor adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
scenery committed Sep 5, 2024
1 parent f0dd706 commit 3bf5ad9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions web/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ main {
transition: all .25s var(--transition-effect)
}

.home-section:hover .home-add {
.home-header:hover .home-add {
visibility: visible;
opacity: 1
}
Expand Down Expand Up @@ -521,7 +521,7 @@ a.subject-outlink {

.add-pre label {
flex: unset;
min-width: 60px
min-width: 65px
}

.add-pre .note-color {
Expand Down
10 changes: 5 additions & 5 deletions web/tmpl/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<section class="home-section">
<div class="home-header">
<h2 class="page-title">最近图书</h2>
<a href="/book"><h2 class="page-title">最近图书</h2></a>
{{ if not .FewBooks }}
<a class="home-add" href="/add?subject_type=book">添加图书+</a>
{{ end }}
Expand Down Expand Up @@ -56,7 +56,7 @@ <h2 class="page-title">最近图书</h2>

<section class="home-section">
<div class="home-header">
<h2 class="page-title">最近电影</h2>
<a href="/movie"><h2 class="page-title">最近电影</h2></a>
{{ if not .FewMovies }}
<a class="home-add" href="/add?subject_type=movie">添加电影+</a>
{{ end }}
Expand Down Expand Up @@ -90,7 +90,7 @@ <h2 class="page-title">最近电影</h2>

<section class="home-section">
<div class="home-header">
<h2 class="page-title">最近剧集</h2>
<a href="/tv"><h2 class="page-title">最近剧集</h2></a>
{{ if not .FewTVs }}
<a class="home-add" href="/add?subject_type=tv">添加剧集+</a>
{{ end }}
Expand Down Expand Up @@ -124,7 +124,7 @@ <h2 class="page-title">最近剧集</h2>

<section class="home-section">
<div class="home-header">
<h2 class="page-title">最近番剧</h2>
<a href="/anime"><h2 class="page-title">最近番剧</h2></a>
{{ if not .FewAnimes }}
<a class="home-add" href="/add?subject_type=anime">添加番剧+</a>
{{ end }}
Expand Down Expand Up @@ -158,7 +158,7 @@ <h2 class="page-title">最近番剧</h2>

<section class="home-section">
<div class="home-header">
<h2 class="page-title">最近游戏</h2>
<a href="/game"><h2 class="page-title">最近游戏</h2></a>
{{ if not .FewGames }}
<a class="home-add" href="/add?subject_type=game">添加游戏+</a>
{{ end }}
Expand Down

0 comments on commit 3bf5ad9

Please sign in to comment.