Files
aurora-admin/site/end-preview/anchornav.vue2.html
T

36 lines
2.1 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN" data-end="vue2" data-slug="anchornav">
<head>
<meta charset="utf-8">
<title>anchornav · Vue 2 预渲染</title>
<link rel="stylesheet" href="../../.design_library/kole-ui/colors_and_type.css">
<link rel="stylesheet" href="../../frameworks/AnchorNav.css">
<style>
/* 演示页的 body 口径(见 frameworks/*.html 的 <style>):组件 CSS 不写 body 样式,
而 .btn 这类 inline-flex 元素的高度依赖行高与留白,缺了就会塌成 0 高。 */
body { margin: 0; padding: 24px; background: var(--kole-color-page-bg); color: var(--kole-color-text-body);
font-family: var(--kole-font-family); font-size: 14px; line-height: 22px; }
#kole-end-preview { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
html.kole-dark body { background: var(--kole-color-page-bg); color: var(--kole-color-text-body); }
</style>
<style>
.kole-anchor { font-family: var(--font-family, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif); width: 160px; }
.kole-anchor.fixed { position: fixed; right: 24px; top: 80px; }
.kole-anchor-item { display: block; padding: 6px 12px; font-size: 13px; color: #6E6E6E; cursor: pointer; border-left: 2px solid #E8ECF1; line-height: 1.4; transition: color .15s, border-color .15s; background: none; border-top: none; border-right: none; border-bottom: none; text-align: left; width: 100%; }
.kole-anchor-item:hover { color: #2F54EB; }
.kole-anchor-item.is-active { color: #2F54EB; border-left-color: #2F54EB; font-weight: 500; }
.kole-anchor-sub { padding-left: 8px; }
.kole-anchor-sub .kole-anchor-item { border-left: none; padding-left: 20px; }
.kole-anchor-sub .kole-anchor-item.is-active { border-left: 2px solid #2F54EB; }
</style>
</head>
<body class="kole-end-preview-body">
<!-- 该端实现(frameworks/AnchorNav.vue2.vue)的离线预渲染产物。类名与该端源码一致(tools/build-end-preview.mjs 断言)。 -->
<div id="kole-end-preview" data-end="vue2" data-slug="anchornav">
<nav data-server-rendered="true" class="kole-anchor fixed"><button class="kole-anchor-item is-active">第一节</button> <div class="kole-anchor-sub"></div></nav>
</div>
</body>
</html>