MediaWiki:Common.css

tan lipu Wikipesija
Revision as of 2021-04-23T17:24:13 by Tepo (toki | ante) (Created page with " →‎Infobox template style: .infobox { border: 1px solid #a2a9b1; border-spacing: 3px; background-color: #f8f9fa; color: black; →‎@noflip: margin: 0.5em 0 0.5em 1em...")
(ante) ← Older revision | Latest revision (ante) | Newer revision → (ante)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.

/* Infobox template style */
.infobox {
	border: 1px solid #a2a9b1;
	border-spacing: 3px;
	background-color: #f8f9fa;
	color: black;
	/* @noflip */
	margin: 0.5em 0 0.5em 1em;
	padding: 0.2em;
	/* @noflip */
	float: right;
	/* @noflip */
	clear: right;
	font-size: 88%;
	line-height: 1.5em;
	width: 22em;
}

/* not strictly certain these styles are necessary
 * just replicating the module faithfully
 */
.infobox-subbox {
	padding: 0;
	border: none;
	margin: -3px;
	width: auto;
	min-width: 100%;
	font-size: 100%;
	clear: none;
	float: none;
	background-color: transparent;
}

/* TODO split definitions to appropriate class names when live */
.infobox td, 
.infobox th {
	vertical-align: top;
	/* @noflip */
	text-align: left;
}

/* remove .infobox from below new class names when live */
.infobox .infobox-above,
.infobox caption, /* TODO remove caption line when class is live */
.infobox-title {
	font-size: 125%;
	font-weight: bold;
	text-align: center;
}

.infobox caption, /* TODO remove caption line when class is live */
.infobox-title {
	padding: 0.2em;
}

.infobox .infobox-header,
.infobox .infobox-subheader,
.infobox .infobox-image,
.infobox .infobox-full-data,
.infobox .infobox-below {
	text-align: center;
}

.infobox .infobox-navbar {
	text-align: right;
}