:정보상자/styles.css

식물 vs 좀비 위키
Brokey (토론 | 기여)님의 2026년 7월 22일 (수) 01:56 판
둘러보기로 이동 검색으로 이동
.infobox {
	position: relative;
	float: right;
	clear: right;
	width: 320px;
	max-width: 100%;
	margin: 0 0 1.25rem 1.25rem;
	padding: 0.78rem;
	border: 3px solid #53634d;
	border-radius: 12px;
	box-sizing: border-box;
	background: #d9dfd2;
	color: #30382d;
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		"Apple SD Gothic Neo",
		"Noto Sans KR",
		sans-serif;
	font-size: 0.92rem;
	line-height: 1.5;
	box-shadow:
		0 0 23px rgba(54, 67, 50, 0.28),
		inset 0 0 0 2px #aeb8a7;
}

.infobox::before {
	position: absolute;
	z-index: 0;
	top: 6px;
	right: 6px;
	bottom: 6px;
	left: 6px;
	border: 1px solid #7d8a76;
	border-radius: 7px;
	content: "";
}

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

.infobox__title {
	margin: 0 0.35rem;
	padding: 0.2rem 0.85rem;
	border: 2px solid #4f6049;
	border-radius: 4px;
	background: #6f8168;
	color: #fbfff8;
	font-family:
		"SB Aggro B",
		"SB 어그로 B",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;
	font-size: 1.22rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
	text-align: center;
	overflow-wrap: anywhere;
	word-break: keep-all;
	box-shadow:
		0 3px 0 #4f6049,
		0 5px 9px rgba(50, 61, 46, 0.2);
}

.infobox__title::before,
.infobox__title::after {
	position: absolute;
	top: 50%;
	width: 0;
	height: 0;
	transform: translateY(-50%);
	content: "";
}

.infobox__title::before {
	left: -0.55rem;
	border-top: 0.56rem solid transparent;
	border-right: 0.55rem solid #4f6049;
	border-bottom: 0.56rem solid transparent;
}

.infobox__title::after {
	right: -0.55rem;
	border-top: 0.56rem solid transparent;
	border-bottom: 0.56rem solid transparent;
	border-left: 0.55rem solid #4f6049;
}

.infobox__panel {
	margin-top: 0.82rem;
	padding: 0.72rem;
	border: 2px solid #84917c;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f2e8;
	box-shadow:
		inset 0 0 0 3px #e3e5d9,
		0 2px 0 rgba(73, 84, 68, 0.18);
}

.infobox__image {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 1.35rem 1rem;
	border: 2px solid #c3c9b9;
	border-radius: 9px;
	box-sizing: border-box;
	background: #f3f2e8;
	box-shadow:
		inset 0 0 0 4px #e6e6d9,
		0 3px 7px rgba(67, 77, 63, 0.14);
}

.infobox__image::before,
.infobox__image::after {
	position: absolute;
	top: 50%;
	width: 12px;
	height: 12px;
	border: 2px solid #c3c9b9;
	background: #f3f2e8;
	transform: translateY(-50%) rotate(45deg);
	content: "";
}

.infobox__image::before {
	left: -8px;
	border-top: 0;
	border-right: 0;
}

.infobox__image::after {
	right: -8px;
	border-bottom: 0;
	border-left: 0;
}

.infobox__image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 220px;
	margin: 0 auto;
	object-fit: contain;
	filter: drop-shadow(0 9px 7px rgba(55, 67, 51, 0.24));
}

.infobox__details {
	width: 100%;
	margin: 0.72rem 0 0;
	padding-top: 0.38rem;
	border-top: 2px solid #bcc4b4;
	border-collapse: separate;
	border-spacing: 0 0.36rem;
	table-layout: fixed;
	background: transparent;
	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: 0.42rem 0.58rem;
	box-sizing: border-box;
	vertical-align: middle;
	font-family:
		"SB Aggro L",
		"SB 어그로 L",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		"Apple SD Gothic Neo",
		"Noto Sans KR",
		sans-serif;
	font-weight: 300;
	line-height: 1.45;
}

