MediaWiki:Common.css: Difference between revisions
EnWikiAdmin (talk | contribs) No edit summary |
EnWikiAdmin (talk | contribs) No edit summary |
||
(46 intermediate revisions by 2 users not shown) | |||
Line 22: | Line 22: | ||
.references { | .references { | ||
margin-bottom: 0.5em; | margin-bottom: 0.5em; | ||
} | |||
/* Parsoid Customizations for Reference Styling */ | |||
/* Reset the reference counter for each group */ | |||
span[rel="mw:referencedBy"] { | |||
/* counter-reset: mw-ref-linkback 0;*/ | |||
} | |||
/* Custom styling for each type of reference */ | |||
span[rel="mw:referencedBy"] > a::before { | |||
font-size: 80%; | |||
font-weight: bold; | |||
font-style: italic; | |||
content: counter(mw-ref-linkback, lower-alpha); | |||
} | |||
a[rel="mw:referencedBy"]::before { | |||
font-weight: bold; | |||
content: "^"; | |||
} | |||
span[rel="mw:referencedBy"]::before { | |||
content: "^ "; | |||
} | } | ||
Line 89: | Line 115: | ||
vertical-align: top; | vertical-align: top; | ||
} | } | ||
.infobox-label, | .infobox-label, | ||
Line 150: | Line 178: | ||
background: url("//upload.wikimedia.org/wikipedia/commons/4/4d/Icon_pdf_file.png") no-repeat right; | background: url("//upload.wikimedia.org/wikipedia/commons/4/4d/Icon_pdf_file.png") no-repeat right; | ||
padding: 8px 18px 8px 0; | padding: 8px 18px 8px 0; | ||
} | |||
/* Simplified footnote style */ | |||
.mw-reflist { | |||
/*counter-reset: footnote-counter !important;*/ | |||
} | |||
.mw-reflist li::before { | |||
counter-increment: footnote-counter !important; | |||
content: "[" counter(footnote-counter, lower-alpha) "] " !important; | |||
} | |||
body.skin-vector .nomobile { | |||
display: block !important; | |||
} | |||
body.skin-vector .onlymobile { | |||
display: none !important; | |||
} | |||
/* Minimum thumb width */ | |||
@media (min-width: 640px) { | |||
figure[typeof~='mw:File/Thumb'], | |||
figure[typeof~='mw:File/Frame'], | |||
.thumbinner { | |||
min-width: 100px; | |||
} | |||
} | } | ||
@media screen { | @media screen { | ||
/* Put a chequered background behind images, only visible if they have transparency, | |||
* except on main, user, and portal namespaces | |||
*/ | |||
body:not(.ns-0):not(.ns-2):not(.ns-100) .gallerybox .thumb img { | 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; | background: #fff url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat; | ||
} | } | ||
@media screen { | |||
.nochecker .gallerybox .thumb img { | .nochecker .gallerybox .thumb img { | ||
background-image: none; | background-image: none; | ||
} | } | ||
.flagicon a > img, | @media (max-width: 640px) { | ||
.flagicon noscript > img { | .flagicon a > img, | ||
.flagicon noscript > img { | |||
max-width: none !important; | |||
} | |||
} | } | ||
Line 185: | Line 244: | ||
padding: 0.25em 0.9em; | padding: 0.25em 0.9em; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | |||
/* Style the main quotebox container */ | |||
.mw-parser-output .quotebox { | |||
background-color: #F9F9F9; /* Light background for readability */ | |||
border: 1px solid #aaa; /* Soft border */ | |||
box-sizing: border-box; | |||
padding: 10px; /* Internal padding for content */ | |||
font-size: 88%; /* Adjust text size */ | |||
max-width: 100%; /* Ensure it doesn’t exceed container width */ | |||
width: 30em; /* Control width of the quote box */ | |||
margin: 0.5em auto; /* Center align by default, adjust if needed */ | |||
} | |||
/* Floating alignment for left and right options */ | |||
.mw-parser-output .quotebox.floatleft { | |||
float: left; | |||
margin: 0.5em 1.4em 0.8em 0; | |||
} | |||
.mw-parser-output .quotebox.floatright { | |||
float: right; | |||
margin: 0.5em 0 0.8em 1.4em; | |||
} | |||
/* Optional additional styling for content readability */ | |||
.mw-parser-output .quotebox p { | |||
margin: 0; | |||
padding: 0; | |||
} | |||
/* Customize font or other specific needs */ | |||
.mw-parser-output .quotebox { | |||
font-family: sans-serif; | |||
color: #202122; /* Text color for contrast */ | |||
line-height: 1.5; | |||
} | |||
/* Hide the entire tags section in Recent Changes */ | |||
.mw-tag-markers { | |||
display: none !important; | |||
} | |||
/*body.page-Main_Page #firstHeading { | |||
display: none !important; | |||
}*/ | |||
body.page-Test_page .mw-body { | |||
grid-template-columns: minmax(0, 1fr) min-content; | |||
} | |||
body.page-Test_page #firstHeading { | |||
display: none !important; | |||
} | |||
body.page-Main_Page .mw-body { | |||
grid-template-columns: minmax(0, 1fr) min-content; | |||
} | |||
body.page-Main_Page #firstHeading { | |||
display: none !important; | |||
} | |||
body.page-Main_Page .mw-body { | |||
grid-template-columns: minmax(0, 1fr) min-content; | |||
} | |||
/* Hide the pre-content heading holder on Main_Page in mobile view */ | |||
@media (max-width: 1120px) { /* Adjust the breakpoint as needed */ | |||
body.page-Main_Page .pre-content.heading-holder { | |||
display: none !important; | |||
} | |||
} | |||
/* Hide ShortDescription on desktop */ | |||
body.skin-vector #siteSub { | |||
display: none; | |||
} | |||
/* Show ShortDescription on mobile */ | |||
@media (max-width: 768px) { | |||
body.skin-vector #siteSub { | |||
display: block; | |||
} | |||
} | } |