登录注册体系的源码级硬切换
This commit is contained in:
1 parent
73fcd4ed72
commit
af52f9e94d
72 files changed
+1666
-6576
No files matched your search
@@ -1,3 +1,2 @@
|
||||
@import url("enhancements/core-ui.css");
|
||||
@import url("enhancements/components.css");
|
||||
@import url("enhancements/modal-motion.css");
|
||||
@@ -5,27 +5,6 @@
|
||||
* 所有选择器使用 aksrt- 前缀避免冲突
|
||||
*/
|
||||
|
||||
.aksrt-modal-auth__error.is-success {
|
||||
background: rgba(16, 185, 129, 0.08);
|
||||
border-color: rgba(16, 185, 129, 0.22);
|
||||
color: #047857;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__checkbox {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
font-size: 13px;
|
||||
color: var(--muted-color, #777);
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__hint {
|
||||
margin: -4px 0 0;
|
||||
font-size: 13px;
|
||||
color: var(--muted-color, #777);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
@keyframes aksrt-spin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
@import url("modal-motion/base.css");
|
||||
@import url("modal-motion/tabs.css");
|
||||
@import url("modal-motion/panels.css");
|
||||
@import url("modal-motion/form.css");
|
||||
@import url("modal-motion/divider.css");
|
||||
@import url("modal-motion/oauth.css");
|
||||
@import url("modal-motion/footer.css");
|
||||
@import url("modal-motion/dark-mode.css");
|
||||
@import url("modal-motion/responsive.css");
|
||||
@import url("modal-motion/dark-mode-2.css");
|
||||
@@ -1,210 +0,0 @@
|
||||
/* ============================================================
|
||||
* 21. 弹窗登录/注册 — 1:1 legacy modal
|
||||
* ============================================================ */
|
||||
.aksrt-modal-auth {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 99999;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: opacity 0.3s, visibility 0.3s;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth.is-open {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__overlay {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
backdrop-filter: none;
|
||||
-webkit-backdrop-filter: none;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__card {
|
||||
position: relative;
|
||||
background: var(--main-bg-color, var(--surface-1, #fff));
|
||||
border-radius: var(--main-radius, 8px);
|
||||
border: none;
|
||||
padding: 0;
|
||||
max-width: 400px;
|
||||
width: 100%;
|
||||
max-height: calc(100vh - 20px);
|
||||
overflow: hidden;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
box-shadow: 0 0 10px var(--main-shadow, rgba(116, 116, 116, 0.08));
|
||||
z-index: 1;
|
||||
transform: scale(0.9);
|
||||
transition: transform 0.5s cubic-bezier(0.32, 0.85, 0.45, 1.18), width 0.3s;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth.is-open .aksrt-modal-auth__card {
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__header {
|
||||
position: relative;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
padding: 28px 24px 16px;
|
||||
min-height: 120px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: var(--main-radius, 8px) var(--main-radius, 8px) 0 0;
|
||||
overflow: hidden;
|
||||
color: #fff;
|
||||
background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-active, #c9206d) 100%);
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__header::before,
|
||||
.aksrt-modal-auth__header::after {
|
||||
content: ' ';
|
||||
position: absolute;
|
||||
border-radius: 100%;
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__header::before {
|
||||
width: 220px;
|
||||
height: 220px;
|
||||
right: -60px;
|
||||
top: -80px;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__header::after {
|
||||
width: 160px;
|
||||
height: 160px;
|
||||
left: -40px;
|
||||
bottom: -70px;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__close {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
width: auto;
|
||||
height: auto;
|
||||
min-width: 28px;
|
||||
min-height: 28px;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
color: #fff;
|
||||
opacity: 0.6;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: opacity 0.2s;
|
||||
font-size: 18px;
|
||||
z-index: 9;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__close:hover {
|
||||
opacity: 1;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__logo {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.18);
|
||||
color: #fff;
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0 auto 10px;
|
||||
border: 2px solid rgba(255, 255, 255, 0.35);
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__title {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
font-weight: normal;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__tabs,
|
||||
.aksrt-modal-auth__panel,
|
||||
.aksrt-modal-auth__body {
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__panel {
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth.bottom {
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth.bottom .aksrt-modal-auth__card {
|
||||
max-width: calc(100% - 20px);
|
||||
margin-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
|
||||
transform: translateY(110%);
|
||||
transition: transform 0.4s;
|
||||
border-radius: var(--main-radius, 8px);
|
||||
box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.aksrt-modal-auth.bottom.is-open .aksrt-modal-auth__card {
|
||||
transform: translateY(0);
|
||||
transition: transform 0.6s cubic-bezier(0.28, 0.9, 0.34, 0.99);
|
||||
}
|
||||
|
||||
.modal-content,
|
||||
.aksrt-modal__content {
|
||||
border-radius: var(--main-radius, 8px);
|
||||
background: var(--main-bg-color, var(--surface-1));
|
||||
border: none;
|
||||
box-shadow: 0 0 10px var(--main-shadow, rgba(116, 116, 116, 0.08));
|
||||
}
|
||||
|
||||
.modal-colorful-header {
|
||||
border-radius: var(--main-radius, 8px) var(--main-radius, 8px) 0 0;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
height: 120px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--this-color, #fff);
|
||||
background: var(--this-bg, var(--focus-color, var(--color-primary)));
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.modal-colorful-header + * {
|
||||
margin-top: 120px;
|
||||
}
|
||||
|
||||
.modal-colorful-header > .close {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 10px;
|
||||
color: var(--this-color, #fff);
|
||||
opacity: 0.6;
|
||||
font-size: 18px;
|
||||
z-index: 9;
|
||||
}
|
||||
@@ -1,449 +0,0 @@
|
||||
|
||||
/* ============================================================
|
||||
* 响应式
|
||||
* ============================================================ */
|
||||
@media (max-width: 640px) {
|
||||
.aksrt-lightbox__nav {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.single-cover-slider__img {
|
||||
height: 240px;
|
||||
}
|
||||
|
||||
.single-cover-slider__title {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.reward-modal__card {
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.reward-modal__qr {
|
||||
width: 160px;
|
||||
height: 160px;
|
||||
}
|
||||
|
||||
.aksrt-cover-cards {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.aksrt-cover-card {
|
||||
min-height: 140px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 13. 无障碍:prefers-reduced-motion
|
||||
* 用户系统设置"减少动画"时,禁用所有非必要动效
|
||||
* ============================================================ */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
|
||||
.aksrt-skeleton {
|
||||
animation: none !important;
|
||||
}
|
||||
|
||||
[data-aksrt-animate] {
|
||||
opacity: 1 !important;
|
||||
transform: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* legacy lazySizes state and animation contract. */
|
||||
.lazyloaded {
|
||||
transition: 0.3s;
|
||||
--lazy-animation: lazy_blur;
|
||||
}
|
||||
|
||||
.lazyloaded.img-icon {
|
||||
--lazy-animation: lazy_fade;
|
||||
}
|
||||
|
||||
img.lazyloaded:not(.lazyloadafter) {
|
||||
-webkit-animation: var(--lazy-animation) 0.6s;
|
||||
animation: var(--lazy-animation) 0.6s;
|
||||
}
|
||||
|
||||
@keyframes lazy_blur {
|
||||
0% { filter: blur(5px); }
|
||||
100% { filter: blur(0); }
|
||||
}
|
||||
|
||||
@keyframes lazy_fade {
|
||||
0% { opacity: 0; }
|
||||
100% { opacity: 1; }
|
||||
}
|
||||
|
||||
@keyframes lazy_scale {
|
||||
0% { transform: scale(1.1); }
|
||||
80% { transform: unset; }
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 15. 错误反馈 shake 动画
|
||||
* 表单验证失败时的水平抖动效果
|
||||
* ============================================================ */
|
||||
@keyframes aksrtShake {
|
||||
0%, 100% { transform: translateX(0); }
|
||||
10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
|
||||
20%, 40%, 60%, 80% { transform: translateX(4px); }
|
||||
}
|
||||
|
||||
.aksrt-shake {
|
||||
animation: aksrtShake 0.4s ease-in-out;
|
||||
}
|
||||
|
||||
/* 应用于 Naive UI 表单验证 */
|
||||
.n-form-item--error .n-input,
|
||||
.n-form-item--error .n-select,
|
||||
.n-form-item--error .n-input-number {
|
||||
animation: aksrtShake 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 16. FPS 加速模式:低端设备禁用 backdrop-filter
|
||||
* 模仿 legacy 的 body.fps-accelerat 模式
|
||||
* ============================================================ */
|
||||
body.fps-accelerat .site-nav,
|
||||
body.fps-accelerat .footer-tabbar,
|
||||
body.fps-accelerat .float-right .float-btn,
|
||||
body.fps-accelerat .aksrt-blur-bg {
|
||||
backdrop-filter: none !important;
|
||||
-webkit-backdrop-filter: none !important;
|
||||
}
|
||||
|
||||
/* 模态框内禁用 backdrop-filter 避免渲染冲突 */
|
||||
body.modal-open .site-nav,
|
||||
body.dialog-open .site-nav {
|
||||
backdrop-filter: none !important;
|
||||
-webkit-backdrop-filter: none !important;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 17. .blur-bg 通用工具类
|
||||
* 模仿 legacy 的 .blur-bg,可在任意元素上应用毛玻璃效果
|
||||
* ============================================================ */
|
||||
.aksrt-blur-bg {
|
||||
background: var(--blur-bg);
|
||||
backdrop-filter: saturate(5) blur(20px);
|
||||
-webkit-backdrop-filter: saturate(5) blur(20px);
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 18. 滚动触发动画延迟支持
|
||||
* data-aksrt-delay 属性控制入场延迟
|
||||
* ============================================================ */
|
||||
[data-aksrt-animate][data-aksrt-delay="1"] { transition-delay: 0.1s; }
|
||||
[data-aksrt-animate][data-aksrt-delay="2"] { transition-delay: 0.2s; }
|
||||
[data-aksrt-animate][data-aksrt-delay="3"] { transition-delay: 0.3s; }
|
||||
[data-aksrt-animate][data-aksrt-delay="4"] { transition-delay: 0.4s; }
|
||||
[data-aksrt-animate][data-aksrt-delay="5"] { transition-delay: 0.5s; }
|
||||
|
||||
/* ============================================================
|
||||
* 19. 全站动效节奏统一
|
||||
* 模仿 legacy 的统一 hover / slide / blur / drawer 语言
|
||||
* ============================================================ */
|
||||
|
||||
/* --- 全局过渡基线 --- */
|
||||
a, button, input, select, textarea {
|
||||
transition: border-color var(--dur-fast) var(--ease),
|
||||
box-shadow var(--dur-fast) var(--ease),
|
||||
background-color var(--dur-fast) var(--ease),
|
||||
color var(--dur-fast) var(--ease);
|
||||
}
|
||||
|
||||
/* --- 卡片 hover 统一 --- */
|
||||
.post-card, .widget, .aksrt-theme-box, .theme-box,
|
||||
.comment-body, .friend-card, .special-card,
|
||||
.resource-download-box {
|
||||
transition: box-shadow var(--dur) var(--ease),
|
||||
border-color var(--dur) var(--ease),
|
||||
transform var(--dur) var(--ease);
|
||||
}
|
||||
|
||||
.post-card:hover, .widget:hover, .friend-card:hover, .special-card:hover {
|
||||
box-shadow: none;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
/* --- 按钮 hover 统一 --- */
|
||||
.btn-primary, .btn-outline, .btn-lg, .btn-sm,
|
||||
.n-button, .aksrt-button {
|
||||
transition: all var(--dur-fast) var(--ease);
|
||||
}
|
||||
|
||||
.btn-primary:hover, .n-button--primary-type:hover {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.btn-primary:active, .n-button--primary-type:active {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* --- 输入框 focus 统一 --- */
|
||||
input:focus, textarea:focus, select:focus,
|
||||
.n-input--focus, .n-select--focus {
|
||||
box-shadow: var(--focus-ring);
|
||||
transition: box-shadow var(--dur-fast) var(--ease);
|
||||
}
|
||||
|
||||
/* --- 抽屉/模态框动效统一 --- */
|
||||
.n-drawer, .n-modal, .n-dialog {
|
||||
transition: all var(--dur) var(--ease-out);
|
||||
}
|
||||
|
||||
.n-drawer-mask, .n-modal-mask, .n-dialog-mask {
|
||||
transition: opacity var(--dur) var(--ease);
|
||||
}
|
||||
|
||||
/* --- Tab 切换动效 --- */
|
||||
.n-tabs-tab, .nav-tab, .aksrt-tab {
|
||||
transition: color var(--dur-fast) var(--ease),
|
||||
border-color var(--dur-fast) var(--ease),
|
||||
background-color var(--dur-fast) var(--ease);
|
||||
}
|
||||
|
||||
/* --- 下拉菜单动效 --- */
|
||||
.n-dropdown-menu, .aksrt-dropdown {
|
||||
transition: opacity var(--dur-fast) var(--ease),
|
||||
transform var(--dur-fast) var(--ease-out);
|
||||
transform-origin: top;
|
||||
}
|
||||
|
||||
/* --- 骨架屏动效 --- */
|
||||
.aksrt-skeleton {
|
||||
animation: aksrtSkeletonShimmer 1.5s infinite linear;
|
||||
background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
|
||||
background-size: 200% 100%;
|
||||
}
|
||||
|
||||
/* --- 页面切换动效 --- */
|
||||
.fade-slide-enter-active,
|
||||
.fade-slide-leave-active {
|
||||
transition: opacity var(--dur) var(--ease),
|
||||
transform var(--dur) var(--ease);
|
||||
}
|
||||
|
||||
.fade-slide-enter-from {
|
||||
opacity: 0;
|
||||
transform: translateY(8px);
|
||||
}
|
||||
|
||||
.fade-slide-leave-to {
|
||||
opacity: 0;
|
||||
transform: translateY(-8px);
|
||||
}
|
||||
|
||||
/* --- 导航栏滚动动效 --- */
|
||||
.site-nav {
|
||||
transition: transform var(--dur) var(--ease),
|
||||
background-color var(--dur) var(--ease),
|
||||
box-shadow var(--dur) var(--ease);
|
||||
}
|
||||
|
||||
.site-nav.aksrt-nav--hidden {
|
||||
transform: translateY(-100%);
|
||||
}
|
||||
|
||||
/* --- 浮层弹出动效 --- */
|
||||
@keyframes aksrtPopIn {
|
||||
0% { opacity: 0; transform: scale(0.95) translateY(-4px); }
|
||||
100% { opacity: 1; transform: scale(1) translateY(0); }
|
||||
}
|
||||
|
||||
@keyframes aksrtPopOut {
|
||||
0% { opacity: 1; transform: scale(1) translateY(0); }
|
||||
100% { opacity: 0; transform: scale(0.95) translateY(-4px); }
|
||||
}
|
||||
|
||||
.aksrt-popover, .aksrt-tooltip, .aksrt-dropdown-panel {
|
||||
animation: aksrtPopIn var(--dur-fast) var(--ease-out) forwards;
|
||||
}
|
||||
|
||||
/* --- 滚动进度条动效 --- */
|
||||
.reading-progress-bar {
|
||||
transition: width 0.1s linear;
|
||||
}
|
||||
|
||||
/* --- 移动端抽屉动效 --- */
|
||||
@media (max-width: 767px) {
|
||||
.n-drawer {
|
||||
transition: transform var(--dur) var(--ease-out);
|
||||
}
|
||||
|
||||
.site-nav .n-drawer-body {
|
||||
transition: transform var(--dur) var(--ease-out);
|
||||
}
|
||||
}
|
||||
|
||||
/* --- 暗色模式切换动效 --- */
|
||||
html.dark {
|
||||
transition: background-color 0.3s var(--ease),
|
||||
color 0.3s var(--ease);
|
||||
}
|
||||
|
||||
html.dark * {
|
||||
transition: background-color 0.3s var(--ease),
|
||||
border-color 0.3s var(--ease),
|
||||
color 0.3s var(--ease),
|
||||
box-shadow 0.3s var(--ease);
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 18. 合作伙伴无缝滚动 (marquee)
|
||||
* ============================================================ */
|
||||
.aksrt-marquee {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.aksrt-marquee__inner {
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
white-space: nowrap;
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
.aksrt-marquee__inner > * {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.aksrt-marquee__inner {
|
||||
animation: none !important;
|
||||
transform: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 19. 视频剧集切换按钮
|
||||
* ============================================================ */
|
||||
.switch-video,
|
||||
.switch-iframe {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 6px 14px;
|
||||
border: 1px solid var(--color-line, rgba(50, 50, 50, 0.1));
|
||||
border-radius: var(--radius, 8px);
|
||||
background: var(--surface-1, #fff);
|
||||
color: var(--color-ink-2, #4e5358);
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.switch-video:hover,
|
||||
.switch-iframe:hover {
|
||||
border-color: var(--color-primary);
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.switch-video.is-active,
|
||||
.switch-iframe.is-active {
|
||||
background: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 20. 一言轮播组件
|
||||
* ============================================================ */
|
||||
.aksrt-yiyan {
|
||||
padding: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.aksrt-yiyan__content {
|
||||
min-height: 60px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.aksrt-yiyan__icon {
|
||||
font-size: 20px;
|
||||
color: var(--color-primary);
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.aksrt-yiyan__text {
|
||||
font-size: 14px;
|
||||
line-height: 1.8;
|
||||
color: var(--color-ink-2, #4e5358);
|
||||
margin: 0;
|
||||
transition: opacity 0.2s ease;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.aksrt-yiyan__from {
|
||||
font-size: 12px;
|
||||
color: var(--color-ink-4, #999);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.aksrt-yiyan__dots {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.aksrt-yiyan__dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-line, rgba(50, 50, 50, 0.1));
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.aksrt-yiyan__dot.is-active {
|
||||
background: var(--color-primary);
|
||||
width: 16px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 底部弹出 Sheet — 对齐 legacy .modal.bottom
|
||||
* ============================================================ */
|
||||
.aksrt-modal--bottom .aksrt-modal-auth__card,
|
||||
.modal.bottom .modal-dialog {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
border-radius: var(--main-radius, 8px) var(--main-radius, 8px) 0 0;
|
||||
transform: translateY(110%);
|
||||
transition: transform 0.4s;
|
||||
margin-bottom: 0;
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
|
||||
.aksrt-modal--bottom.is-open .aksrt-modal-auth__card,
|
||||
.modal.bottom.in .modal-dialog {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.aksrt-modal--bottom .aksrt-modal-auth__card,
|
||||
.modal.bottom .modal-dialog .modal-content {
|
||||
box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
/* Dark mode */
|
||||
.theme-dark .aksrt-modal-auth__card,
|
||||
html.dark .aksrt-modal-auth__card {
|
||||
background: #1e1e2e;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.theme-dark .aksrt-modal-auth__field input,
|
||||
html.dark .aksrt-modal-auth__field input {
|
||||
background: #2a2a3a;
|
||||
border-color: rgba(255, 255, 255, 0.15);
|
||||
color: #e0e0e0;
|
||||
}
|
||||
|
||||
.theme-dark .aksrt-modal-auth__close,
|
||||
html.dark .aksrt-modal-auth__close {
|
||||
background: #2a2a3a;
|
||||
}
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
/* Divider */
|
||||
.aksrt-modal-auth__divider {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin: 20px 0;
|
||||
color: var(--color-ink-4, #8A8F98);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__divider::before,
|
||||
.aksrt-modal-auth__divider::after {
|
||||
content: '';
|
||||
flex: 1;
|
||||
height: 1px;
|
||||
background: var(--color-line);
|
||||
}
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
/* Footer */
|
||||
.aksrt-modal-auth__footer {
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
font-size: 13px;
|
||||
color: var(--color-ink-3);
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__switch {
|
||||
border: none;
|
||||
background: none;
|
||||
color: var(--color-primary, var(--color-primary));
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__switch:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@@ -1,120 +0,0 @@
|
||||
/* Form */
|
||||
.aksrt-modal-auth__form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__error {
|
||||
padding: 10px 14px;
|
||||
border-radius: 8px;
|
||||
background: rgba(239, 68, 68, 0.08);
|
||||
color: var(--color-error, #EF4444);
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__error a {
|
||||
color: var(--color-primary, var(--color-primary));
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__field label {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
font-weight: normal;
|
||||
color: var(--color-ink-2);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__field input {
|
||||
width: 100%;
|
||||
padding: 10px 14px;
|
||||
border: 1px solid var(--color-line);
|
||||
border-radius: var(--main-radius, 8px);
|
||||
font-size: 14px;
|
||||
color: var(--color-ink);
|
||||
background: var(--surface-1, #fff);
|
||||
transition: border-color 0.2s;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__field input:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-primary, var(--color-primary));
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__field input::placeholder {
|
||||
color: var(--color-ink-4, #8A8F98);
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__pass-wrap {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__pass-wrap input {
|
||||
padding-right: 44px;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__pass-toggle {
|
||||
position: absolute;
|
||||
right: 8px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border: none;
|
||||
background: none;
|
||||
color: var(--color-ink-4, #8A8F98);
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__pass-toggle:hover {
|
||||
background: var(--surface-2, #F4F5F7);
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__link {
|
||||
font-size: 13px;
|
||||
color: var(--color-primary, var(--color-primary));
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__submit {
|
||||
width: 100%;
|
||||
padding: 12px;
|
||||
border: none;
|
||||
border-radius: var(--main-radius, 8px);
|
||||
background: var(--color-primary, var(--color-primary));
|
||||
color: #fff;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
transition: opacity 0.2s;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__submit:hover {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__submit:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
/* OAuth */
|
||||
.aksrt-modal-auth__oauth {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__oauth-btn {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border: 1px solid var(--color-line);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--color-ink-2);
|
||||
font-size: 18px;
|
||||
text-decoration: none;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__oauth-btn:hover {
|
||||
border-color: var(--color-primary, var(--color-primary));
|
||||
color: var(--color-primary, var(--color-primary));
|
||||
background: var(--color-primary-soft, rgba(240, 68, 148, 0.1));
|
||||
}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
/* Panels */
|
||||
.aksrt-modal-auth__panel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__panel.is-active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
/* Responsive */
|
||||
@media (max-width: 480px) {
|
||||
.aksrt-modal-auth__card {
|
||||
padding: 24px 20px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__logo {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__title {
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
/* Tabs — under colorful header */
|
||||
.aksrt-modal-auth__tabs {
|
||||
display: flex;
|
||||
border-bottom: 1px solid var(--main-border-color, var(--color-line));
|
||||
margin: 8px 0 16px;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__tab {
|
||||
flex: 1;
|
||||
padding: 10px;
|
||||
border: none;
|
||||
background: none;
|
||||
font-size: 15px;
|
||||
font-weight: normal;
|
||||
color: var(--muted-color, var(--color-ink-3));
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
transition: color 0.15s, opacity 0.15s;
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__tab:hover {
|
||||
opacity: 0.8;
|
||||
color: var(--focus-color, var(--color-primary));
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__tab.is-active {
|
||||
color: var(--focus-color, var(--color-primary));
|
||||
}
|
||||
|
||||
.aksrt-modal-auth__tab.is-active::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -1px;
|
||||
left: 20%;
|
||||
right: 20%;
|
||||
height: 2px;
|
||||
background: var(--focus-color, var(--color-primary));
|
||||
border-radius: 2px;
|
||||
}
|
||||
@@ -1,359 +0,0 @@
|
||||
/**
|
||||
* AKSRT Auth Pages — 认证页面样式
|
||||
*
|
||||
* 类名对齐实际模板:auth-shell, auth-card, auth-form, form-field, input-wrap
|
||||
*
|
||||
* @package AKSRT
|
||||
*/
|
||||
|
||||
/* 认证页面容器 */
|
||||
.auth-shell {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: calc(100vh - 200px);
|
||||
padding: 40px 16px;
|
||||
}
|
||||
|
||||
/* 认证卡片 */
|
||||
.auth-card {
|
||||
width: 100%;
|
||||
max-width: 440px;
|
||||
background: var(--surface-1);
|
||||
border: none;
|
||||
border-radius: var(--radius-2xl, 16px);
|
||||
padding: 32px;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.auth-card__logo {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 12px;
|
||||
background: var(--color-primary);
|
||||
color: #fff;
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.auth-card__title {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
margin: 0 0 8px;
|
||||
color: var(--color-ink);
|
||||
}
|
||||
|
||||
.auth-card__subtitle {
|
||||
font-size: 14px;
|
||||
color: var(--color-ink-3);
|
||||
margin: 0 0 24px;
|
||||
}
|
||||
|
||||
/* 表单 */
|
||||
.auth-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
/* 表单字段 */
|
||||
.form-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.form-field label {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--color-ink-2);
|
||||
}
|
||||
|
||||
/* 输入框包装 */
|
||||
.input-wrap {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.input-wrap input {
|
||||
width: 100%;
|
||||
height: 44px;
|
||||
padding: 0 14px 0 40px;
|
||||
font-size: 14px;
|
||||
color: var(--color-ink);
|
||||
background: var(--surface-4);
|
||||
border: 1px solid var(--color-line);
|
||||
border-radius: 12px;
|
||||
transition: border-color 0.15s, box-shadow 0.15s;
|
||||
}
|
||||
|
||||
.input-wrap input:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 2px 3px rgba(253, 83, 161, 0.4);
|
||||
}
|
||||
|
||||
.input-wrap input::placeholder {
|
||||
color: var(--color-ink-4);
|
||||
}
|
||||
|
||||
.input-icon {
|
||||
position: absolute;
|
||||
left: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: var(--color-ink-4);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* 密码切换按钮 */
|
||||
.toggle-pwd {
|
||||
position: absolute;
|
||||
right: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--color-ink-4);
|
||||
cursor: pointer;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.toggle-pwd:hover {
|
||||
color: var(--color-ink-2);
|
||||
}
|
||||
|
||||
/* 密码字段输入框右侧留空 */
|
||||
.form-field--pwd .input-wrap input {
|
||||
padding-right: 40px;
|
||||
}
|
||||
|
||||
/* 记住我 + 忘记密码 */
|
||||
.form-row-between {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.form-row-between a {
|
||||
color: var(--color-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.form-row-between a:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
/* 错误提示 */
|
||||
.alert {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
padding: 12px;
|
||||
border-radius: var(--radius);
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.alert svg {
|
||||
flex-shrink: 0;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.alert--error {
|
||||
background: #fff2f0;
|
||||
border: 1px solid #ffccc7;
|
||||
color: #ff4d4f;
|
||||
}
|
||||
|
||||
.alert--error a {
|
||||
color: inherit;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* 底部链接 */
|
||||
.auth-footer-link {
|
||||
text-align: center;
|
||||
margin-top: 16px;
|
||||
font-size: 14px;
|
||||
color: var(--color-ink-3);
|
||||
}
|
||||
|
||||
.auth-footer-link a {
|
||||
color: var(--color-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.auth-footer-link a:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
/* OAuth 社交登录区域 */
|
||||
.aksrt-oauth-section {
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
.aksrt-oauth-divider {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
margin-bottom: 16px;
|
||||
font-size: 13px;
|
||||
color: var(--color-ink-4);
|
||||
}
|
||||
|
||||
.aksrt-oauth-divider::before,
|
||||
.aksrt-oauth-divider::after {
|
||||
content: '';
|
||||
flex: 1;
|
||||
height: 1px;
|
||||
background: var(--color-line);
|
||||
}
|
||||
|
||||
.aksrt-oauth-buttons {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.aksrt-oauth-btn {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
border: none;
|
||||
background: var(--surface-4);
|
||||
box-shadow: var(--shadow-sm);
|
||||
color: var(--color-ink);
|
||||
font-size: 18px;
|
||||
text-decoration: none;
|
||||
transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, background 0.2s;
|
||||
}
|
||||
|
||||
.aksrt-oauth-btn:hover {
|
||||
border-color: var(--color-primary);
|
||||
color: var(--color-primary);
|
||||
background: var(--color-primary-soft);
|
||||
}
|
||||
|
||||
/* 成功提示 */
|
||||
.alert--success {
|
||||
background: #f6ffed;
|
||||
border: 1px solid #b7eb8f;
|
||||
color: #52c41a;
|
||||
}
|
||||
|
||||
/* 认证 Tab 切换 */
|
||||
.aksrt-auth-tabs {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-bottom: 20px;
|
||||
padding-bottom: 12px;
|
||||
border-bottom: 1px solid var(--color-line-soft);
|
||||
}
|
||||
|
||||
.aksrt-auth-tab {
|
||||
flex: 1;
|
||||
padding: 10px 0;
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
background: transparent;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
color: var(--color-ink-3);
|
||||
border-bottom: 0;
|
||||
margin-bottom: 0;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.aksrt-auth-tab.is-active {
|
||||
color: var(--color-primary);
|
||||
background: var(--color-primary-soft);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.aksrt-auth-tab:hover {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
/* 表单提示文本 */
|
||||
.form-field-hint {
|
||||
display: block;
|
||||
margin-top: 6px;
|
||||
font-size: 12px;
|
||||
color: var(--color-ink-3);
|
||||
}
|
||||
|
||||
/* 必填/选填标记 */
|
||||
.aksrt-required-mark {
|
||||
color: #dc2626;
|
||||
}
|
||||
|
||||
.aksrt-optional-hint {
|
||||
color: var(--color-ink-3);
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/* 同意条款复选框 */
|
||||
.aksrt-terms-check {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
font-size: 13px;
|
||||
margin-bottom: 16px;
|
||||
cursor: pointer;
|
||||
color: var(--color-ink-3);
|
||||
}
|
||||
|
||||
.aksrt-terms-check input {
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
/* 提交按钮全宽 */
|
||||
.auth-form .btn-primary.btn-lg,
|
||||
.auth-form input[type="submit"].btn-primary.btn-lg {
|
||||
width: 100%;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* 验证码输入行 */
|
||||
.aksrt-code-row {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.aksrt-code-input {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.aksrt-sms-trigger {
|
||||
white-space: nowrap;
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
/* 响应式 */
|
||||
@media (max-width: 767px) {
|
||||
.auth-shell {
|
||||
padding: 24px 16px;
|
||||
min-height: calc(100vh - 150px);
|
||||
}
|
||||
|
||||
.auth-card {
|
||||
padding: 24px 20px;
|
||||
}
|
||||
|
||||
.aksrt-auth-tab {
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
+109
-288
@@ -1,295 +1,116 @@
|
||||
/**
|
||||
* AKSRT full-page sign shell (login / register / reset / bind).
|
||||
*
|
||||
* @package AKSRT
|
||||
*/
|
||||
|
||||
.page-template-user-sign {
|
||||
min-height: 500px;
|
||||
}
|
||||
|
||||
.sign-page {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
padding: 70px 16px 40px;
|
||||
}
|
||||
|
||||
.sign-bg {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.sign-topbar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 12px 20px;
|
||||
background: color-mix(in srgb, var(--main-bg-color, #fff) 86%, transparent);
|
||||
backdrop-filter: blur(8px);
|
||||
}
|
||||
|
||||
.sign-topbar a {
|
||||
color: var(--main-color, #4e5358);
|
||||
text-decoration: none;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.sign-card {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
max-width: 420px;
|
||||
background: var(--main-bg-color, #fff);
|
||||
border-radius: var(--main-radius, 8px);
|
||||
box-shadow: 0 0 10px var(--main-shadow, rgba(116, 116, 116, 0.08));
|
||||
padding: 30px 35px;
|
||||
}
|
||||
|
||||
.sign-card--left { margin-right: auto; }
|
||||
.sign-card--right { margin-left: auto; }
|
||||
.sign-card--center { margin: 0 auto; }
|
||||
|
||||
.sign-logo {
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.sign-logo img {
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.sign-logo__text {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 12px;
|
||||
background: var(--focus-color, #f04494);
|
||||
color: #fff;
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.sign-tabs {
|
||||
display: flex;
|
||||
border-bottom: 2px solid var(--main-border-color, rgba(50, 50, 50, 0.06));
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.sign-tab {
|
||||
flex: 1;
|
||||
padding: 10px 0;
|
||||
border: none;
|
||||
background: none;
|
||||
font-size: 15px;
|
||||
cursor: pointer;
|
||||
color: var(--muted-color, #777);
|
||||
border-bottom: 2px solid transparent;
|
||||
margin-bottom: -2px;
|
||||
transition: all .2s;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.sign-tab.is-active {
|
||||
color: var(--focus-color, #f04494);
|
||||
border-bottom-color: var(--focus-color, #f04494);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.sign-tab:hover { color: var(--focus-color, #f04494); }
|
||||
|
||||
.sign-panel { display: none; }
|
||||
.sign-panel.is-active { display: block; }
|
||||
|
||||
.sign-error {
|
||||
background: rgba(239, 68, 68, 0.08);
|
||||
border: 1px solid rgba(239, 68, 68, 0.2);
|
||||
border-radius: var(--main-radius, 8px);
|
||||
padding: 10px 14px;
|
||||
font-size: 13px;
|
||||
color: #ef4444;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.sign-success {
|
||||
background: rgba(16, 185, 129, 0.08);
|
||||
border: 1px solid rgba(16, 185, 129, 0.2);
|
||||
border-radius: var(--main-radius, 8px);
|
||||
padding: 10px 14px;
|
||||
font-size: 13px;
|
||||
color: #10b981;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.sign-notice {
|
||||
padding: 16px;
|
||||
text-align: center;
|
||||
color: var(--muted-2-color, #666);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.sign-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.sign-form .form-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.sign-form label {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
/* Shared Zibll-source authentication contract: modal and /sign/. */
|
||||
.sign {
|
||||
max-width: 330px;
|
||||
margin: auto;
|
||||
padding: 30px 0;
|
||||
color: var(--main-color, #4e5358);
|
||||
}
|
||||
|
||||
.sign-form .input-wrap { position: relative; }
|
||||
.sign [hidden] { display: none !important; }
|
||||
.sign button { font: inherit; }
|
||||
.sign-logo { margin-bottom: 24px; text-align: center; }
|
||||
.sign-logo img { max-width: 180px; max-height: 70px; }
|
||||
.sign-logo .sign-logo-dark { display: none; }
|
||||
.dark-theme .sign-logo .sign-logo-light { display: none; }
|
||||
.dark-theme .sign-logo .sign-logo-dark { display: inline-block; }
|
||||
.sign-logo__text { font-size: 22px; font-weight: 700; color: inherit; }
|
||||
.sign-panel { animation: auth-panel-in .24s ease both; }
|
||||
|
||||
.sign-form .input-wrap input {
|
||||
width: 100%;
|
||||
height: 44px;
|
||||
padding: 0 14px;
|
||||
border: 1px solid transparent;
|
||||
background: var(--body-bg-color, #f5f6f7);
|
||||
border-radius: var(--main-radius, 8px);
|
||||
font-size: 14px;
|
||||
color: var(--key-color, #333);
|
||||
transition: border-color .15s;
|
||||
@keyframes auth-panel-in {
|
||||
from { opacity: 0; transform: translateY(5px); }
|
||||
to { opacity: 1; transform: none; }
|
||||
}
|
||||
|
||||
.sign-form .input-wrap input:focus {
|
||||
outline: none;
|
||||
border-color: var(--focus-color, #f04494);
|
||||
box-shadow: 0 0 2px 3px var(--focus-shadow-color, rgba(253, 83, 161, 0.4));
|
||||
}
|
||||
|
||||
.sign-form .toggle-pwd {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
color: var(--muted-2-color, #999);
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.sign-form .form-row-between {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.sign-form .form-row-between a { color: var(--focus-color, #f04494); }
|
||||
|
||||
.sign-form .form-row-between label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
color: var(--muted-color, #777);
|
||||
}
|
||||
|
||||
.sign-form .btn-submit {
|
||||
width: 100%;
|
||||
height: 44px;
|
||||
border: none;
|
||||
border-radius: var(--main-radius, 8px);
|
||||
background: var(--focus-color, #f04494);
|
||||
color: #fff;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: opacity .15s;
|
||||
}
|
||||
|
||||
.sign-form .btn-submit:hover { opacity: .85; }
|
||||
.sign-form .btn-submit:disabled { opacity: .5; cursor: not-allowed; }
|
||||
|
||||
.sign-hint {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
color: var(--muted-color, #777);
|
||||
}
|
||||
|
||||
.sign-terms {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
color: var(--muted-color, #777);
|
||||
}
|
||||
|
||||
.sign-terms a {
|
||||
color: var(--focus-color, #f04494);
|
||||
}
|
||||
|
||||
.sign-footer {
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
font-size: 14px;
|
||||
color: var(--muted-color, #777);
|
||||
}
|
||||
|
||||
.sign-footer a { color: var(--focus-color, #f04494); }
|
||||
|
||||
.sign-footer-bar {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
font-size: 12px;
|
||||
color: var(--muted-2-color, #999);
|
||||
z-index: 1;
|
||||
background: color-mix(in srgb, var(--main-bg-color, #fff) 80%, transparent);
|
||||
}
|
||||
|
||||
.sign-oauth {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.sign-oauth__divider {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 14px;
|
||||
font-size: 12px;
|
||||
color: var(--muted-2-color, #999);
|
||||
}
|
||||
|
||||
.sign-oauth__divider::before,
|
||||
.sign-oauth__divider::after {
|
||||
content: "";
|
||||
flex: 1;
|
||||
height: 1px;
|
||||
background: var(--main-border-color, rgba(50, 50, 50, 0.08));
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.sign-card { padding: 24px 20px; }
|
||||
.sign-page { padding-top: 56px; }
|
||||
.sign-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 23px; }
|
||||
.sign-header h2 { margin: 0; font-size: 22px; line-height: 1.4; color: var(--key-color, #333); }
|
||||
.sign-header span { font-size: 12px; color: var(--muted-2-color, #999); }
|
||||
.sign-header button,
|
||||
.sign-options button,
|
||||
.sign-mode-switch { padding: 0; border: 0; background: none; color: var(--focus-color, #f04494); cursor: pointer; }
|
||||
.sign-form { display: grid; gap: 17px; }
|
||||
|
||||
.floating-input { position: relative; min-height: 42px; border-bottom: 1px solid var(--main-border-color, rgba(50, 50, 50, .12)); }
|
||||
.floating-input::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--focus-color, #f04494); transform: scaleX(0); transition: transform .25s; }
|
||||
.floating-input:focus-within::after { transform: scaleX(1); }
|
||||
.floating-input input { width: 100%; height: 42px; padding: 13px 4px 2px; border: 0; outline: 0; background: transparent; color: inherit; font-size: 14px; box-shadow: none !important; }
|
||||
.floating-input label { position: absolute; top: 12px; left: 4px; color: var(--muted-color, #777); font-size: 14px; font-weight: 400; pointer-events: none; transition: all .18s; }
|
||||
.floating-input input:focus + label,
|
||||
.floating-input input:not(:placeholder-shown) + label,
|
||||
.floating-input.is-filled label { top: 0; font-size: 10px; color: var(--focus-color, #f04494); }
|
||||
.floating-input.has-action input { padding-right: 94px; }
|
||||
.floating-input .password-show,
|
||||
.floating-input .send-code { position: absolute; right: 0; bottom: 6px; z-index: 2; border: 0; background: none; color: var(--muted-2-color, #999); cursor: pointer; }
|
||||
.floating-input .send-code { color: var(--focus-color, #f04494); font-size: 12px; }
|
||||
.floating-input .send-code:disabled { color: var(--muted-2-color, #999); cursor: default; }
|
||||
|
||||
.sign-options { display: flex; align-items: center; justify-content: space-between; color: var(--muted-2-color, #999); font-size: 12px; }
|
||||
.sign-options label { margin: 0; font-weight: 400; }
|
||||
.sign-submit { width: 100%; min-height: 42px; padding: 10px 16px; border: 0; border-radius: 5px; color: #fff; cursor: pointer; transition: opacity .2s, transform .2s; }
|
||||
.sign-submit:hover { opacity: .88; transform: translateY(-1px); }
|
||||
.sign-submit:disabled { opacity: .55; cursor: wait; transform: none; }
|
||||
.sign-submit.jb-blue { background: linear-gradient(135deg, #59c3ff, #2b70ff); }
|
||||
.sign-submit.jb-green { background: linear-gradient(135deg, #50e3a4, #16a085); }
|
||||
.sign-mode-switch { justify-self: center; font-size: 12px; }
|
||||
.sign-message,
|
||||
.sign-notice { margin-bottom: 16px; padding: 10px 12px; border-radius: 5px; background: rgba(255, 86, 86, .08); color: #e55353; font-size: 12px; }
|
||||
.sign-message.is-success { background: rgba(45, 194, 117, .1); color: #1e9d5d; }
|
||||
.sign-hint { margin-top: -10px; color: var(--muted-2-color, #999); font-size: 11px; }
|
||||
.sign-agreement { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--muted-2-color, #999); font-size: 11px; font-weight: 400; }
|
||||
.sign-agreement a { color: var(--focus-color, #f04494); }
|
||||
.sign-agreement-implicit { justify-content: center; text-align: center; }
|
||||
|
||||
.social-login { margin-top: 24px; text-align: center; }
|
||||
.social-login > span { display: flex; align-items: center; gap: 10px; color: var(--muted-2-color, #999); font-size: 11px; }
|
||||
.social-login > span::before,
|
||||
.social-login > span::after { content: ""; flex: 1; height: 1px; background: var(--main-border-color, rgba(50, 50, 50, .08)); }
|
||||
.social-login-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; margin-top: 14px; }
|
||||
.social-login-item { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50px; background: var(--body-bg-color, #f5f6f7); color: #fff; text-decoration: none; cursor: pointer; }
|
||||
.social-login-item:hover { transform: translateY(-2px); color: var(--focus-color, #f04494); }
|
||||
.oauth-button-lg .social-login-item { width: auto; padding: 0 14px; }
|
||||
.oauth-button-lg .social-login-item i,
|
||||
.oauth-button-lg .social-login-item svg { margin-right: 6px; font-size: 1.2em; }
|
||||
.social-login-item.weibo { background: #ea5d5c; }
|
||||
.social-login-item.weixingzh,
|
||||
.social-login-item.weixin { background: #24b76a; }
|
||||
.social-login-item.qq,
|
||||
.social-login-item.alipay { background: #1296db; }
|
||||
.social-login-item.baidu { background: #4e6ef2; }
|
||||
.social-login-item.github { background: #505050; }
|
||||
.social-login-item.gitee { background: #c2292f; }
|
||||
.social-login-item.google { background: var(--main-shadow, rgba(116, 116, 116, .08)); color: var(--main-color, #4e5358); }
|
||||
.auth-qrcode { display: grid; place-items: center; width: 180px; min-height: 180px; margin: 20px auto; background: #fff; color: #38b766; text-align: center; }
|
||||
.auth-qrcode i { font-size: 46px; }
|
||||
.auth-qrcode span { color: #777; font-size: 12px; }
|
||||
|
||||
.aksrt-auth-modal { position: fixed; inset: 0; z-index: 100050; display: none; place-items: center; padding: 18px; }
|
||||
.aksrt-auth-modal.is-open { display: grid; }
|
||||
.auth-modal-backdrop { position: absolute; inset: 0; background: rgba(14, 18, 24, .62); backdrop-filter: blur(2px); }
|
||||
#u_sign .modal-dialog { position: relative; z-index: 1; width: 400px; max-width: calc(100vw - 30px); margin: 0; }
|
||||
#u_sign.has-sign-img .modal-dialog { width: 800px; }
|
||||
#u_sign .modal-content { position: relative; min-height: 300px; max-height: calc(100vh - 36px); overflow-x: hidden; overflow-y: auto; border: 0; border-radius: 8px; background: var(--main-bg-color, #fff); box-shadow: 0 12px 50px rgba(0, 0, 0, .22); }
|
||||
.auth-modal-close { position: absolute; top: 13px; right: 15px; z-index: 4; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .04); color: var(--muted-color, #777); cursor: pointer; }
|
||||
.sign-img { position: absolute; inset: 0 55% 0 0; background-position: center; background-size: cover; }
|
||||
.sign-img + .sign { max-width: unset; margin-left: 55%; padding: 34px 44px; }
|
||||
|
||||
.page-template-user-sign { min-height: 100vh; background: var(--body-bg-color, #f5f6f7); }
|
||||
.sign-page-background { position: fixed; inset: 0; z-index: 0; background-position: center; background-size: cover; }
|
||||
.sign-topbar { position: fixed; top: 0; right: 0; left: 0; z-index: 3; display: flex; justify-content: space-between; padding: 15px 24px; background: rgba(255, 255, 255, .75); backdrop-filter: blur(12px); }
|
||||
.sign-page { position: relative; z-index: 1; display: flex; align-items: center; min-height: 100vh; padding: 76px max(5vw, 20px) 56px; }
|
||||
.sign-page.sign-card-position-left { justify-content: flex-start; }
|
||||
.sign-page.sign-card-position-center { justify-content: center; }
|
||||
.sign-page.sign-card-position-right { justify-content: flex-end; }
|
||||
.sign-page-card { width: 400px; max-width: 100%; padding: 0 35px; border-radius: 8px; background: var(--main-bg-color, #fff); box-shadow: 0 10px 40px rgba(0, 0, 0, .12); }
|
||||
.sign-page-footer { position: fixed; right: 0; bottom: 12px; left: 0; z-index: 2; text-align: center; color: var(--muted-2-color, #999); font-size: 12px; }
|
||||
.white-theme { --main-bg-color: #fff; --body-bg-color: #f5f6f7; --main-color: #4e5358; --key-color: #333; }
|
||||
.dark-theme { --main-bg-color: #24272b; --body-bg-color: #17191c; --main-color: #d7d9dc; --key-color: #fff; --main-border-color: rgba(255, 255, 255, .12); }
|
||||
body.auth-modal-open { overflow: hidden; }
|
||||
|
||||
@media (max-width: 767px) {
|
||||
#u_sign .modal-dialog,
|
||||
#u_sign.has-sign-img .modal-dialog { width: 400px; }
|
||||
.sign-img { display: none; }
|
||||
.sign-img + .sign { max-width: 340px; margin-left: auto; padding: 30px 0; }
|
||||
#u_sign .modal-content { padding: 0 24px; }
|
||||
.sign-page { justify-content: center !important; padding-right: 14px; padding-left: 14px; }
|
||||
.sign-page-card { padding: 0 24px; }
|
||||
}
|
||||
Reference in new issue
Block a user