跳到正文
Novark

模板:组件/信息框/styles.css:修订间差异

wiki-js>DSV2Import
wiki-js>DSV2Import (v2 template)
 
Phase1EmergencyAdmin
Phase1EmergencyAdmin​(留言 | 贡献) (AI辅助:接入已确认的刊本档案设计;原位整理组件样式与首页结构)
小
 
(未显示同一用户的3个中间版本)
第1行: 第1行:
/* 信息框本体的唯一样式入口;色彩和字体继承本站令牌。 */
.nv-infobox {
box-sizing: border-box;
float: right;
clear: right;
width: 300px;
max-width: 100%;
margin: 4px 0 28px 36px;
border: 0;
border-radius: 0;
background: var(--nv-paper-raised);
color: var(--nv-ink);


.nv-infobox {
font-weight: 400;
  box-sizing: border-box;
font-size: 14px;
  float: right;
line-height: 1.65;
  width: 22rem;
text-align: left;
  max-width: 100%;
  margin: 0 0 1rem 1.25rem;
  border: 1px solid #d8cdbc;
  background: #fffdf7;
  color: #24211d;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
}
}
.nv-infobox__head {
.nv-infobox__head {
  padding: 0.85rem 0.9rem 0.55rem;
padding: 16px 18px 14px;
  border-bottom: 1px solid #d8cdbc;
background: var(--nv-block, #1b2a41);
color: var(--nv-mast-ink, #efe6d3);
}
}
.nv-infobox__name {
.nv-infobox__name {
  font-family: "Noto Serif SC", "Songti SC", serif;
color: inherit;
  font-size: 1.3rem;
font-weight: 700;
  font-weight: 700;
font-size: 21px;
  line-height: 1.3;
line-height: 1.3;
letter-spacing: 0.03em;
overflow-wrap: anywhere;
}
}
.nv-infobox__subtitle {
.nv-infobox__subtitle {
  margin-top: 0.2rem;
margin-top: 4px;
  color: #6f675b;
color: var(--nv-navy-muted, #9ba7b9);
  font-size: 0.86rem;
font-weight: 400;
font-size: 13px;
line-height: 1.5;
overflow-wrap: anywhere;
}
}
.nv-infobox__media {
.nv-infobox__media {
  padding: 0.7rem 0.9rem 0;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
gap: 10px;
padding: 18px 18px 6px;
}
.nv-infobox__media-item {
flex: 0 1 auto;
max-width: 100%;
margin: 0;
text-align: center;
}
.nv-infobox__media-item img {
display: block;
width: auto;
max-width: 100%;
height: auto;
margin: 0 auto;
border: 1px solid var(--nv-line);
border-radius: 0;
}
.nv-infobox__media-item--portrait img {
max-height: 17rem;
}
.nv-infobox__media-item--flag img {
max-height: 5.5rem;
}
.nv-infobox__media-item--emblem img {
max-height: 7rem;
}
.nv-infobox__media-item--map {
flex-basis: 100%;
}
.nv-infobox__media-item--map img {
max-height: 12rem;
}
.nv-infobox__media-item figcaption,
.nv-infobox__media-caption {
margin-top: 0.25rem;
color: var(--nv-ink-muted);
font-size: 11.5px;
line-height: 1.45;
text-align: center;
}
}
 
.nv-infobox__media-missing {
.nv-infobox__media img {
flex-basis: 100%;
  display: block;
padding: 0.25rem 0;
  max-width: 100%;
color: var(--nv-ink-muted);
  height: auto;
font-size: 0.8rem;
text-align: center;
}
}
.nv-infobox__rows {
.nv-infobox__rows {
  display: grid;
display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
grid-template-columns: 5.2em minmax(0, 1fr);
  margin: 0;
column-gap: 14px;
  padding: 0.55rem 0.9rem 0.9rem;
margin: 0;
  gap: 0;
padding: 6px 18px 14px;
}
}
.nv-infobox__row {
.nv-infobox__row {
  display: contents;
display: contents;
}
.nv-infobox__row dt,
.nv-infobox__row dd {
min-width: 0;
margin: 0;
padding: 8px 0;
border-top: 1px solid var(--nv-hair);
background: transparent;
}
.nv-infobox__row:first-child dt,
.nv-infobox__row:first-child dd {
border-top: 0;
}
}
.nv-infobox__row dt {
.nv-infobox__row dt {
  padding: 0.28rem 0 0.28rem;
color: var(--nv-ink-muted);
  border-top: 1px solid #e6ddcf;
font-weight: 400;
  color: #6f675b;
font-size: 12.5px;
  font-size: 0.8rem;
line-height: 1.7;
letter-spacing: 0.06em;
}
}
.nv-infobox__row dd {
.nv-infobox__row dd {
  margin: 0;
color: var(--nv-ink);
  padding: 0.28rem 0;
font-size: 14px;
  border-top: 1px solid #e6ddcf;
}
  overflow-wrap: anywhere;
.nv-infobox p,
.nv-infobox dd,
.nv-infobox dt,
.nv-infobox li,
.nv-infobox td,
.nv-infobox th,
.nv-infobox__value {
text-align: left;
text-justify: auto;
word-break: normal;
overflow-wrap: break-word;
hyphens: none;
}
}
 
.nv-infobox a {
.nv-infobox__row a {
color: var(--nv-link);
  color: #8b3f2f;
}
}
.nv-infobox__row b {
.nv-infobox__row b {
  font-weight: 600;
font-weight: 600;
}
.nv-infobox__row--wide > dt {
grid-column: 1 / -1;
padding-bottom: 1px;
}
.nv-infobox__row--wide > dd {
grid-column: 1 / -1;
padding-top: 2px;
border-top: 0;
scroll-margin-top: 5rem;
}
.nv-infobox__row--wide .nv-seatmap {
margin-top: 1px;
}
.nv-infobox__row--wide .nv-seatmap__meta {
color: var(--nv-ink-muted);
}
}
 
.nv-infobox__source {
.nv-infobox__missing {
padding: 0 0.9rem 0.8rem;
  padding: 0.5rem 0.9rem;
color: var(--nv-ink-muted);
  color: #6f675b;
font-size: 0.78rem;
  font-size: 0.82rem;
}
}
 
@media (max-width: 680px) {
@media (max-width: 720px) {
.nv-infobox {
  .nv-infobox {
float: none;
    float: none;
width: 100%;
    width: 100%;
margin: 0 0 22px;
    margin: 0 0 1.1rem;
}
  }
}
}
 
@media print {
@media (prefers-color-scheme: dark) {
.nv-infobox {
  .nv-infobox {
float: right;
    background: #20252a;
width: 62mm;
    border-color: #3c444b;
border: 1pt solid #000;
    color: #e8e1d5;
background: #fff;
  }
}
  .nv-infobox__head { border-bottom-color: #3c444b; }
.nv-infobox,
  .nv-infobox__row dt { border-top-color: #3c444b; color: #b8b0a3; }
.nv-infobox__name,
  .nv-infobox__row dd { border-top-color: #3c444b; }
.nv-infobox__row dt,
  .nv-infobox__subtitle, .nv-infobox__missing { color: #b8b0a3; }
.nv-infobox__row dd {
  .nv-infobox__row a { color: #d69076; }
color: #000;
}
}
}

2026年11月16日 (一) 12:37的最新版本

/* 信息框本体的唯一样式入口;色彩和字体继承本站令牌。 */
.nv-infobox {
	box-sizing: border-box;
	float: right;
	clear: right;
	width: 300px;
	max-width: 100%;
	margin: 4px 0 28px 36px;
	border: 0;
	border-radius: 0;
	background: var(--nv-paper-raised);
	color: var(--nv-ink);

	font-weight: 400;
	font-size: 14px;
	line-height: 1.65;
	text-align: left;
}
.nv-infobox__head {
	padding: 16px 18px 14px;
	background: var(--nv-block, #1b2a41);
	color: var(--nv-mast-ink, #efe6d3);
}
.nv-infobox__name {
	color: inherit;
	font-weight: 700;
	font-size: 21px;
	line-height: 1.3;
	letter-spacing: 0.03em;
	overflow-wrap: anywhere;
}
.nv-infobox__subtitle {
	margin-top: 4px;
	color: var(--nv-navy-muted, #9ba7b9);
	font-weight: 400;
	font-size: 13px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}
.nv-infobox__media {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 10px;
	padding: 18px 18px 6px;
}
.nv-infobox__media-item {
	flex: 0 1 auto;
	max-width: 100%;
	margin: 0;
	text-align: center;
}
.nv-infobox__media-item img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border: 1px solid var(--nv-line);
	border-radius: 0;
}
.nv-infobox__media-item--portrait img {
	max-height: 17rem;
}
.nv-infobox__media-item--flag img {
	max-height: 5.5rem;
}
.nv-infobox__media-item--emblem img {
	max-height: 7rem;
}
.nv-infobox__media-item--map {
	flex-basis: 100%;
}
.nv-infobox__media-item--map img {
	max-height: 12rem;
}
.nv-infobox__media-item figcaption,
.nv-infobox__media-caption {
	margin-top: 0.25rem;
	color: var(--nv-ink-muted);
	font-size: 11.5px;
	line-height: 1.45;
	text-align: center;
}
.nv-infobox__media-missing {
	flex-basis: 100%;
	padding: 0.25rem 0;
	color: var(--nv-ink-muted);
	font-size: 0.8rem;
	text-align: center;
}
.nv-infobox__rows {
	display: grid;
	grid-template-columns: 5.2em minmax(0, 1fr);
	column-gap: 14px;
	margin: 0;
	padding: 6px 18px 14px;
}
.nv-infobox__row {
	display: contents;
}
.nv-infobox__row dt,
.nv-infobox__row dd {
	min-width: 0;
	margin: 0;
	padding: 8px 0;
	border-top: 1px solid var(--nv-hair);
	background: transparent;
}
.nv-infobox__row:first-child dt,
.nv-infobox__row:first-child dd {
	border-top: 0;
}
.nv-infobox__row dt {
	color: var(--nv-ink-muted);
	font-weight: 400;
	font-size: 12.5px;
	line-height: 1.7;
	letter-spacing: 0.06em;
}
.nv-infobox__row dd {
	color: var(--nv-ink);
	font-size: 14px;
}
.nv-infobox p,
.nv-infobox dd,
.nv-infobox dt,
.nv-infobox li,
.nv-infobox td,
.nv-infobox th,
.nv-infobox__value {
	text-align: left;
	text-justify: auto;
	word-break: normal;
	overflow-wrap: break-word;
	hyphens: none;
}
.nv-infobox a {
	color: var(--nv-link);
}
.nv-infobox__row b {
	font-weight: 600;
}
.nv-infobox__row--wide > dt {
	grid-column: 1 / -1;
	padding-bottom: 1px;
}
.nv-infobox__row--wide > dd {
	grid-column: 1 / -1;
	padding-top: 2px;
	border-top: 0;
	scroll-margin-top: 5rem;
}
.nv-infobox__row--wide .nv-seatmap {
	margin-top: 1px;
}
.nv-infobox__row--wide .nv-seatmap__meta {
	color: var(--nv-ink-muted);
}
.nv-infobox__source {
	padding: 0 0.9rem 0.8rem;
	color: var(--nv-ink-muted);
	font-size: 0.78rem;
}
@media (max-width: 680px) {
	.nv-infobox {
		float: none;
		width: 100%;
		margin: 0 0 22px;
	}
}
@media print {
	.nv-infobox {
		float: right;
		width: 62mm;
		border: 1pt solid #000;
		background: #fff;
	}
	.nv-infobox,
	.nv-infobox__name,
	.nv-infobox__row dt,
	.nv-infobox__row dd {
		color: #000;
	}
}