.infobox__details th {
	width: 37%;
	border: 1px solid #7f8d76;
	border-right: 0;
	border-radius: 7px 0 0 7px;
	background: #98a58e;
	color: #f9fcf6;
	font-size: 0.84rem;
	text-align: left;
	white-space: normal;
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.22),
		0 2px 3px rgba(64, 75, 60, 0.1);
}

.infobox__details td {
	border: 1px solid #c5cabc;
	border-left: 0;
	border-radius: 0 7px 7px 0;
	background: #ebeade;
	color: #333a31;
	font-size: 0.89rem;
	text-align: left;
	overflow-wrap: anywhere;
	word-break: break-word;
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.38),
		0 2px 3px rgba(64, 75, 60, 0.08);
}

.infobox__details p {
	margin: 0.2em 0;
}

.infobox__details ul,
.infobox__details ol {
	margin: 0.2em 0 0.2em 1.2em;
	padding: 0;
}

.infobox__details li {
	margin: 0.1em 0;
}

.infobox__details sup {
	line-height: 1;
}

.infobox a {
	color: #536f4d;
	text-decoration: none;
}

.infobox a:hover {
	color: #354d31;
	text-decoration: underline;
}

@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-radius: 10px;
		box-shadow:
			0 0 20px rgba(54, 67, 50, 0.26),
			inset 0 0 0 2px #aeb8a7;
	}

	.infobox::before {
		top: 5px;
		right: 5px;
		bottom: 5px;
		left: 5px;
		border-radius: 6px;
	}

	.infobox__title {
		margin-right: 0.3rem;
		margin-left: 0.3rem;
		padding: 0.17rem 0.72rem;
		font-size: 1.16rem;
	}

	.infobox__title::before {
		left: -0.48rem;
		border-right-width: 0.48rem;
	}

	.infobox__title::after {
		right: -0.48rem;
		border-left-width: 0.48rem;
	}

	.infobox__panel {
		margin-top: 0.72rem;
		padding: 0.62rem;
		border-radius: 7px;
	}

	.infobox__image {
		padding: 1.18rem 0.82rem;
		border-radius: 8px;
	}

	.infobox__image img {
		max-height: 200px;
	}

	.infobox__details {
		margin-top: 0.62rem;
		border-spacing: 0 0.32rem;
	}

	.infobox__details th {
		width: 35%;
		padding-right: 0.48rem;
		padding-left: 0.48rem;
	}
}

@media screen and (max-width: 420px) {
	.infobox {
		padding: 0.58rem;
	}

	.infobox__title {
		padding-top: 0.14rem;
		padding-bottom: 0.14rem;
		font-size: 1.12rem;
	}

	.infobox__panel {
		padding: 0.52rem;
	}

	.infobox__image {
		padding: 1rem 0.7rem;
	}

	.infobox__image img {
		max-height: 185px;
	}

	.infobox__details th,
	.infobox__details td {
		padding-top: 0.38rem;
		padding-bottom: 0.38rem;
	}

	.infobox__details th {
		width: 37%;
		padding-right: 0.42rem;
		padding-left: 0.42rem;
		font-size: 0.79rem;
	}

	.infobox__details td {
		padding-right: 0.48rem;
		padding-left: 0.48rem;
		font-size: 0.85rem;
	}
}

