Logo Voyage

MediaWiki:Vector-2022.css Voyage Tips and guide

You can check the original Wikivoyage article Here
/* content-subtitles are 84%, but for this fake header we bring it back up to 100% */
#mw-content-subtitle > .ext-wpb-pagebanner {
    font-size:114% !important;
}

/* Vector 2022 adds this wrapper around the indicators,
 * which we want to right float, so it doesn't push the banner and crumbs down */
.vector-body-before-content.vector-body-before-content {
	overflow: initial;
}

/* Hide title on the main page */
.page-Main_Page .firstHeading, .page-Main_Page #contentSub {
  display: none;
}

/* Fix for[[phab:T306744]] */
#firstHeading:empty {
    visibility: visible;
    display: block;
}
.vector-page-titlebar {
    justify-content: space-between;
}
/* End fix for[[phab:T306744]] */

/* Temporary fix for pagebanners not displaying well */
.wpb-topbanner .wpb-banner-image {
	min-height: 180px;
	object-fit: cover;
}
/* End of pagebanner display fix */

/* Sidebar alignment fix for Vector 2022 sidebars */
@media (min-width: 1120px) {
	.vector-column-start, .vector-column-end { /* Reducing nullified space on side columns */
		margin-top: 0.5rem;
		line-height: 0.85rem;
	}
	.client-js.vector-sticky-header-enabled .vector-sticky-pinned-container { /* Right column: Defining hight at which it pins */
		top: 3.5rem;
	} 
	.mw-body-header { /* Giving the titlebar a minimal height to ensure consistency across namespaces */
		min-height: 2.475rem;
	}
}
/* End of sidebar fix */

/* Fix for siteNotice taking up space when dismissed */
@media (min-width: 1120px) {
	#siteNotice { /* Making siteNotice not occupy full width, setting default height to 0 */
		font-size: 0.8em;
		margin: 0 25%;
		position: relative;
		text-align: center;
	}
	.mw-dismissable-notice { /* Transferring siteNotice margin into padding. */
		padding-top: 0.375rem;
		padding-bottom: 0.125rem;
	}
	.mw-dismissable-notice-close { /* Nicer place for the close-button. */
		float: right;
		margin: 0.5rem 1rem 0.5rem 0.5em;
	}
}
/* End of siteNotice fix */

/* Compact footer */
.mw-footer-container { /* Defining footer size and padding */
	padding: 0.25rem 1rem;
	min-height: calc(44px + 1rem);
}
.noprint#footer-icons { /* Ensuring the Wikimedia / MediaWiki icons are in a predictable spot */
	position: absolute;
	bottom: 0.25rem;
	right: 3.25rem;
}
@media (min-width: 1120px) { /* Defining space available for footer text (wide/desktop view) */
	#footer-info {
		max-width: 60%;
	}
}
@media (max-width: 1120px) { /* Defining space available for footer text (narrow/mobile view) */
	#footer-info {
		max-width: 40%;
	}
}
/* End of compact footer */

/* Making (sub)headings in the sidebars bold for easy scanning */
.vector-pinnable-element .vector-menu-heading,
.vector-pinnable-element .vector-menu-subheading {
	font-weight: bold;
}
/* End of bold sidebar headings */

/* Discussion tools: Secondary line italic and smaller for easy scanning */
.ext-discussiontools-init-sidebar-meta {
	display: block;
	padding-bottom: 0.5rem;
	color: #54595d;
	white-space: nowrap;
	font-style: italic;
	font-size: 85%;
}
/* End of Discussion tools scanning tweaks */

/* Vector 2022 font scaling should not affect Mapbanner as much */
#mapbanner-container { /* Smaller font and lineheight */
	font-size: 0.8rem;
	line-height: 1.25rem;
}
#mainpage-maptext {
	padding-top: 0px;
}
#mwAA {
	padding-top: 0px;
} 
/* End of Mapbanner fix */


Discover



Powered by GetYourGuide