:정보상자/styles.css

식물 vs 좀비 위키
Brokey (토론 | 기여)님의 2026년 7월 23일 (목) 19:47 판
.infobox {
	--infobox-outer-edge: #896247;
	--infobox-inner: #d5c4ae;
	--infobox-inner-edge: #c2ad94;
	--infobox-panel: #f4efe5;
	--infobox-image-paper: #efe1bf;
	--infobox-image-frame: #9a5b32;
	--infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Light.png");
	--infobox-ribbon: #6f4a34;
	--infobox-row-bg: #faf7f1;
	--infobox-row-edge: #d8cdc0;
	--infobox-label-text: #3f3026;
	--infobox-text: #5d4434;
	--infobox-link: #8b6044;
	--infobox-link-hover: #68442d;
	--infobox-focus: #ae7d60;
	--infobox-title-text: #fffaf3;
	--infobox-text-outline: #4e3426;
	--infobox-shadow: rgba(58, 39, 28, 0.12);

	position: relative;
	float: right;
	clear: right;
	width: 328px;
	max-width: 100%;
	margin: 0 0 1.25rem 1.25rem;
	padding: 0.9rem 0.9rem 1.55rem;
	border: 4px solid var(--infobox-outer-edge);
	border-radius: 9px;
	box-sizing: border-box;
	background: var(--infobox-inner);
	color: var(--infobox-text);
	font-family:
		"SB Aggro L",
		"SB 어그로 L",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		"Apple SD Gothic Neo",
		"Noto Sans KR",
		sans-serif;
	font-size: 0.92rem;
	font-weight: 300;
	line-height: 1.6;
	box-shadow: 0 8px 24px var(--infobox-shadow);
	overflow: hidden;
}

.infobox::before {
	position: absolute;
	top: 12px;
	right: 12px;
	bottom: 12px;
	left: 12px;
	border: 2px solid var(--infobox-inner-edge);
	border-radius: 5px;
	box-sizing: border-box;
	content: "";
	pointer-events: none;
}

.infobox__title,
.infobox__panel {
	position: relative;
	z-index: 1;
}

/* 이름칸 */
.infobox__title {
	display: flex;
	align-items: center;
	justify-content: center;
	width: calc(100% - 12px);
	margin: 0.6rem auto 1rem;
	padding: 0.92rem 1.4rem;
	border: 0;
	box-sizing: border-box;
	background: var(--infobox-ribbon);
	clip-path: polygon(
		0 0,
		100% 0,
		calc(100% - 16px) 50%,
		100% 100%,
		0 100%,
		16px 50%
	);
	color: var(--infobox-title-text);
	font-family:
		"SB Aggro M",
		"SB 어그로 M",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		"Apple SD Gothic Neo",
		"Noto Sans KR",
		sans-serif;
	font-size: 1.34rem;
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -0.025em;
	text-align: center;
	text-shadow:
		-2px -2px 0 var(--infobox-text-outline),
		0 -2px 0 var(--infobox-text-outline),
		2px -2px 0 var(--infobox-text-outline),
		-2px 0 0 var(--infobox-text-outline),
		2px 0 0 var(--infobox-text-outline),
		-2px 2px 0 var(--infobox-text-outline),
		0 2px 0 var(--infobox-text-outline),
		2px 2px 0 var(--infobox-text-outline);
	overflow-wrap: anywhere;
	word-break: keep-all;
}

.infobox__title p {
	margin: 0;
	font: inherit;
	color: inherit;
	line-height: inherit;
}

/* 내부 영역 */
.infobox__panel {
	margin-top: 0;
	padding: 0;
	background: transparent;
}

/* 이미지칸 */
.infobox__image {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: calc(100% - 18px);
	aspect-ratio: 1 / 1;
	margin: 0 auto 1rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-sizing: border-box;
	background-color: transparent;
	background-image: var(--infobox-image-bg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	box-shadow: none;
	clip-path: none;
	overflow: visible;
}

.infobox__image::before,
.infobox__image::after {
	display: none;
}

.infobox__image a,
.infobox__image img {
	position: relative;
	z-index: 1;
}

.infobox__image a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.infobox__image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0 auto;
	object-fit: contain;
	filter: drop-shadow(0 10px 12px rgba(78, 52, 38, 0.18));
}

/* 정보칸 */
.infobox__details {
	width: calc(100% - 12px);
	margin: 0 auto;
	border: 2px solid var(--infobox-row-edge);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 6px;
	table-layout: fixed;
	background: var(--infobox-row-bg);
	box-sizing: border-box;
	overflow: hidden;
}

.infobox__details tr {
	background: transparent;
}

