Files
wordpress-theme-aksrt/assets/css/frontend/footer/part.css
T
kate522andClaude Opus 5 35bb96e82f refactor: rename the theme brand and every identifier from AKSRT to Jio
Full-project rename. `git grep -i aksrt` is now empty apart from the
DBMigrator 3.3.0 changelog note that documents the rename itself.

Code identifiers
- PHP namespace AKSRT\ -> Jio\ (composer PSR-4 + 378 declarations)
- global constants AKSRT_* -> JIO_* (VERSION/DIR/URI, PAY_TYPE_*, CAPTCHA_*)
- procedural functions, hooks, options, meta keys, table names,
  cookies, query vars, ajax actions and nonces: aksrt_ -> jio_
- text domain aksrt -> jio; Theme Name -> Jio
- JS globals: aksrtData/aksrtAdminData/... -> jioData/jioAdminData/...,
  window.AKSRTCaptcha & friends -> window.JioCaptcha, Aksrt* -> Jio*
- Vue components Aks*.vue -> Jio*.vue (15 files renamed + imports)
- CSS classes/data-attrs/custom properties: aksrt- -> jio-
- REST namespace aksrt/v1 -> jio/v1 (incl. payment gateway callbacks)

Storage layer
- DB tables {prefix}aksrt_* -> {prefix}jio_*; SCHEMA_VERSION 3.2.0 -> 3.3.0
  so dbDelta creates the new names on install
- widget id_base aksrt_widget_* -> jio_widget_*
- uninstall.php drop list rebuilt from the actual migrator tables
  (dropped 3 stale entries, added the 17 missing ones)

Removed
- hardcoded https://api.aksrt.com/version.json default update endpoint;
  get_endpoint() now reads the 「更新端点」 setting and do_check() no-ops
  when it is empty

Files renamed: inc/helpers/aksrt-*.php -> jio-*.php (54),
assets/admin/src/components/form/Aks*.vue -> Jio*.vue (15).
Build artifacts regenerated: assets/css/build, assets/js/runtime,
assets/admin/build.

Verified: audit-psr4-paths errors=0, audit-admin-contracts errors=0
(warnings=56, unchanged baseline), 813/813 widget-system tests,
44/44 phpunit, php -l clean across all PHP.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-11-01 20:05:04 +08:00

