MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 16: | Line 16: | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* Hide top header/logo area */ | |||
#mw-head, #mw-panel, #p-logo, #footer { | |||
display: none !important; | |||
} | |||
/* Reduce top margin of the content body */ | |||
#content { | |||
margin-left: 0 !important; | |||
padding-top: 0 !important; | |||
margin-top: 0 !important; | |||
} | |||
/* Optional: Hide site notice */ | |||
#siteNotice { | |||
display: none !important; | |||
} | |||
/* Hide the "hide" link in Contents box */ | /* Hide the "hide" link in Contents box */ | ||
.toctogglecheckbox, | .toctogglecheckbox, | ||
| Line 117: | Line 130: | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* Remove the large top space */ | /* Remove the large top space */ | ||
#mw-page-base, | #mw-page-base, | ||
| Line 139: | Line 148: | ||
} | } | ||
.firstHeading { | .firstHeading { | ||
margin-top: 0 !important; | margin-top: 0 !important; | ||
| Line 145: | Line 153: | ||
} | } | ||
/* | /* Hide ONLY the right-aligned Reserve box, keep the left bottle */ | ||
. | figure.mw-halign-right, | ||
. | .mw-halign-right { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* Keep the wine bottle visible */ | ||
figure.mw-halign-left, | |||
.mw-halign-left { | |||
display: | display: block !important; | ||
float: left !important; | |||
margin: 0 15px 10px 0 !important; | |||
} | } | ||
/* | /* Make the bottle a reasonable size */ | ||
img | figure.mw-halign-left img, | ||
img | .mw-halign-left img { | ||
max-width: 150px !important; | |||
height: auto !important; | |||
} | } | ||
} | } | ||
Latest revision as of 23:08, 26 January 2026
/* CSS placed here will be applied to all skins */
@media print {
/* Hide unnecessary elements for print */
.toc,
#toc,
.mw-editsection,
.mw-jump-link,
.printfooter,
#footer,
#catlinks,
.noprint,
.mw-navigation,
#p-logo,
.thumbcaption,
.magnify {
display: none !important;
}
/* Hide top header/logo area */
#mw-head, #mw-panel, #p-logo, #footer {
display: none !important;
}
/* Reduce top margin of the content body */
#content {
margin-left: 0 !important;
padding-top: 0 !important;
margin-top: 0 !important;
}
/* Optional: Hide site notice */
#siteNotice {
display: none !important;
}
/* Hide the "hide" link in Contents box */
.toctogglecheckbox,
.toctogglespan {
display: none !important;
}
/* Make the infobox more compact */
.infobox {
float: right;
width: 250px !important;
margin: 0 0 10px 15px !important;
padding: 8px !important;
font-size: 11px !important;
line-height: 1.3 !important;
page-break-inside: avoid;
}
.infobox-title {
font-size: 14px !important;
padding: 5px !important;
margin-bottom: 5px !important;
}
.infobox-row {
padding: 2px 5px !important;
}
/* Compact the image gallery (Notes section) */
.gallery {
margin: 5px 0 !important;
}
.gallery .gallerybox {
width: 80px !important;
margin: 2px !important;
}
.gallery img {
max-width: 60px !important;
max-height: 60px !important;
}
.gallery .gallerytext {
font-size: 9px !important;
padding: 2px !important;
}
/* Hide bottom Reserve link image */
.floatright {
display: none !important;
}
/* Compact headings */
h2 {
font-size: 14pt !important;
margin: 10px 0 5px 0 !important;
padding-top: 5px !important;
}
/* Reduce body text spacing */
p {
margin: 5px 0 !important;
font-size: 10pt !important;
}
ul, ol {
margin: 5px 0 !important;
}
/* Make the main wine bottle image more reasonable */
.floatleft img,
.thumbinner img {
max-width: 150px !important;
height: auto !important;
}
.floatleft {
margin: 0 15px 10px 0 !important;
}
/* Prevent awkward page breaks */
h2, h3 {
page-break-after: avoid;
}
.infobox,
.gallery {
page-break-inside: avoid;
}
/* Overall page margins */
body {
margin: 0.5in !important;
}
/* Hide ALL external links at bottom */
#footer-info,
#footer-places {
display: none !important;
}
/* Remove the large top space */
#mw-page-base,
#mw-head-base,
.mw-body {
margin-top: 0 !important;
padding-top: 0 !important;
}
#content {
margin-top: 0 !important;
padding-top: 10px !important;
}
.mw-parser-output {
margin-top: 0 !important;
}
.firstHeading {
margin-top: 0 !important;
padding-top: 0 !important;
}
/* Hide ONLY the right-aligned Reserve box, keep the left bottle */
figure.mw-halign-right,
.mw-halign-right {
display: none !important;
}
/* Keep the wine bottle visible */
figure.mw-halign-left,
.mw-halign-left {
display: block !important;
float: left !important;
margin: 0 15px 10px 0 !important;
}
/* Make the bottle a reasonable size */
figure.mw-halign-left img,
.mw-halign-left img {
max-width: 150px !important;
height: auto !important;
}
}