This commit is contained in:
@@ -972,6 +972,16 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background: rgba(56, 189, 248, 0.15);
|
background: rgba(56, 189, 248, 0.15);
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aside-tools .tools-list .tools-item.back-top svg {
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
color: #E5E7EB;
|
||||||
|
transition: all 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.aside-tools .tools-list .tools-item.back-top:hover {
|
.aside-tools .tools-list .tools-item.back-top:hover {
|
||||||
@@ -979,11 +989,8 @@
|
|||||||
box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4);
|
box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.aside-tools .tools-list .tools-item.back-top img {
|
.aside-tools .tools-list .tools-item.back-top:hover svg {
|
||||||
transition: transform 0.3s ease;
|
color: #FFFFFF;
|
||||||
}
|
|
||||||
|
|
||||||
.aside-tools .tools-list .tools-item.back-top:hover img {
|
|
||||||
transform: translateY(-3px);
|
transform: translateY(-3px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -143,7 +143,7 @@
|
|||||||
align-items: center !important;
|
align-items: center !important;
|
||||||
justify-content: center !important;
|
justify-content: center !important;
|
||||||
gap: 8px !important;
|
gap: 8px !important;
|
||||||
padding: 0 48px !important;
|
padding: 0 36px !important;
|
||||||
font-size: 16px !important;
|
font-size: 16px !important;
|
||||||
font-weight: 600 !important;
|
font-weight: 600 !important;
|
||||||
color: #ffffff !important;
|
color: #ffffff !important;
|
||||||
@@ -156,10 +156,16 @@
|
|||||||
position: relative !important;
|
position: relative !important;
|
||||||
overflow: hidden !important;
|
overflow: hidden !important;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
min-width: 140px !important;
|
min-width: 120px !important;
|
||||||
flex-shrink: 0 !important;
|
flex-shrink: 0 !important;
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
z-index: 1 !important;
|
}
|
||||||
|
|
||||||
|
/* 注册按钮文字 - 确保始终在最上层 */
|
||||||
|
#index .no-login .btn.btn-normal#registBtn .regist-text {
|
||||||
|
position: relative;
|
||||||
|
z-index: 3;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 注册按钮图标 */
|
/* 注册按钮图标 */
|
||||||
@@ -189,7 +195,7 @@
|
|||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: opacity 0.3s ease;
|
transition: opacity 0.3s ease;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
z-index: 0;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#index .no-login .btn.btn-normal#registBtn:hover {
|
#index .no-login .btn.btn-normal#registBtn:hover {
|
||||||
|
|||||||
24
index.html
24
index.html
@@ -562,4 +562,28 @@
|
|||||||
<img id="viewer" alt="" style="display: none;">
|
<img id="viewer" alt="" style="display: none;">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
// 回到顶部功能
|
||||||
|
$(document).ready(function() {
|
||||||
|
// 点击回到顶部
|
||||||
|
$("#backTop").click(function () {
|
||||||
|
$("html, body").animate({ scrollTop: 0 }, 600);
|
||||||
|
});
|
||||||
|
|
||||||
|
// 根据滚动位置显示/隐藏回到顶部按钮
|
||||||
|
$(window).scroll(function () {
|
||||||
|
if ($(this).scrollTop() > 300) {
|
||||||
|
$("#backTop").fadeIn(300);
|
||||||
|
} else {
|
||||||
|
$("#backTop").fadeOut(300);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// 初始化时隐藏回到顶部按钮
|
||||||
|
if ($(window).scrollTop() <= 300) {
|
||||||
|
$("#backTop").hide();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
{include file="footer"}
|
{include file="footer"}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
<div class="no-login" style="display: none;">
|
<div class="no-login" style="display: none;">
|
||||||
<span class="nav-text-link" id="loginBtn">登录</span>
|
<span class="nav-text-link" id="loginBtn">登录</span>
|
||||||
<span class="nav-divider">|</span>
|
<span class="nav-divider">|</span>
|
||||||
<div class="btn btn-normal" id="registBtn">立即注册</div>
|
<div class="btn btn-normal" id="registBtn"><span class="regist-text">立即注册</span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="login-in " style="display: none;">
|
<div class="login-in " style="display: none;">
|
||||||
<div id="headImg" class="head-img"></div>
|
<div id="headImg" class="head-img"></div>
|
||||||
@@ -97,7 +97,9 @@
|
|||||||
<div class="tools-list">
|
<div class="tools-list">
|
||||||
<!-- 回到顶部按钮 - 固定在第一位 -->
|
<!-- 回到顶部按钮 - 固定在第一位 -->
|
||||||
<div class="tools-item back-top" id="backTop">
|
<div class="tools-item back-top" id="backTop">
|
||||||
<img src="/web/BlackFruit-web/assets/img/index/top.png" alt="回到顶部">
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M12 4L12 20M12 4L6 10M12 4L18 10" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{if ( isset($data.side_floating_window) ) }
|
{if ( isset($data.side_floating_window) ) }
|
||||||
|
|||||||
Reference in New Issue
Block a user