MediaWiki:Common.css: Difference between revisions
Appearance
Content deleted Content added
Replaced content with "→UNHIDE FOR LOGGED IN USERS: →Restore Login/User Area: #vector-user-links, #p-personal { display: flex !important; } #pt-userpage, #pt-mytalk, #pt-preferences, #pt-watchlist, #pt-mycontris, #pt-logout { display: block !important; } →Restore Tools & Tabs: #p-tb, #vector-page-tools, #vector-page-tools-dropdown, .vector-p-tb, #ca-viewsource, #ca-history, #ca-talk { display: block !important; } →Restore Categories: #catlinks, .catlinks, ...." Tags: Replaced Reverted |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ |
|||
/* UNHIDE FOR LOGGED IN USERS */ |
|||
/* ======================================================= */ |
|||
/* Restore Login/User Area */ |
|||
/* 1. STANDARD MEDIAWIKI STYLING (Fonts, Quotes, etc.) */ |
|||
#vector-user-links, |
|||
/* ======================================================= */ |
|||
#p-personal { |
|||
cite, dfn { font-style: inherit; } |
|||
display: flex !important; |
|||
q { quotes: '"' '"' "'" "'"; } |
|||
blockquote { |
|||
overflow: hidden; |
|||
margin: 1em 0; |
|||
padding: 0 40px; |
|||
} |
} |
||
#pt-userpage, #pt-mytalk, #pt-preferences, |
|||
small { font-size: 85%; } |
|||
#pt-watchlist, #pt-mycontris, #pt-logout { |
|||
.mw-body-content sub, .mw-body-content sup { font-size: 80%; } |
|||
display: block !important; |
|||
.ns-talk .mw-body-content dd { margin-top: 0.4em; margin-bottom: 0.4em; } |
|||
/* Collapsible elements logic */ |
|||
.client-js .collapsible:not( .mw-made-collapsible).collapsed > tbody > tr:not(:first-child), |
|||
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > p, |
|||
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > table, |
|||
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > thead + tbody, |
|||
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) tr:not( :first-child ), |
|||
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) .mw-collapsible-content, |
|||
#editpage-specialchars { |
|||
display: none; |
|||
} |
|||
.references { margin-bottom: 0.5em; } |
|||
/* Cite Link Styling */ |
|||
span[ rel="mw:referencedBy" ] { counter-reset: mw-ref-linkback 0; } |
|||
span[ rel='mw:referencedBy' ] > a::before { |
|||
content: counter( mw-ref-linkback, lower-alpha ); |
|||
font-size: 80%; font-weight: bold; font-style: italic; |
|||
} |
|||
a[ rel="mw:referencedBy" ]::before { font-weight: bold; content: "^"; } |
|||
span[ rel="mw:referencedBy" ]::before { content: "^ "; } |
|||
.mw-parser-output .mw-collapsible-toggle:not(.mw-ui-button) { |
|||
font-weight: normal; padding-right: 0.2em; padding-left: 0.2em; |
|||
} |
|||
.mw-collapsible-leftside-toggle .mw-collapsible-toggle { float: left; } |
|||
.wikitable td ul, .wikitable td ol, .wikitable td dl { text-align: left; } |
|||
/* PDF Icons */ |
|||
.mw-parser-output a[href$=".pdf"].external, |
|||
.mw-parser-output a[href*=".pdf?"].external, |
|||
.mw-parser-output a[href*=".pdf#"].external, |
|||
.mw-parser-output a[href$=".PDF"].external, |
|||
.mw-parser-output a[href*=".PDF?"].external, |
|||
.mw-parser-output a[href*=".PDF#"].external { |
|||
background: url("//upload.wikimedia.org/wikipedia/commons/4/4d/Icon_pdf_file.png") no-repeat right; |
|||
padding: 8px 18px 8px 0; |
|||
} |
|||
/* Warnings and Notices */ |
|||
.mw-warning-with-logexcerpt.mw-warning-with-logexcerpt.mw-warning-with-logexcerpt, |
|||
div.mw-lag-warn-high, div.mw-cascadeprotectedwarning, div#mw-protect-cascadeon { |
|||
clear: both; margin: 0.2em 0; border: 1px solid #bb7070; |
|||
background-color: var(--background-color-error-subtle, #ffdbdb); |
|||
padding: 0.25em 0.9em; box-sizing: border-box; |
|||
} |
|||
.mw-contributions-blocked-notice-partial .mw-warning-with-logexcerpt.mw-warning-with-logexcerpt { |
|||
border-color: #fc3; background-color: var(--background-color-warning-subtle, #fef6e7); |
|||
} |
|||
@media (min-width: 640px) { |
|||
figure[typeof~='mw:File/Thumb'], figure[typeof~='mw:File/Frame'], .thumbinner { min-width: 100px; } |
|||
} |
|||
#mw-subcategories, #mw-pages, #mw-category-media, #filehistory, #wikiPreview, #wikiDiff { clear: both; } |
|||
/* Hide Permission Groups */ |
|||
.checkuser-show, .sysop-show, .abusefilter-show, .abusefilter-helper-show, |
|||
.patroller-show, .templateeditor-show, .extendedmover-show, .extendedconfirmed-show, |
|||
.autoconfirmed-show, .user-show { display: none; } |
|||
.ve-ui-mwNoticesPopupTool-item .editnotice-redlink, |
|||
.ve-ui-mwNoticesPopupTool-item .mbox-image, |
|||
.ve-ui-mwNoticesPopupTool-item .mbox-imageright { display: none !important; } |
|||
ul.permissions-errors { margin: 0; } |
|||
ul.permissions-errors > li { list-style: none; } |
|||
span.mwe-math-mathml-inline { font-size: 118%; } |
|||
.mwe-math-fallback-image-display, .mwe-math-mathml-display { |
|||
margin-left: 1.6em !important; margin-top: 0.6em; margin-bottom: 0.6em; |
|||
} |
|||
.mwe-math-mathml-display math { display: inline; } |
|||
@media screen { |
|||
body:not(.ns-0):not(.ns-2):not(.ns-100) .gallerybox .thumb img { |
|||
background: #fff url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat; |
|||
} |
|||
#siteSub { display: block; } |
|||
.references { font-size: 90%; } |
|||
} |
|||
.flaggedrevs_draft_synced, .flaggedrevs_stable_synced, #t-upload, |
|||
.mw-special-Book #coll-downloadbox { display: none; } |
|||
/* 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 { margin: 0.5em 0 0.5em 1em; float: right; clear: right; width: 22em; } |
|||
} |
|||
.infobox-header, .infobox-label, .infobox-above, .infobox-full-data, .infobox-data, |
|||
.infobox-below, .infobox-subheader, .infobox-image, .infobox-navbar, |
|||
.infobox th, .infobox td { vertical-align: top; } |
|||
.infobox-label, .infobox-data, .infobox th, .infobox td { text-align: left; } |
|||
.infobox .infobox-above, .infobox .infobox-title, .infobox caption { |
|||
font-size: 125%; font-weight: bold; text-align: center; padding: 0.2em; |
|||
} |
|||
.infobox .infobox-header, .infobox .infobox-subheader, .infobox .infobox-image, |
|||
.infobox .infobox-full-data, .infobox .infobox-below { text-align: center; } |
|||
.infobox .infobox-navbar { text-align: right; } |
|||
.wikitable.plainrowheaders th[scope=row], .wikitable.plainrowheaders th[scope=rowgroup] { |
|||
font-weight: normal; text-align: left; |
|||
} |
|||
.nounderlines a, .IPA a:link, .IPA a:visited { text-decoration: none !important; } |
|||
.nowrap, .nowraplinks a { white-space: nowrap; } |
|||
.wrap, .wraplinks a { white-space: normal; } |
|||
span.texhtml { |
|||
font-family: "Nimbus Roman No9 L", "Times New Roman", Times, serif; |
|||
font-size: 118%; line-height: 1; |
|||
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; } } |
|||
@media (max-width: 640px) { |
|||
.flagicon a > img, .flagicon noscript > img { max-width: none !important; } |
|||
} |
|||
@media screen { .nochecker .gallerybox .thumb img { background-image: none; } } |
|||
/* YouTube Embeds */ |
|||
.mw-parser-output iframe[src*="youtube.com"], |
|||
.mw-parser-output iframe[src*="youtube-nocookie.com"] { |
|||
width: 100% !important; max-width: 320px; height: auto !important; |
|||
aspect-ratio: 16 / 9; display: block; margin: 0 auto; |
|||
} |
|||
/* ======================================================= */ |
|||
/* 2. GLOBAL HIDE (READ-ONLY MODE) */ |
|||
/* These elements are hidden for everyone by default. */ |
|||
/* They are UNHIDDEN in MediaWiki:Group-user.css */ |
|||
/* ======================================================= */ |
|||
/* HIDE USER LINKS (Includes Sticky Header IDs for Vector 2022) */ |
|||
#vector-user-links, |
|||
#p-personal, |
|||
#pt-login, |
|||
#pt-login-2, /* Sticky Header Login */ |
|||
#pt-createaccount, |
|||
#pt-createaccount-2, /* Sticky Header Create Account */ |
|||
#pt-userpage, |
|||
#pt-mytalk, |
|||
#pt-preferences, |
|||
#pt-watchlist, |
|||
#pt-mycontris, |
|||
#pt-logout { |
|||
display: none !important; |
|||
} |
} |
||
/* |
/* HIDE TOOLS (Sidebar, Dropdowns, Tabs) */ |
||
#p-tb, /* Toolbox */ |
|||
#p-tb, #vector-page-tools, #vector-page-tools-dropdown, |
|||
#vector-page-tools, /* Vector 22 Sidebar */ |
|||
.vector-p-tb, #ca-viewsource, #ca-history, #ca-talk { |
|||
#vector-page-tools-dropdown, /* Vector 22 Dropdown */ |
|||
display: block !important; |
|||
.vector-p-tb, |
|||
#ca-viewsource, |
|||
#ca-history, |
|||
#ca-talk { |
|||
display: none !important; |
|||
} |
} |
||
/* |
/* HIDE CATEGORIES */ |
||
#catlinks, |
#catlinks, |
||
.catlinks, |
|||
display: block !important; |
|||
.mw-normal-catlinks { |
|||
display: none !important; |
|||
} |
} |
||
Revision as of 00:24, 3 December 2025
/* CSS placed here will be applied to all skins */
/* ======================================================= */
/* 1. STANDARD MEDIAWIKI STYLING (Fonts, Quotes, etc.) */
/* ======================================================= */
cite, dfn { font-style: inherit; }
q { quotes: '"' '"' "'" "'"; }
blockquote {
overflow: hidden;
margin: 1em 0;
padding: 0 40px;
}
small { font-size: 85%; }
.mw-body-content sub, .mw-body-content sup { font-size: 80%; }
.ns-talk .mw-body-content dd { margin-top: 0.4em; margin-bottom: 0.4em; }
/* Collapsible elements logic */
.client-js .collapsible:not( .mw-made-collapsible).collapsed > tbody > tr:not(:first-child),
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > p,
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > table,
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > thead + tbody,
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) tr:not( :first-child ),
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) .mw-collapsible-content,
#editpage-specialchars {
display: none;
}
.references { margin-bottom: 0.5em; }
/* Cite Link Styling */
span[ rel="mw:referencedBy" ] { counter-reset: mw-ref-linkback 0; }
span[ rel='mw:referencedBy' ] > a::before {
content: counter( mw-ref-linkback, lower-alpha );
font-size: 80%; font-weight: bold; font-style: italic;
}
a[ rel="mw:referencedBy" ]::before { font-weight: bold; content: "^"; }
span[ rel="mw:referencedBy" ]::before { content: "^ "; }
.mw-parser-output .mw-collapsible-toggle:not(.mw-ui-button) {
font-weight: normal; padding-right: 0.2em; padding-left: 0.2em;
}
.mw-collapsible-leftside-toggle .mw-collapsible-toggle { float: left; }
.wikitable td ul, .wikitable td ol, .wikitable td dl { text-align: left; }
/* PDF Icons */
.mw-parser-output a[href$=".pdf"].external,
.mw-parser-output a[href*=".pdf?"].external,
.mw-parser-output a[href*=".pdf#"].external,
.mw-parser-output a[href$=".PDF"].external,
.mw-parser-output a[href*=".PDF?"].external,
.mw-parser-output a[href*=".PDF#"].external {
background: url("//upload.wikimedia.org/wikipedia/commons/4/4d/Icon_pdf_file.png") no-repeat right;
padding: 8px 18px 8px 0;
}
/* Warnings and Notices */
.mw-warning-with-logexcerpt.mw-warning-with-logexcerpt.mw-warning-with-logexcerpt,
div.mw-lag-warn-high, div.mw-cascadeprotectedwarning, div#mw-protect-cascadeon {
clear: both; margin: 0.2em 0; border: 1px solid #bb7070;
background-color: var(--background-color-error-subtle, #ffdbdb);
padding: 0.25em 0.9em; box-sizing: border-box;
}
.mw-contributions-blocked-notice-partial .mw-warning-with-logexcerpt.mw-warning-with-logexcerpt {
border-color: #fc3; background-color: var(--background-color-warning-subtle, #fef6e7);
}
@media (min-width: 640px) {
figure[typeof~='mw:File/Thumb'], figure[typeof~='mw:File/Frame'], .thumbinner { min-width: 100px; }
}
#mw-subcategories, #mw-pages, #mw-category-media, #filehistory, #wikiPreview, #wikiDiff { clear: both; }
/* Hide Permission Groups */
.checkuser-show, .sysop-show, .abusefilter-show, .abusefilter-helper-show,
.patroller-show, .templateeditor-show, .extendedmover-show, .extendedconfirmed-show,
.autoconfirmed-show, .user-show { display: none; }
.ve-ui-mwNoticesPopupTool-item .editnotice-redlink,
.ve-ui-mwNoticesPopupTool-item .mbox-image,
.ve-ui-mwNoticesPopupTool-item .mbox-imageright { display: none !important; }
ul.permissions-errors { margin: 0; }
ul.permissions-errors > li { list-style: none; }
span.mwe-math-mathml-inline { font-size: 118%; }
.mwe-math-fallback-image-display, .mwe-math-mathml-display {
margin-left: 1.6em !important; margin-top: 0.6em; margin-bottom: 0.6em;
}
.mwe-math-mathml-display math { display: inline; }
@media screen {
body:not(.ns-0):not(.ns-2):not(.ns-100) .gallerybox .thumb img {
background: #fff url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat;
}
#siteSub { display: block; }
.references { font-size: 90%; }
}
.flaggedrevs_draft_synced, .flaggedrevs_stable_synced, #t-upload,
.mw-special-Book #coll-downloadbox { display: none; }
/* 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 { margin: 0.5em 0 0.5em 1em; float: right; clear: right; width: 22em; }
}
.infobox-header, .infobox-label, .infobox-above, .infobox-full-data, .infobox-data,
.infobox-below, .infobox-subheader, .infobox-image, .infobox-navbar,
.infobox th, .infobox td { vertical-align: top; }
.infobox-label, .infobox-data, .infobox th, .infobox td { text-align: left; }
.infobox .infobox-above, .infobox .infobox-title, .infobox caption {
font-size: 125%; font-weight: bold; text-align: center; padding: 0.2em;
}
.infobox .infobox-header, .infobox .infobox-subheader, .infobox .infobox-image,
.infobox .infobox-full-data, .infobox .infobox-below { text-align: center; }
.infobox .infobox-navbar { text-align: right; }
.wikitable.plainrowheaders th[scope=row], .wikitable.plainrowheaders th[scope=rowgroup] {
font-weight: normal; text-align: left;
}
.nounderlines a, .IPA a:link, .IPA a:visited { text-decoration: none !important; }
.nowrap, .nowraplinks a { white-space: nowrap; }
.wrap, .wraplinks a { white-space: normal; }
span.texhtml {
font-family: "Nimbus Roman No9 L", "Times New Roman", Times, serif;
font-size: 118%; line-height: 1;
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; } }
@media (max-width: 640px) {
.flagicon a > img, .flagicon noscript > img { max-width: none !important; }
}
@media screen { .nochecker .gallerybox .thumb img { background-image: none; } }
/* YouTube Embeds */
.mw-parser-output iframe[src*="youtube.com"],
.mw-parser-output iframe[src*="youtube-nocookie.com"] {
width: 100% !important; max-width: 320px; height: auto !important;
aspect-ratio: 16 / 9; display: block; margin: 0 auto;
}
/* ======================================================= */
/* 2. GLOBAL HIDE (READ-ONLY MODE) */
/* These elements are hidden for everyone by default. */
/* They are UNHIDDEN in MediaWiki:Group-user.css */
/* ======================================================= */
/* HIDE USER LINKS (Includes Sticky Header IDs for Vector 2022) */
#vector-user-links,
#p-personal,
#pt-login,
#pt-login-2, /* Sticky Header Login */
#pt-createaccount,
#pt-createaccount-2, /* Sticky Header Create Account */
#pt-userpage,
#pt-mytalk,
#pt-preferences,
#pt-watchlist,
#pt-mycontris,
#pt-logout {
display: none !important;
}
/* HIDE TOOLS (Sidebar, Dropdowns, Tabs) */
#p-tb, /* Toolbox */
#vector-page-tools, /* Vector 22 Sidebar */
#vector-page-tools-dropdown, /* Vector 22 Dropdown */
.vector-p-tb,
#ca-viewsource,
#ca-history,
#ca-talk {
display: none !important;
}
/* HIDE CATEGORIES */
#catlinks,
.catlinks,
.mw-normal-catlinks {
display: none !important;
}