「MediaWiki:Common.css」の版間の差分

提供: KPOP JPWiki
ナビゲーションに移動 検索に移動
編集の要約なし
編集の要約なし
 
(同じ利用者による、間の2版が非表示)
143行目: 143行目:
.kjp-hero-actions a {
.kjp-hero-actions a {
text-align: center;
text-align: center;
}
}
/* ---------- Entity infobox ---------- */
.kjp-entity-infobox {
width: auto;
min-width: 320px;
max-width: 520px;
margin: 1.25rem 0 2rem;
border-collapse: separate;
border-spacing: 0;
border: 1px solid var(--border-color-base, #a2a9b1);
border-radius: 12px;
overflow: hidden;
background: var(--background-color-neutral-subtle, transparent);
}
.kjp-entity-infobox th,
.kjp-entity-infobox td {
padding: 0.55rem 0.8rem;
border: 0;
border-bottom: 1px solid var(--border-color-subtle, #c8ccd1);
vertical-align: top;
}
.kjp-entity-infobox tr:last-child th,
.kjp-entity-infobox tr:last-child td {
border-bottom: 0;
}
.kjp-entity-infobox th {
width: 9rem;
font-weight: 600;
white-space: nowrap;
background: rgba(127, 127, 127, 0.08);
}
.kjp-entity-infobox td {
min-width: 12rem;
}
@media screen and (max-width: 600px) {
.kjp-entity-infobox {
width: 100%;
min-width: 0;
}
.kjp-entity-infobox th {
width: 7rem;
white-space: normal;
}
}
/* ---------- Entity relationship tables ---------- */
table.cargoTable.noMerge {
margin: 0.75rem 0 1.6rem;
border-collapse: separate;
border-spacing: 0;
border: 1px solid var(--border-color-base, #a2a9b1);
border-radius: 10px;
overflow: hidden;
}
table.cargoTable.noMerge th,
table.cargoTable.noMerge td {
padding: 0.5rem 0.7rem;
border-right: 1px solid var(--border-color-subtle, #c8ccd1);
border-bottom: 1px solid var(--border-color-subtle, #c8ccd1);
vertical-align: top;
}
table.cargoTable.noMerge th {
font-weight: 600;
background: rgba(127, 127, 127, 0.08);
}
table.cargoTable.noMerge tr:last-child th,
table.cargoTable.noMerge tr:last-child td {
border-bottom: 0;
}
table.cargoTable.noMerge th:last-child,
table.cargoTable.noMerge td:last-child {
border-right: 0;
}
table.cargoTable.noMerge tbody tr:hover td {
background: rgba(127, 127, 127, 0.05);
}
/* Mobile: wide relationship tables can scroll horizontally */
@media screen and (max-width: 600px) {
table.cargoTable.noMerge {
display: block;
max-width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
}
/* ---------- Entity detail page ---------- */
.kjp-entity-page {
max-width: 1120px;
padding-bottom: 2rem;
}
.kjp-entity-page > h2 {
margin-top: 2rem;
margin-bottom: 0.8rem;
padding-bottom: 0.4rem;
border-bottom: 1px solid var(--border-color-subtle, #c8ccd1);
font-size: 1.35rem;
line-height: 1.3;
}
.kjp-entity-page > h2:first-of-type {
margin-top: 1.5rem;
}
.kjp-entity-page .kjp-entity-infobox {
margin-top: 1rem;
margin-bottom: 2.2rem;
}
.kjp-entity-page table.cargoTable.noMerge {
margin-top: 0.6rem;
margin-bottom: 1.7rem;
}
.kjp-entity-page table.cargoTable.noMerge a {
font-weight: 500;
}
@media screen and (max-width: 600px) {
.kjp-entity-page > h2 {
margin-top: 1.6rem;
font-size: 1.2rem;
}
}
}
}

2026年8月25日 (火) 15:49時点における最新版

/* =========================================================
   KPOP JPWiki - Common styles
   ========================================================= */


/* ---------- Main page ---------- */

.kjp-home {
	max-width: 1180px;
	margin: 0 auto;
	padding-bottom: 2rem;
}


/* ---------- Hero ---------- */

.kjp-hero {
	margin: 0 0 2rem;
	padding: 3rem 2.5rem;
	border: 1px solid var(--border-color-base, #a2a9b1);
	border-radius: 16px;
	background:
		linear-gradient(
			135deg,
			rgba(54, 92, 220, 0.12),
			rgba(172, 72, 207, 0.08)
		);
}

.kjp-hero-title {
	margin-bottom: 0.5rem;
	font-size: clamp(2.2rem, 5vw, 4rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.035em;
}

.kjp-hero-subtitle {
	margin-bottom: 1.6rem;
	font-size: 1.15rem;
	opacity: 0.82;
}

.kjp-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.kjp-hero-actions a {
	display: inline-block;
	padding: 0.65rem 1.1rem;
	border: 1px solid var(--border-color-progressive, #36c);
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
}

.kjp-hero-actions a:first-child {
	background: var(--background-color-progressive, #36c);
	color: var(--color-inverted-fixed, #fff);
}

.kjp-hero-actions a:hover {
	text-decoration: none;
	filter: brightness(1.08);
}


/* ---------- Home grid ---------- */

.kjp-home-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin: 1rem 0 2.5rem;
}

.kjp-home-card {
	box-sizing: border-box;
	padding: 1.25rem;
	border: 1px solid var(--border-color-base, #a2a9b1);
	border-radius: 12px;
	background: var(--background-color-neutral-subtle, transparent);
}

.kjp-home-card h3 {
	margin-top: 0;
	margin-bottom: 0.65rem;
	padding: 0;
	border: 0;
	font-size: 1.15rem;
}

.kjp-home-card p {
	margin-bottom: 0.75rem;
}

.kjp-home-card > a {
	font-weight: 600;
}

.kjp-home-card .mw-editsection {
	display: none;
}


/* ---------- Main page headings ---------- */

.kjp-home > h2 {
	margin-top: 2.3rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--border-color-subtle, #c8ccd1);
}


/* ---------- Responsive ---------- */

@media screen and (max-width: 900px) {
	.kjp-home-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.kjp-hero {
		padding: 2.3rem 1.7rem;
	}
}

@media screen and (max-width: 600px) {
	.kjp-home-grid {
		grid-template-columns: 1fr;
	}

	.kjp-hero {
		padding: 2rem 1.25rem;
		border-radius: 12px;
	}

	.kjp-hero-actions {
		flex-direction: column;
	}

	.kjp-hero-actions a {
		text-align: center;
	}
}

/* ---------- Entity infobox ---------- */

.kjp-entity-infobox {
	width: auto;
	min-width: 320px;
	max-width: 520px;
	margin: 1.25rem 0 2rem;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--border-color-base, #a2a9b1);
	border-radius: 12px;
	overflow: hidden;
	background: var(--background-color-neutral-subtle, transparent);
}

.kjp-entity-infobox th,
.kjp-entity-infobox td {
	padding: 0.55rem 0.8rem;
	border: 0;
	border-bottom: 1px solid var(--border-color-subtle, #c8ccd1);
	vertical-align: top;
}

.kjp-entity-infobox tr:last-child th,
.kjp-entity-infobox tr:last-child td {
	border-bottom: 0;
}

.kjp-entity-infobox th {
	width: 9rem;
	font-weight: 600;
	white-space: nowrap;
	background: rgba(127, 127, 127, 0.08);
}

.kjp-entity-infobox td {
	min-width: 12rem;
}

@media screen and (max-width: 600px) {
	.kjp-entity-infobox {
		width: 100%;
		min-width: 0;
	}

	.kjp-entity-infobox th {
		width: 7rem;
		white-space: normal;
	}
}
/* ---------- Entity relationship tables ---------- */

table.cargoTable.noMerge {
	margin: 0.75rem 0 1.6rem;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--border-color-base, #a2a9b1);
	border-radius: 10px;
	overflow: hidden;
}

table.cargoTable.noMerge th,
table.cargoTable.noMerge td {
	padding: 0.5rem 0.7rem;
	border-right: 1px solid var(--border-color-subtle, #c8ccd1);
	border-bottom: 1px solid var(--border-color-subtle, #c8ccd1);
	vertical-align: top;
}

table.cargoTable.noMerge th {
	font-weight: 600;
	background: rgba(127, 127, 127, 0.08);
}

table.cargoTable.noMerge tr:last-child th,
table.cargoTable.noMerge tr:last-child td {
	border-bottom: 0;
}

table.cargoTable.noMerge th:last-child,
table.cargoTable.noMerge td:last-child {
	border-right: 0;
}

table.cargoTable.noMerge tbody tr:hover td {
	background: rgba(127, 127, 127, 0.05);
}


/* Mobile: wide relationship tables can scroll horizontally */

@media screen and (max-width: 600px) {
	table.cargoTable.noMerge {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* ---------- Entity detail page ---------- */

.kjp-entity-page {
	max-width: 1120px;
	padding-bottom: 2rem;
}

.kjp-entity-page > h2 {
	margin-top: 2rem;
	margin-bottom: 0.8rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--border-color-subtle, #c8ccd1);
	font-size: 1.35rem;
	line-height: 1.3;
}

.kjp-entity-page > h2:first-of-type {
	margin-top: 1.5rem;
}

.kjp-entity-page .kjp-entity-infobox {
	margin-top: 1rem;
	margin-bottom: 2.2rem;
}

.kjp-entity-page table.cargoTable.noMerge {
	margin-top: 0.6rem;
	margin-bottom: 1.7rem;
}

.kjp-entity-page table.cargoTable.noMerge a {
	font-weight: 500;
}

@media screen and (max-width: 600px) {
	.kjp-entity-page > h2 {
		margin-top: 1.6rem;
		font-size: 1.2rem;
	}
}