Difference between revisions of "MediaWiki:Common.css"
(hide TOC on printer) |
|||
| (12 intermediate revisions by the same user not shown) | |||
| Line 11: | Line 11: | ||
visibility: hidden; | visibility: hidden; | ||
display: none!important; /* no license required */ | display: none!important; /* no license required */ | ||
| − | } | + | } 4 |
table#mw-htmlform-description td { | table#mw-htmlform-description td { | ||
vertical-align: top; | vertical-align: top; | ||
| + | } | ||
| + | |||
| + | .wikitable, .wikitable table { | ||
| + | border: 1px solid #aaa; | ||
| + | border-collapse: collapse; | ||
| + | font-size: 95%; | ||
| + | margin: 1em 0; | ||
| + | background-color: #f9f9f9; | ||
| + | } | ||
| + | |||
| + | .wikitable table { | ||
| + | margin: 0; | ||
| + | } | ||
| + | |||
| + | .wikitable td, table.wikitable th { | ||
| + | border: 1px solid #aaa; | ||
| + | padding: 4px; | ||
| + | } | ||
| + | |||
| + | .wikitable th { | ||
| + | background-color: #ddd; | ||
| + | } | ||
| + | |||
| + | table.vatop td { | ||
| + | vertical-align: top; | ||
| + | } | ||
| + | |||
| + | input#searchInput { | ||
| + | border: none; | ||
| + | } | ||
| + | |||
| + | div.mw-category-group { /* keep heading (A, B, etc.) and content on category pages together */ | ||
| + | break-inside: avoid; | ||
| + | } | ||
| + | |||
| + | div.mw-category-group h3:first-child { /* first group on category pages */ | ||
| + | margin-top: 0; | ||
| + | } | ||
| + | |||
| + | a.new:link, | ||
| + | a.new:visited { /* link to non-existing page or template */ | ||
| + | color: #c00000!important; | ||
| + | } | ||
| + | |||
| + | /* hide parts of output to printer */ | ||
| + | @media print { | ||
| + | #toc, | ||
| + | .noprint { | ||
| + | display: none !important; | ||
| + | } | ||
} | } | ||
Latest revision as of 14:12, 13 June 2023
/* CSS placed here will be applied to all skins */
#mw-imagepage-content::after {
content: "© All rights reserved."
}
/* for [[Special:Upload]] */
tr.mw-htmlform-field-Licenses,
tr.mw-htmlform-field-Licenses td,
p.mw-upload-editlicenses {
visibility: hidden;
display: none!important; /* no license required */
} 4
table#mw-htmlform-description td {
vertical-align: top;
}
.wikitable, .wikitable table {
border: 1px solid #aaa;
border-collapse: collapse;
font-size: 95%;
margin: 1em 0;
background-color: #f9f9f9;
}
.wikitable table {
margin: 0;
}
.wikitable td, table.wikitable th {
border: 1px solid #aaa;
padding: 4px;
}
.wikitable th {
background-color: #ddd;
}
table.vatop td {
vertical-align: top;
}
input#searchInput {
border: none;
}
div.mw-category-group { /* keep heading (A, B, etc.) and content on category pages together */
break-inside: avoid;
}
div.mw-category-group h3:first-child { /* first group on category pages */
margin-top: 0;
}
a.new:link,
a.new:visited { /* link to non-existing page or template */
color: #c00000!important;
}
/* hide parts of output to printer */
@media print {
#toc,
.noprint {
display: none !important;
}
}