MediaWiki:Common.css

From GTA Portugal Wiki
Revision as of 00:46, 8 March 2024 by RoamPT (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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* Infobox css - imported into common.css/Fandomdesktop.css */
/* colors imported from MediaWiki:Colors.css and MediaWiki:Infobox.css */

/*infobox main structure*/
.portable-infobox {
    border: none;
    color: var(--theme-pi-text);
    background-color: var(--theme-pi-background);
    width: 300px;
}

/*infobox unused?*/
.portable-infobox .pi-header {
    background-color: var(--theme-pi-heading-background);
    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*/
.portable-infobox .pi-image img {
    width: 100%;
    height: 100%;
    background-color: var(--theme-pi-background);
}

/*infobox image caption*/
.portable-infobox .pi-image .pi-caption {
    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;
}

/*infobox label padding*/
.portable-infobox .pi-data.pi-item-spacing {
    padding: 0;
}

/*infobox label text padding*/
.portable-infobox .pi-item.pi-data.pi-item-spacing.pi-border-color .pi-data-label,
.portable-infobox .pi-item.pi-data.pi-item-spacing.pi-border-color .pi-data-value {
    padding: 3px;
    min-width: 33%;
}

/*infobox field text*/
.portable-infobox .pi-font,
.portable-infobox .pi-secondary-font {
    font-size: 12px;
    line-height: 18px;
}

.portable-infobox .pi-data-value:first-child { 
    flex: 1;
}

/* Portable infobox theme - default with header subtitle */
.portable-infobox .pi-item.pi-data.pi-item-spacing.pi-border-color:first-child {
    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 {
    font-size: 10px;
    margin: 0 0 5px 0;
    line-height: 10px;
}

.portable-infobox .pi-item.pi-data.pi-item-spacing.pi-border-color:first-child .pi-data-label {
    display: none;
}