MediaWiki:Common.css: Difference between revisions

From Ylvapedia
Jump to navigation Jump to search
(infobox styling basic)
Tag: Reverted
m (Undo revision 1719 by Hachimitsu (talk))
Tag: Undo
(15 intermediate revisions by 2 users not shown)
Line 10: Line 10:
max-width: 100%;
max-width: 100%;
height: 100%;
height: 100%;
object-fit: contain;
image-rendering: pixelated;
image-rendering: pixelated;
}
.infobox-profile, .infobox-classrace {
float: right;
max-width: 24em;
}
}
/* Thumbnails and specified images remain pixelated. */
/* Thumbnails and specified images remain pixelated. */
Line 16: Line 21:
image-rendering: pixelated;
image-rendering: pixelated;
}
}
/* Infobox template style */
/* Styling for superscripts in green on wikitables */
.infobox {
table.wikitable sup {
width: 22em;
    color: darkgreen;
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
float: right;
clear: right;
text-align: left;
font-size: 88%;
line-height: 1.5em;
}
 
.infobox td,
.infobox th {
vertical-align: top;
}
 
.infobox caption {
font-size: larger;
}
}
 
/* Styling for subscripts in red on wikitables */
.infobox.bordered {
table.wikitable sub {
border-collapse: collapse;
    color: red;
}
}


.infobox.bordered td,
/* Front page styling */
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
border: 0;
}


.infobox.sisterproject {
.news-box {
width: 20em;
border: 1px solid;
font-size: 90%;
margin: 0.5em 0;
padding: 0.5em 1em;
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
}


.infobox p {
.news-header {
margin: 0;
border-bottom: 1px solid;
font-size: 20px;
margin: 0.5em 0;
padding: 0.4em;
}
}


.infobox-profile-td {
.news-subheader {
text-align: center;
border-left: 3px solid;
margin: 1.5em 0 0 0;
padding: 0;
padding: 0;
}
padding-left: .5em;
.profile-imageset {
width: 150px;
}
}

Revision as of 17:26, 1 April 2024

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

/* Main Page title and tagline are centered*/
body.page-Main_Page #firstHeading, #contentSub {
	text-align:center;
}

/* Images viewed in Media Viewer are scaled up and remain pixelated. */
.mw-mmv-image img {
	max-width: 100%;
	height: 100%;
	object-fit: contain;
	image-rendering: pixelated;
}
.infobox-profile, .infobox-classrace {
	float: right;
	max-width: 24em;
}
/* Thumbnails and specified images remain pixelated. */
.thumb img, .pixelated img {
	image-rendering: pixelated;
}
/* Styling for superscripts in green on wikitables */
table.wikitable sup {
    color: darkgreen;
}
/* Styling for subscripts in red on wikitables */
table.wikitable sub {
    color: red;
}

/* Front page styling */

.news-box {
	border: 1px solid;
	margin: 0.5em 0;
	padding: 0.5em 1em;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
}

.news-header {
	border-bottom: 1px solid;
	font-size: 20px;
	margin: 0.5em 0;
	padding: 0.4em;
}

.news-subheader {
	border-left: 3px solid;
	margin: 1.5em 0 0 0;
	padding: 0;
	padding-left: .5em;
}