:정보상자/styles.css

식물 vs 좀비 위키
Brokey (토론 | 기여)님의 2026년 7월 23일 (목) 01:43 판
.infobox {
	position: relative;
	float: right;
	clear: right;
	width: 328px;
	max-width: 100%;
	margin: 0 0 1.25rem 1.25rem;
	padding: 0.78rem;
	border: 3px solid #7f5f49;
	border-radius: 10px;
	box-sizing: border-box;
	background: #d2c0aa;
	color: #47372d;
	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.55;
	box-shadow: 0 10px 24px rgba(76, 56, 42, 0.16);
	overflow: hidden;
}

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

.infobox__title {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 0;
	padding: 0.56rem 2.1rem 0.52rem;
	border: 0;
	border-radius: 0;
	box-sizing: border-box;
	background: #704830;
	clip-path: polygon(
		0 0,
		21px 50%,
		0 100%,
		100% 100%,
		calc(100% - 21px) 50%,
		100% 0
	);
	color: #fffaf1;
	font-family:
		"SB Aggro B",
		"SB 어그로 B",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		"Apple SD Gothic Neo",
		"Noto Sans KR",
		sans-serif;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.12;
	text-align: center;
	overflow-wrap: anywhere;
	word-break: keep-all;
}

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

.infobox__panel {
	margin-top: 0.72rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	overflow: visible;
}

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

.infobox__image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	margin: 0 0 1rem;
	padding: 2.2rem;
	border: 0;
	border-radius: 0;
	box-sizing: border-box;
	background-color: transparent;
	background-image: url("/wiki/Special:Redirect/file/Template%20Bg.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	overflow: hidden;
}

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

.infobox__image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	margin: 0 auto;
	object-fit: contain;
	filter: drop-shadow(0 8px 18px rgba(84, 55, 37, 0.2));
}

.infobox__details {
	width: 100%;
	margin: 0;
	padding: 0.45rem 0.55rem;
	border: 2px solid #d3c2ab;
	border-radius: 6px;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	background: #f4eee4;
	box-sizing: border-box;
	font-family:
		"SB Aggro L",
		"SB 어그로 L",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		"Apple SD Gothic Neo",
		"Noto Sans KR",
		sans-serif;
}

.infobox__details th,
.infobox__details td {
	min-width: 0;
	padding-top: 0.72rem;
	padding-bottom: 0.72rem;
	border: 0;
	box-sizing: border-box;
	background: transparent;
	vertical-align: top;
	line-height: 1.46;
}

.infobox__details th {
	width: 34%;
	padding-right: 0.95rem;
	padding-left: 0.75rem;
	color: #3e3128;
	font-family:
		"SB Aggro M",
		"SB 어그로 M",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		"Apple SD Gothic Neo",
		"Noto Sans KR",
		sans-serif;
	font-size: 0.85rem;
	font-weight: 500;
	text-align: left;
	white-space: normal;
}