.infobox__details th,
.infobox__details td {
	padding: 0.78rem 0.86rem;
	border: 0;
	box-sizing: border-box;
	background: transparent;
	line-height: 1.5;
	text-align: left;
	vertical-align: top;
}

.infobox__details th {
	width: 36%;
	color: var(--infobox-label-text);
	font-family:
		"SB Aggro B",
		"SB 어그로 B",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		"Apple SD Gothic Neo",
		"Noto Sans KR",
		sans-serif;
	font-size: 0.82rem;
	font-weight: 500;
	word-break: keep-all;
}

.infobox__details td {
	width: 64%;
	color: var(--infobox-text);
	font-family:
		"SB Aggro L",
		"SB 어그로 L",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		"Apple SD Gothic Neo",
		"Noto Sans KR",
		sans-serif;
	font-size: 0.9rem;
	font-weight: 300;
	word-break: break-word;
	overflow-wrap: anywhere;
}

/* 섹션 제목 */
.infobox__section-title,
.infobox__subtitle,
.infobox__panel > h2,
.infobox__panel > h3 {
	display: block;
	width: calc(100% - 12px);
	margin: 1rem auto 0.62rem;
	padding: 0.82rem 1.12rem;
	border: 0;
	box-sizing: border-box;
	background: var(--infobox-ribbon);
	clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
	color: var(--infobox-title-text);
	font-family:
		"SB Aggro B",
		"SB 어그로 B",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		"Apple SD Gothic Neo",
		"Noto Sans KR",
		sans-serif;
	font-size: 1.06rem;
	font-weight: 700;
	line-height: 1.14;
	text-align: center;
	text-shadow:
		-1px -1px 0 var(--infobox-text-outline),
		0 -1px 0 var(--infobox-text-outline),
		1px -1px 0 var(--infobox-text-outline),
		-1px 0 0 var(--infobox-text-outline),
		1px 0 0 var(--infobox-text-outline),
		-1px 1px 0 var(--infobox-text-outline),
		0 1px 0 var(--infobox-text-outline),
		1px 1px 0 var(--infobox-text-outline);
}

.infobox__section-title::after,
.infobox__subtitle::after,
.infobox__panel > h2::after,
.infobox__panel > h3::after {
	display: none;
}

/* 섹션 본문 */
.infobox__section-body,
.infobox__listbox,
.infobox__games,
.infobox__appearance-list {
	width: calc(100% - 12px);
	margin: 0 auto;
	padding: 0.86rem 0.96rem;
	border: 2px solid var(--infobox-row-edge);
	border-radius: 6px;
	box-sizing: border-box;
	background: var(--infobox-row-bg);
	color: var(--infobox-text);
	font-size: 0.92rem;
	line-height: 1.55;
}

/* 공통 텍스트 */
.infobox__details p,
.infobox__section-body p,
.infobox__listbox p,
.infobox__games p,
.infobox__appearance-list p {
	margin: 0.12em 0;
	font: inherit;
}

.infobox__details ul,
.infobox__details ol,
.infobox__section-body ul,
.infobox__section-body ol,
.infobox__listbox ul,
.infobox__listbox ol,
.infobox__games ul,
.infobox__games ol,
.infobox__appearance-list ul,
.infobox__appearance-list ol {
	margin: 0.14em 0 0.14em 1.12em;
	padding: 0;
	font: inherit;
}

.infobox__details li,
.infobox__section-body li,
.infobox__listbox li,
.infobox__games li,
.infobox__appearance-list li {
	margin: 0.1em 0;
	font: inherit;
}

.infobox small,
.infobox sup,
.infobox__details small,
.infobox__details sup,
.infobox__section-body small,
.infobox__section-body sup,
.infobox__listbox small,
.infobox__listbox sup,
.infobox__games small,
.infobox__games sup,
.infobox__appearance-list small,
.infobox__appearance-list sup {
	position: static;
	top: auto;
	bottom: auto;
	vertical-align: baseline;
	line-height: inherit;
	font-size: 0.85em;
}

.infobox a {
	color: var(--infobox-link);
	font-family: inherit;
	font-weight: inherit;
	text-decoration: none;
}

.infobox a:hover {
	color: var(--infobox-link-hover);
	text-decoration: underline;
}

.infobox a:focus {
	outline: 2px solid var(--infobox-focus);
	outline-offset: 2px;
}

