- 新增通知推送模块:支持 WebSocket 实时推送与轮询兜底,新增通知管理界面 - 新增离线登录功能:断网时凭本地 7 天授权票据自动登录或手动登录 - 优化 Electron 客户端 WebSocket 重连逻辑,避免死循环 - 调整工作流脚本,拆分重构合同相关分支逻辑 - 新增设备上报客户端版本字段,用于升级追踪与关旧依据
686 lines
19 KiB
Vue
686 lines
19 KiB
Vue
<template>
|
||
<div class="login">
|
||
<!-- 巨大 37:节点阵列 -->
|
||
<div class="ghost" aria-hidden="true">37</div>
|
||
|
||
<!-- 基线管道:流程节点 -->
|
||
<div class="pipeline" aria-hidden="true">
|
||
<i></i><i></i><i></i>
|
||
</div>
|
||
|
||
<!-- 顶部:品牌 + 系统状态 -->
|
||
<header class="topbar">
|
||
<div class="brand">
|
||
<span class="mark">37</span>
|
||
<span class="name">{{ appName || '37du 自动化工作台' }}</span>
|
||
</div>
|
||
<div class="sys">
|
||
<button class="doodle-toggle" :class="{ off: !doodlesOn }"
|
||
:title="doodlesOn ? '关闭涂鸦装饰' : '开启涂鸦装饰'" aria-label="涂鸦装饰开关"
|
||
@click="toggleDoodles">
|
||
<svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8"
|
||
stroke-linecap="round" stroke-linejoin="round">
|
||
<path d="M12 3c.6 4.6 3.4 7.4 8 8-4.6.6-7.4 3.4-8 8-.6-4.6-3.4-7.4-8-8 4.6-.6 7.4-3.4 8-8Z" />
|
||
</svg>
|
||
</button>
|
||
<span class="dot" aria-hidden="true"></span>
|
||
<span>引擎运行中</span>
|
||
</div>
|
||
</header>
|
||
|
||
<!-- 中央:接入终端 -->
|
||
<main class="panel">
|
||
<span class="core-mark">37 CORE · AUTOMATION</span>
|
||
<h1>自动化工作台</h1>
|
||
<p class="sub">使用统一账号或钉钉扫码,进入你的流程中心</p>
|
||
|
||
<el-form label-position="top" class="form" @submit.prevent="doLogin">
|
||
<el-form-item label="员工账号">
|
||
<el-input v-model="account" placeholder="请输入账号" autocomplete="username" size="large" clearable
|
||
@keyup.enter="doLogin" />
|
||
</el-form-item>
|
||
<el-form-item label="密码">
|
||
<el-input v-model="password" type="password" placeholder="请输入密码" autocomplete="current-password" size="large"
|
||
show-password @keyup.enter="doLogin" />
|
||
</el-form-item>
|
||
<el-button type="primary" size="large" class="primary" :loading="busy" @click="doLogin">
|
||
{{ busy ? '进 入 中 …' : '进 入 工 作 台' }}
|
||
</el-button>
|
||
</el-form>
|
||
|
||
<div class="divider"><span>或</span></div>
|
||
|
||
<el-button size="large" class="dingtalk" :loading="dingBusy" :icon="ChatDotRound" @click="openDing">
|
||
钉钉扫码接入
|
||
</el-button>
|
||
|
||
<div class="offline-row">
|
||
<el-button link type="primary" size="small" :loading="offlineBusy" @click="doOffline">
|
||
离线登录(凭本机 7 天授权票据进入)
|
||
</el-button>
|
||
</div>
|
||
</main>
|
||
|
||
<!-- 底部:流程状态 -->
|
||
<footer class="footbar">
|
||
<div class="flows">
|
||
<span>接入终端就绪</span>
|
||
<span class="f-blocks" aria-hidden="true">
|
||
<i></i><i></i><i></i><i></i><i></i>
|
||
</span>
|
||
</div>
|
||
<span class="copyright">© 37du 自动化工作台</span>
|
||
</footer>
|
||
</div>
|
||
</template>
|
||
|
||
<script setup>
|
||
import { ref, onMounted } from 'vue'
|
||
import { ElMessage } from 'element-plus'
|
||
import { ChatDotRound } from '@element-plus/icons-vue'
|
||
import { adminLogin, adminOfflineLogin, authDingtalk } from '../api'
|
||
|
||
defineProps({ appName: { type: String, default: '' } })
|
||
const emit = defineEmits(['ok'])
|
||
|
||
// 涂鸦装饰层开关(与 main.js 的 initDoodles 同源:localStorage['37du.doodles'])
|
||
const doodlesOn = ref(true)
|
||
try { doodlesOn.value = (localStorage.getItem('37du.doodles') || 'on') !== 'off' } catch (_) {}
|
||
onMounted(() => { document.documentElement.classList.toggle('no-doodles', !doodlesOn.value) })
|
||
function toggleDoodles() {
|
||
doodlesOn.value = !doodlesOn.value
|
||
document.documentElement.classList.toggle('no-doodles', !doodlesOn.value)
|
||
try { localStorage.setItem('37du.doodles', doodlesOn.value ? 'on' : 'off') } catch (_) {}
|
||
}
|
||
|
||
const account = ref('')
|
||
const password = ref('')
|
||
const busy = ref(false)
|
||
const dingBusy = ref(false)
|
||
const offlineBusy = ref(false)
|
||
|
||
// 离线登录:不依赖网络,凭本机 7 天离线授权票据直接进入工作台
|
||
async function doOffline() {
|
||
if (offlineBusy.value) return
|
||
offlineBusy.value = true
|
||
try {
|
||
const r = await adminOfflineLogin()
|
||
ElMessage.success('已离线登录:' + (r.account || ''))
|
||
emit('ok', {
|
||
account: r.account || '',
|
||
dept: '',
|
||
must_change_pwd: false,
|
||
nickname: r.nickname || '',
|
||
avatar: ''
|
||
})
|
||
} catch (e) {
|
||
ElMessage.error('离线登录失败:' + (e.message || e))
|
||
} finally {
|
||
offlineBusy.value = false
|
||
}
|
||
}
|
||
|
||
async function doLogin() {
|
||
if (busy.value) return
|
||
if (!account.value.trim() || !password.value) { ElMessage.warning('请输入账号和密码'); return }
|
||
busy.value = true
|
||
try {
|
||
const r = await adminLogin(account.value, password.value)
|
||
ElMessage.success('登录成功')
|
||
emit('ok', {
|
||
account: account.value.trim(),
|
||
dept: r.dept || '',
|
||
must_change_pwd: !!r.must_change_pwd,
|
||
nickname: r.nickname || '',
|
||
avatar: r.avatar || ''
|
||
})
|
||
} catch (e) {
|
||
ElMessage.error('登录失败:' + (e.message || e))
|
||
} finally {
|
||
busy.value = false
|
||
}
|
||
}
|
||
|
||
// 钉钉扫码登录:壳后端直接生成授权 URL,当前窗口跳转钉钉;扫码后浏览器自动跳回 /auth/done
|
||
async function openDing() {
|
||
if (dingBusy.value) return
|
||
dingBusy.value = true
|
||
try {
|
||
const r = await authDingtalk()
|
||
if (r && r.url) {
|
||
window.location.href = r.url
|
||
return
|
||
}
|
||
ElMessage.error('钉钉登录未配置,请联系管理员')
|
||
} catch (e) {
|
||
ElMessage.error('钉钉登录不可用:' + (e.message || e))
|
||
}
|
||
dingBusy.value = false
|
||
}
|
||
</script>
|
||
|
||
<style scoped>
|
||
/* ============================================================
|
||
奶油极简治愈风登录页(Soft Minimal Cream)
|
||
- 奶油米白画布(--bg)+ 浅天蓝强调 + 手绘涂鸦点缀
|
||
- 全量走设计令牌,换肤只改 style.css 的 [data-skin] 块
|
||
============================================================ */
|
||
|
||
/* ---------- 画布 ---------- */
|
||
.login {
|
||
position: relative;
|
||
min-height: 100vh;
|
||
min-height: 100dvh;
|
||
box-sizing: border-box;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 110px 24px 170px;
|
||
overflow: hidden;
|
||
background: var(--bg);
|
||
color: var(--text);
|
||
font-family: var(--font-body, "Inter", -apple-system, "Segoe UI", "PingFang SC", sans-serif);
|
||
}
|
||
|
||
/* 奶油点阵:边缘径向淡出(浅天蓝极淡点) */
|
||
.login::before {
|
||
content: '';
|
||
position: absolute;
|
||
inset: 0;
|
||
z-index: 0;
|
||
background-image: radial-gradient(rgba(var(--primary-rgb), .16) 1.2px, transparent 1.3px);
|
||
background-size: 30px 30px;
|
||
-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 18%, transparent 76%);
|
||
mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 18%, transparent 76%);
|
||
pointer-events: none;
|
||
}
|
||
|
||
/* 顶部柔光:浅天蓝辉光 */
|
||
.login::after {
|
||
content: '';
|
||
position: absolute;
|
||
inset: 0;
|
||
z-index: 0;
|
||
background: radial-gradient(660px 480px at 50% 38%, rgba(var(--primary-rgb), .12), transparent 68%);
|
||
pointer-events: none;
|
||
}
|
||
|
||
/* ---------- 巨大 37:奶油点阵 ---------- */
|
||
.ghost {
|
||
position: absolute;
|
||
left: 50%;
|
||
bottom: -0.12em;
|
||
transform: translateX(-50%);
|
||
font-family: 'Helvetica Neue', 'Arial Narrow', Arial, sans-serif;
|
||
font-size: clamp(280px, 74vw, 640px);
|
||
font-weight: 800;
|
||
line-height: .72;
|
||
letter-spacing: -.08em;
|
||
white-space: nowrap;
|
||
pointer-events: none;
|
||
user-select: none;
|
||
z-index: 1;
|
||
color: rgba(var(--primary-rgb), .10);
|
||
animation: breathe 7s ease-in-out infinite;
|
||
}
|
||
|
||
@keyframes breathe {
|
||
0%, 100% { opacity: .8; }
|
||
50% { opacity: 1; }
|
||
}
|
||
|
||
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
|
||
.ghost {
|
||
color: transparent;
|
||
background-image: radial-gradient(circle at 1px 1px,
|
||
rgba(var(--primary-rgb), .30) 1px, transparent 1.9px);
|
||
background-size: 9px 9px;
|
||
-webkit-background-clip: text;
|
||
background-clip: text;
|
||
}
|
||
}
|
||
|
||
/* ---------- 基线管道 ---------- */
|
||
.pipeline {
|
||
position: absolute;
|
||
left: 50%;
|
||
bottom: 0;
|
||
transform: translateX(-50%);
|
||
width: min(920px, 92vw);
|
||
height: 1px;
|
||
background: linear-gradient(90deg,
|
||
transparent, rgba(var(--text-rgb), .10) 18%,
|
||
rgba(var(--text-rgb), .10) 82%, transparent);
|
||
z-index: 1;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.pipeline i {
|
||
position: absolute;
|
||
top: -2px;
|
||
width: 5px;
|
||
height: 5px;
|
||
border-radius: 50%;
|
||
background: var(--primary);
|
||
box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .14);
|
||
}
|
||
|
||
.pipeline i:nth-child(1) { left: 22%; }
|
||
.pipeline i:nth-child(2) { left: 50%; animation: blip 3.6s ease-in-out infinite; }
|
||
.pipeline i:nth-child(3) { left: 78%; }
|
||
|
||
@keyframes blip {
|
||
0%, 100% { opacity: .35; transform: scale(.85); }
|
||
50% { opacity: 1; transform: scale(1.1); }
|
||
}
|
||
|
||
/* ---------- 顶部栏 ---------- */
|
||
.topbar {
|
||
position: absolute;
|
||
top: 40px;
|
||
left: 48px;
|
||
right: 48px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
z-index: 3;
|
||
}
|
||
|
||
.brand { display: flex; align-items: center; gap: 10px; }
|
||
|
||
.mark {
|
||
width: 28px;
|
||
height: 28px;
|
||
flex: none;
|
||
display: grid;
|
||
place-items: center;
|
||
border-radius: 10px;
|
||
background: var(--primary-grad);
|
||
color: var(--on-primary);
|
||
font-size: 11px;
|
||
font-weight: 800;
|
||
letter-spacing: .01em;
|
||
font-family: 'Helvetica Neue', Arial, sans-serif;
|
||
box-shadow: 0 4px 10px -4px rgba(var(--primary-rgb), .65);
|
||
}
|
||
|
||
.name {
|
||
font-size: 12.5px;
|
||
font-weight: 500;
|
||
letter-spacing: .04em;
|
||
color: var(--text-sub);
|
||
}
|
||
|
||
.sys {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
font-size: 10.5px;
|
||
letter-spacing: .12em;
|
||
color: var(--text-warm-faint);
|
||
}
|
||
|
||
/* 涂鸦开关:小圆钮 */
|
||
.doodle-toggle {
|
||
display: grid;
|
||
place-items: center;
|
||
width: 24px;
|
||
height: 24px;
|
||
margin-right: 2px;
|
||
padding: 0;
|
||
border: 1px solid var(--border-warm);
|
||
border-radius: 50%;
|
||
background: var(--surface);
|
||
color: var(--primary);
|
||
cursor: pointer;
|
||
transition: all .18s ease;
|
||
}
|
||
.doodle-toggle:hover { transform: rotate(8deg); box-shadow: 0 4px 10px -4px rgba(var(--primary-rgb), .5); border-color: var(--primary-line); }
|
||
.doodle-toggle.off { color: var(--text-disabled); }
|
||
.doodle-toggle.off:hover { color: var(--primary); border-color: var(--primary-line); }
|
||
|
||
.dot {
|
||
width: 6px;
|
||
height: 6px;
|
||
border-radius: 50%;
|
||
background: var(--primary);
|
||
animation: pulse 2.4s ease-out infinite;
|
||
}
|
||
|
||
@keyframes pulse {
|
||
0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), .45); }
|
||
70% { box-shadow: 0 0 0 7px rgba(var(--primary-rgb), 0); }
|
||
100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
|
||
}
|
||
|
||
.sep { color: var(--sep-warm); }
|
||
|
||
/* ---------- 中央:接入终端(白底奶油卡) ---------- */
|
||
.panel {
|
||
position: relative;
|
||
z-index: 2;
|
||
width: 100%;
|
||
max-width: 420px;
|
||
padding: 46px 42px 42px;
|
||
background: var(--surface);
|
||
border: 1px solid var(--border-warm-2);
|
||
border-radius: 22px;
|
||
box-shadow:
|
||
0 1px 0 rgba(var(--on-primary-rgb), .95) inset,
|
||
0 24px 48px -28px rgba(var(--text-rgb), .24);
|
||
animation: rise .45s cubic-bezier(.22, 1, .36, 1) both;
|
||
}
|
||
|
||
@keyframes rise {
|
||
from { opacity: 0; transform: translateY(10px); }
|
||
to { opacity: 1; transform: none; }
|
||
}
|
||
|
||
/* 卡片内元素依次点亮 */
|
||
@keyframes seq {
|
||
from { opacity: 0; transform: translateY(7px); }
|
||
to { opacity: 1; transform: none; }
|
||
}
|
||
|
||
.core-mark { animation: seq .5s .05s both; }
|
||
.panel h1 { animation: seq .5s .10s both; }
|
||
.panel .sub { animation: seq .5s .15s both; }
|
||
.form { animation: seq .55s .20s both; }
|
||
.divider { animation: seq .5s .26s both; }
|
||
.dingtalk { animation: seq .5s .32s both; }
|
||
|
||
/* 卡片底部纹理:极淡 */
|
||
.panel::after {
|
||
content: '';
|
||
position: absolute;
|
||
left: 42px;
|
||
right: 42px;
|
||
bottom: 0;
|
||
height: 3px;
|
||
background-image: repeating-linear-gradient(to right,
|
||
rgba(var(--border-strong-rgb), .5) 0 8px,
|
||
transparent 8px 12px);
|
||
pointer-events: none;
|
||
}
|
||
|
||
.core-mark {
|
||
display: block;
|
||
margin-bottom: 20px;
|
||
font-family: 'Helvetica Neue', Arial, sans-serif;
|
||
font-size: 10px;
|
||
font-weight: 700;
|
||
letter-spacing: .18em;
|
||
color: var(--primary-strong);
|
||
}
|
||
|
||
.panel h1 {
|
||
margin: 0 0 8px;
|
||
font-size: 31px;
|
||
font-weight: 600;
|
||
line-height: 1.25;
|
||
letter-spacing: .01em;
|
||
color: var(--text);
|
||
font-family: var(--font-doodle, "Segoe Script", "Comic Sans MS", "KaiTi", cursive);
|
||
}
|
||
|
||
.panel .sub {
|
||
margin: 0 0 36px;
|
||
font-size: 13.5px;
|
||
line-height: 1.6;
|
||
color: var(--text-sub);
|
||
}
|
||
|
||
/* ---------- 表单:奶油圆角输入 ---------- */
|
||
.form :deep(.el-form-item) {
|
||
position: relative;
|
||
padding-left: 16px;
|
||
margin-bottom: 28px;
|
||
}
|
||
|
||
.form :deep(.el-form-item__content) {
|
||
position: relative;
|
||
line-height: normal;
|
||
}
|
||
|
||
/* 左侧指示点 */
|
||
.form :deep(.el-form-item__content)::before {
|
||
content: '';
|
||
position: absolute;
|
||
left: -16px;
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
width: 6px;
|
||
height: 6px;
|
||
border-radius: 50%;
|
||
background: var(--switch-off);
|
||
transition: background .2s, box-shadow .2s;
|
||
}
|
||
|
||
.form :deep(.el-form-item:focus-within .el-form-item__content)::before {
|
||
background: var(--primary);
|
||
box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .16);
|
||
}
|
||
|
||
.form :deep(.el-form-item__label) {
|
||
padding-bottom: 6px;
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
letter-spacing: .02em;
|
||
line-height: 1.4;
|
||
color: var(--text-sub);
|
||
}
|
||
|
||
/* 圆角白底输入框 */
|
||
.form :deep(.el-input__wrapper) {
|
||
padding: 0 14px;
|
||
background: var(--surface-3);
|
||
border-radius: 12px;
|
||
border: 1px solid var(--border-warm);
|
||
box-shadow: inset 0 1px 2px rgba(var(--text-rgb), .03);
|
||
transition: border-color .2s, box-shadow .2s;
|
||
}
|
||
.form :deep(.el-input__wrapper:hover) { border-color: var(--border-hover); }
|
||
.form :deep(.el-input__wrapper.is-focus) {
|
||
border-color: var(--primary);
|
||
box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .14);
|
||
}
|
||
|
||
.form :deep(.el-input__inner) {
|
||
height: 48px;
|
||
padding: 0;
|
||
font-size: 15px;
|
||
color: var(--text);
|
||
caret-color: var(--primary);
|
||
}
|
||
|
||
/* 覆盖 Chrome 自动填充的浅蓝底(登录框带 autocomplete,记住密码后会被刷成蓝底白字) */
|
||
.form :deep(.el-input__wrapper input:-webkit-autofill),
|
||
.form :deep(.el-input__wrapper input:-webkit-autofill:hover),
|
||
.form :deep(.el-input__wrapper input:-webkit-autofill:focus) {
|
||
-webkit-box-shadow: 0 0 0 1000px var(--surface-3) inset !important;
|
||
-webkit-text-fill-color: var(--text) !important;
|
||
caret-color: var(--primary);
|
||
transition: background-color 9999s ease-out;
|
||
}
|
||
|
||
.form :deep(.el-input__inner::placeholder) { color: var(--placeholder); }
|
||
|
||
.form :deep(.el-input__suffix),
|
||
.form :deep(.el-input__prefix),
|
||
.form :deep(.el-input__suffix-inner) { color: var(--placeholder); }
|
||
|
||
.form :deep(.el-input__suffix-inner .el-input__icon:hover) { color: var(--text-sub); }
|
||
|
||
/* ---------- 主按钮:浅天蓝 ---------- */
|
||
.primary.el-button {
|
||
width: 100%;
|
||
height: 50px;
|
||
margin-top: 6px;
|
||
border: none;
|
||
border-radius: 14px;
|
||
background: var(--primary-grad-2);
|
||
color: var(--on-primary);
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
letter-spacing: .12em;
|
||
box-shadow: 0 12px 26px -14px rgba(var(--primary-rgb), .75);
|
||
transition: background-color .15s, opacity .15s, transform .12s ease, box-shadow .15s ease;
|
||
}
|
||
|
||
.primary.el-button:hover,
|
||
.primary.el-button:focus {
|
||
background: var(--primary-hover);
|
||
color: var(--on-primary);
|
||
box-shadow: 0 15px 30px -14px rgba(var(--primary-rgb), .85);
|
||
}
|
||
|
||
.primary.el-button:active {
|
||
background: var(--primary-strong);
|
||
transform: translateY(1px) scale(.99);
|
||
box-shadow: 0 6px 16px -12px rgba(var(--primary-rgb), .8);
|
||
}
|
||
|
||
.primary.el-button.is-disabled,
|
||
.primary.el-button.is-loading {
|
||
background: var(--primary-soft);
|
||
opacity: .55;
|
||
}
|
||
|
||
/* ---------- 分隔线 ---------- */
|
||
.divider {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 14px;
|
||
margin: 28px 0 16px;
|
||
font-size: 11.5px;
|
||
letter-spacing: .04em;
|
||
color: var(--text-faint);
|
||
}
|
||
|
||
.divider::before,
|
||
.divider::after {
|
||
content: '';
|
||
flex: 1;
|
||
height: 1px;
|
||
background: var(--border-warm);
|
||
}
|
||
|
||
/* ---------- 钉钉按钮:白底奶卡 ---------- */
|
||
.dingtalk.el-button {
|
||
width: 100%;
|
||
height: 50px;
|
||
border-radius: 14px;
|
||
background: var(--surface);
|
||
border: 1px solid var(--border-warm);
|
||
color: var(--text-warm-sub);
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
letter-spacing: .08em;
|
||
box-shadow: 0 6px 16px -12px rgba(var(--text-rgb), .16);
|
||
transition: all .18s ease;
|
||
}
|
||
|
||
.dingtalk.el-button:hover,
|
||
.dingtalk.el-button:focus {
|
||
color: var(--primary-strong);
|
||
border-color: var(--primary-line);
|
||
background: var(--primary-tint);
|
||
box-shadow: 0 10px 22px -14px rgba(var(--primary-rgb), .55);
|
||
}
|
||
|
||
.dingtalk.el-button:active { transform: translateY(1px) scale(.99); }
|
||
|
||
.dingtalk.el-button.is-disabled,
|
||
.dingtalk.el-button.is-loading { background: var(--surface-2); color: var(--text-disabled); opacity: .8; }
|
||
|
||
.dingtalk.el-button :deep(.el-icon) { color: var(--primary); }
|
||
|
||
/* ---------- 离线登录入口 ---------- */
|
||
.offline-row {
|
||
margin-top: 18px;
|
||
text-align: center;
|
||
}
|
||
|
||
/* ---------- 键盘可达 ---------- */
|
||
.primary.el-button:focus-visible,
|
||
.dingtalk.el-button:focus-visible {
|
||
outline: 2px solid var(--primary);
|
||
outline-offset: 3px;
|
||
}
|
||
|
||
/* ---------- 底部:流程状态 ---------- */
|
||
.footbar {
|
||
position: absolute;
|
||
bottom: 40px;
|
||
left: 48px;
|
||
right: 48px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
z-index: 3;
|
||
}
|
||
|
||
.flows {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
font-size: 10.5px;
|
||
letter-spacing: .12em;
|
||
color: var(--text-warm-faint);
|
||
}
|
||
|
||
.f-blocks { display: flex; gap: 3px; }
|
||
|
||
.f-blocks i {
|
||
width: 12px;
|
||
height: 4px;
|
||
border-radius: 2px;
|
||
background: var(--switch-off);
|
||
}
|
||
|
||
.copyright {
|
||
font-size: 10.5px;
|
||
letter-spacing: .1em;
|
||
color: var(--text-faint);
|
||
}
|
||
|
||
/* ---------- 自适应 ---------- */
|
||
@media (max-width: 720px) {
|
||
.login { padding: 96px 20px 140px; }
|
||
.topbar { top: 24px; left: 24px; right: 24px; }
|
||
.footbar { bottom: 24px; left: 24px; right: 24px; }
|
||
.panel { padding: 32px 24px 30px; }
|
||
.panel h1 { font-size: 24px; }
|
||
.panel::after { left: 24px; right: 24px; }
|
||
.copyright { display: none; }
|
||
}
|
||
|
||
@media (max-height: 680px) {
|
||
.login {
|
||
align-items: flex-start;
|
||
overflow-x: hidden;
|
||
overflow-y: auto;
|
||
padding: 80px 24px 120px;
|
||
}
|
||
.footbar { display: none; }
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.dot,
|
||
.pipeline i,
|
||
.ghost {
|
||
animation: none;
|
||
}
|
||
.panel { animation: none; }
|
||
.core-mark,
|
||
.panel h1,
|
||
.panel .sub,
|
||
.form,
|
||
.divider,
|
||
.dingtalk {
|
||
animation: none;
|
||
}
|
||
* { transition-duration: .01ms !important; }
|
||
}
|
||
</style>
|