.infobox__details td {
	width: 66%;
	padding-right: 0.72rem;
	padding-left: 0.25rem;
	color: #7f5a3e;
	font-family:
		"SB Aggro L",
		"SB 어그로 L",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		"Apple SD Gothic Neo",
		"Noto Sans KR",
		sans-serif;
	font-size: 0.91rem;
	font-weight: 300;
	text-align: left;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.infobox__details tr:first-child th,
.infobox__details tr:first-child td {
	padding-top: 0.58rem;
}

.infobox__details tr:last-child th,
.infobox__details tr:last-child td {
	padding-bottom: 0.58rem;
}

.infobox__details p {
	margin: 0.14em 0;
	font: inherit;
}

.infobox__details ul,
.infobox__details ol {
	margin: 0.18em 0 0.18em 1.1em;
	padding: 0;
	font: inherit;
}

.infobox__details li {
	margin: 0.1em 0;
	font: inherit;
}

.infobox__details sup {
	line-height: 1;
}

.infobox a {
	color: #8a5837;
	font-family: inherit;
	font-weight: inherit;
	text-decoration: none;
}

.infobox a:hover {
	color: #633c25;
	text-decoration: underline;
}

.infobox a:focus {
	outline: 2px solid #a87959;
}

@media screen and (max-width: 720px) {
	.infobox {
		float: none;
		clear: both;
		width: 100%;
		max-width: 100%;
		margin: 0 0 1.1rem;
		padding: 0.68rem;
		border-width: 3px;
		border-radius: 9px;
		font-size: 1rem;
		line-height: 1.55;
		box-shadow: 0 8px 18px rgba(76, 56, 42, 0.14);
	}

	.infobox__title {
		padding: 0.62rem 2.3rem 0.58rem;
		clip-path: polygon(
			0 0,
			23px 50%,
			0 100%,
			100% 100%,
			calc(100% - 23px) 50%,
			100% 0
		);
		font-size: 1.9rem;
		line-height: 1.12;
	}

	.infobox__panel {
		margin-top: 0.66rem;
	}

	.infobox__image {
		width: 100%;
		aspect-ratio: 1 / 1;
		margin-bottom: 0.92rem;
		padding: 2rem;
		background-size: contain;
	}

	.infobox__details {
		padding: 0.38rem 0.46rem;
	}

	.infobox__details th,
	.infobox__details td {
		padding-top: 0.68rem;
		padding-bottom: 0.68rem;
		line-height: 1.44;
	}

	.infobox__details th {
		width: 32%;
		padding-right: 0.82rem;
		padding-left: 0.66rem;
		font-size: 0.98rem;
	}

	.infobox__details td {
		width: 68%;
		padding-right: 0.62rem;
		padding-left: 0.18rem;
		font-size: 1rem;
	}
}

@media screen and (max-width: 480px) {
	.infobox {
		padding: 0.56rem;
		border-radius: 8px;
	}

	.infobox__title {
		padding: 0.58rem 1.9rem 0.54rem;
		clip-path: polygon(
			0 0,
			18px 50%,
			0 100%,
			100% 100%,
			calc(100% - 18px) 50%,
			100% 0
		);
		font-size: 1.7rem;
		line-height: 1.12;
	}

	.infobox__panel {
		margin-top: 0.58rem;
	}

	.infobox__image {
		width: 100%;
		aspect-ratio: 1 / 1;
		margin-bottom: 0.82rem;
		padding: 1.7rem;
		background-size: contain;
	}

	.infobox__details {
		padding: 0.28rem 0.34rem;
		border-radius: 5px;
	}

	.infobox__details th,
	.infobox__details td {
		padding-top: 0.58rem;
		padding-bottom: 0.58rem;
		line-height: 1.42;
	}

	.infobox__details th {
		width: 34%;
		padding-right: 0.62rem;
		padding-left: 0.5rem;
		font-size: 0.92rem;
	}

	.infobox__details td {
		width: 66%;
		padding-right: 0.46rem;
		padding-left: 0.12rem;
		font-size: 0.96rem;
	}
}

@media screen {
	html.skin-theme-clientpref-night .infobox {
		border-color: #715442;
		background: #3d3027;
		color: #eee4d9;
		box-shadow: 0 9px 24px rgba(0, 0, 0, 0.3);
	}

	html.skin-theme-clientpref-night .infobox__title {
		background: #603d29;
		color: #fff7ed;
	}

	html.skin-theme-clientpref-night .infobox__image {
		background-color: transparent;
		background-image: url("/wiki/Special:Redirect/file/Template%20Bg.png");
		background-repeat: no-repeat;
		background-position: center;
		background-size: contain;
	}

	html.skin-theme-clientpref-night .infobox__details {
		border-color: #69513f;
		background: #302720;
	}

	html.skin-theme-clientpref-night .infobox__details th {
		color: #f0e5d9;
	}

	html.skin-theme-clientpref-night .infobox__details td {
		color: #d9b48f;
	}

	html.skin-theme-clientpref-night .infobox a {
		color: #ddb089;
	}

	html.skin-theme-clientpref-night .infobox a:hover {
		color: #f2cbaa;
	}

	html.skin-theme-clientpref-night .infobox a:focus {
		outline-color: #bd906d;
	}
}

@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .infobox {
		border-color: #715442;
		background: #3d3027;
		color: #eee4d9;
		box-shadow: 0 9px 24px rgba(0, 0, 0, 0.3);
	}

	html.skin-theme-clientpref-os .infobox__title {
		background: #603d29;
		color: #fff7ed;
	}

	html.skin-theme-clientpref-os .infobox__image {
		background-color: transparent;
		background-image: url("/wiki/Special:Redirect/file/Template%20Bg.png");
		background-repeat: no-repeat;
		background-position: center;
		background-size: contain;
	}

	html.skin-theme-clientpref-os .infobox__details {
		border-color: #69513f;
		background: #302720;
	}

	html.skin-theme-clientpref-os .infobox__details th {
		color: #f0e5d9;
	}

	html.skin-theme-clientpref-os .infobox__details td {
		color: #d9b48f;
	}

	html.skin-theme-clientpref-os .infobox a {
		color: #ddb089;
	}

	html.skin-theme-clientpref-os .infobox a:hover {
		color: #f2cbaa;
	}

	html.skin-theme-clientpref-os .infobox a:focus {
		outline-color: #bd906d;
	}
}