:정보상자/styles.css

식물 vs 좀비 위키
Brokey (토론 | 기여)님의 2026년 7월 22일 (수) 18:15 판
.infobox {
	float: right;
	clear: right;
	width: 320px;
	max-width: 100%;
	margin: 0 0 1.25rem 1.25rem;
	padding: 0.78rem;
	border: 3px solid #7b5b45;
	border-radius: 22px;
	box-sizing: border-box;
	background: #d9c3a8;
	color: #433127;
	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 8px 22px rgba(72, 51, 35, 0.22);
}

.infobox__title {
	margin: 0 0.28rem;
	padding: 0.4rem 1rem;
	border: 1px solid #6e503b;
	border-radius: 16px;
	background: #8a6a50;
	color: #fff8ef;
	font-family:
		"SB Aggro B",
		"SB 어그로 B",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;
	font-size: 1.22rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.02em;
	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: 0.72rem 0.22rem 0.22rem;
	border: 2px solid #ccb296;
	border-radius: 18px;
	box-sizing: border-box;
	background: #efe1ce;
	overflow: hidden;
}

.infobox__image {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 210px;
	max-height: 280px;
	padding: 1.05rem 1rem 1rem;
	box-sizing: border-box;
	background: #efe1ce;
	border-bottom: 1px solid #ccb296;
}

.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 8px 8px rgba(86, 60, 40, 0.2));
}

.infobox__details {
	width: calc(100% - 1rem);
	margin: 0.55rem 0.5rem 0.65rem;
	border-collapse: separate;
	border-spacing: 0 0.42rem;
	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.46rem 0.68rem;
	border: 1px solid #b59678;
	box-sizing: border-box;
	vertical-align: top;
	line-height: 1.45;
}

.infobox__details th {
	width: 38%;
	border-right: 0;
	border-radius: 10px 0 0 10px;
	background: #baa084;
	color: #47342a;
	font-family:
		"SB Aggro M",
		"SB 어그로 M",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		"Apple SD Gothic Neo",
		"Noto Sans KR",
		sans-serif;
	font-size: 0.86rem;
	font-weight: 500;
	text-align: left;
	white-space: normal;
}

.infobox__details td {
	border-left: 0;
	border-radius: 0 10px 10px 0;
	background: #f7eee2;
	color: #47342a;
	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;
	text-align: left;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.infobox__details p {
	margin: 0.18em 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: #8a562f;
	text-decoration: none;
}

.infobox a:hover {
	color: #5d351f;
	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: 20px;
		font-size: inherit;
		line-height: inherit;
	}

	.infobox .infobox__title {
		padding: 0.52rem 1rem;
		border-radius: 15px;
		font-size: 2.8rem;
		line-height: 1.15;
	}

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

	.infobox__panel {
		margin: 0.68rem 0.18rem 0.18rem;
		border-radius: 16px;
	}

	.infobox__image {
		min-height: 200px;
		max-height: 260px;
		padding: 0.95rem 0.9rem;
	}

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

	.infobox__details {
		width: calc(100% - 0.9rem);
		margin: 0.5rem 0.45rem 0.6rem;
		border-spacing: 0 0.38rem;
	}

	.infobox__details,
	.infobox__details th,
	.infobox__details td {
		font-size: 1em;
		line-height: inherit;
	}

	.infobox__details th {
		width: 36%;
		padding-right: 0.55rem;
	}
}

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

	.infobox .infobox__title {
		padding: 0.48rem 0.9rem;
		border-radius: 14px;
		font-size: 2.5rem;
	}

	.infobox__panel {
		border-radius: 14px;
	}

	.infobox__image {
		min-height: 180px;
		max-height: 235px;
		padding: 0.85rem 0.8rem;
	}

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

	.infobox__details {
		width: calc(100% - 0.8rem);
		margin: 0.46rem 0.4rem 0.55rem;
	}

	.infobox__details th {
		width: 37%;
		padding-right: 0.45rem;
	}

	.infobox__details th,
	.infobox__details td {
		padding: 0.42rem 0.56rem;
		font-size: 1em;
	}
}

@media screen {
	html.skin-theme-clientpref-night .infobox {
		border-color: #8b6d55;
		background: #4a392d;
		color: #eee2d5;
		box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
	}

	html.skin-theme-clientpref-night .infobox__title {
		border-color: #745641;
		background: #6b4b39;
		color: #fff7ed;
	}

	html.skin-theme-clientpref-night .infobox__panel {
		border-color: #7a624f;
		background: #3c2f27;
	}

	html.skin-theme-clientpref-night .infobox__image {
		background: #3c2f27;
		border-bottom-color: #7a624f;
	}

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

	html.skin-theme-clientpref-night .infobox__details th {
		border-color: #8a6e57;
		background: #6a5646;
		color: #f1e5d9;
	}

	html.skin-theme-clientpref-night .infobox__details td {
		border-color: #8a6e57;
		background: #4a3a30;
		color: #f1e5d9;
	}

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

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

@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .infobox {
		border-color: #8b6d55;
		background: #4a392d;
		color: #eee2d5;
		box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
	}

	html.skin-theme-clientpref-os .infobox__title {
		border-color: #745641;
		background: #6b4b39;
		color: #fff7ed;
	}

	html.skin-theme-clientpref-os .infobox__panel {
		border-color: #7a624f;
		background: #3c2f27;
	}

	html.skin-theme-clientpref-os .infobox__image {
		background: #3c2f27;
		border-bottom-color: #7a624f;
	}

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

	html.skin-theme-clientpref-os .infobox__details th {
		border-color: #8a6e57;
		background: #6a5646;
		color: #f1e5d9;
	}

	html.skin-theme-clientpref-os .infobox__details td {
		border-color: #8a6e57;
		background: #4a3a30;
		color: #f1e5d9;
	}

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

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