Jump to content

MediaWiki:Common.css: Difference between revisions

From nUSA Wiki
No edit summary
No edit summary
Line 1: Line 1:
/* General infobox styling */
.infobox {
.infobox {
    width: 300px;
border: 1px solid #a2a9b1;
    border: 1px solid #aaa;
color: black;
    border-collapse: collapse;
padding: 0.2em;
    margin: 1em 0;
font-size: 88%;
    background-color: #f9f9f9;
line-height: 1.5em;
    font-family: sans-serif;
border-spacing: 3px;
}
}


.infobox th,
@media screen {
.infobox td {
.infobox {
    padding: 5px 10px;
background-color: #f8f9fa;
     text-align: left;
     }
}
}


.infobox th {
@media (max-width: 640px) {
    background-color: #e5e5e5;
.infobox {
     font-weight: bold;
width: 100%;
}
      
.infobox .nowrap {
white-space: normal;
}
}
}


/* Styling for the image section */
@media (min-width: 640px) {
.infobox-image {
.infobox {
    text-align: center;
/* @noflip */
    padding: 10px;
margin: 0.5em 0 0.5em 1em;
/* @noflip */
float: right;
/* @noflip */
clear: right;
width: 22em;
}
}
}


.infobox-caption {
.infobox-header,
    font-size: 0.8em;
.infobox-label,
    color: #777;
.infobox-above,
    margin-top: 5px;
.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;
}
}


/* Header styling */
.infobox-label,
.infobox-header {
.infobox-data,
    background-color: #f0f0f0;
/* Remove element selector when every .infobox thing is using the standard module/templates  */
    font-weight: bold;
.infobox th,
    text-align: center;
.infobox td {
}
/* @noflip */
 
text-align: left;
/* Label styling */
.infobox-label {
    font-weight: bold;
    padding-right: 10px;
    vertical-align: top;
}
 
/* Data styling */
.infobox-data {
    font-size: 1em;
}
 
/* Styling for the flag and seal images */
.infobox-data img {
    max-width: 100%;
    height: auto;
}
 
/* Navbar (links) styling */
.infobox-navbar {
    border-top: 1px solid #ccc;
    padding-top: 5px;
    text-align: center;
}
}


.navbar a {
/* Remove .infobox when element selectors above are removed */
    text-decoration: none;
.infobox .infobox-above,
    color: #0066cc;
.infobox .infobox-title,
    margin: 0 5px;
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
font-size: 125%;
font-weight: bold;
text-align: center;
}
}


.navbar a:hover {
.infobox-title,
    text-decoration: underline;
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
padding: 0.2em;
}
}


/* The hlist class for inline lists */
/* Remove .infobox when element selectors above are removed */
.mw-parser-output .hlist {
.infobox .infobox-header,
    margin: 0;
.infobox .infobox-subheader,
    padding: 0;
.infobox .infobox-image,
    list-style: none;
.infobox .infobox-full-data,
    display: inline-block;
.infobox .infobox-below {
text-align: center;
}
}


.mw-parser-output .hlist li {
/* Remove .infobox when element selectors above are removed */
    display: inline-block;
.infobox .infobox-navbar {
    margin-right: 10px;
/* @noflip */
text-align: right;
}
}

Revision as of 05:23, 2 January 2025

.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 {
		/* @noflip */
		margin: 0.5em 0 0.5em 1em;
		/* @noflip */
		float: right;
		/* @noflip */
		clear: right;
		width: 22em;
	}
}

.infobox-header,
.infobox-label,
.infobox-above,
.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,
.infobox-data,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
	/* @noflip */
	text-align: left;
}

/* Remove .infobox when element selectors above are removed */
.infobox .infobox-above,
.infobox .infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
	font-size: 125%;
	font-weight: bold;
	text-align: center;
}

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

/* Remove .infobox when element selectors above are removed */
.infobox .infobox-header,
.infobox .infobox-subheader,
.infobox .infobox-image,
.infobox .infobox-full-data,
.infobox .infobox-below {
	text-align: center;
}

/* Remove .infobox when element selectors above are removed */
.infobox .infobox-navbar {
	/* @noflip */
	text-align: right;
}