:정보상자/styles.css

식물 vs 좀비 위키
Brokey (토론 | 기여)님의 2026년 7월 22일 (수) 02:03 판
둘러보기로 이동 검색으로 이동
.infobox {
	float: right;
	clear: right;
	width: 320px;
	max-width: 100%;
	margin: 0 0 1.25rem 1.25rem;
	padding: 0.72rem;
	border: 3px solid #4b8d47;
	border-radius: 18px;
	box-sizing: border-box;
	background: #d9edd4;
	color: #293728;
	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 24px rgba(55, 104, 50, 0.34);
}

.infobox__title {
	position: relative;
	margin: 0 0.32rem;
	padding: 0.28rem 1.35rem;
	border: 0;
	border-radius: 11px;
	background: #4f9f4b;
	color: #f8fff6;
	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 4px 9px rgba(45, 89, 41, 0.22);
}

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

.infobox__title::before {
	left: 0;
	border-top: 0.62rem solid transparent;
	border-bottom: 0.62rem solid transparent;
	border-left: 0.52rem solid #d9edd4;
}

.infobox__title::after {
	right: 0;
	border-top: 0.62rem solid transparent;
	border-right: 0.52rem solid #d9edd4;
	border-bottom: 0.62rem solid transparent;
}

.infobox__panel {
	margin-top: 0.7rem;
	border: 0;
	border-radius: 14px;
	overflow: hidden;
	background: #f1f8ee;
}

.infobox__image {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem 1rem 1.35rem;
	box-sizing: border-box;
	background: #f1f8ee;
}

.infobox__image::after {
	position: absolute;
	right: 1rem;
	bottom: 0;
	left: 1rem;
	height: 1px;
	background: #aac9a3;
	content: "";
}

.infobox__image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 210px;
	margin: 0 auto;
	object-fit: contain;
	filter: drop-shadow(0 11px 9px rgba(48, 87, 44, 0.24));
}

.infobox__details {
	width: calc(100% - 2rem);
	margin: 0 1rem 0.8rem;
	padding-top: 0.45rem;
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
	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.48rem 0;
	border: 0;
	box-sizing: border-box;
	vertical-align: top;
	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.5;
}

.infobox__details th {
	width: 35%;
	padding-right: 0.75rem;
	color: #668062;
	font-size: 0.86rem;
	text-align: left;
	white-space: normal;
}

.infobox__details td {
	color: #2d3c2b;
	font-size: 0.9rem;
	text-align: left;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.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: #3e853a;
	text-decoration: none;
}

.infobox a:hover {
	color: #275f24;
	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.62rem;
		border-radius: 16px;
		box-shadow: 0 0 21px rgba(55, 104, 50, 0.31);
	}

	.infobox__title {
		margin-right: 0.28rem;
		margin-left: 0.28rem;
		padding: 0.25rem 1.2rem;
		border-radius: 10px;
		font-size: 1.16rem;
	}

	.infobox__title::before {
		border-top-width: 0.58rem;
		border-bottom-width: 0.58rem;
		border-left-width: 0.46rem;
	}

	.infobox__title::after {
		border-top-width: 0.58rem;
		border-right-width: 0.46rem;
		border-bottom-width: 0.58rem;
	}

	.infobox__panel {
		margin-top: 0.62rem;
		border-radius: 12px;
	}

	.infobox__image {
		padding: 1.25rem 0.85rem;
	}

	.infobox__image::after {
		right: 0.8rem;
		left: 0.8rem;
	}

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

	.infobox__details {
		width: calc(100% - 1.6rem);
		margin-right: 0.8rem;
		margin-left: 0.8rem;
	}

	.infobox__details th {
		width: 34%;
		padding-right: 0.6rem;
	}
}

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

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

	.infobox__title::before {
		border-top-width: 0.54rem;
		border-bottom-width: 0.54rem;
	}

	.infobox__title::after {
		border-top-width: 0.54rem;
		border-bottom-width: 0.54rem;
	}

	.infobox__panel {
		border-radius: 11px;
	}

	.infobox__image::after {
		right: 0.65rem;
		left: 0.65rem;
	}

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

	.infobox__details {
		width: calc(100% - 1.3rem);
		margin-right: 0.65rem;
		margin-left: 0.65rem;
	}

	.infobox__details th {
		width: 36%;
		padding-right: 0.5rem;
		font-size: 0.8rem;
	}

	.infobox__details td {
		font-size: 0.86rem;
	}
}

@media screen {
	html.skin-theme-clientpref-night .infobox {
		border-color: #4f7f4b;
		background: #2d3d2b;
		color: #e4eee1;
		box-shadow: 0 0 26px rgba(0, 0, 0, 0.46);
	}

	html.skin-theme-clientpref-night .infobox__title {
		background: #4d8249;
		color: #f4fff1;
		box-shadow: 0 4px 9px rgba(0, 0, 0, 0.26);
	}

	html.skin-theme-clientpref-night .infobox__title::before {
		border-left-color: #2d3d2b;
	}

	html.skin-theme-clientpref-night .infobox__title::after {
		border-right-color: #2d3d2b;
	}

	html.skin-theme-clientpref-night .infobox__panel {
		background: #293627;
	}

	html.skin-theme-clientpref-night .infobox__image {
		background: #293627;
	}

	html.skin-theme-clientpref-night .infobox__image::after {
		background: #536f4f;
	}

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

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

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

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

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

@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .infobox {
		border-color: #4f7f4b;
		background: #2d3d2b;
		color: #e4eee1;
		box-shadow: 0 0 26px rgba(0, 0, 0, 0.46);
	}

	html.skin-theme-clientpref-os .infobox__title {
		background: #4d8249;
		color: #f4fff1;
		box-shadow: 0 4px 9px rgba(0, 0, 0, 0.26);
	}

	html.skin-theme-clientpref-os .infobox__title::before {
		border-left-color: #2d3d2b;
	}

	html.skin-theme-clientpref-os .infobox__title::after {
		border-right-color: #2d3d2b;
	}

	html.skin-theme-clientpref-os .infobox__panel {
		background: #293627;
	}

	html.skin-theme-clientpref-os .infobox__image {
		background: #293627;
	}

	html.skin-theme-clientpref-os .infobox__image::after {
		background: #536f4f;
	}

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

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

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

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

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