MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
Hachimitsu (talk | contribs) m (Undo revision 1719 by Hachimitsu (talk)) Tag: Undo |
(Implementing fancy parchment borders and background) |
||
Line 2: | Line 2: | ||
/* Main Page title and tagline are centered*/ | /* Main Page title and tagline are centered*/ | ||
body.page-Main_Page #firstHeading, #contentSub { | body.page-Main_Page #firstHeading, | ||
text-align:center; | #contentSub { | ||
text-align: center; | |||
} | } | ||
Line 13: | Line 14: | ||
image-rendering: pixelated; | image-rendering: pixelated; | ||
} | } | ||
.infobox-profile, .infobox-classrace { | |||
.infobox-profile, | |||
.infobox-classrace { | |||
float: right; | float: right; | ||
max-width: 24em; | max-width: 24em; | ||
} | } | ||
/* Thumbnails and specified images remain pixelated. */ | /* Thumbnails and specified images remain pixelated. */ | ||
.thumb img, .pixelated img { | .thumb img, | ||
.pixelated img { | |||
image-rendering: pixelated; | image-rendering: pixelated; | ||
} | } | ||
/* Styling for superscripts in green on wikitables */ | /* Styling for superscripts in green on wikitables */ | ||
table.wikitable sup { | table.wikitable sup { | ||
color: darkgreen; | |||
} | } | ||
/* Styling for subscripts in red on wikitables */ | /* Styling for subscripts in red on wikitables */ | ||
table.wikitable sub { | table.wikitable sub { | ||
color: red; | |||
} | |||
/* Elin-specific styling */ | |||
.elin-parchment { | |||
border: solid #CB9E6F; | |||
border-width: 10px 17px 18px 11px; | |||
border-image: url('/images/9/9b/Elin_UI_Light_Inner.png') 10 17 18 11 fill round; | |||
} | } | ||
/* Front page styling */ | /* Front page styling */ | ||
.news-box { | .news-box { | ||
border: 1px solid; | border: 1px solid; |
Revision as of 04:02, 21 July 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;
}
/* Elin-specific styling */
.elin-parchment {
border: solid #CB9E6F;
border-width: 10px 17px 18px 11px;
border-image: url('/images/9/9b/Elin_UI_Light_Inner.png') 10 17 18 11 fill round;
}
/* 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;
}