@media screen {
	html.skin-theme-clientpref-night .infobox {
		border-color: #43503f;
		background: #31382f;
		color: #e5eae2;
		box-shadow:
			0 0 25px rgba(0, 0, 0, 0.43),
			inset 0 0 0 2px #596456;
	}

	html.skin-theme-clientpref-night .infobox::before {
		border-color: #657060;
	}

	html.skin-theme-clientpref-night .infobox__title {
		border-color: #394735;
		background: #596a54;
		color: #f6faf3;
		box-shadow:
			0 3px 0 #394735,
			0 5px 9px rgba(0, 0, 0, 0.26);
	}

	html.skin-theme-clientpref-night .infobox__title::before {
		border-right-color: #394735;
	}

	html.skin-theme-clientpref-night .infobox__title::after {
		border-left-color: #394735;
	}

	html.skin-theme-clientpref-night .infobox__panel {
		border-color: #596456;
		background: #292f28;
		box-shadow:
			inset 0 0 0 3px #353d33,
			0 2px 0 rgba(0, 0, 0, 0.25);
	}

	html.skin-theme-clientpref-night .infobox__image {
		border-color: #525d4f;
		background: #292f28;
		box-shadow:
			inset 0 0 0 4px #333a31,
			0 3px 7px rgba(0, 0, 0, 0.22);
	}

	html.skin-theme-clientpref-night .infobox__image::before,
	html.skin-theme-clientpref-night .infobox__image::after {
		border-color: #525d4f;
		background: #292f28;
	}

	html.skin-theme-clientpref-night .infobox__image img {
		filter: drop-shadow(0 9px 7px rgba(0, 0, 0, 0.38));
	}

	html.skin-theme-clientpref-night .infobox__details {
		border-top-color: #505a4d;
	}

	html.skin-theme-clientpref-night .infobox__details th {
		border-color: #55634f;
		background: #657260;
		color: #f2f6ef;
		box-shadow:
			inset 0 0 0 1px rgba(255, 255, 255, 0.08),
			0 2px 3px rgba(0, 0, 0, 0.18);
	}

	html.skin-theme-clientpref-night .infobox__details td {
		border-color: #50594d;
		background: #373e35;
		color: #e4e9e1;
		box-shadow:
			inset 0 0 0 1px rgba(255, 255, 255, 0.04),
			0 2px 3px rgba(0, 0, 0, 0.15);
	}

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

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

@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .infobox {
		border-color: #43503f;
		background: #31382f;
		color: #e5eae2;
		box-shadow:
			0 0 25px rgba(0, 0, 0, 0.43),
			inset 0 0 0 2px #596456;
	}

	html.skin-theme-clientpref-os .infobox::before {
		border-color: #657060;
	}

	html.skin-theme-clientpref-os .infobox__title {
		border-color: #394735;
		background: #596a54;
		color: #f6faf3;
		box-shadow:
			0 3px 0 #394735,
			0 5px 9px rgba(0, 0, 0, 0.26);
	}

	html.skin-theme-clientpref-os .infobox__title::before {
		border-right-color: #394735;
	}

	html.skin-theme-clientpref-os .infobox__title::after {
		border-left-color: #394735;
	}

	html.skin-theme-clientpref-os .infobox__panel {
		border-color: #596456;
		background: #292f28;
		box-shadow:
			inset 0 0 0 3px #353d33,
			0 2px 0 rgba(0, 0, 0, 0.25);
	}

	html.skin-theme-clientpref-os .infobox__image {
		border-color: #525d4f;
		background: #292f28;
		box-shadow:
			inset 0 0 0 4px #333a31,
			0 3px 7px rgba(0, 0, 0, 0.22);
	}

	html.skin-theme-clientpref-os .infobox__image::before,
	html.skin-theme-clientpref-os .infobox__image::after {
		border-color: #525d4f;
		background: #292f28;
	}

	html.skin-theme-clientpref-os .infobox__image img {
		filter: drop-shadow(0 9px 7px rgba(0, 0, 0, 0.38));
	}

	html.skin-theme-clientpref-os .infobox__details {
		border-top-color: #505a4d;
	}

	html.skin-theme-clientpref-os .infobox__details th {
		border-color: #55634f;
		background: #657260;
		color: #f2f6ef;
		box-shadow:
			inset 0 0 0 1px rgba(255, 255, 255, 0.08),
			0 2px 3px rgba(0, 0, 0, 0.18);
	}

	html.skin-theme-clientpref-os .infobox__details td {
		border-color: #50594d;
		background: #373e35;
		color: #e4e9e1;
		box-shadow:
			inset 0 0 0 1px rgba(255, 255, 255, 0.04),
			0 2px 3px rgba(0, 0, 0, 0.15);
	}

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

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