style(footer): 页脚改为底部居中单行横排;火箭恢复原始位置
- .footer: left0/right0 + text-align:center + white-space:nowrap,bottom12 - 两段文字合并为一行,中间 · 分隔(margin 0 8px, 55% 透明) - 实测 centerOffsetPx=0(完美居中)、singleLine=true、距底12px - 页脚不再占右下角 -> 火箭恢复 bottom 26px;文字右缘884 vs 火箭左缘1364,相距480px无冲突 - 保留链接 pointer-events:auto 可点、悬停变主题绿、滚动不跟随
This commit is contained in:
1 parent
8744e046c0
commit
fc70d22929
2 files changed
+27
-12
No files matched your search
+18
-12
@@ -157,14 +157,13 @@ onBeforeUnmount(() => {
|
||||
</div>
|
||||
<slot />
|
||||
|
||||
<!-- 右侧主屏最下方固定页脚 -->
|
||||
<!-- 底部居中固定页脚(单行横排) -->
|
||||
<div class="footer">
|
||||
<div>© {{ new Date().getFullYear() }} IT-TOOLS-PRO</div>
|
||||
<div>
|
||||
<c-link target="_blank" rel="noopener" href="https://nav.88531.cn">
|
||||
🚀 更多应用尽在 nav.88531.cn
|
||||
</c-link>
|
||||
</div>
|
||||
<span>© {{ new Date().getFullYear() }} IT-TOOLS-PRO</span>
|
||||
<span class="footer-sep">·</span>
|
||||
<span>
|
||||
<c-link target="_blank" rel="noopener" href="https://nav.88531.cn">🚀 更多应用尽在 nav.88531.cn</c-link>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<!-- 右下角回到顶部火箭 -->
|
||||
@@ -185,11 +184,11 @@ onBeforeUnmount(() => {
|
||||
// background-size: @size @size;
|
||||
// }
|
||||
|
||||
// 右下角回到顶部火箭(上移到页脚之上,避免与固定页脚重叠)
|
||||
// 右下角回到顶部火箭(页脚已改为底部居中,右下角不再冲突,恢复原始位置)
|
||||
.back-top {
|
||||
position: fixed;
|
||||
right: 26px;
|
||||
bottom: 62px;
|
||||
bottom: 26px;
|
||||
z-index: 400;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
@@ -229,19 +228,26 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
}
|
||||
|
||||
/* 右侧主屏最下方固定页脚:贴住视口右下角,滚动不跟随 */
|
||||
/* 底部居中固定页脚:单行横排,贴住视口底部中线,滚动不跟随 */
|
||||
.footer {
|
||||
position: fixed;
|
||||
right: 22px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 12px;
|
||||
z-index: 350;
|
||||
text-align: right;
|
||||
text-align: center;
|
||||
color: #838587;
|
||||
font-size: 12px;
|
||||
line-height: 1.55;
|
||||
white-space: nowrap; // 强制单行,不折行
|
||||
pointer-events: none; // 不拦截下方内容点击,仅链接可点
|
||||
user-select: none;
|
||||
|
||||
.footer-sep {
|
||||
margin: 0 8px;
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
:deep(a) {
|
||||
pointer-events: auto;
|
||||
color: #838587;
|
||||
|
||||
Reference in new issue
Block a user