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>
This commit is contained in:
1 parent
5b16bc6e15
commit
35bb96e82f
997 files changed
+28216
-28188
No files matched your search
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* AKSRT Alerts
|
||||
* Jio Alerts
|
||||
* 统一提示组件:error / warning / info / success
|
||||
* 用于替代各页面 inline 的 .login-error / .bind-error 等
|
||||
*/
|
||||
|
||||
+102
-102
@@ -1,9 +1,9 @@
|
||||
/**
|
||||
* AKSRT Animations — animate.css 等价(独立重写)
|
||||
* Jio Animations — animate.css 等价(独立重写)
|
||||
* ------------------------------------------------------------
|
||||
* 关键帧 + 工具类 + IntersectionObserver 触发配合
|
||||
* 触发 JS 已在 enhancements2.js([data-aksrt-animate] 属性)
|
||||
* 本文件仅定义 @keyframes 和 .aksrt-anim-* 工具类
|
||||
* 触发 JS 已在 enhancements2.js([data-jio-animate] 属性)
|
||||
* 本文件仅定义 @keyframes 和 .jio-anim-* 工具类
|
||||
*/
|
||||
|
||||
/* ============================================================
|
||||
@@ -11,71 +11,71 @@
|
||||
* ============================================================ */
|
||||
|
||||
/* Fade 系列 */
|
||||
@keyframes aksrtFadeIn {
|
||||
@keyframes jioFadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
@keyframes aksrtFadeInUp {
|
||||
@keyframes jioFadeInUp {
|
||||
from { opacity: 0; transform: translateY(20px); }
|
||||
to { opacity: 1; transform: none; }
|
||||
}
|
||||
|
||||
@keyframes aksrtFadeInDown {
|
||||
@keyframes jioFadeInDown {
|
||||
from { opacity: 0; transform: translateY(-20px); }
|
||||
to { opacity: 1; transform: none; }
|
||||
}
|
||||
|
||||
@keyframes aksrtFadeInLeft {
|
||||
@keyframes jioFadeInLeft {
|
||||
from { opacity: 0; transform: translateX(-20px); }
|
||||
to { opacity: 1; transform: none; }
|
||||
}
|
||||
|
||||
@keyframes aksrtFadeInRight {
|
||||
@keyframes jioFadeInRight {
|
||||
from { opacity: 0; transform: translateX(20px); }
|
||||
to { opacity: 1; transform: none; }
|
||||
}
|
||||
|
||||
/* Zoom 系列 */
|
||||
@keyframes aksrtZoomIn {
|
||||
@keyframes jioZoomIn {
|
||||
from { opacity: 0; transform: scale(.85); }
|
||||
to { opacity: 1; transform: none; }
|
||||
}
|
||||
|
||||
@keyframes aksrtZoomInUp {
|
||||
@keyframes jioZoomInUp {
|
||||
from { opacity: 0; transform: scale(.85) translateY(20px); }
|
||||
to { opacity: 1; transform: none; }
|
||||
}
|
||||
|
||||
/* Bounce 系列 */
|
||||
@keyframes aksrtBounceIn {
|
||||
@keyframes jioBounceIn {
|
||||
0% { opacity: 0; transform: scale(.3); }
|
||||
50% { opacity: 1; transform: scale(1.08); }
|
||||
70% { transform: scale(.95); }
|
||||
100% { opacity: 1; transform: none; }
|
||||
}
|
||||
|
||||
@keyframes aksrtBounce {
|
||||
@keyframes jioBounce {
|
||||
0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
|
||||
40% { transform: translateY(-12px); }
|
||||
60% { transform: translateY(-6px); }
|
||||
}
|
||||
|
||||
/* Pulse */
|
||||
@keyframes aksrtPulse {
|
||||
@keyframes jioPulse {
|
||||
0% { transform: scale(1); }
|
||||
50% { transform: scale(1.06); }
|
||||
100% { transform: scale(1); }
|
||||
}
|
||||
|
||||
/* Flash */
|
||||
@keyframes aksrtFlash {
|
||||
@keyframes jioFlash {
|
||||
0%, 50%, 100% { opacity: 1; }
|
||||
25%, 75% { opacity: 0; }
|
||||
}
|
||||
|
||||
/* RubberBand */
|
||||
@keyframes aksrtRubberBand {
|
||||
@keyframes jioRubberBand {
|
||||
0% { transform: scale(1); }
|
||||
30% { transform: scaleX(1.25) scaleY(0.75); }
|
||||
40% { transform: scaleX(0.75) scaleY(1.25); }
|
||||
@@ -86,14 +86,14 @@
|
||||
}
|
||||
|
||||
/* Shake */
|
||||
@keyframes aksrtShake {
|
||||
@keyframes jioShake {
|
||||
0%, 100% { transform: translateX(0); }
|
||||
10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
|
||||
20%, 40%, 60%, 80% { transform: translateX(4px); }
|
||||
}
|
||||
|
||||
/* Swing */
|
||||
@keyframes aksrtSwing {
|
||||
@keyframes jioSwing {
|
||||
20% { transform: rotate(15deg); }
|
||||
40% { transform: rotate(-10deg); }
|
||||
60% { transform: rotate(5deg); }
|
||||
@@ -102,7 +102,7 @@
|
||||
}
|
||||
|
||||
/* Tada */
|
||||
@keyframes aksrtTada {
|
||||
@keyframes jioTada {
|
||||
0% { transform: scale(1); }
|
||||
10%, 20% { transform: scale(0.9) rotate(-3deg); }
|
||||
30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
|
||||
@@ -111,7 +111,7 @@
|
||||
}
|
||||
|
||||
/* Wobble */
|
||||
@keyframes aksrtWobble {
|
||||
@keyframes jioWobble {
|
||||
0% { transform: none; }
|
||||
15% { transform: translateX(-25%) rotate(-5deg); }
|
||||
30% { transform: translateX(20%) rotate(3deg); }
|
||||
@@ -122,28 +122,28 @@
|
||||
}
|
||||
|
||||
/* Slide 系列 */
|
||||
@keyframes aksrtSlideInUp {
|
||||
@keyframes jioSlideInUp {
|
||||
from { opacity: 0; transform: translateY(100%); }
|
||||
to { opacity: 1; transform: none; }
|
||||
}
|
||||
|
||||
@keyframes aksrtSlideInDown {
|
||||
@keyframes jioSlideInDown {
|
||||
from { opacity: 0; transform: translateY(-100%); }
|
||||
to { opacity: 1; transform: none; }
|
||||
}
|
||||
|
||||
@keyframes aksrtSlideInLeft {
|
||||
@keyframes jioSlideInLeft {
|
||||
from { opacity: 0; transform: translateX(-100%); }
|
||||
to { opacity: 1; transform: none; }
|
||||
}
|
||||
|
||||
@keyframes aksrtSlideInRight {
|
||||
@keyframes jioSlideInRight {
|
||||
from { opacity: 0; transform: translateX(100%); }
|
||||
to { opacity: 1; transform: none; }
|
||||
}
|
||||
|
||||
/* HeartBeat */
|
||||
@keyframes aksrtHeartBeat {
|
||||
@keyframes jioHeartBeat {
|
||||
0% { transform: scale(1); }
|
||||
14% { transform: scale(1.3); }
|
||||
28% { transform: scale(1); }
|
||||
@@ -153,7 +153,7 @@
|
||||
}
|
||||
|
||||
/* Jello */
|
||||
@keyframes aksrtJello {
|
||||
@keyframes jioJello {
|
||||
0%, 100% { transform: none; }
|
||||
11% { transform: skewX(-12.5deg) skewY(-12.5deg); }
|
||||
22% { transform: skewX(6.25deg) skewY(6.25deg); }
|
||||
@@ -166,7 +166,7 @@
|
||||
}
|
||||
|
||||
/* HeadShake */
|
||||
@keyframes aksrtHeadShake {
|
||||
@keyframes jioHeadShake {
|
||||
0% { transform: translateX(0); }
|
||||
6.5% { transform: translateX(-6px) rotateY(-9deg); }
|
||||
18.5% { transform: translateX(5px) rotateY(7deg); }
|
||||
@@ -177,7 +177,7 @@
|
||||
}
|
||||
|
||||
/* BounceOut — 退出动画 */
|
||||
@keyframes aksrtBounceOut {
|
||||
@keyframes jioBounceOut {
|
||||
0% { transform: scale(1); }
|
||||
25% { transform: scale(0.95); }
|
||||
50% { transform: scale(1.1); }
|
||||
@@ -186,33 +186,33 @@
|
||||
}
|
||||
|
||||
/* ZoomOut — 退出动画 */
|
||||
@keyframes aksrtZoomOut {
|
||||
@keyframes jioZoomOut {
|
||||
0% { opacity: 1; transform: none; }
|
||||
100% { opacity: 0; transform: scale(0.85); }
|
||||
}
|
||||
|
||||
/* BackIn/BackOut */
|
||||
@keyframes aksrtBackInUp {
|
||||
@keyframes jioBackInUp {
|
||||
0% { opacity: 0; transform: translateY(30px) scale(0.7); }
|
||||
80% { opacity: 0.8; transform: translateY(-5px) scale(1.02); }
|
||||
100% { opacity: 1; transform: none; }
|
||||
}
|
||||
|
||||
@keyframes aksrtBackInDown {
|
||||
@keyframes jioBackInDown {
|
||||
0% { opacity: 0; transform: translateY(-30px) scale(0.7); }
|
||||
80% { opacity: 0.8; transform: translateY(5px) scale(1.02); }
|
||||
100% { opacity: 1; transform: none; }
|
||||
}
|
||||
|
||||
/* Flip */
|
||||
@keyframes aksrtFlip {
|
||||
@keyframes jioFlip {
|
||||
0% { transform: perspective(400px) rotateY(90deg); opacity: 0; }
|
||||
40% { transform: perspective(400px) rotateY(-10deg); }
|
||||
70% { transform: perspective(400px) rotateY(10deg); }
|
||||
100% { transform: perspective(400px) rotateY(0deg); opacity: 1; }
|
||||
}
|
||||
|
||||
@keyframes aksrtFlipInX {
|
||||
@keyframes jioFlipInX {
|
||||
0% { transform: perspective(400px) rotateX(90deg); opacity: 0; }
|
||||
40% { transform: perspective(400px) rotateX(-10deg); }
|
||||
70% { transform: perspective(400px) rotateX(10deg); }
|
||||
@@ -222,102 +222,102 @@
|
||||
/* ============================================================
|
||||
* Animation utility classes
|
||||
* ============================================================ */
|
||||
.aksrt-anim-fade-in { animation: aksrtFadeIn var(--dur-base, .4s) var(--ease-out, ease) both; }
|
||||
.aksrt-anim-fade-up { animation: aksrtFadeInUp var(--dur-base, .4s) var(--ease-out, ease) both; }
|
||||
.aksrt-anim-fade-down { animation: aksrtFadeInDown var(--dur-base, .4s) var(--ease-out, ease) both; }
|
||||
.aksrt-anim-fade-left { animation: aksrtFadeInLeft var(--dur-base, .4s) var(--ease-out, ease) both; }
|
||||
.aksrt-anim-fade-right { animation: aksrtFadeInRight var(--dur-base, .4s) var(--ease-out, ease) both; }
|
||||
.jio-anim-fade-in { animation: jioFadeIn var(--dur-base, .4s) var(--ease-out, ease) both; }
|
||||
.jio-anim-fade-up { animation: jioFadeInUp var(--dur-base, .4s) var(--ease-out, ease) both; }
|
||||
.jio-anim-fade-down { animation: jioFadeInDown var(--dur-base, .4s) var(--ease-out, ease) both; }
|
||||
.jio-anim-fade-left { animation: jioFadeInLeft var(--dur-base, .4s) var(--ease-out, ease) both; }
|
||||
.jio-anim-fade-right { animation: jioFadeInRight var(--dur-base, .4s) var(--ease-out, ease) both; }
|
||||
|
||||
.aksrt-anim-zoom-in { animation: aksrtZoomIn var(--dur-base, .4s) var(--ease-out, ease) both; }
|
||||
.aksrt-anim-zoom-in-up { animation: aksrtZoomInUp var(--dur-base, .4s) var(--ease-out, ease) both; }
|
||||
.jio-anim-zoom-in { animation: jioZoomIn var(--dur-base, .4s) var(--ease-out, ease) both; }
|
||||
.jio-anim-zoom-in-up { animation: jioZoomInUp var(--dur-base, .4s) var(--ease-out, ease) both; }
|
||||
|
||||
.aksrt-anim-bounce-in { animation: aksrtBounceIn .6s var(--ease-out, ease) both; }
|
||||
.aksrt-anim-bounce { animation: aksrtBounce 1s ease both; }
|
||||
.jio-anim-bounce-in { animation: jioBounceIn .6s var(--ease-out, ease) both; }
|
||||
.jio-anim-bounce { animation: jioBounce 1s ease both; }
|
||||
|
||||
.aksrt-anim-pulse { animation: aksrtPulse 1s ease infinite; }
|
||||
.aksrt-anim-flash { animation: aksrtFlash 1s ease both; }
|
||||
.aksrt-anim-rubber-band { animation: aksrtRubberBand .8s ease both; }
|
||||
.aksrt-anim-shake { animation: aksrtShake .5s ease both; }
|
||||
.aksrt-anim-swing { animation: aksrtSwing .6s var(--ease-out, ease) both; }
|
||||
.aksrt-anim-tada { animation: aksrtTada 1s ease both; }
|
||||
.aksrt-anim-wobble { animation: aksrtWobble .8s ease both; }
|
||||
.aksrt-anim-heart-beat { animation: aksrtHeartBeat 1.3s ease both; }
|
||||
.aksrt-anim-jello { animation: aksrtJello .8s ease both; }
|
||||
.aksrt-anim-head-shake { animation: aksrtHeadShake .8s ease both; }
|
||||
.jio-anim-pulse { animation: jioPulse 1s ease infinite; }
|
||||
.jio-anim-flash { animation: jioFlash 1s ease both; }
|
||||
.jio-anim-rubber-band { animation: jioRubberBand .8s ease both; }
|
||||
.jio-anim-shake { animation: jioShake .5s ease both; }
|
||||
.jio-anim-swing { animation: jioSwing .6s var(--ease-out, ease) both; }
|
||||
.jio-anim-tada { animation: jioTada 1s ease both; }
|
||||
.jio-anim-wobble { animation: jioWobble .8s ease both; }
|
||||
.jio-anim-heart-beat { animation: jioHeartBeat 1.3s ease both; }
|
||||
.jio-anim-jello { animation: jioJello .8s ease both; }
|
||||
.jio-anim-head-shake { animation: jioHeadShake .8s ease both; }
|
||||
|
||||
/* 退出动画 */
|
||||
.aksrt-anim-bounce-out { animation: aksrtBounceOut .5s ease both; }
|
||||
.aksrt-anim-zoom-out { animation: aksrtZoomOut .3s ease both; }
|
||||
.jio-anim-bounce-out { animation: jioBounceOut .5s ease both; }
|
||||
.jio-anim-zoom-out { animation: jioZoomOut .3s ease both; }
|
||||
|
||||
/* BackIn 动画 */
|
||||
.aksrt-anim-back-in-up { animation: aksrtBackInUp .5s var(--ease-out, ease) both; }
|
||||
.aksrt-anim-back-in-down { animation: aksrtBackInDown .5s var(--ease-out, ease) both; }
|
||||
.jio-anim-back-in-up { animation: jioBackInUp .5s var(--ease-out, ease) both; }
|
||||
.jio-anim-back-in-down { animation: jioBackInDown .5s var(--ease-out, ease) both; }
|
||||
|
||||
.aksrt-anim-slide-up { animation: aksrtSlideInUp .5s var(--ease-out, ease) both; }
|
||||
.aksrt-anim-slide-down { animation: aksrtSlideInDown .5s var(--ease-out, ease) both; }
|
||||
.aksrt-anim-slide-left { animation: aksrtSlideInLeft .5s var(--ease-out, ease) both; }
|
||||
.aksrt-anim-slide-right { animation: aksrtSlideInRight .5s var(--ease-out, ease) both; }
|
||||
.jio-anim-slide-up { animation: jioSlideInUp .5s var(--ease-out, ease) both; }
|
||||
.jio-anim-slide-down { animation: jioSlideInDown .5s var(--ease-out, ease) both; }
|
||||
.jio-anim-slide-left { animation: jioSlideInLeft .5s var(--ease-out, ease) both; }
|
||||
.jio-anim-slide-right { animation: jioSlideInRight .5s var(--ease-out, ease) both; }
|
||||
|
||||
.aksrt-anim-flip { animation: aksrtFlip .6s var(--ease-out, ease) both; }
|
||||
.aksrt-anim-flip-x { animation: aksrtFlipInX .6s var(--ease-out, ease) both; }
|
||||
.jio-anim-flip { animation: jioFlip .6s var(--ease-out, ease) both; }
|
||||
.jio-anim-flip-x { animation: jioFlipInX .6s var(--ease-out, ease) both; }
|
||||
|
||||
/* ============================================================
|
||||
* Duration modifiers
|
||||
* ============================================================ */
|
||||
.aksrt-anim-fast { --dur-base: .2s; }
|
||||
.aksrt-anim-slow { --dur-base: .6s; }
|
||||
.jio-anim-fast { --dur-base: .2s; }
|
||||
.jio-anim-slow { --dur-base: .6s; }
|
||||
|
||||
/* ============================================================
|
||||
* Delay modifiers (配合 data-aksrt-delay 使用时为 inline,
|
||||
* Delay modifiers (配合 data-jio-delay 使用时为 inline,
|
||||
* 也可用 class 方式独立设置)
|
||||
* ============================================================ */
|
||||
.aksrt-anim-delay-1 { animation-delay: .1s; }
|
||||
.aksrt-anim-delay-2 { animation-delay: .2s; }
|
||||
.aksrt-anim-delay-3 { animation-delay: .3s; }
|
||||
.aksrt-anim-delay-4 { animation-delay: .4s; }
|
||||
.aksrt-anim-delay-5 { animation-delay: .5s; }
|
||||
.aksrt-anim-delay-6 { animation-delay: .6s; }
|
||||
.aksrt-anim-delay-7 { animation-delay: .7s; }
|
||||
.aksrt-anim-delay-8 { animation-delay: .8s; }
|
||||
.jio-anim-delay-1 { animation-delay: .1s; }
|
||||
.jio-anim-delay-2 { animation-delay: .2s; }
|
||||
.jio-anim-delay-3 { animation-delay: .3s; }
|
||||
.jio-anim-delay-4 { animation-delay: .4s; }
|
||||
.jio-anim-delay-5 { animation-delay: .5s; }
|
||||
.jio-anim-delay-6 { animation-delay: .6s; }
|
||||
.jio-anim-delay-7 { animation-delay: .7s; }
|
||||
.jio-anim-delay-8 { animation-delay: .8s; }
|
||||
|
||||
/* ============================================================
|
||||
* Infinite modifier
|
||||
* ============================================================ */
|
||||
.aksrt-anim-infinite { animation-iteration-count: infinite; }
|
||||
.jio-anim-infinite { animation-iteration-count: infinite; }
|
||||
|
||||
/* ============================================================
|
||||
* Reduced-motion — 尊重用户偏好
|
||||
* ============================================================ */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.aksrt-anim-fade-in,
|
||||
.aksrt-anim-fade-up,
|
||||
.aksrt-anim-fade-down,
|
||||
.aksrt-anim-fade-left,
|
||||
.aksrt-anim-fade-right,
|
||||
.aksrt-anim-zoom-in,
|
||||
.aksrt-anim-zoom-in-up,
|
||||
.aksrt-anim-bounce-in,
|
||||
.aksrt-anim-bounce,
|
||||
.aksrt-anim-pulse,
|
||||
.aksrt-anim-flash,
|
||||
.aksrt-anim-rubber-band,
|
||||
.aksrt-anim-shake,
|
||||
.aksrt-anim-swing,
|
||||
.aksrt-anim-tada,
|
||||
.aksrt-anim-wobble,
|
||||
.aksrt-anim-heart-beat,
|
||||
.aksrt-anim-jello,
|
||||
.aksrt-anim-head-shake,
|
||||
.aksrt-anim-bounce-out,
|
||||
.aksrt-anim-zoom-out,
|
||||
.aksrt-anim-back-in-up,
|
||||
.aksrt-anim-back-in-down,
|
||||
.aksrt-anim-slide-up,
|
||||
.aksrt-anim-slide-down,
|
||||
.aksrt-anim-slide-left,
|
||||
.aksrt-anim-slide-right,
|
||||
.aksrt-anim-flip,
|
||||
.aksrt-anim-flip-x {
|
||||
.jio-anim-fade-in,
|
||||
.jio-anim-fade-up,
|
||||
.jio-anim-fade-down,
|
||||
.jio-anim-fade-left,
|
||||
.jio-anim-fade-right,
|
||||
.jio-anim-zoom-in,
|
||||
.jio-anim-zoom-in-up,
|
||||
.jio-anim-bounce-in,
|
||||
.jio-anim-bounce,
|
||||
.jio-anim-pulse,
|
||||
.jio-anim-flash,
|
||||
.jio-anim-rubber-band,
|
||||
.jio-anim-shake,
|
||||
.jio-anim-swing,
|
||||
.jio-anim-tada,
|
||||
.jio-anim-wobble,
|
||||
.jio-anim-heart-beat,
|
||||
.jio-anim-jello,
|
||||
.jio-anim-head-shake,
|
||||
.jio-anim-bounce-out,
|
||||
.jio-anim-zoom-out,
|
||||
.jio-anim-back-in-up,
|
||||
.jio-anim-back-in-down,
|
||||
.jio-anim-slide-up,
|
||||
.jio-anim-slide-down,
|
||||
.jio-anim-slide-left,
|
||||
.jio-anim-slide-right,
|
||||
.jio-anim-flip,
|
||||
.jio-anim-flip-x {
|
||||
animation: none !important;
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* AKSRT Buttons — 1:1 legacy Alignment
|
||||
* Jio Buttons — 1:1 legacy Alignment
|
||||
*
|
||||
* 对齐 legacy .but 系统:
|
||||
* - 正常字重 (normal)
|
||||
@@ -144,7 +144,7 @@
|
||||
/* ============================================================
|
||||
* legacy .but / .badg compat layer — 1:1 legacy main.css (.but system)
|
||||
* ------------------------------------------------------------
|
||||
* Additive: does NOT alter the AKSRT .btn system above. Lets reused
|
||||
* Additive: does NOT alter the Jio .btn system above. Lets reused
|
||||
* legacy-style markup (.but / .badg / .b-* / .jb-* / .c-* / .but-group /
|
||||
* .but-average / .toggle-radius) render via the --this-* context-coloring vars.
|
||||
* The --this-* DEFAULTS are set on the base rule here (BEFORE the .b-* and .jb-*
|
||||
|
||||
+145
-145
@@ -1,186 +1,186 @@
|
||||
/**
|
||||
* AKSRT Color Utilities — 多色按钮 / 渐变按钮 / 文字渐变 / Badge
|
||||
* Jio Color Utilities — 多色按钮 / 渐变按钮 / 文字渐变 / Badge
|
||||
* ------------------------------------------------------------
|
||||
* 所有颜色走 CSS 变量(定义在 tokens.css),不硬编码十六进制。
|
||||
*/
|
||||
|
||||
/* ============================================================
|
||||
* 1. 多色按钮 — .aksrt-btn--{color}
|
||||
* 1. 多色按钮 — .jio-btn--{color}
|
||||
* ============================================================ */
|
||||
.aksrt-btn--rose { background: var(--aksrt-rose); color: #fff; }
|
||||
.aksrt-btn--rose:hover,
|
||||
.aksrt-btn--rose:focus-visible { background: #e11d48; }
|
||||
.jio-btn--rose { background: var(--jio-rose); color: #fff; }
|
||||
.jio-btn--rose:hover,
|
||||
.jio-btn--rose:focus-visible { background: #e11d48; }
|
||||
|
||||
.aksrt-btn--blue { background: var(--aksrt-blue); color: #fff; }
|
||||
.aksrt-btn--blue:hover,
|
||||
.aksrt-btn--blue:focus-visible { background: #2563eb; }
|
||||
.jio-btn--blue { background: var(--jio-blue); color: #fff; }
|
||||
.jio-btn--blue:hover,
|
||||
.jio-btn--blue:focus-visible { background: #2563eb; }
|
||||
|
||||
.aksrt-btn--green { background: var(--aksrt-green); color: #fff; }
|
||||
.aksrt-btn--green:hover,
|
||||
.aksrt-btn--green:focus-visible { background: #059669; }
|
||||
.jio-btn--green { background: var(--jio-green); color: #fff; }
|
||||
.jio-btn--green:hover,
|
||||
.jio-btn--green:focus-visible { background: #059669; }
|
||||
|
||||
.aksrt-btn--orange { background: var(--aksrt-orange); color: #fff; }
|
||||
.aksrt-btn--orange:hover,
|
||||
.aksrt-btn--orange:focus-visible { background: #ea580c; }
|
||||
.jio-btn--orange { background: var(--jio-orange); color: #fff; }
|
||||
.jio-btn--orange:hover,
|
||||
.jio-btn--orange:focus-visible { background: #ea580c; }
|
||||
|
||||
.aksrt-btn--purple { background: var(--aksrt-purple); color: #fff; }
|
||||
.aksrt-btn--purple:hover,
|
||||
.aksrt-btn--purple:focus-visible { background: #7c3aed; }
|
||||
.jio-btn--purple { background: var(--jio-purple); color: #fff; }
|
||||
.jio-btn--purple:hover,
|
||||
.jio-btn--purple:focus-visible { background: #7c3aed; }
|
||||
|
||||
.aksrt-btn--cyan { background: var(--aksrt-cyan); color: #fff; }
|
||||
.aksrt-btn--cyan:hover,
|
||||
.aksrt-btn--cyan:focus-visible { background: #0891b2; }
|
||||
.jio-btn--cyan { background: var(--jio-cyan); color: #fff; }
|
||||
.jio-btn--cyan:hover,
|
||||
.jio-btn--cyan:focus-visible { background: #0891b2; }
|
||||
|
||||
.aksrt-btn--yellow { background: var(--aksrt-yellow); color: #422006; }
|
||||
.aksrt-btn--yellow:hover,
|
||||
.aksrt-btn--yellow:focus-visible { background: #ca8a04; color: #fff; }
|
||||
.jio-btn--yellow { background: var(--jio-yellow); color: #422006; }
|
||||
.jio-btn--yellow:hover,
|
||||
.jio-btn--yellow:focus-visible { background: #ca8a04; color: #fff; }
|
||||
|
||||
.aksrt-btn--red { background: var(--aksrt-red); color: #fff; }
|
||||
.aksrt-btn--red:hover,
|
||||
.aksrt-btn--red:focus-visible { background: #dc2626; }
|
||||
.jio-btn--red { background: var(--jio-red); color: #fff; }
|
||||
.jio-btn--red:hover,
|
||||
.jio-btn--red:focus-visible { background: #dc2626; }
|
||||
|
||||
.aksrt-btn--teal { background: var(--aksrt-teal); color: #fff; }
|
||||
.aksrt-btn--teal:hover,
|
||||
.aksrt-btn--teal:focus-visible { background: #0d9488; }
|
||||
.jio-btn--teal { background: var(--jio-teal); color: #fff; }
|
||||
.jio-btn--teal:hover,
|
||||
.jio-btn--teal:focus-visible { background: #0d9488; }
|
||||
|
||||
.aksrt-btn--indigo { background: var(--aksrt-indigo); color: #fff; }
|
||||
.aksrt-btn--indigo:hover,
|
||||
.aksrt-btn--indigo:focus-visible { background: #4f46e5; }
|
||||
.jio-btn--indigo { background: var(--jio-indigo); color: #fff; }
|
||||
.jio-btn--indigo:hover,
|
||||
.jio-btn--indigo:focus-visible { background: #4f46e5; }
|
||||
|
||||
.aksrt-btn--pink { background: var(--aksrt-pink); color: #fff; }
|
||||
.aksrt-btn--pink:hover,
|
||||
.aksrt-btn--pink:focus-visible { background: #db2777; }
|
||||
.jio-btn--pink { background: var(--jio-pink); color: #fff; }
|
||||
.jio-btn--pink:hover,
|
||||
.jio-btn--pink:focus-visible { background: #db2777; }
|
||||
|
||||
/* Soft variant — 浅色背景 + 深色文字 */
|
||||
.aksrt-btn--rose-soft { background: var(--aksrt-rose-soft); color: var(--aksrt-rose); }
|
||||
.aksrt-btn--blue-soft { background: var(--aksrt-blue-soft); color: var(--aksrt-blue); }
|
||||
.aksrt-btn--green-soft { background: var(--aksrt-green-soft); color: var(--aksrt-green); }
|
||||
.aksrt-btn--orange-soft { background: var(--aksrt-orange-soft); color: var(--aksrt-orange); }
|
||||
.aksrt-btn--purple-soft { background: var(--aksrt-purple-soft); color: var(--aksrt-purple); }
|
||||
.aksrt-btn--cyan-soft { background: var(--aksrt-cyan-soft); color: var(--aksrt-cyan); }
|
||||
.aksrt-btn--yellow-soft { background: var(--aksrt-yellow-soft); color: #92400e; }
|
||||
.aksrt-btn--red-soft { background: var(--aksrt-red-soft); color: var(--aksrt-red); }
|
||||
.aksrt-btn--teal-soft { background: var(--aksrt-teal-soft); color: var(--aksrt-teal); }
|
||||
.aksrt-btn--indigo-soft { background: var(--aksrt-indigo-soft); color: var(--aksrt-indigo); }
|
||||
.aksrt-btn--pink-soft { background: var(--aksrt-pink-soft); color: var(--aksrt-pink); }
|
||||
.jio-btn--rose-soft { background: var(--jio-rose-soft); color: var(--jio-rose); }
|
||||
.jio-btn--blue-soft { background: var(--jio-blue-soft); color: var(--jio-blue); }
|
||||
.jio-btn--green-soft { background: var(--jio-green-soft); color: var(--jio-green); }
|
||||
.jio-btn--orange-soft { background: var(--jio-orange-soft); color: var(--jio-orange); }
|
||||
.jio-btn--purple-soft { background: var(--jio-purple-soft); color: var(--jio-purple); }
|
||||
.jio-btn--cyan-soft { background: var(--jio-cyan-soft); color: var(--jio-cyan); }
|
||||
.jio-btn--yellow-soft { background: var(--jio-yellow-soft); color: #92400e; }
|
||||
.jio-btn--red-soft { background: var(--jio-red-soft); color: var(--jio-red); }
|
||||
.jio-btn--teal-soft { background: var(--jio-teal-soft); color: var(--jio-teal); }
|
||||
.jio-btn--indigo-soft { background: var(--jio-indigo-soft); color: var(--jio-indigo); }
|
||||
.jio-btn--pink-soft { background: var(--jio-pink-soft); color: var(--jio-pink); }
|
||||
|
||||
/* ============================================================
|
||||
* 2. 渐变按钮 — .aksrt-btn--grad-{name}
|
||||
* 2. 渐变按钮 — .jio-btn--grad-{name}
|
||||
* ============================================================ */
|
||||
.aksrt-btn--grad-vip {
|
||||
background: linear-gradient(135deg, var(--aksrt-vip-gold-1), var(--aksrt-vip-gold-2));
|
||||
.jio-btn--grad-vip {
|
||||
background: linear-gradient(135deg, var(--jio-vip-gold-1), var(--jio-vip-gold-2));
|
||||
color: #5a3d00;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.aksrt-btn--grad-sunset {
|
||||
background: linear-gradient(135deg, var(--aksrt-grad-sunset-1), var(--aksrt-grad-sunset-2));
|
||||
.jio-btn--grad-sunset {
|
||||
background: linear-gradient(135deg, var(--jio-grad-sunset-1), var(--jio-grad-sunset-2));
|
||||
color: #fff;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.aksrt-btn--grad-ocean {
|
||||
background: linear-gradient(135deg, var(--aksrt-grad-ocean-1), var(--aksrt-grad-ocean-2));
|
||||
.jio-btn--grad-ocean {
|
||||
background: linear-gradient(135deg, var(--jio-grad-ocean-1), var(--jio-grad-ocean-2));
|
||||
color: #fff;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.aksrt-btn--grad-forest {
|
||||
background: linear-gradient(135deg, var(--aksrt-grad-forest-1), var(--aksrt-grad-forest-2));
|
||||
.jio-btn--grad-forest {
|
||||
background: linear-gradient(135deg, var(--jio-grad-forest-1), var(--jio-grad-forest-2));
|
||||
color: #064e3b;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.aksrt-btn--grad-night {
|
||||
background: linear-gradient(135deg, var(--aksrt-grad-night-1), var(--aksrt-grad-night-2));
|
||||
.jio-btn--grad-night {
|
||||
background: linear-gradient(135deg, var(--jio-grad-night-1), var(--jio-grad-night-2));
|
||||
color: #4c1d95;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.aksrt-btn--grad-fire {
|
||||
background: linear-gradient(135deg, var(--aksrt-grad-fire-1), var(--aksrt-grad-fire-2));
|
||||
.jio-btn--grad-fire {
|
||||
background: linear-gradient(135deg, var(--jio-grad-fire-1), var(--jio-grad-fire-2));
|
||||
color: #fff;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.aksrt-btn--grad-primary {
|
||||
.jio-btn--grad-primary {
|
||||
background: linear-gradient(135deg, var(--color-primary), var(--color-primary-active));
|
||||
color: var(--color-on-primary);
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* 渐变按钮 hover — 亮度微调 */
|
||||
.aksrt-btn--grad-vip:hover,
|
||||
.aksrt-btn--grad-sunset:hover,
|
||||
.aksrt-btn--grad-ocean:hover,
|
||||
.aksrt-btn--grad-forest:hover,
|
||||
.aksrt-btn--grad-night:hover,
|
||||
.aksrt-btn--grad-fire:hover,
|
||||
.aksrt-btn--grad-primary:hover {
|
||||
.jio-btn--grad-vip:hover,
|
||||
.jio-btn--grad-sunset:hover,
|
||||
.jio-btn--grad-ocean:hover,
|
||||
.jio-btn--grad-forest:hover,
|
||||
.jio-btn--grad-night:hover,
|
||||
.jio-btn--grad-fire:hover,
|
||||
.jio-btn--grad-primary:hover {
|
||||
filter: brightness(1.08);
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 3. 文字渐变 — .aksrt-text-grad-{name}
|
||||
* 3. 文字渐变 — .jio-text-grad-{name}
|
||||
* ============================================================ */
|
||||
.aksrt-text-grad-primary {
|
||||
.jio-text-grad-primary {
|
||||
background: linear-gradient(135deg, var(--color-primary), var(--color-primary-active));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.aksrt-text-grad-vip {
|
||||
background: linear-gradient(135deg, var(--aksrt-vip-gold-1), var(--aksrt-vip-gold-2));
|
||||
.jio-text-grad-vip {
|
||||
background: linear-gradient(135deg, var(--jio-vip-gold-1), var(--jio-vip-gold-2));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.aksrt-text-grad-sunset {
|
||||
background: linear-gradient(135deg, var(--aksrt-grad-sunset-1), var(--aksrt-grad-sunset-2));
|
||||
.jio-text-grad-sunset {
|
||||
background: linear-gradient(135deg, var(--jio-grad-sunset-1), var(--jio-grad-sunset-2));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.aksrt-text-grad-ocean {
|
||||
background: linear-gradient(135deg, var(--aksrt-grad-ocean-1), var(--aksrt-grad-ocean-2));
|
||||
.jio-text-grad-ocean {
|
||||
background: linear-gradient(135deg, var(--jio-grad-ocean-1), var(--jio-grad-ocean-2));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.aksrt-text-grad-forest {
|
||||
background: linear-gradient(135deg, var(--aksrt-grad-forest-1), var(--aksrt-grad-forest-2));
|
||||
.jio-text-grad-forest {
|
||||
background: linear-gradient(135deg, var(--jio-grad-forest-1), var(--jio-grad-forest-2));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.aksrt-text-grad-night {
|
||||
background: linear-gradient(135deg, var(--aksrt-grad-night-1), var(--aksrt-grad-night-2));
|
||||
.jio-text-grad-night {
|
||||
background: linear-gradient(135deg, var(--jio-grad-night-1), var(--jio-grad-night-2));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.aksrt-text-grad-fire {
|
||||
background: linear-gradient(135deg, var(--aksrt-grad-fire-1), var(--aksrt-grad-fire-2));
|
||||
.jio-text-grad-fire {
|
||||
background: linear-gradient(135deg, var(--jio-grad-fire-1), var(--jio-grad-fire-2));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 4. Badge 系统 — .aksrt-badge / .aksrt-badge--{color}
|
||||
* 4. Badge 系统 — .jio-badge / .jio-badge--{color}
|
||||
* ============================================================ */
|
||||
.aksrt-badge {
|
||||
.jio-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: var(--aksrt-badge-h, 22px);
|
||||
height: var(--jio-badge-h, 22px);
|
||||
padding: 0 8px;
|
||||
border-radius: var(--radius-pill, 100px);
|
||||
font-size: 12px;
|
||||
@@ -190,83 +190,83 @@
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.aksrt-badge--primary { background: var(--color-primary-soft); color: var(--color-primary); }
|
||||
.aksrt-badge--success { background: rgba(16, 185, 129, 0.12); color: var(--color-success); }
|
||||
.aksrt-badge--warning { background: rgba(245, 158, 11, 0.12); color: var(--color-warning); }
|
||||
.aksrt-badge--error { background: rgba(239, 68, 68, 0.12); color: var(--color-error); }
|
||||
.aksrt-badge--info { background: rgba(59, 130, 246, 0.12); color: var(--color-info); }
|
||||
.jio-badge--primary { background: var(--color-primary-soft); color: var(--color-primary); }
|
||||
.jio-badge--success { background: rgba(16, 185, 129, 0.12); color: var(--color-success); }
|
||||
.jio-badge--warning { background: rgba(245, 158, 11, 0.12); color: var(--color-warning); }
|
||||
.jio-badge--error { background: rgba(239, 68, 68, 0.12); color: var(--color-error); }
|
||||
.jio-badge--info { background: rgba(59, 130, 246, 0.12); color: var(--color-info); }
|
||||
|
||||
.aksrt-badge--rose { background: var(--aksrt-rose-soft); color: var(--aksrt-rose); }
|
||||
.aksrt-badge--blue { background: var(--aksrt-blue-soft); color: var(--aksrt-blue); }
|
||||
.aksrt-badge--green { background: var(--aksrt-green-soft); color: var(--aksrt-green); }
|
||||
.aksrt-badge--orange { background: var(--aksrt-orange-soft); color: var(--aksrt-orange); }
|
||||
.aksrt-badge--purple { background: var(--aksrt-purple-soft); color: var(--aksrt-purple); }
|
||||
.aksrt-badge--cyan { background: var(--aksrt-cyan-soft); color: var(--aksrt-cyan); }
|
||||
.aksrt-badge--yellow { background: var(--aksrt-yellow-soft); color: #92400e; }
|
||||
.aksrt-badge--red { background: var(--aksrt-red-soft); color: var(--aksrt-red); }
|
||||
.aksrt-badge--teal { background: var(--aksrt-teal-soft); color: var(--aksrt-teal); }
|
||||
.aksrt-badge--indigo { background: var(--aksrt-indigo-soft); color: var(--aksrt-indigo); }
|
||||
.aksrt-badge--pink { background: var(--aksrt-pink-soft); color: var(--aksrt-pink); }
|
||||
.jio-badge--rose { background: var(--jio-rose-soft); color: var(--jio-rose); }
|
||||
.jio-badge--blue { background: var(--jio-blue-soft); color: var(--jio-blue); }
|
||||
.jio-badge--green { background: var(--jio-green-soft); color: var(--jio-green); }
|
||||
.jio-badge--orange { background: var(--jio-orange-soft); color: var(--jio-orange); }
|
||||
.jio-badge--purple { background: var(--jio-purple-soft); color: var(--jio-purple); }
|
||||
.jio-badge--cyan { background: var(--jio-cyan-soft); color: var(--jio-cyan); }
|
||||
.jio-badge--yellow { background: var(--jio-yellow-soft); color: #92400e; }
|
||||
.jio-badge--red { background: var(--jio-red-soft); color: var(--jio-red); }
|
||||
.jio-badge--teal { background: var(--jio-teal-soft); color: var(--jio-teal); }
|
||||
.jio-badge--indigo { background: var(--jio-indigo-soft); color: var(--jio-indigo); }
|
||||
.jio-badge--pink { background: var(--jio-pink-soft); color: var(--jio-pink); }
|
||||
|
||||
/* 渐变 Badge */
|
||||
.aksrt-badge--grad-vip {
|
||||
background: linear-gradient(135deg, var(--aksrt-vip-gold-1), var(--aksrt-vip-gold-2));
|
||||
.jio-badge--grad-vip {
|
||||
background: linear-gradient(135deg, var(--jio-vip-gold-1), var(--jio-vip-gold-2));
|
||||
color: #5a3d00;
|
||||
}
|
||||
|
||||
.aksrt-badge--grad-primary {
|
||||
.jio-badge--grad-primary {
|
||||
background: linear-gradient(135deg, var(--color-primary), var(--color-primary-active));
|
||||
color: var(--color-on-primary);
|
||||
}
|
||||
|
||||
/* Solid badge variant — 纯色背景 + 白色文字 */
|
||||
.aksrt-badge--solid-primary { background: var(--color-primary); color: #fff; }
|
||||
.aksrt-badge--solid-success { background: var(--color-success); color: #fff; }
|
||||
.aksrt-badge--solid-warning { background: var(--color-warning); color: #fff; }
|
||||
.aksrt-badge--solid-error { background: var(--color-error); color: #fff; }
|
||||
.aksrt-badge--solid-info { background: var(--color-info); color: #fff; }
|
||||
.aksrt-badge--solid-rose { background: var(--aksrt-rose); color: #fff; }
|
||||
.aksrt-badge--solid-blue { background: var(--aksrt-blue); color: #fff; }
|
||||
.aksrt-badge--solid-green { background: var(--aksrt-green); color: #fff; }
|
||||
.aksrt-badge--solid-orange { background: var(--aksrt-orange); color: #fff; }
|
||||
.aksrt-badge--solid-purple { background: var(--aksrt-purple); color: #fff; }
|
||||
.aksrt-badge--solid-cyan { background: var(--aksrt-cyan); color: #fff; }
|
||||
.aksrt-badge--solid-yellow { background: var(--aksrt-yellow); color: #422006; }
|
||||
.aksrt-badge--solid-red { background: var(--aksrt-red); color: #fff; }
|
||||
.aksrt-badge--solid-teal { background: var(--aksrt-teal); color: #fff; }
|
||||
.aksrt-badge--solid-indigo { background: var(--aksrt-indigo); color: #fff; }
|
||||
.aksrt-badge--solid-pink { background: var(--aksrt-pink); color: #fff; }
|
||||
.jio-badge--solid-primary { background: var(--color-primary); color: #fff; }
|
||||
.jio-badge--solid-success { background: var(--color-success); color: #fff; }
|
||||
.jio-badge--solid-warning { background: var(--color-warning); color: #fff; }
|
||||
.jio-badge--solid-error { background: var(--color-error); color: #fff; }
|
||||
.jio-badge--solid-info { background: var(--color-info); color: #fff; }
|
||||
.jio-badge--solid-rose { background: var(--jio-rose); color: #fff; }
|
||||
.jio-badge--solid-blue { background: var(--jio-blue); color: #fff; }
|
||||
.jio-badge--solid-green { background: var(--jio-green); color: #fff; }
|
||||
.jio-badge--solid-orange { background: var(--jio-orange); color: #fff; }
|
||||
.jio-badge--solid-purple { background: var(--jio-purple); color: #fff; }
|
||||
.jio-badge--solid-cyan { background: var(--jio-cyan); color: #fff; }
|
||||
.jio-badge--solid-yellow { background: var(--jio-yellow); color: #422006; }
|
||||
.jio-badge--solid-red { background: var(--jio-red); color: #fff; }
|
||||
.jio-badge--solid-teal { background: var(--jio-teal); color: #fff; }
|
||||
.jio-badge--solid-indigo { background: var(--jio-indigo); color: #fff; }
|
||||
.jio-badge--solid-pink { background: var(--jio-pink); color: #fff; }
|
||||
|
||||
/* Badge sizes */
|
||||
.aksrt-badge--sm { height: 18px; padding: 0 6px; font-size: 11px; }
|
||||
.aksrt-badge--lg { height: 28px; padding: 0 12px; font-size: 13px; }
|
||||
.jio-badge--sm { height: 18px; padding: 0 6px; font-size: 11px; }
|
||||
.jio-badge--lg { height: 28px; padding: 0 12px; font-size: 13px; }
|
||||
|
||||
/* ============================================================
|
||||
* 5. 背景色工具类 — .aksrt-bg-{color}
|
||||
* 5. 背景色工具类 — .jio-bg-{color}
|
||||
* ============================================================ */
|
||||
.aksrt-bg-rose { background-color: var(--aksrt-rose-soft); }
|
||||
.aksrt-bg-blue { background-color: var(--aksrt-blue-soft); }
|
||||
.aksrt-bg-green { background-color: var(--aksrt-green-soft); }
|
||||
.aksrt-bg-orange { background-color: var(--aksrt-orange-soft); }
|
||||
.aksrt-bg-purple { background-color: var(--aksrt-purple-soft); }
|
||||
.aksrt-bg-cyan { background-color: var(--aksrt-cyan-soft); }
|
||||
.aksrt-bg-yellow { background-color: var(--aksrt-yellow-soft); }
|
||||
.aksrt-bg-red { background-color: var(--aksrt-red-soft); }
|
||||
.aksrt-bg-teal { background-color: var(--aksrt-teal-soft); }
|
||||
.aksrt-bg-indigo { background-color: var(--aksrt-indigo-soft); }
|
||||
.aksrt-bg-pink { background-color: var(--aksrt-pink-soft); }
|
||||
.jio-bg-rose { background-color: var(--jio-rose-soft); }
|
||||
.jio-bg-blue { background-color: var(--jio-blue-soft); }
|
||||
.jio-bg-green { background-color: var(--jio-green-soft); }
|
||||
.jio-bg-orange { background-color: var(--jio-orange-soft); }
|
||||
.jio-bg-purple { background-color: var(--jio-purple-soft); }
|
||||
.jio-bg-cyan { background-color: var(--jio-cyan-soft); }
|
||||
.jio-bg-yellow { background-color: var(--jio-yellow-soft); }
|
||||
.jio-bg-red { background-color: var(--jio-red-soft); }
|
||||
.jio-bg-teal { background-color: var(--jio-teal-soft); }
|
||||
.jio-bg-indigo { background-color: var(--jio-indigo-soft); }
|
||||
.jio-bg-pink { background-color: var(--jio-pink-soft); }
|
||||
|
||||
/* ============================================================
|
||||
* 6. 文字色工具类 — .aksrt-text-{color}
|
||||
* 6. 文字色工具类 — .jio-text-{color}
|
||||
* ============================================================ */
|
||||
.aksrt-text-rose { color: var(--aksrt-rose); }
|
||||
.aksrt-text-blue { color: var(--aksrt-blue); }
|
||||
.aksrt-text-green { color: var(--aksrt-green); }
|
||||
.aksrt-text-orange { color: var(--aksrt-orange); }
|
||||
.aksrt-text-purple { color: var(--aksrt-purple); }
|
||||
.aksrt-text-cyan { color: var(--aksrt-cyan); }
|
||||
.aksrt-text-yellow { color: var(--aksrt-yellow); }
|
||||
.aksrt-text-red { color: var(--aksrt-red); }
|
||||
.aksrt-text-teal { color: var(--aksrt-teal); }
|
||||
.aksrt-text-indigo { color: var(--aksrt-indigo); }
|
||||
.aksrt-text-pink { color: var(--aksrt-pink); }
|
||||
.jio-text-rose { color: var(--jio-rose); }
|
||||
.jio-text-blue { color: var(--jio-blue); }
|
||||
.jio-text-green { color: var(--jio-green); }
|
||||
.jio-text-orange { color: var(--jio-orange); }
|
||||
.jio-text-purple { color: var(--jio-purple); }
|
||||
.jio-text-cyan { color: var(--jio-cyan); }
|
||||
.jio-text-yellow { color: var(--jio-yellow); }
|
||||
.jio-text-red { color: var(--jio-red); }
|
||||
.jio-text-teal { color: var(--jio-teal); }
|
||||
.jio-text-indigo { color: var(--jio-indigo); }
|
||||
.jio-text-pink { color: var(--jio-pink); }
|
||||
@@ -1,14 +1,14 @@
|
||||
/**
|
||||
* AKSRT Extended Components — 时间轴 / 步骤向导 / 九宫格 / 定价卡片 /
|
||||
* Jio Extended Components — 时间轴 / 步骤向导 / 九宫格 / 定价卡片 /
|
||||
* Toggle 开关 / 自定义复选框 / 数字步进器
|
||||
* ------------------------------------------------------------
|
||||
* 全部使用 aksrt- 前缀,保持原生语义可访问性。
|
||||
* 全部使用 jio- 前缀,保持原生语义可访问性。
|
||||
*/
|
||||
|
||||
/* ============================================================
|
||||
* 1. 时间轴 — .aksrt-timeline
|
||||
* 1. 时间轴 — .jio-timeline
|
||||
* ============================================================ */
|
||||
.aksrt-timeline {
|
||||
.jio-timeline {
|
||||
position: relative;
|
||||
padding-left: 28px;
|
||||
margin: 0;
|
||||
@@ -16,7 +16,7 @@
|
||||
}
|
||||
|
||||
/* 竖线 */
|
||||
.aksrt-timeline::before {
|
||||
.jio-timeline::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 8px;
|
||||
@@ -27,17 +27,17 @@
|
||||
border-radius: 1px;
|
||||
}
|
||||
|
||||
.aksrt-timeline__item {
|
||||
.jio-timeline__item {
|
||||
position: relative;
|
||||
padding-bottom: 24px;
|
||||
}
|
||||
|
||||
.aksrt-timeline__item:last-child {
|
||||
.jio-timeline__item:last-child {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
/* 圆点 */
|
||||
.aksrt-timeline__dot {
|
||||
.jio-timeline__dot {
|
||||
position: absolute;
|
||||
left: -24px;
|
||||
top: 4px;
|
||||
@@ -51,59 +51,59 @@
|
||||
}
|
||||
|
||||
/* 空心圆点变体 */
|
||||
.aksrt-timeline__dot--outline {
|
||||
.jio-timeline__dot--outline {
|
||||
background: var(--surface-1, #fff);
|
||||
border: 2px solid var(--color-primary);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* 灰色圆点 — 已完成/已过去 */
|
||||
.aksrt-timeline__dot--muted {
|
||||
.jio-timeline__dot--muted {
|
||||
background: var(--color-ink-4, #999);
|
||||
box-shadow: 0 0 0 2px var(--surface-2, #eee);
|
||||
}
|
||||
|
||||
.aksrt-timeline__time {
|
||||
.jio-timeline__time {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
color: var(--color-ink-4, #999);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.aksrt-timeline__title {
|
||||
.jio-timeline__title {
|
||||
font-weight: 600;
|
||||
color: var(--color-ink, #333);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.aksrt-timeline__content {
|
||||
.jio-timeline__content {
|
||||
font-size: 14px;
|
||||
color: var(--color-ink-3, #777);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 2. 步骤向导 — .aksrt-steps
|
||||
* 2. 步骤向导 — .jio-steps
|
||||
* ============================================================ */
|
||||
.aksrt-steps {
|
||||
.jio-steps {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
counter-reset: aksrt-step;
|
||||
counter-reset: jio-step;
|
||||
}
|
||||
|
||||
.aksrt-steps__item {
|
||||
.jio-steps__item {
|
||||
flex: 1;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
counter-increment: aksrt-step;
|
||||
counter-increment: jio-step;
|
||||
}
|
||||
|
||||
/* 连接线 */
|
||||
.aksrt-steps__item:not(:last-child)::after {
|
||||
.jio-steps__item:not(:last-child)::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 16px;
|
||||
@@ -113,7 +113,7 @@
|
||||
background: var(--color-line, rgba(50, 50, 50, 0.1));
|
||||
}
|
||||
|
||||
.aksrt-steps__icon {
|
||||
.jio-steps__icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -129,48 +129,48 @@
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.aksrt-steps__item--active .aksrt-steps__icon {
|
||||
.jio-steps__item--active .jio-steps__icon {
|
||||
background: var(--color-primary);
|
||||
color: var(--color-on-primary, #fff);
|
||||
}
|
||||
|
||||
.aksrt-steps__item--done .aksrt-steps__icon {
|
||||
.jio-steps__item--done .jio-steps__icon {
|
||||
background: var(--color-success);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.aksrt-steps__item--done:not(:last-child)::after {
|
||||
.jio-steps__item--done:not(:last-child)::after {
|
||||
background: var(--color-success);
|
||||
}
|
||||
|
||||
.aksrt-steps__label {
|
||||
.jio-steps__label {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--color-ink-3, #777);
|
||||
}
|
||||
|
||||
.aksrt-steps__item--active .aksrt-steps__label {
|
||||
.jio-steps__item--active .jio-steps__label {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.aksrt-steps__item--done .aksrt-steps__label {
|
||||
.jio-steps__item--done .jio-steps__label {
|
||||
color: var(--color-success);
|
||||
}
|
||||
|
||||
/* 垂直模式 */
|
||||
.aksrt-steps--vertical {
|
||||
.jio-steps--vertical {
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.aksrt-steps--vertical .aksrt-steps__item {
|
||||
.jio-steps--vertical .jio-steps__item {
|
||||
text-align: left;
|
||||
padding-left: 28px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.aksrt-steps--vertical .aksrt-steps__item:not(:last-child)::after {
|
||||
.jio-steps--vertical .jio-steps__item:not(:last-child)::after {
|
||||
top: 34px;
|
||||
left: 36px;
|
||||
right: auto;
|
||||
@@ -178,16 +178,16 @@
|
||||
height: calc(100% - 34px);
|
||||
}
|
||||
|
||||
.aksrt-steps--vertical .aksrt-steps__icon {
|
||||
.jio-steps--vertical .jio-steps__icon {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 3. 九宫格 — .aksrt-img-grid
|
||||
* 3. 九宫格 — .jio-img-grid
|
||||
* ============================================================ */
|
||||
.aksrt-img-grid {
|
||||
.jio-img-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 4px;
|
||||
@@ -195,7 +195,7 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.aksrt-img-grid img {
|
||||
.jio-img-grid img {
|
||||
width: 100%;
|
||||
aspect-ratio: 1;
|
||||
object-fit: cover;
|
||||
@@ -204,23 +204,23 @@
|
||||
transition: transform .2s ease;
|
||||
}
|
||||
|
||||
.aksrt-img-grid img:hover {
|
||||
.jio-img-grid img:hover {
|
||||
transform: scale(1.03);
|
||||
}
|
||||
|
||||
/* 自适应列数 */
|
||||
.aksrt-img-grid--2 { grid-template-columns: repeat(2, 1fr); }
|
||||
.aksrt-img-grid--4 { grid-template-columns: repeat(4, 1fr); }
|
||||
.jio-img-grid--2 { grid-template-columns: repeat(2, 1fr); }
|
||||
.jio-img-grid--4 { grid-template-columns: repeat(4, 1fr); }
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.aksrt-img-grid--4 { grid-template-columns: repeat(3, 1fr); }
|
||||
.jio-img-grid--4 { grid-template-columns: repeat(3, 1fr); }
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 5. Toggle 开关 — .aksrt-toggle (纯 CSS + :checked)
|
||||
* 5. Toggle 开关 — .jio-toggle (纯 CSS + :checked)
|
||||
* 保持原生 <input> 可访问性
|
||||
* ============================================================ */
|
||||
.aksrt-toggle {
|
||||
.jio-toggle {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -229,7 +229,7 @@
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.aksrt-toggle__input {
|
||||
.jio-toggle__input {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
@@ -237,23 +237,23 @@
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.aksrt-toggle__track {
|
||||
.jio-toggle__track {
|
||||
position: relative;
|
||||
width: var(--aksrt-toggle-w, 44px);
|
||||
height: var(--aksrt-toggle-h, 24px);
|
||||
width: var(--jio-toggle-w, 44px);
|
||||
height: var(--jio-toggle-h, 24px);
|
||||
background: var(--surface-3, #e8e8e8);
|
||||
border-radius: var(--aksrt-toggle-h, 24px);
|
||||
border-radius: var(--jio-toggle-h, 24px);
|
||||
transition: background .2s ease;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.aksrt-toggle__track::after {
|
||||
.jio-toggle__track::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
width: calc(var(--aksrt-toggle-h, 24px) - 4px);
|
||||
height: calc(var(--aksrt-toggle-h, 24px) - 4px);
|
||||
width: calc(var(--jio-toggle-h, 24px) - 4px);
|
||||
height: calc(var(--jio-toggle-h, 24px) - 4px);
|
||||
background: #fff;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
|
||||
@@ -261,35 +261,35 @@
|
||||
}
|
||||
|
||||
/* Checked */
|
||||
.aksrt-toggle__input:checked + .aksrt-toggle__track {
|
||||
.jio-toggle__input:checked + .jio-toggle__track {
|
||||
background: var(--color-primary);
|
||||
}
|
||||
|
||||
.aksrt-toggle__input:checked + .aksrt-toggle__track::after {
|
||||
transform: translateX(calc(var(--aksrt-toggle-w, 44px) - var(--aksrt-toggle-h, 24px)));
|
||||
.jio-toggle__input:checked + .jio-toggle__track::after {
|
||||
transform: translateX(calc(var(--jio-toggle-w, 44px) - var(--jio-toggle-h, 24px)));
|
||||
}
|
||||
|
||||
/* Focus-visible */
|
||||
.aksrt-toggle__input:focus-visible + .aksrt-toggle__track {
|
||||
.jio-toggle__input:focus-visible + .jio-toggle__track {
|
||||
box-shadow: var(--focus-ring, 0 0 2px 3px rgba(253, 83, 161, 0.4));
|
||||
}
|
||||
|
||||
/* Disabled */
|
||||
.aksrt-toggle__input:disabled + .aksrt-toggle__track {
|
||||
.jio-toggle__input:disabled + .jio-toggle__track {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.aksrt-toggle__label {
|
||||
.jio-toggle__label {
|
||||
font-size: 14px;
|
||||
color: var(--color-ink-2, #4e5358);
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 6. 自定义复选框 — .aksrt-checkbox (纯 CSS + :checked)
|
||||
* 6. 自定义复选框 — .jio-checkbox (纯 CSS + :checked)
|
||||
* 保持原生 <input type="checkbox"> 可访问性
|
||||
* ============================================================ */
|
||||
.aksrt-checkbox {
|
||||
.jio-checkbox {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
@@ -297,7 +297,7 @@
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.aksrt-checkbox__input {
|
||||
.jio-checkbox__input {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
@@ -305,7 +305,7 @@
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.aksrt-checkbox__box {
|
||||
.jio-checkbox__box {
|
||||
position: relative;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
@@ -317,7 +317,7 @@
|
||||
}
|
||||
|
||||
/* 打勾 SVG */
|
||||
.aksrt-checkbox__box::after {
|
||||
.jio-checkbox__box::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
@@ -331,46 +331,46 @@
|
||||
transition: transform .15s ease;
|
||||
}
|
||||
|
||||
.aksrt-checkbox__input:checked + .aksrt-checkbox__box {
|
||||
.jio-checkbox__input:checked + .jio-checkbox__box {
|
||||
background: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.aksrt-checkbox__input:checked + .aksrt-checkbox__box::after {
|
||||
.jio-checkbox__input:checked + .jio-checkbox__box::after {
|
||||
transform: rotate(45deg) scale(1);
|
||||
}
|
||||
|
||||
.aksrt-checkbox__input:focus-visible + .aksrt-checkbox__box {
|
||||
.jio-checkbox__input:focus-visible + .jio-checkbox__box {
|
||||
box-shadow: var(--focus-ring, 0 0 2px 3px rgba(253, 83, 161, 0.4));
|
||||
}
|
||||
|
||||
.aksrt-checkbox__input:disabled + .aksrt-checkbox__box {
|
||||
.jio-checkbox__input:disabled + .jio-checkbox__box {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.aksrt-checkbox__label {
|
||||
.jio-checkbox__label {
|
||||
font-size: 14px;
|
||||
color: var(--color-ink-2, #4e5358);
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 7. 数字步进器 — .aksrt-stepper
|
||||
* 7. 数字步进器 — .jio-stepper
|
||||
* ============================================================ */
|
||||
.aksrt-stepper {
|
||||
.jio-stepper {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
border: 1px solid var(--color-line, rgba(50, 50, 50, 0.1));
|
||||
border-radius: var(--radius, 8px);
|
||||
overflow: hidden;
|
||||
height: var(--aksrt-stepper-h, 36px);
|
||||
height: var(--jio-stepper-h, 36px);
|
||||
}
|
||||
|
||||
.aksrt-stepper__btn {
|
||||
.jio-stepper__btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: var(--aksrt-stepper-h, 36px);
|
||||
width: var(--jio-stepper-h, 36px);
|
||||
height: 100%;
|
||||
background: var(--surface-2, #eee);
|
||||
color: var(--color-ink-2, #4e5358);
|
||||
@@ -382,17 +382,17 @@
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.aksrt-stepper__btn:hover {
|
||||
.jio-stepper__btn:hover {
|
||||
background: var(--surface-3, #e8e8e8);
|
||||
color: var(--color-ink, #333);
|
||||
}
|
||||
|
||||
.aksrt-stepper__btn:disabled {
|
||||
.jio-stepper__btn:disabled {
|
||||
opacity: 0.4;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.aksrt-stepper__input {
|
||||
.jio-stepper__input {
|
||||
width: 48px;
|
||||
height: 100%;
|
||||
border: none;
|
||||
@@ -404,25 +404,25 @@
|
||||
-moz-appearance: textfield;
|
||||
}
|
||||
|
||||
.aksrt-stepper__input::-webkit-outer-spin-button,
|
||||
.aksrt-stepper__input::-webkit-inner-spin-button {
|
||||
.jio-stepper__input::-webkit-outer-spin-button,
|
||||
.jio-stepper__input::-webkit-inner-spin-button {
|
||||
-webkit-appearance: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.aksrt-stepper__input:focus {
|
||||
.jio-stepper__input:focus {
|
||||
outline: none;
|
||||
background: var(--color-primary-softer, rgba(240, 68, 148, 0.05));
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 8. 头像尺寸变量系统 — .aksrt-avatar--{size}
|
||||
* 8. 头像尺寸变量系统 — .jio-avatar--{size}
|
||||
* ============================================================ */
|
||||
.aksrt-avatar--xs { width: var(--aksrt-avatar-size-xs); height: var(--aksrt-avatar-size-xs); }
|
||||
.aksrt-avatar--sm { width: var(--aksrt-avatar-size-sm); height: var(--aksrt-avatar-size-sm); }
|
||||
.aksrt-avatar { width: var(--aksrt-avatar-size); height: var(--aksrt-avatar-size); }
|
||||
.aksrt-avatar--lg { width: var(--aksrt-avatar-size-lg); height: var(--aksrt-avatar-size-lg); }
|
||||
.aksrt-avatar--xl { width: var(--aksrt-avatar-size-xl); height: var(--aksrt-avatar-size-xl); }
|
||||
.jio-avatar--xs { width: var(--jio-avatar-size-xs); height: var(--jio-avatar-size-xs); }
|
||||
.jio-avatar--sm { width: var(--jio-avatar-size-sm); height: var(--jio-avatar-size-sm); }
|
||||
.jio-avatar { width: var(--jio-avatar-size); height: var(--jio-avatar-size); }
|
||||
.jio-avatar--lg { width: var(--jio-avatar-size-lg); height: var(--jio-avatar-size-lg); }
|
||||
.jio-avatar--xl { width: var(--jio-avatar-size-xl); height: var(--jio-avatar-size-xl); }
|
||||
|
||||
/* ============================================================
|
||||
* 8b. 头像形状统一 — 圆形基底
|
||||
@@ -441,43 +441,43 @@ img.avatar-lg,
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 9. 涟漪点击效果 — .aksrt-ripple
|
||||
* 容器加此类,点击时 JS 注入 span.aksrt-ripple__wave
|
||||
* 9. 涟漪点击效果 — .jio-ripple
|
||||
* 容器加此类,点击时 JS 注入 span.jio-ripple__wave
|
||||
* ============================================================ */
|
||||
.aksrt-ripple {
|
||||
.jio-ripple {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.aksrt-ripple__wave {
|
||||
.jio-ripple__wave {
|
||||
position: absolute;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.35);
|
||||
transform: scale(0);
|
||||
animation: aksrtRippleWave .6s ease-out forwards;
|
||||
animation: jioRippleWave .6s ease-out forwards;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@keyframes aksrtRippleWave {
|
||||
@keyframes jioRippleWave {
|
||||
to {
|
||||
transform: scale(4);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Runtime broad ripple (.aksrt-wave injected into .but/.btn).
|
||||
/* Runtime broad ripple (.jio-wave injected into .but/.btn).
|
||||
* MUST stay out of flow — missing absolute made header CTA grow on click. */
|
||||
.aksrt-wave {
|
||||
.jio-wave {
|
||||
position: absolute !important;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.35);
|
||||
pointer-events: none !important;
|
||||
z-index: 1;
|
||||
transform: scale(0);
|
||||
animation: aksrtWaveRipple 0.6s ease-out forwards;
|
||||
animation: jioWaveRipple 0.6s ease-out forwards;
|
||||
}
|
||||
|
||||
@keyframes aksrtWaveRipple {
|
||||
@keyframes jioWaveRipple {
|
||||
to {
|
||||
transform: scale(1);
|
||||
opacity: 0;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* AKSRT Forms — 1:1 legacy Alignment
|
||||
* Jio Forms — 1:1 legacy Alignment
|
||||
*
|
||||
* 对齐 legacy .form-control:
|
||||
* - 灰色背景 (#f5f6f7)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* AKSRT Reset
|
||||
* Jio Reset
|
||||
* 现代精简 reset,结合 box-sizing 与 a11y 友好的默认值。
|
||||
*/
|
||||
|
||||
|
||||
+59
-59
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* AKSRT Design Tokens v7 — 1:1 legacy Alignment
|
||||
* Jio Design Tokens v7 — 1:1 legacy Alignment
|
||||
* ------------------------------------------------------------
|
||||
* 单一真理源(Single Source of Truth)
|
||||
* 所有颜色、字体、间距、动效都从此处读取,禁止在组件内硬编码。
|
||||
@@ -176,7 +176,7 @@
|
||||
--blur-bg: rgba(255, 255, 255, 0.80);
|
||||
--float-btn-bg: rgba(200, 200, 200, 0.40);
|
||||
|
||||
/* ===== AKSRT-to-AKSRT canonical aliases ===== */
|
||||
/* ===== Jio-to-Jio canonical aliases ===== */
|
||||
--font-heading: var(--font-ui);
|
||||
--radius-card: var(--radius);
|
||||
--radius-md: var(--radius);
|
||||
@@ -186,58 +186,58 @@
|
||||
--mini-radius: calc(var(--radius) / 1.4);
|
||||
|
||||
/* ===== Avatar size system — legacy --this-size 等价 ===== */
|
||||
--aksrt-avatar-size-xs: 24px;
|
||||
--aksrt-avatar-size-sm: 32px;
|
||||
--aksrt-avatar-size: 40px;
|
||||
--aksrt-avatar-size-lg: 56px;
|
||||
--aksrt-avatar-size-xl: 80px;
|
||||
--jio-avatar-size-xs: 24px;
|
||||
--jio-avatar-size-sm: 32px;
|
||||
--jio-avatar-size: 40px;
|
||||
--jio-avatar-size-lg: 56px;
|
||||
--jio-avatar-size-xl: 80px;
|
||||
|
||||
/* ===== Post card thumbnail scale ===== */
|
||||
--aksrt-card-thumb-scale: 56.25%; /* 16:9 */
|
||||
--jio-card-thumb-scale: 56.25%; /* 16:9 */
|
||||
|
||||
/* ===== Multi-color palette (for buttons / badges / gradients) ===== */
|
||||
--aksrt-rose: #f43f5e;
|
||||
--aksrt-rose-soft: rgba(244, 63, 94, 0.12);
|
||||
--aksrt-blue: #3b82f6;
|
||||
--aksrt-blue-soft: rgba(59, 130, 246, 0.12);
|
||||
--aksrt-green: #10b981;
|
||||
--aksrt-green-soft: rgba(16, 185, 129, 0.12);
|
||||
--aksrt-orange: #f97316;
|
||||
--aksrt-orange-soft:rgba(249, 115, 22, 0.12);
|
||||
--aksrt-purple: #8b5cf6;
|
||||
--aksrt-purple-soft:rgba(139, 92, 246, 0.12);
|
||||
--aksrt-cyan: #06b6d4;
|
||||
--aksrt-cyan-soft: rgba(6, 182, 212, 0.12);
|
||||
--aksrt-yellow: #eab308;
|
||||
--aksrt-yellow-soft:rgba(234, 179, 8, 0.12);
|
||||
--aksrt-red: #ef4444;
|
||||
--aksrt-red-soft: rgba(239, 68, 68, 0.12);
|
||||
--aksrt-teal: #14b8a6;
|
||||
--aksrt-teal-soft: rgba(20, 184, 166, 0.12);
|
||||
--aksrt-indigo: #6366f1;
|
||||
--aksrt-indigo-soft:rgba(99, 102, 241, 0.12);
|
||||
--aksrt-pink: #ec4899;
|
||||
--aksrt-pink-soft: rgba(236, 72, 153, 0.12);
|
||||
--jio-rose: #f43f5e;
|
||||
--jio-rose-soft: rgba(244, 63, 94, 0.12);
|
||||
--jio-blue: #3b82f6;
|
||||
--jio-blue-soft: rgba(59, 130, 246, 0.12);
|
||||
--jio-green: #10b981;
|
||||
--jio-green-soft: rgba(16, 185, 129, 0.12);
|
||||
--jio-orange: #f97316;
|
||||
--jio-orange-soft:rgba(249, 115, 22, 0.12);
|
||||
--jio-purple: #8b5cf6;
|
||||
--jio-purple-soft:rgba(139, 92, 246, 0.12);
|
||||
--jio-cyan: #06b6d4;
|
||||
--jio-cyan-soft: rgba(6, 182, 212, 0.12);
|
||||
--jio-yellow: #eab308;
|
||||
--jio-yellow-soft:rgba(234, 179, 8, 0.12);
|
||||
--jio-red: #ef4444;
|
||||
--jio-red-soft: rgba(239, 68, 68, 0.12);
|
||||
--jio-teal: #14b8a6;
|
||||
--jio-teal-soft: rgba(20, 184, 166, 0.12);
|
||||
--jio-indigo: #6366f1;
|
||||
--jio-indigo-soft:rgba(99, 102, 241, 0.12);
|
||||
--jio-pink: #ec4899;
|
||||
--jio-pink-soft: rgba(236, 72, 153, 0.12);
|
||||
|
||||
/* ===== VIP / special gradients ===== */
|
||||
--aksrt-vip-gold-1: #f6d365;
|
||||
--aksrt-vip-gold-2: #fda085;
|
||||
--aksrt-grad-sunset-1: #f093fb;
|
||||
--aksrt-grad-sunset-2: #f5576c;
|
||||
--aksrt-grad-ocean-1: #4facfe;
|
||||
--aksrt-grad-ocean-2: #00f2fe;
|
||||
--aksrt-grad-forest-1: #43e97b;
|
||||
--aksrt-grad-forest-2: #38f9d7;
|
||||
--aksrt-grad-night-1: #a18cd1;
|
||||
--aksrt-grad-night-2: #fbc2eb;
|
||||
--aksrt-grad-fire-1: #f83600;
|
||||
--aksrt-grad-fire-2: #f9d423;
|
||||
--jio-vip-gold-1: #f6d365;
|
||||
--jio-vip-gold-2: #fda085;
|
||||
--jio-grad-sunset-1: #f093fb;
|
||||
--jio-grad-sunset-2: #f5576c;
|
||||
--jio-grad-ocean-1: #4facfe;
|
||||
--jio-grad-ocean-2: #00f2fe;
|
||||
--jio-grad-forest-1: #43e97b;
|
||||
--jio-grad-forest-2: #38f9d7;
|
||||
--jio-grad-night-1: #a18cd1;
|
||||
--jio-grad-night-2: #fbc2eb;
|
||||
--jio-grad-fire-1: #f83600;
|
||||
--jio-grad-fire-2: #f9d423;
|
||||
|
||||
/* ===== Component sizing ===== */
|
||||
--aksrt-toggle-w: 44px;
|
||||
--aksrt-toggle-h: 24px;
|
||||
--aksrt-stepper-h: 36px;
|
||||
--aksrt-badge-h: 22px;
|
||||
--jio-toggle-w: 44px;
|
||||
--jio-toggle-h: 24px;
|
||||
--jio-stepper-h: 36px;
|
||||
--jio-badge-h: 22px;
|
||||
|
||||
/* ===== Legacy name bridge ===== */
|
||||
--text-1: var(--color-ink);
|
||||
@@ -369,17 +369,17 @@ body.dark-theme {
|
||||
--shadow-md: var(--shadow);
|
||||
|
||||
/* Multi-color palette — dark mode: same hue, softer tint backgrounds */
|
||||
--aksrt-rose-soft: rgba(244, 63, 94, 0.18);
|
||||
--aksrt-blue-soft: rgba(59, 130, 246, 0.18);
|
||||
--aksrt-green-soft: rgba(16, 185, 129, 0.18);
|
||||
--aksrt-orange-soft:rgba(249, 115, 22, 0.18);
|
||||
--aksrt-purple-soft:rgba(139, 92, 246, 0.18);
|
||||
--aksrt-cyan-soft: rgba(6, 182, 212, 0.18);
|
||||
--aksrt-yellow-soft:rgba(234, 179, 8, 0.18);
|
||||
--aksrt-red-soft: rgba(239, 68, 68, 0.18);
|
||||
--aksrt-teal-soft: rgba(20, 184, 166, 0.18);
|
||||
--aksrt-indigo-soft:rgba(99, 102, 241, 0.18);
|
||||
--aksrt-pink-soft: rgba(236, 72, 153, 0.18);
|
||||
--jio-rose-soft: rgba(244, 63, 94, 0.18);
|
||||
--jio-blue-soft: rgba(59, 130, 246, 0.18);
|
||||
--jio-green-soft: rgba(16, 185, 129, 0.18);
|
||||
--jio-orange-soft:rgba(249, 115, 22, 0.18);
|
||||
--jio-purple-soft:rgba(139, 92, 246, 0.18);
|
||||
--jio-cyan-soft: rgba(6, 182, 212, 0.18);
|
||||
--jio-yellow-soft:rgba(234, 179, 8, 0.18);
|
||||
--jio-red-soft: rgba(239, 68, 68, 0.18);
|
||||
--jio-teal-soft: rgba(20, 184, 166, 0.18);
|
||||
--jio-indigo-soft:rgba(99, 102, 241, 0.18);
|
||||
--jio-pink-soft: rgba(236, 72, 153, 0.18);
|
||||
}
|
||||
|
||||
/* Dark mode component refinements */
|
||||
@@ -406,11 +406,11 @@ body.dark-theme .n-dialog {
|
||||
|
||||
html.dark .post-card,
|
||||
html.dark .widget,
|
||||
html.dark .aksrt-theme-box,
|
||||
html.dark .jio-theme-box,
|
||||
html.dark .theme-box,
|
||||
body.dark-theme .post-card,
|
||||
body.dark-theme .widget,
|
||||
body.dark-theme .aksrt-theme-box,
|
||||
body.dark-theme .jio-theme-box,
|
||||
body.dark-theme .theme-box {
|
||||
border-color: transparent;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* AKSRT Typography — 1:1 legacy Alignment
|
||||
* Jio Typography — 1:1 legacy Alignment
|
||||
*
|
||||
* 对齐 legacy main.css 的排版系统
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user