跳到正文
Novark

模板:章节导航/styles.css

/* 章节导航(Template:章节导航/styles.css)
 * 短小文字导航:桌面/手机都自然换行;不新增横向滚动、不做大号卡片/chips。
 * 依赖现站暖墨令牌,均带兜底值;模板只输出内联链接/当前项文字。
 */
.nv-chapter-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.1em 0.75em;
	margin: 0 0 0.9rem;
	padding: 0;
	font-size: 0.9rem;
	line-height: 1.7;
}

.nv-chapter-nav__hub {
	font-weight: 600;
}

.nv-chapter-nav__item {
	white-space: normal;
}

.nv-chapter-nav a.nv-chapter-nav__item {
	text-decoration: none;
}

.nv-chapter-nav a.nv-chapter-nav__item:hover,
.nv-chapter-nav a.nv-chapter-nav__item:focus {
	text-decoration: underline;
}

.nv-chapter-nav__item.is-current {
	color: var(--nv-ink, #2c2c2c);
	font-weight: 700;
}

.nv-chapter-nav a.nv-chapter-nav__item.is-current {
	color: var(--nv-ink, #2c2c2c);
}

.nv-chapter-nav__error {
	color: #8b1e1e;
}