Place shared portal return action in workspace header
This commit is contained in:
@@ -1426,3 +1426,8 @@ img { display: block; }
|
||||
margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--fill);
|
||||
font-size: 12px; color: var(--text-2); line-height: 1.8;
|
||||
}
|
||||
|
||||
/* Shared portal navigation stays visible while the workspace scrolls. */
|
||||
.v-fusion .content-shell.has-portal-bar { flex-direction: column; align-items: stretch; }
|
||||
.v-fusion .loan-portal-header { position: sticky; top: 0; z-index: 30; flex: none; display: flex; align-items: center; padding-left: 24px; background: var(--surface); border-bottom: 1px solid var(--hairline); font-weight: 600; }
|
||||
.v-fusion .has-portal-bar > .content { flex: 1 0 auto; min-height: calc(100% - 56px); }
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/* Shared portal navigation: same geometry in all four applications. */
|
||||
.jn-portal-bar { position: relative; min-height: 56px; box-sizing: border-box; padding-right: 160px !important; }
|
||||
a.jn-portal-return, a.jn-portal-return:link, a.jn-portal-return:visited {
|
||||
position: absolute; top: 10px; right: 16px; z-index: 2;
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
|
||||
box-sizing: border-box; height: 36px; min-width: 124px; padding: 0 12px;
|
||||
border: 1px solid #e7c7c3; border-radius: 10px; margin: 0;
|
||||
background: #fff7f5; color: #a92e24; box-shadow: 0 1px 2px rgba(64,25,20,.04);
|
||||
font: 600 13px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;
|
||||
text-decoration: none; white-space: nowrap; cursor: pointer;
|
||||
}
|
||||
a.jn-portal-return svg { width: 18px; height: 18px; flex: none; }
|
||||
a.jn-portal-return span { color: inherit !important; font: inherit; }
|
||||
a.jn-portal-return:hover { background: #faeae6; color: #92251d; border-color: #d99c94; text-decoration: none; }
|
||||
a.jn-portal-return:focus-visible { outline: 3px solid #b83a2d; outline-offset: 3px; }
|
||||
[data-theme="night"] a.jn-portal-return { background: #382927; border-color: #70504b; color: #ffb4a8; }
|
||||
[data-theme="night"] a.jn-portal-return:hover { background: #4a312c; color: #ffd0c7; }
|
||||
@media (max-width: 600px) {
|
||||
.jn-portal-bar { padding-right: 124px !important; }
|
||||
a.jn-portal-return, a.jn-portal-return:link, a.jn-portal-return:visited { right: 12px; min-width: 102px; gap: 6px; padding: 0 9px; }
|
||||
}
|
||||
@media print { a.jn-portal-return { display: none !important; } }
|
||||
+5
-2
@@ -119,6 +119,7 @@ function pageHeader(array $me, ?int $taskCount = null): void
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>金牛集团贷款档案管理系统</title>
|
||||
<link rel="stylesheet" href="<?= assetUrl('assets/fusion.css') ?>">
|
||||
<link rel="stylesheet" href="<?= assetUrl('assets/portal-return.css') ?>">
|
||||
<script src="<?= assetUrl('assets/fusion.js') ?>" defer></script>
|
||||
</head><body>
|
||||
<div class="v-fusion" data-variant-root>
|
||||
@@ -146,7 +147,6 @@ function pageHeader(array $me, ?int $taskCount = null): void
|
||||
<div class="nav-label">账户</div>
|
||||
<?= $navItem('profile', 'index.php?action=profile', '个人设置', '我') ?>
|
||||
<?php endif; ?>
|
||||
<?php if (portalEnabled()): ?><a class="nav-item" data-return-portal href="<?= e(portalPublic()) ?>">← 返回统一门户</a><?php endif; ?>
|
||||
<div class="sidebar-account">
|
||||
<div class="theme-toggle" role="group" aria-label="日间 / 夜间主题切换">
|
||||
<button type="button" data-theme-btn="day" aria-pressed="true">☀ 日间</button>
|
||||
@@ -167,7 +167,10 @@ function pageHeader(array $me, ?int $taskCount = null): void
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</aside>
|
||||
<div class="content-shell">
|
||||
<div class="content-shell<?= portalEnabled() ? ' has-portal-bar' : '' ?>">
|
||||
<?php if (portalEnabled()): ?>
|
||||
<header class="loan-portal-header jn-portal-bar"><span>贷款档案管理</span><a class="jn-portal-return" data-return-portal href="<?= e(portalPublic()) ?>" title="返回统一门户" aria-label="返回统一门户"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 10 9-7 9 7v10a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1Z"/></svg><span>统一门户</span></a></header>
|
||||
<?php endif; ?>
|
||||
<main class="content">
|
||||
<?php if ($flash): ?>
|
||||
<?php if ($flash['type'] === 'ok'): ?>
|
||||
|
||||
Reference in New Issue
Block a user