Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
mNo edit summary
Tag: Reverted
white-text class that adapts based on the theme
 
(56 intermediate revisions by 4 users not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */


th, td {
.main-page-mccwiki {
  border: 1px solid #808080;
font-family: 'Nunito', sans-serif;
text-transform: uppercase;
font-size: 1.5em;
text-align:center;
color:white;
margin-top: 0.5em;
margin-bottom: 0.5em;
background-color: #700008;
}
 
.title-image img {
    max-width: 1000px;
    height: auto;
    width: 100%;
}
 
.tradeable-display {
display: flex;
flex-wrap: wrap;
}
 
.tradeable-display > div {
width: 25%;
}
 
.wikitable th, .wikitable td {
   text-align: center;
   text-align: center;
}
}


/* Infobox template style */
.pixelated, .pi-image-thumbnail {
.infobox {
image-rendering: pixelated;
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;
}
}


.infobox-header,
.wikitable .afix {
.infobox-label,
width: 150px;
.infobox-above,
image-rendering: pixelated;
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
vertical-align: top;
}
}


.infobox-label,
.image-thumbnail img, .afix img, .infobox-image img {
.infobox-data,
width: 100%;
/* Remove element selector when every .infobox thing is using the standard module/templates  */
height: auto;
.infobox th,
.infobox td {
/* @noflip */
text-align: left;
}
}


/* Remove .infobox when element selectors above are removed */
.pi-section-navigation .pi-section-tab,.pi-media-collection .pi-tab-link {
.infobox .infobox-above,
border-bottom-left-radius: var(--border-radius--medium);
.infobox .infobox-title,
border-bottom-right-radius: var(--border-radius--medium);
/* Remove element selector when every .infobox thing is using the standard module/templates  */
}
.infobox caption {
 
font-size: 125%;
.pi-section-navigation .pi-section-tab.pi-section-active,.pi-section-navigation .pi-section-tab.current,.pi-media-collection .pi-tab-link.current {
font-weight: bold;
border-bottom-width: 2px;
}
 
.portable-infobox .pi-section-navigation,.portable-infobox .pi-media-collection-tabs {
padding: 5px 0;
}
 
.pi-title {
text-align: center;
text-align: center;
}
}


.infobox-title,
.gamepasstable td {
/* Remove element selector when every .infobox thing is using the standard module/templates */
  width: 120px;
.infobox caption {
padding: 0.2em;
}
}


/* Remove .infobox when element selectors above are removed */
.citizen-typeahead__item-md .citizen-typeahead__thumbnail {
.infobox .infobox-header,
    background-color: inherit;
.infobox .infobox-subheader,
}
.infobox .infobox-image,
 
.infobox .infobox-full-data,
.citizen-footer__ad{
.infobox .infobox-below {
margin-left: auto;
text-align: center;
}
 
.citizen-footer__ad img {
height: 10rem;
}
 
@media only screen and (max-width: 790px) {
.citizen-footer__ad {
height: 9rem;
}
}
 
@media only screen and (max-width: 760px) {
.citizen-footer__ad {
margin-left: inherit;
}
.tradeable-display > div {
width: 50%;
}
}
 
/* Limit Template:Badge outer card width to 750px */
@media only screen and (min-width: 750px) {
.badge-card {
width: 750px;
}
}
 
/* Increase width of Vendor infobox labels */
.portable-infobox.pi-type-vendor .pi-data-label {
flex-basis: 100px;
}
}


/* Remove .infobox when element selectors above are removed */
/* white-text class that adapts based on the theme  */
.infobox .infobox-navbar {
.skin-citizen-dark .white-text {
/* @noflip */
    color: white
text-align: right;
}
.skin-citizen-light .white-text {
    color: black
}
}

Latest revision as of 11:20, 26 August 2025

/* CSS placed here will be applied to all skins */

.main-page-mccwiki {
	font-family: 'Nunito', sans-serif;
	text-transform: uppercase;
	font-size: 1.5em;
	text-align:center;
	color:white;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	background-color: #700008;
}

.title-image img {
    max-width: 1000px;
    height: auto;
    width: 100%;
}

.tradeable-display {
	display: flex;
	flex-wrap: wrap;
}

.tradeable-display > div {
	width: 25%;
}

.wikitable th, .wikitable td {
  text-align: center;
}

.pixelated, .pi-image-thumbnail {
	image-rendering: pixelated;
}

.wikitable .afix {
	width: 150px;
	image-rendering: pixelated;
}

.image-thumbnail img, .afix img, .infobox-image img {
	width: 100%;
	height: auto;
}

.pi-section-navigation .pi-section-tab,.pi-media-collection .pi-tab-link {
	border-bottom-left-radius: var(--border-radius--medium);
	border-bottom-right-radius: var(--border-radius--medium);
}

.pi-section-navigation .pi-section-tab.pi-section-active,.pi-section-navigation .pi-section-tab.current,.pi-media-collection .pi-tab-link.current {
	border-bottom-width: 2px;
}

.portable-infobox .pi-section-navigation,.portable-infobox .pi-media-collection-tabs {
	padding: 5px 0;
}

.pi-title {
	text-align: center;
}

.gamepasstable td {
 width: 120px;
}

.citizen-typeahead__item-md .citizen-typeahead__thumbnail {
    background-color: inherit;
}

.citizen-footer__ad{
	margin-left: auto;
}

.citizen-footer__ad img {
	height: 10rem;
}

@media only screen and (max-width: 790px) {
	.citizen-footer__ad {
		height: 9rem;
	}
}

@media only screen and (max-width: 760px) {
	.citizen-footer__ad {
		margin-left: inherit;
	}
	
	.tradeable-display > div {
	width: 50%;
}
}

/* Limit Template:Badge outer card width to 750px */
@media only screen and (min-width: 750px) {
	.badge-card {
		width: 750px;
	}
}

/* Increase width of Vendor infobox labels */
.portable-infobox.pi-type-vendor .pi-data-label {
	flex-basis: 100px;
}

/* white-text class that adapts based on the theme  */
.skin-citizen-dark .white-text {
    color: white
}
.skin-citizen-light .white-text {
    color: black
}