更新完善网页逻辑,工具迁移至html逻辑
This commit is contained in:
1 parent
c3bfce7afb
commit
646754c04d
26 files changed
+1606
-167
No files matched your search
@@ -168,6 +168,52 @@ select { width: auto; min-width: 150px; }
|
||||
/* 第三方天气 iframe 内容为白底,无法跨域改色:深色主题下用反色滤镜融入当前背景 */
|
||||
[data-theme="dark"] .weather-box iframe { filter: invert(0.9) hue-rotate(180deg) contrast(0.92) saturate(0.9); }
|
||||
|
||||
/* ---------- 首页顶部组件:访客信息模式(hero_mode=info) ---------- */
|
||||
.visitor-box { display: flex; justify-content: center; }
|
||||
.vb-grid {
|
||||
width: 100%; max-width: 800px;
|
||||
display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
|
||||
background: rgba(255, 255, 255, .28);
|
||||
border: 1px solid rgba(255, 255, 255, .22);
|
||||
border-radius: 10px; overflow: hidden;
|
||||
}
|
||||
.vb-cell { background: rgba(10, 22, 44, .32); padding: 9px 16px; text-align: left; }
|
||||
.vb-cell span { display: block; font-size: 11px; letter-spacing: .5px; opacity: .72; margin-bottom: 2px; }
|
||||
.vb-cell b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; word-break: break-all; color: #fff; }
|
||||
|
||||
/* ---------- 首页顶部组件:空白精简模式(hero_mode=blank) ---------- */
|
||||
.hero-slim { min-height: 0; padding: 16px 0 12px; }
|
||||
|
||||
/* ============ 后台访问信息页 ============ */
|
||||
.vis-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
|
||||
.vis-stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
|
||||
.vis-stat b { display: block; font-size: 22px; line-height: 1.3; font-variant-numeric: tabular-nums; }
|
||||
.vis-stat span { font-size: 12px; color: var(--text-3); }
|
||||
.v-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
|
||||
.v-filter input[type=text] { width: 200px; }
|
||||
.v-filter input[type=text].w-s { width: 160px; }
|
||||
.v-scroll { overflow-x: auto; margin-top: 4px; }
|
||||
.v-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
|
||||
.v-tbl th, .v-tbl td { padding: 8px 10px; text-align: left; vertical-align: top; }
|
||||
.v-tbl th { color: var(--text-3); font-weight: 600; border-bottom: 1px solid var(--line-2); }
|
||||
.v-tbl td { border-bottom: 1px solid var(--line); word-break: break-all; }
|
||||
.v-tbl tr:last-child td { border-bottom: none; }
|
||||
.v-nowrap { white-space: nowrap; }
|
||||
.v-tag { display: inline-block; min-width: 44px; text-align: center; padding: 1px 8px; border-radius: 20px; font-size: 12px; border: 1px solid var(--line-2); color: var(--text-2); }
|
||||
.v-tag.good { color: var(--ok); border-color: var(--ok); }
|
||||
.v-tag.info { color: var(--brand); border-color: var(--brand); }
|
||||
.v-tag.warn { color: var(--warn); border-color: var(--warn); }
|
||||
.v-tag.bad { color: var(--danger); border-color: var(--danger); }
|
||||
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
|
||||
.pager .pg-info { font-size: 13px; color: var(--text-3); margin-right: 4px; }
|
||||
.bl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); }
|
||||
.bl-row:first-child { border-top: none; padding-top: 0; }
|
||||
.bl-rule { font-family: Consolas, Menlo, monospace; background: var(--code-bg); color: var(--code-text); border-radius: 6px; padding: 2px 9px; font-size: 13px; }
|
||||
.bl-note { color: var(--text-2); flex: 1 1 140px; min-width: 100px; font-size: 13px; }
|
||||
.bl-time { font-size: 12px; color: var(--text-3); white-space: nowrap; }
|
||||
.vis-ok-tip { background: rgba(22, 163, 74, .12); color: var(--ok); border-radius: 8px; padding: 7px 12px; font-size: 13px; display: inline-block; }
|
||||
.vis-warn-tip { background: rgba(217, 119, 6, .12); color: var(--warn); border-radius: 8px; padding: 7px 12px; font-size: 13px; display: inline-block; }
|
||||
|
||||
/* ---------- 名言条 ---------- */
|
||||
.quote-bar { background: var(--card); border-bottom: 1px solid var(--line); }
|
||||
.quote-inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 16px; text-align: center; }
|
||||
@@ -572,6 +618,9 @@ a.nav-btn[data-note]:hover::after { opacity: 1; transform: translateX(-50%) tran
|
||||
.hero-top { flex-direction: column; text-align: center; }
|
||||
.hero-meta { text-align: center; }
|
||||
.weather-box iframe { width: 100%; }
|
||||
.visitor-box .vb-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
.vis-stats { grid-template-columns: repeat(2, 1fr); }
|
||||
.v-filter input[type=text] { width: 100%; }
|
||||
.quote-inner { flex-wrap: wrap; }
|
||||
.boards { grid-template-columns: repeat(2, 1fr); gap: 12px; min-height: 0; }
|
||||
.board-panel { width: 100%; }
|
||||
@@ -761,3 +810,18 @@ a.nav-btn[data-note]:hover::after { opacity: 1; transform: translateX(-50%) tran
|
||||
.art-tg-txt { display: none; }
|
||||
.art-topbar-nav { gap: 4px; }
|
||||
}
|
||||
|
||||
/* ---------- 右下角 Toast 通知(后台操作成功/失败即时提示,不影响页面布局) ---------- */
|
||||
.hp-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 9990; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: min(380px, calc(100vw - 36px)); pointer-events: none; }
|
||||
.hp-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; min-width: 220px; max-width: 100%; box-sizing: border-box; background: var(--card); color: var(--text-1); border: 1px solid var(--line-2); border-left: 4px solid var(--brand); border-radius: 12px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(15,23,42,.18); font-size: 14px; line-height: 1.55; animation: hpToastIn .26s ease; }
|
||||
.hp-toast.ok { border-left-color: var(--ok); }
|
||||
.hp-toast.err { border-left-color: var(--danger); }
|
||||
.hp-toast .ht-ic { flex: none; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
|
||||
.hp-toast.ok .ht-ic { background: var(--ok); }
|
||||
.hp-toast.err .ht-ic { background: var(--danger); }
|
||||
.hp-toast .ht-tx { flex: 1 1 auto; min-width: 0; word-break: break-word; }
|
||||
.hp-toast .ht-x { flex: none; align-self: flex-start; margin-left: 2px; padding: 0 2px; border: 0; background: none; color: var(--text-3); font-size: 16px; line-height: 1; cursor: pointer; }
|
||||
.hp-toast .ht-x:hover { color: var(--danger); }
|
||||
.hp-toast.hide { opacity: 0; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease; }
|
||||
@keyframes hpToastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
|
||||
@media (max-width: 600px) { .hp-toasts { right: 12px; bottom: 12px; left: 12px; align-items: stretch; } .hp-toast { min-width: 0; } }
|
||||
Reference in new issue
Block a user