MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
m Why is it ORANGE!!!! |
||
| (46 intermediate revisions by 2 users not shown) | |||
| Line 28: | Line 28: | ||
div.mainpage-series { | div.mainpage-series { | ||
border: solid | border: 1px solid #a2a9b1; | ||
text-align: center; | text-align: center; | ||
width: 100%; | width: 100%; | ||
margin-bottom: 0.5em; | margin-bottom: 0.5em; | ||
display: inline-block; | display: inline-block; | ||
border-radius: 5px; | |||
} | } | ||
| Line 38: | Line 39: | ||
div.mainpage-sidebar { | div.mainpage-sidebar { | ||
border: solid | border: 1px solid #a2a9b1; | ||
text-align: left; | text-align: left; | ||
display: inline-block; | display: inline-block; | ||
| Line 44: | Line 45: | ||
margin-left: 0.5em; | margin-left: 0.5em; | ||
margin-bottom: 0.5em; | margin-bottom: 0.5em; | ||
padding-left 0.5em; | |||
margin-top: 0px; | |||
border-radius: 5px; | |||
} | } | ||
| Line 50: | Line 54: | ||
font-size: 1.5em; | font-size: 1.5em; | ||
padding: 10px; | |||
border-radius: 5px; | |||
margin: 8px 8px 0 8px; | |||
} | |||
div.sidebar-title { | |||
padding: 0.25em; | |||
padding: 8px; | padding: 8px; | ||
border-radius: 5px; | |||
margin: 8px 8px 0 8px; | |||
} | } | ||
| Line 57: | Line 73: | ||
text-align: center; | text-align: center; | ||
margin: 4px 16px 4px 16px; | |||
} | } | ||
| Line 66: | Line 83: | ||
} | } | ||
ul.mainpage-sidebar {} | ul.mainpage-sidebar { | ||
list-style: none; | |||
margin: 4px 16px 4px 16px; | |||
} | |||
li > ul.mainpage-sidebar { | li > ul.mainpage-sidebar { | ||
} | } | ||
li | li:nth-child(odd) > ul.mainpage-sidebar { | ||
background: lightpink; | background: lightpink; | ||
| Line 138: | Line 159: | ||
color: white; | color: white; | ||
background: | background: #ED6D00; | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
/* | |||
* This is the CSS common to all desktop skins on en.Wikipedia. | |||
* Styling inside .mw-parser-output should generally use TemplateStyles. | |||
*/ | |||
/* | |||
* BELOW HERE THERE BE SOONTOBE TEMPLATESTYLES THINGS; | |||
* SEE [[MediaWiki talk:Common.css/to do]] | |||
* CSS is separated by component (which is why media queries are not joined) | |||
*/ | |||
/* Infoboxes */ | |||
.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; | |||
} | |||
/* Normal font styling for wikitable row headers with scope="row" tag */ | |||
.wikitable.plainrowheaders th[scope=row], | |||
.wikitable.plainrowheaders th[scope=rowgroup] { | |||
font-weight: normal; | |||
/* @noflip */ | |||
text-align: left; | |||
} | |||
/* Remove underlines from certain links */ | |||
.nounderlines a, | |||
.IPA a:link, | |||
.IPA a:visited { | |||
text-decoration: none !important; | |||
} | |||
/* Prevent line breaks in silly places where desired (nowrap) | |||
and links when we don't want them to (nowraplinks a) */ | |||
.nowrap, | |||
.nowraplinks a { | |||
white-space: nowrap; | |||
} | |||
/* But allow wrapping where desired: */ | |||
.wrap, | |||
.wraplinks a { | |||
white-space: normal; | |||
} | |||
/* texhtml class for inline math (based on generic times-serif class) */ | |||
/* remove spans when this is TemplateStyled */ | |||
span.texhtml { | |||
font-family: "Nimbus Roman No9 L", "Times New Roman", Times, serif; | |||
font-size: 118%; | |||
line-height: 1; | |||
/* Force tabular and lining display for texhtml */ | |||
font-variant-numeric: lining-nums tabular-nums; | |||
font-kerning: none; | |||
} | |||
span.texhtml span.texhtml { | |||
font-size: 100%; | |||
} | |||
@media (min-width: 640px) { | |||
span.texhtml { | |||
white-space: nowrap; | |||
} | |||
} | |||
/* Prevent flags in tables from collapsing: Fix for T116318 | |||
* TODO: Remove when [[phab:T368469]] merges [[phab:T367463]] for the other skins | |||
*/ | |||
@media (max-width: 640px) { | |||
.flagicon a > img, | |||
.flagicon noscript > img { | |||
max-width: none !important; | |||
} | |||
} | |||
@media screen { | |||
.nochecker .gallerybox .thumb img { | |||
background-image: none; | |||
} | |||
} | |||
/* | |||
* Put anything you mean to be a sitewide addition above the TemplateStyles | |||
* comment above. | |||
*/ | |||
Latest revision as of 03:47, 12 May 2025
/* CSS placed here will be applied to all skins */
div.mainpage-top-wrapper {
width: 100%;
display: inline-block;
margin: 0px;
padding: 0px;
}
div.mainpage-series-wrapper {
width: 70%;
float:left;
margin: 0px;
}
div.mainpage-sidebar-wrapper {
width: 30%;
margin-left: 70%;
}
div.mainpage-series {
border: 1px solid #a2a9b1;
text-align: center;
width: 100%;
margin-bottom: 0.5em;
display: inline-block;
border-radius: 5px;
}
div.mainpage-sidebar {
border: 1px solid #a2a9b1;
text-align: left;
display: inline-block;
width: calc(100% - 0.5em);
margin-left: 0.5em;
margin-bottom: 0.5em;
padding-left 0.5em;
margin-top: 0px;
border-radius: 5px;
}
div.mainpage-series-title {
font-size: 1.5em;
padding: 10px;
border-radius: 5px;
margin: 8px 8px 0 8px;
}
div.sidebar-title {
padding: 0.25em;
padding: 8px;
border-radius: 5px;
margin: 8px 8px 0 8px;
}
ul.mainpage-series {
text-align: center;
margin: 4px 16px 4px 16px;
}
ul.mainpage-series > li {
display: inline;
}
ul.mainpage-sidebar {
list-style: none;
margin: 4px 16px 4px 16px;
}
li > ul.mainpage-sidebar {
}
li:nth-child(odd) > ul.mainpage-sidebar {
background: lightpink;
}
a.cat-series {
color:white;
}
.cat-ll {
background: #ff1493;
font-weight: bold;
color: white;
}
.cat-llss {
color: white;
background: #00bfff;
font-weight: bold;
}
.cat-lln {
color: white;
background: #fcc800;
font-weight: bold;
}
.cat-llst {
color: white;
background: #9932cc;
font-weight: bold;
}
.cat-llll {
color: white;
background: #ffc0cb;
font-weight: bold;
}
.cat-llsim {
color: white;
background: #d70035;
font-weight: bold;
}
.cat-gny {
color: white;
background: #008b8b;
font-weight: bold;
}
.cat-llbb {
color: white;
background: #ED6D00;
font-weight: bold;
}
/*
* This is the CSS common to all desktop skins on en.Wikipedia.
* Styling inside .mw-parser-output should generally use TemplateStyles.
*/
/*
* BELOW HERE THERE BE SOONTOBE TEMPLATESTYLES THINGS;
* SEE [[MediaWiki talk:Common.css/to do]]
* CSS is separated by component (which is why media queries are not joined)
*/
/* Infoboxes */
.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;
}
/* Normal font styling for wikitable row headers with scope="row" tag */
.wikitable.plainrowheaders th[scope=row],
.wikitable.plainrowheaders th[scope=rowgroup] {
font-weight: normal;
/* @noflip */
text-align: left;
}
/* Remove underlines from certain links */
.nounderlines a,
.IPA a:link,
.IPA a:visited {
text-decoration: none !important;
}
/* Prevent line breaks in silly places where desired (nowrap)
and links when we don't want them to (nowraplinks a) */
.nowrap,
.nowraplinks a {
white-space: nowrap;
}
/* But allow wrapping where desired: */
.wrap,
.wraplinks a {
white-space: normal;
}
/* texhtml class for inline math (based on generic times-serif class) */
/* remove spans when this is TemplateStyled */
span.texhtml {
font-family: "Nimbus Roman No9 L", "Times New Roman", Times, serif;
font-size: 118%;
line-height: 1;
/* Force tabular and lining display for texhtml */
font-variant-numeric: lining-nums tabular-nums;
font-kerning: none;
}
span.texhtml span.texhtml {
font-size: 100%;
}
@media (min-width: 640px) {
span.texhtml {
white-space: nowrap;
}
}
/* Prevent flags in tables from collapsing: Fix for T116318
* TODO: Remove when [[phab:T368469]] merges [[phab:T367463]] for the other skins
*/
@media (max-width: 640px) {
.flagicon a > img,
.flagicon noscript > img {
max-width: none !important;
}
}
@media screen {
.nochecker .gallerybox .thumb img {
background-image: none;
}
}
/*
* Put anything you mean to be a sitewide addition above the TemplateStyles
* comment above.
*/