MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "→‎Reset italic styling set by user agent: cite, dfn { font-style: inherit; } →‎Straight quote marks for <q>: q { quotes: '"' '"' "'" "'"; } /* Avoid collision of blo...")
 
No edit summary
Line 41: Line 41:
/* Reduce page jumps by hiding collapsed/dismissed content */
/* Reduce page jumps by hiding collapsed/dismissed content */
.client-js .mw-special-Watchlist #watchlist-message,
.client-js .mw-special-Watchlist #watchlist-message,
.client-js .NavFrame.collapsed .NavContent,
.client-js .collapsible:not( .mw-made-collapsible).collapsed > tbody > tr:not(:first-child),
.client-js .collapsible:not( .mw-made-collapsible).collapsed > tbody > tr:not(:first-child) {
 
/* Hide charinsert base for those not using the gadget */
#editpage-specialchars {
display: none;
display: none;
}
}
Line 49: Line 51:
.mw-rcfilters-enabled .mw-specialpage-summary {
.mw-rcfilters-enabled .mw-specialpage-summary {
margin-top: 1em;
margin-top: 1em;
}
/* Hide charinsert base for those not using the gadget */
#editpage-specialchars {
display: none;
}
}


/* Highlight linked elements (such as clicked references) in blue */
/* Highlight linked elements (such as clicked references) in blue */
body.action-info .mw-body-content :target,
.citation:target {
.citation:target {
background-color: #def;  /* Fallback */
background-color: rgba(0, 127, 255, 0.133);
background-color: rgba(0, 127, 255, 0.133);
}
}
Line 340: Line 335:
}
}


/* TODO split definitions to appropriate class names when live */
.infobox-header,
.infobox td,  
.infobox-label,
.infobox th {
.infobox-above,
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
/* Remove element declaration when both a) infobox3cols is migrated and
* b) when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
vertical-align: top;
vertical-align: top;
}
.infobox-label,
.infobox-data,
/* Remove element declaration when both a) infobox3cols is migrated and
* b) when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
/* @noflip */
/* @noflip */
text-align: left;
text-align: left;
}
}


/* remove .infobox from below new class names when live */
/* remove .infobox when th, td above are removed */
.infobox .infobox-above,
.infobox .infobox-above,
.infobox caption, /* TODO remove caption line when class is live */
.infobox .infobox-title,
.infobox-title {
/* Remove element declaration when both a) infobox3cols is migrated and
* b) when every .infobox thing is using the standard module/templates  */
.infobox caption {
font-size: 125%;
font-size: 125%;
font-weight: bold;
font-weight: bold;
Line 357: Line 372:
}
}


.infobox caption, /* TODO remove caption line when class is live */
.infobox-title,
.infobox-title {
/* Remove element declaration when both a) infobox3cols is migrated and
* b) when every .infobox thing is using the standard module/templates  */
.infobox caption {
padding: 0.2em;
padding: 0.2em;
}
}


/* remove .infobox when th, td above are removed */
.infobox .infobox-header,
.infobox .infobox-header,
.infobox .infobox-subheader,
.infobox .infobox-subheader,
Line 370: Line 388:
}
}


/* remove .infobox when th, td above are removed */
.infobox .infobox-navbar {
.infobox .infobox-navbar {
/* @noflip */
text-align: right;
text-align: right;
}
}
Line 388: Line 408:
.infobox.bordered .borderless th {
.infobox.bordered .borderless th {
border: 0;
border: 0;
}
.infobox.sisterproject {
width: 20em;
font-size: 90%;
}
}


Line 526: Line 541:


/* For old WikiProject banners inside banner shells. */
/* For old WikiProject banners inside banner shells. */
.mbox-inside .standard-talk,
.mbox-inside .standard-talk {
.messagebox.nested-talk {
border: 1px solid #c0c090;
border: 1px solid #c0c090;
background-color: #f8eaba;
background-color: #f8eaba;
Line 871: Line 885:
padding: 0.25em 0.9em;
padding: 0.25em 0.9em;
box-sizing: border-box;
box-sizing: border-box;
}
/* Use default color for partial block fmbox banner per [[Special:PermaLink/1028105567#pblock-style]] */
.mw-contributions-blocked-notice-partial .mw-warning-with-logexcerpt {
border-color: #fc3;
background-color: #fef6e7;
}
}


Line 941: Line 961:
.compact-ambox .hide-when-compact {
.compact-ambox .hide-when-compact {
display: none;
display: none;
}
/* Hide (formatting) elements from screen, but not from screenreaders */
.visualhide {
position: absolute;
left: -10000px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
}
}


Line 958: Line 968:
.IPA a:visited {
.IPA a:visited {
text-decoration: none !important;
text-decoration: none !important;
}
/* [[Wikipedia:NavFrame]].
  Entirely deprecated. Slated for removal.
  Use mw-collapsible. */
div.NavFrame {
padding: 4px;
border: 1px solid #a2a9b1;
text-align: center;
font-size: 95%;
}
div.NavFrame + div.NavFrame {
border-top-style: none;
border-top-style: hidden;
}
div.NavFrame div.NavHead {
line-height: 1.6em;
font-weight: bold;
background-color: #ccf;
position: relative;
}
div.NavFrame p,
div.NavFrame div.NavContent,
div.NavFrame div.NavContent p {
font-size: 100%;
}
a.NavToggle {
position: absolute;
top: 0;
/* @noflip */
right: 3px;
font-weight: normal;
font-size: 90%;
}
/* Hatnotes and disambiguation notices */
.hatnote {
font-style: italic;
}
.hatnote i {
font-style: normal;
}
div.hatnote {
/* @noflip */
padding-left: 1.6em;
margin-bottom: 0.5em;
}
div.hatnote + div.hatnote {
margin-top: -0.5em;
}
}


Line 1,021: Line 975:
.nowraplinks a {
.nowraplinks a {
white-space: nowrap;
white-space: nowrap;
}
.nowrap pre {
white-space: pre;
}
}


Line 1,158: Line 1,108:
bottom: 0;
bottom: 0;
left: 0;
left: 0;
}
/* Force imgs in galleries to have borders by wrapping them in class=bordered-images */
.bordered-images img {
border: solid #ddd 1px;
}
}


Line 1,197: Line 1,142:
.flaggedrevs_stable_synced,
.flaggedrevs_stable_synced,
/* "Temporary" to remove links in sidebar T255381 */
/* "Temporary" to remove links in sidebar T255381 */
#t-upload {
#t-upload,
/* Hide broken download box on Special:Book pending T285400 */
.mw-special-Book #coll-downloadbox {
display: none;
display: none;
}
}

Navigation menu