Jump to content

MediaWiki:Common.css: Difference between revisions

From Bexhill Heritage: Local List
No edit summary
No edit summary
Line 92: Line 92:
.info-box figure[typeof~="mw:File/Thumb"] {
.info-box figure[typeof~="mw:File/Thumb"] {
border: 0;
border: 0;
margin: 10px auto;
margin: 0 auto 5px 0;
}
}
.info-box figure[typeof~="mw:File/Thumb"] figcaption {
.info-box figure[typeof~="mw:File/Thumb"] figcaption {
Line 100: Line 100:
max-height: 300px;
max-height: 300px;
object-fit: cover;
object-fit: cover;
margin: 0;
margin: 5px 0;
}
}
.info-box tr:last-child td {
.info-box tr:last-child td {

Revision as of 01:33, 3 June 2025

/* CSS placed here will be applied to all skins */
:root {
	--background-color-neutral-subtle: #f6f9fd;
}
.vector-main-menu-action-opt-out a, .vector-menu-content #ca-talk, #footer-places-about {
	display: none !important;
}
bdi a[title="Category:All"] {
	font-weight: bold;
}
bdi a[title="Category:Needs help"] {
	font-style: italic;
}
.CategoryTreeTag > .CategoryTreeSection {
	margin: 5px 0;
}
.mainpage-group, .mainpage-box, .info-box {
	background-color: var(--background-color-neutral-subtle);
	border-width: 1px;
	border-color: var(--border-color-subtle);
	border-radius: 10px;
}
@media screen and (prefers-color-scheme: dark) {
	.skin-theme-clientpref-os .mainpage-box img:last-child {
		filter: brightness(0.75);
	}
}
.mainpage-group a img:hover, .mainpage-box a img:hover, .skin-theme-clientpref-night .mainpage-box img:last-child {
	filter: brightness(0.75);
}

.mainpage-group {
	display: flex;
	flex-wrap: wrap;
	text-align: center;
	max-width: 1024px;
	margin: 20px auto;
	border-style: dashed;
}
.mainpage-group > div {
	display: inline-block;
	flex: 1 1 calc((100% /3) - 20px);
	min-width: 200px;
	padding: 20px 0;
}
.mainpage-group > div > div {
	font-weight: bold;
	height: calc(100% - 30px);
	align-content: center;
	margin: 0 5px;
	padding-bottom: 10px;
}
.mainpage-box {
	text-align: center;
	width: 100%;
	padding: 15px;
	margin: 20px auto;
	max-width: 1024px;
	border-style: dashed;
}
.mainpage-box .CategoryTreeSection:has(.CategoryTreeToggle[data-ct-title="All"])::after,
.mainpage-box .CategoryTreeSection:has(.CategoryTreeToggle[data-ct-title="By_Conservation_Area"])::after,
.mainpage-box .CategoryTreeSection:has(.CategoryTreeToggle[data-ct-title="Wartime_structures"])::after {
	content: " ";
	width: 100%;
	height: 1px;
	display: block;
	background: linear-gradient(to right,rgba(128,128,128,0.5),transparent 50%);
	margin: 1em 0;
}
@media (max-width: 639px) {
	.mw-parser-output table.mainpage-box {
		display: table;
	}
	.dynamic-catlist a > img {
		max-width: unset !important;
	}
}
.info-box {
	float: right;
	padding: 10px;
	margin: 0 0 10px 10px !important;
	max-width: 328px;
	text-indent: hanging 1em;
	border-style: solid;
	display: table !important;
}
.info-box tr:first-child {
	text-align: center;
	text-wrap: balance;
}
.info-box figure[typeof~="mw:File/Thumb"] {
	border: 0;
	margin: 0 auto 5px 0;
}
.info-box figure[typeof~="mw:File/Thumb"] figcaption {
	display: none;
}
.info-box figure[typeof~="mw:File/Thumb"] img {
	max-height: 300px;
	object-fit: cover;
	margin: 5px 0;
}
.info-box tr:last-child td {
	text-align: right;
}
.quote-box {
	display: table;
	margin: 25px 0 !important;
	color: #555;
	background-color: #fafbfc;
	border-radius:10px;
}
.page-Main_Page figure[typeof="mw:File"] img {
	background-color: unset !important;
	width: 100%;
	height: auto;
}
.catlinks {
	border-color: var(--border-color-subtle);
}
li.gallerybox div.thumb, .catlink-thumb, .catlinks {
	border-radius: 10px;
}
.mw-category-group {
	break-inside: avoid-column;
}
.CategoryTreePageBullet {
	width: auto;
}

/* [[Category:Admin]] */