MediaWiki:Common.css: Difference between revisions

From GTA Portugal Wiki
No edit summary
No edit summary
Line 1: Line 1:
/* Infobox css - imported into common.css/Fandomdesktop.css */
/**
/* colors imported from MediaWiki:Colors.css and MediaWiki:Infobox.css */
* Common TemplateStyles used by [[Template:Extension]], [[Template:Skin]],
 
* [[Template:Tool]], etc.
/*infobox main structure*/
*/
.portable-infobox {
.infobox {
    border: none;
box-sizing: border-box;
    color: var(--theme-pi-text);
border: 2px solid #a2a9b1;
    background-color: var(--theme-pi-background);
width: 280px;
    width: 300px;
border-collapse: collapse;
border-spacing: 0;
background-color: white;
color: #333;
/* these are overriden by .infobox-rtl on the templates of interest */
/* @noflip */
clear: right;
/* @noflip */
float: right;
/* @noflip */
margin: 0 0 0.5em 0.5em;
}
}


/*infobox unused?*/
html.skin-night-mode-clientpref-1 .infobox {
.portable-infobox .pi-header {
background-color: inherit;
    background-color: var(--theme-pi-heading-background);
color: inherit;
    color: var(--theme-pi-heading-text);
    text-align: center;
border-bottom: 1px solid var(--theme-pi-border)!important;
border-top: 1px solid var(--theme-pi-border)!important;
}
}


/*infobox image*/
.infobox-rtl {
.portable-infobox .pi-image img {
/* @noflip */
    width: 100%;
clear: left;
    height: 100%;
/* @noflip */
    background-color: var(--theme-pi-background);
float: left;
/* @noflip */
margin: 0 0.5em 0.5em 0;
}
}


/*infobox image caption*/
.infobox th {
.portable-infobox .pi-image .pi-caption {
/* @noflip */
    background-color: var(--theme-pi-background);
    color: var(--theme-pi-text);
    font-size: 12px;
    line-height: 16px;
}
 
/*infobox borders between cells*/
.portable-infobox .pi-border-color {
    border-color: var(--theme-pi-border);
}
 
/*infobox labels*/
.portable-infobox .pi-secondary-background,
.portable-infobox .pi-group .pi-secondary-background,
.portable-infobox .pi-image,
.portable-infobox .pi-data .pi-data-label {
    background-color: var(--theme-pi-heading-background);
    color: var(--theme-pi-heading-text);
}
 
/*infobox group sub-group label*/
.portable-infobox .pi-horizontal-group-item.pi-data-label {
    background-color: var(--theme-pi-border);
color: var(--theme-page-text-color);
padding: 5px;
   
}
/*infobox group sub-group field*/
.portable-infobox .pi-horizontal-group-item.pi-data-value {
    padding: 3px 9px 3px 9px;
text-align: left;
text-align: left;
padding: 0.2em 0.5em;
vertical-align: top;
}
}


/*infobox label padding*/
.infobox-rtl th {
.portable-infobox .pi-data.pi-item-spacing {
/* @noflip */
    padding: 0;
text-align: right;
}
}


/*infobox label text padding*/
@media (max-width: 719px) {
.portable-infobox .pi-item.pi-data.pi-item-spacing.pi-border-color .pi-data-label,
/* high specificity to ensure specific infoboxes won't override these
.portable-infobox .pi-item.pi-data.pi-item-spacing.pi-border-color .pi-data-value {
* properties with their own tstyles inadvertently */
    padding: 3px;
body.mediawiki .infobox {
    min-width: 33%;
float: none;
clear: both;
width: 100%;
margin: 0 0 .5em 0;
}
}
}


/*infobox field text*/
.infobox td {
.portable-infobox .pi-font,
border: none;
.portable-infobox .pi-secondary-font {
padding: 0.2em 0.5em;
    font-size: 12px;
vertical-align: top;
    line-height: 18px;
}
}


.portable-infobox .pi-data-value:first-child {
.infobox-header {
    flex: 1;
background-color: #a2a9b1;
color: #FFF;
text-align: left;
}
}


/* Portable infobox theme - default with header subtitle */
.infobox-header a {
.portable-infobox .pi-item.pi-data.pi-item-spacing.pi-border-color:first-child {
color: #FFF;
    margin: 0px 0px -4px 0px;
    padding: 5px 0 2px 0;
    border: none;
}
}


.portable-infobox .pi-item.pi-data.pi-item-spacing.pi-border-color:first-child .pi-data-value {
.infobox-header td,
    font-size: 10px;
.infobox-header th {
    margin: 0 0 5px 0;
padding: 0.5em 0.5em;
    line-height: 10px;
}
}


.portable-infobox .pi-item.pi-data.pi-item-spacing.pi-border-color:first-child .pi-data-label {
.infobox-header img {
    display: none;
padding: 0 0.2em 0 0.5em;
}
}

Revision as of 00:48, 8 March 2024

/**
 * Common TemplateStyles used by [[Template:Extension]], [[Template:Skin]],
 * [[Template:Tool]], etc.
 */
.infobox {
	box-sizing: border-box;
	border: 2px solid #a2a9b1;
	width: 280px;
	border-collapse: collapse;
	border-spacing: 0;
	background-color: white;
	color: #333;
	/* these are overriden by .infobox-rtl on the templates of interest */
	/* @noflip */
	clear: right;
	/* @noflip */
	float: right;
	/* @noflip */
	margin: 0 0 0.5em 0.5em;
}

html.skin-night-mode-clientpref-1 .infobox {
	background-color: inherit;
	color: inherit;
}

.infobox-rtl {
	/* @noflip */
	clear: left;
	/* @noflip */
	float: left;
	/* @noflip */
	margin: 0 0.5em 0.5em 0;
}

.infobox th {
	/* @noflip */
	text-align: left;
	padding: 0.2em 0.5em;
	vertical-align: top;
}

.infobox-rtl th {
	/* @noflip */
	text-align: right;
}

@media (max-width: 719px) {
	/* high specificity to ensure specific infoboxes won't override these
	 * properties with their own tstyles inadvertently */
	body.mediawiki .infobox {
		float: none;
		clear: both;
		width: 100%;
		margin: 0 0 .5em 0;
	}
}

.infobox td {
	border: none;
	padding: 0.2em 0.5em;
	vertical-align: top;
}

.infobox-header {
	background-color: #a2a9b1;
	color: #FFF;
	text-align: left;
}

.infobox-header a {
	color: #FFF;
}

.infobox-header td,
.infobox-header th {
	padding: 0.5em 0.5em;
}

.infobox-header img {
	padding: 0 0.2em 0 0.5em;
}