/* 720px 이하 */
@media screen and (max-width: 720px) {
	.infobox {
		float: none;
		clear: both;
		width: 100%;
		max-width: 100%;
		margin: 0 0 1.1rem;
		padding: 0.82rem 0.82rem 1.42rem;
		border-radius: 8px;
		font-size: 1rem;
	}

	.infobox::before {
		top: 10px;
		right: 10px;
		bottom: 10px;
		left: 10px;
		border-radius: 4px;
	}

	.infobox__title {
		width: calc(100% - 8px);
		margin: 0.52rem auto 0.9rem;
		padding: 0.92rem 1.1rem;
		font-size: 1.42rem;
	}

	.infobox__image {
		width: calc(100% - 12px);
		padding: 0;
		margin-bottom: 0.92rem;
	}

	.infobox__details {
		width: calc(100% - 24px);
	}

	.infobox__details th,
	.infobox__details td {
		padding: 0.72rem 0.8rem;
	}

	.infobox__details th {
		width: 34%;
		font-size: 0.96rem;
	}

	.infobox__details td {
		width: 66%;
		font-size: 1rem;
	}

	.infobox__section-title,
	.infobox__subtitle,
	.infobox__panel > h2,
	.infobox__panel > h3,
	.infobox__section-body,
	.infobox__listbox,
	.infobox__games,
	.infobox__appearance-list {
		width: calc(100% - 8px);
	}

	.infobox__section-title,
	.infobox__subtitle,
	.infobox__panel > h2,
	.infobox__panel > h3 {
		font-size: 1.16rem;
	}
}

/* 480px 이하 */
@media screen and (max-width: 480px) {
	.infobox {
		padding: 0.72rem 0.72rem 1.26rem;
	}

	.infobox::before {
		top: 8px;
		right: 8px;
		bottom: 8px;
		left: 8px;
	}

	.infobox__title {
		width: calc(100% - 4px);
		margin: 0.44rem auto 0.78rem;
		padding: 0.82rem 0.92rem;
		font-size: 1.22rem;
	}

	.infobox__image {
		width: calc(100% - 4px);
		padding: 0;
	}

	.infobox__details {
		width: calc(100% - 20px);
	}

	.infobox__details th,
	.infobox__details td {
		padding: 0.68rem 0.76rem;
	}

	.infobox__details th {
		width: 35%;
		font-size: 0.89rem;
	}

	.infobox__details td {
		width: 65%;
		font-size: 0.95rem;
	}

	.infobox__section-title,
	.infobox__subtitle,
	.infobox__panel > h2,
	.infobox__panel > h3,
	.infobox__section-body,
	.infobox__listbox,
	.infobox__games,
	.infobox__appearance-list {
		width: calc(100% - 4px);
	}

	.infobox__section-title,
	.infobox__subtitle,
	.infobox__panel > h2,
	.infobox__panel > h3 {
		font-size: 1.02rem;
	}

	.infobox__section-body,
	.infobox__listbox,
	.infobox__games,
	.infobox__appearance-list {
		padding: 0.74rem 0.8rem;
		font-size: 0.95rem;
	}
}

/* 수동 다크 모드 */
@media screen {
	html.skin-theme-clientpref-night .infobox {
		--infobox-outer-edge: #5d4336;
		--infobox-inner: #4a3c34;
		--infobox-inner-edge: #6c594b;
		--infobox-panel: #3d332d;
		--infobox-image-paper: #51443a;
		--infobox-image-frame: #8f6546;
		--infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Dark.png");
		--infobox-ribbon: #6a4a3a;
		--infobox-row-bg: #efe7db;
		--infobox-row-edge: #d2c0ac;
		--infobox-label-text: #3a2c24;
		--infobox-text: #5b4334;
		--infobox-link: #925f45;
		--infobox-link-hover: #6b432e;
		--infobox-focus: #d6a788;
		--infobox-title-text: #fff8f2;
		--infobox-text-outline: #2f1e17;
		--infobox-shadow: rgba(0, 0, 0, 0.28);
	}
}

/* OS 다크 모드 */
@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .infobox {
		--infobox-outer-edge: #5d4336;
		--infobox-inner: #4a3c34;
		--infobox-inner-edge: #6c594b;
		--infobox-panel: #3d332d;
		--infobox-image-paper: #51443a;
		--infobox-image-frame: #8f6546;
		--infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Dark.png");
		--infobox-ribbon: #6a4a3a;
		--infobox-row-bg: #efe7db;
		--infobox-row-edge: #d2c0ac;
		--infobox-label-text: #3a2c24;
		--infobox-text: #5b4334;
		--infobox-link: #925f45;
		--infobox-link-hover: #6b432e;
		--infobox-focus: #d6a788;
		--infobox-title-text: #fff8f2;
		--infobox-text-outline: #2f1e17;
		--infobox-shadow: rgba(0, 0, 0, 0.28);
	}
}