632 lines
13 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* ============================================================
* Jio Footer utilities — float buttons start + device helpers
* Main template_1 shell: shell.css
* Tabbar / float details continue below.
* ============================================================ */
:root {
--jio-footer-tabbar-height: 49px;
}
/* Device visibility utility classes */
@media (max-width: 767px) {
.hide-on-mobile { display: none !important; }
.hidden-xs { display: none !important; }
}
@media (min-width: 768px) {
.hide-on-desktop { display: none !important; }
.hide-on-pc { display: none !important; }
}
/* ============================================================
* 移动端底部 Tab 栏(模仿 legacy footer-tabbar)
* ============================================================ */
.footer-tabbar {
display: none;
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 1035;
min-height: var(--jio-footer-tabbar-height);
background: var(--blur-bg);
border-top: 1px solid var(--color-line-soft);
padding: 0 0 env(safe-area-inset-bottom, 0px);
justify-content: space-around;
align-items: center;
box-shadow: 0 -4px 5px var(--main-shadow, rgba(0, 0, 0, 0.06));
-webkit-backdrop-filter: saturate(5) blur(20px);
backdrop-filter: saturate(5) blur(20px);
--tabbar-active-color: #f04494;
--tabbar-icon-size: 24px;
--tabbar-text-size: 10px;
}
.footer-tabbar.no-border {
border-top: none;
}
.footer-tabbar.no-shadow {
box-shadow: none;
}
.footer-tabbar.hide-text .tabbar-item span {
display: none;
}
.footer-tabbar.has-animation .tabbar-item {
transition: color 0.15s ease, transform 0.15s ease;
}
.footer-tabbar.has-animation .tabbar-item:active {
transform: scale(0.9);
}
.footer-tabbar-placeholder {
display: none;
height: calc(var(--jio-footer-tabbar-height) + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 767px) {
.footer-tabbar {
display: flex;
}
.footer-tabbar-placeholder {
display: block;
}
/* 有 tabbar 时页脚需要额外底部间距 */
.footer,
.site-footer {
padding-bottom: calc(var(--jio-footer-tabbar-height) + env(safe-area-inset-bottom, 0px));
}
}
.tabbar-item {
display: flex;
flex: 1 1 0;
min-width: 0;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1px;
min-height: 49px;
padding: 4px 0 3px;
color: var(--muted-color, var(--color-ink-3));
font-size: 13px;
text-decoration: none;
border: none;
background: none;
cursor: pointer;
transition: color 0.15s ease;
-webkit-tap-highlight-color: transparent;
position: relative;
}
/* 对齐 legacy: 24px 图标 */
.tabbar-item i {
font-size: var(--tabbar-icon-size, 24px);
line-height: 1;
}
.tabbar-item span {
display: block;
font-size: var(--tabbar-text-size, 10px);
font-weight: 500;
line-height: 1;
transform: scale(0.8);
transform-origin: center top;
}
.tabbar-item:hover,
.tabbar-item.active {
color: var(--tabbar-active-color, var(--color-primary));
text-decoration: none;
}
.tabbar-item.active i {
font-weight: 900;
}
.tabbar-badge {
position: absolute;
top: 2px;
right: 8px;
min-width: 16px;
height: 16px;
padding: 0 4px;
border-radius: 999px;
background: var(--color-error);
color: #fff;
font-size: 10px;
line-height: 16px;
font-style: normal;
font-weight: 700;
text-align: center;
box-shadow: 0 2px 8px rgba(239, 68, 68, 0.20);
}
.tabbar-badge--dot {
min-width: 0;
width: 8px;
height: 8px;
padding: 0;
top: 4px;
right: 10px;
font-size: 0;
line-height: 1;
box-shadow: 0 0 0 2px var(--blur-bg);
}
.tabbar-item--add {
margin-top: -22px;
width: 62px;
height: 62px;
min-height: 62px;
border-radius: 50%;
background: var(--color-accent);
color: #fff;
box-shadow: 0 12px 24px var(--color-accent-shadow);
flex: 0 0 62px;
z-index: 1;
}
.tabbar-item--add i {
font-size: 22px;
}
.tabbar-item--add span {
font-size: 11px;
}
.tabbar-item--add:hover,
.tabbar-item--add.active {
color: #fff;
}
.tabbar-add-backdrop {
position: fixed;
inset: 0;
z-index: 951;
background: rgba(15, 23, 42, 0.38);
}
.tabbar-add-panel {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 952;
padding: 0 12px calc(84px + env(safe-area-inset-bottom, 0px));
}
.tabbar-add-panel__sheet {
border-radius: 20px;
background: var(--surface-1);
border: none;
box-shadow: var(--shadow-drawer);
overflow: hidden;
}
.tabbar-add-panel__head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 18px 12px;
border-bottom: 1px solid var(--color-line);
}
.tabbar-add-panel__close {
width: 32px;
height: 32px;
border: 0;
border-radius: 50%;
background: var(--surface-2);
color: var(--color-ink-3);
}
.tabbar-add-panel__list {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
padding: 18px;
}
.tabbar-add-panel__item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
min-height: 88px;
border-radius: 18px;
background: var(--surface-2);
color: var(--color-ink-3);
text-decoration: none;
}
.tabbar-add-panel__item i {
font-size: 22px;
color: var(--color-accent);
}
.tabbar-add-panel__item span {
font-size: 13px;
font-weight: 600;
}
.tabbar-search-overlay {
position: fixed;
inset: 0;
z-index: 953;
background: rgba(15, 23, 42, 0.58);
display: flex;
align-items: stretch;
justify-content: center;
}
.tabbar-search-overlay__dialog {
width: 100%;
min-height: 100%;
background: var(--surface-1);
padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px));
}
.tabbar-search-overlay__head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
}
.tabbar-search-overlay__close {
width: 36px;
height: 36px;
border: 0;
border-radius: 50%;
background: var(--surface-2);
color: var(--color-ink-3);
}
.tabbar-search-overlay__form {
display: grid;
grid-template-columns: 20px 1fr auto;
gap: 10px;
align-items: center;
padding: 14px 14px 14px 12px;
border-radius: 18px;
border: none;
box-shadow: var(--shadow-sm);
background: var(--surface-4);
}
.tabbar-search-overlay__icon {
color: var(--color-ink-4);
}
.tabbar-search-overlay__form input {
min-width: 0;
border: 0;
background: transparent;
color: var(--color-ink);
font-size: 15px;
outline: none;
}
.tabbar-search-overlay__submit {
border: 0;
border-radius: 12px;
padding: 10px 14px;
background: var(--color-accent);
color: #fff;
font-weight: 700;
}
.tabbar-search-overlay__types {
display: flex;
gap: 8px;
margin-top: 14px;
}
.tabbar-search-overlay__type {
border: 0;
border-radius: 999px;
padding: 9px 14px;
background: var(--surface-2);
color: var(--color-ink-3);
font-size: 13px;
font-weight: 600;
}
.tabbar-search-overlay__type.is-active {
background: var(--color-accent-soft);
color: var(--color-accent);
}
.tabbar-search-overlay__section {
margin-top: 20px;
}
.tabbar-search-overlay__section-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
.tabbar-search-overlay__label {
color: var(--color-ink-3);
font-size: 13px;
font-weight: 700;
}
.tabbar-search-overlay__clear {
border: 0;
background: transparent;
color: var(--color-accent);
font-size: 12px;
font-weight: 700;
}
.tabbar-search-overlay__history,
.tabbar-search-overlay__suggestions {
display: flex;
flex-direction: column;
gap: 10px;
}
.tabbar-search-overlay__history-item,
.tabbar-search-overlay__suggestion-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
width: 100%;
border: none;
border-radius: 16px;
padding: 12px 14px;
background: var(--surface-4);
box-shadow: var(--shadow-sm);
color: var(--color-ink-3);
text-decoration: none;
text-align: left;
}
.tabbar-search-overlay__history-item i {
color: var(--color-accent);
}
.tabbar-search-overlay__history-item span,
.tabbar-search-overlay__suggestion-item span {
flex: 1;
min-width: 0;
font-size: 14px;
font-weight: 600;
}
.tabbar-search-overlay__suggestion-item small {
color: var(--color-ink-4);
font-size: 12px;
}
.tabbar-search-overlay__empty {
padding: 14px;
border-radius: 16px;
background: var(--surface-2);
color: var(--color-ink-4);
font-size: 13px;
text-align: center;
}
.tabbar-search-overlay__tags {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.tabbar-search-overlay__tag {
padding: 10px 14px;
border-radius: 999px;
background: var(--surface-2);
color: var(--color-ink-3);
text-decoration: none;
font-size: 13px;
}
body.tabbar-search-open,
body.tabbar-add-open {
overflow: hidden;
}
/* 滚动时隐藏 tabbar(可选,通过 JS 添加 class) */
.footer-tabbar.scrolling-hide {
transform: translateY(100%);
transition: transform 0.3s ease;
}
/* 向下滚动隐藏,向上滚动显示 */
.footer-tabbar.scroll-down-hide {
transition: transform 0.3s ease;
}
.footer-tabbar.scroll-down-hide.is-hidden {
transform: translateY(120%);
}
/* 返回顶部包裹项(首页按钮 + 返回顶部切换) */
.tabbar-ontop-wrap {
position: relative;
}
.tabbar-ontop-wrap .tabbar-ontop-btn {
display: none;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
padding: 4px 12px;
color: var(--color-primary);
font-size: 13px;
text-decoration: none;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
}
.tabbar-ontop-wrap .tabbar-ontop-btn i {
font-size: 18px;
line-height: 1;
}
.tabbar-ontop-wrap .tabbar-ontop-btn span {
font-weight: 500;
line-height: 1;
transform: scale(0.8);
transform-origin: center top;
}
.tabbar-ontop-wrap.is-scrolled .tabbar-ontop-btn {
display: flex;
}
.tabbar-ontop-wrap.is-scrolled > .tabbar-item:not(.tabbar-ontop-btn) {
opacity: 0;
pointer-events: none;
}
/* ============================================================
* 暗色模式适配
* ============================================================ */
.theme-dark .site-footer,
html.dark .site-footer {
background: var(--surface-1);
}
.theme-dark .footer-tabbar,
html.dark .footer-tabbar {
background: var(--blur-bg);
box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.20);
}
/* ============================================================
* 旧版 back-to-top 按钮兼容(隐藏,用浮动按钮代替)
* ============================================================ */
.back-to-top {
display: none !important;
}
/* ============================================================
* 页脚布局模板变体
* ============================================================ */
/* 紧凑模板:单行版权 + 链接 */
.site-footer--compact .site-footer__grid {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 16px;
}
.site-footer--compact .site-footer__brand {
flex: 1 1 100%;
}
/* Full-viewport search panel open state (desktop + mobile) */
.tabbar-search-overlay[hidden] {
display: none !important;
}
.tabbar-search-overlay.is-open,
.tabbar-search-overlay.show:not([hidden]) {
display: flex;
}
.tabbar-search-overlay__dialog {
max-width: 720px;
margin: 0 auto;
}
@media (min-width: 768px) {
.tabbar-search-overlay {
align-items: flex-start;
padding-top: 8vh;
background: rgba(15, 23, 42, 0.45);
}
.tabbar-search-overlay__dialog {
min-height: auto;
max-height: min(84vh, 860px);
overflow: auto;
border-radius: 20px;
box-shadow: var(--shadow-lg, 0 20px 50px rgba(15, 23, 42, 0.22));
}
.nav-searchbox--desktop {
display: none;
}
.main-search-btn.nav-search-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
}
}
@media (max-width: 767.98px) {
.main-search-btn.nav-search-toggle {
display: none;
}
}
.site-footer--compact .site-footer__brand .site-footer__desc,
.site-footer--compact .site-footer__brand .social-row,
.site-footer--compact .site-footer__brand .site-footer__friends {
display: none;
}
.site-footer--compact .site-footer__col {
flex: 0 0 auto;
}
.site-footer--compact .site-footer__col ul {
display: flex;
flex-wrap: wrap;
gap: 12px;
list-style: none;
padding: 0;
margin: 0;
}
.site-footer--compact .site-footer__bottom {
border-top: 1px solid var(--color-line);
padding-top: 12px;
margin-top: 12px;
}
/* 中央模板:居中品牌 + 链接 */
.site-footer--centered .site-footer__grid {
text-align: center;
}
.site-footer--centered .site-footer__brand {
flex: 1 1 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.site-footer--centered .site-footer__col {
flex: 1 1 auto;
}
.site-footer--centered .site-footer__col ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 16px;
}