Skip to content

Commit

Permalink
Merge pull request #20 from bianxuerui/feature/style
Browse files Browse the repository at this point in the history
fix: 为搜索框添加 hover 阴影效果
  • Loading branch information
KoriIku authored Oct 10, 2024
2 parents 0b8c3a3 + f0d750c commit 9a7493d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ a,
border: none !important;
}

.gsc-search-button-v2:hover {
cursor: pointer !important;
}

.gsc-search-box.gsc-search-box-tools {
display: flex;
z-index: 3;
Expand All @@ -82,6 +86,13 @@ a,
height: 46px;
}

.gsc-search-box-tools:hover {
background: #fff;
box-shadow: 0 2px 8px 1px rgba(64, 60, 67, .24);
border-color: transparent;
border-radius: 24px;
}

/* 针对小屏幕的样式 */
@media (max-width: 600px) {
.gsc-search-box.gsc-search-box-tools {
Expand Down Expand Up @@ -157,7 +168,8 @@ a,
}

.gs-title:hover {
text-decoration: underline !important; /* 鼠标悬停时显示下划线 */
text-decoration: underline !important;
/* 鼠标悬停时显示下划线 */
}

/* 新增:设置已访问链接的样式 */
Expand Down

0 comments on commit 9a7493d

Please sign in to comment.