Jump to content

MediaWiki:Common.css

From Freelancipedia
Revision as of 00:31, 11 August 2025 by EkramHossen (talk | contribs)

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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
/* Infoboxes */
.infobox {
	border: 1px solid #a2a9b1;
	color: black;
	padding: 0.2em;
	font-size: 88%;
	line-height: 1.5em;
	border-spacing: 3px;
}

@media screen {
	.infobox {
		background-color: #f8f9fa;
	}
}

@media (max-width: 640px) {
	.infobox {
		width: 100%;
	}
	.infobox .nowrap {
		white-space: normal;
	}
}

@media (min-width: 640px) {
	.infobox {
		margin: 0.5em 0 0.5em 1em;
		float: right;
		clear: right;
		width: 22em;
	}
}

.infobox-header,
.infobox-label,
.infobox-above,
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
.infobox th,
.infobox td {
	vertical-align: top;
}

.infobox-label,
.infobox-data,
.infobox th,
.infobox td {
	text-align: left;
}

.infobox .infobox-above,
.infobox .infobox-title,
.infobox caption {
	font-size: 125%;
	font-weight: bold;
	text-align: center;
}

.infobox-title,
.infobox caption {
	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;
}

/* Infoboxes end */

body {
  background-color: #fff;

}

div.main-box {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  background: #f9f9f9;
}




/* Promo banner styled like Featured Creators box */
#promo-banner {
    border: 1px solid #a2a9b1;
    background-color: #cef2e0;
    display: inline-block; /* Not full width */
    padding: 8px 15px;
    font-weight: bold;
    margin: 10px auto;
    border-radius: 3px;
}

/* Center the box */
#promo-banner-container {
    text-align: center;
    margin-bottom: 10px;
}

/* Link styles */
#promo-banner a {
    color: #0645ad;
    text-decoration: none;
}

#promo-banner a:hover {
    text-decoration: underline;
}